[Bug #1619680] in_dll() arguments are documented in the wrong order
[pytest.git] / configure
blob3f8459de478a07db11685910002af5e66ecf2096
1 #! /bin/sh
2 # From configure.in Revision: 52457 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for python 2.5.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
25 DUALCASE=1; export DUALCASE # for MKS sh
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29 as_unset=unset
30 else
31 as_unset=false
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
41 # NLS nuisances.
42 for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
52 done
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57 else
58 as_expr=false
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63 else
64 as_basename=false
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
99 rm -f conf$$.sh
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155 done
157 esac
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199 else
200 as_expr=false
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216 else
217 as_ln_s='cp -p'
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223 else
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
228 as_executable_p="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
241 IFS=" $as_nl"
243 # CDPATH.
244 $as_unset CDPATH
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252 exec 6>&1
255 # Initializations.
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
270 # Identity of this package.
271 PACKAGE_NAME='python'
272 PACKAGE_TARNAME='python'
273 PACKAGE_VERSION='2.5'
274 PACKAGE_STRING='python 2.5'
275 PACKAGE_BUGREPORT='http://www.python.org/python-bugs'
277 ac_unique_file="Include/object.h"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 # include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 # include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 # include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
315 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION SOVERSION CONFIG_ARGS UNIVERSALSDK PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR FRAMEWORKINSTALLFIRST FRAMEWORKINSTALLLAST FRAMEWORKALTINSTALLFIRST FRAMEWORKALTINSTALLLAST FRAMEWORKUNIXTOOLSPREFIX MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET EXPORT_MACOSX_DEPLOYMENT_TARGET CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX MAINCC CPP EGREP BUILDEXEEXT LIBRARY LDLIBRARY DLLLIBRARY BLDLIBRARY LDLIBRARYDIR INSTSONAME RUNSHARED LINKCC RANLIB ac_ct_RANLIB AR SVNVERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN OPT BASECFLAGS OTHER_LIBTOOL_OPT LIBTOOL_CRUFT SO LDSHARED BLDSHARED CCSHARED LINKFORSHARED CFLAGSFORSHARED SHLIBS USE_SIGNAL_MODULE SIGNAL_OBJS USE_THREAD_MODULE LDLAST THREADOBJ DLINCLDIR DYNLOADFILE MACHDEP_OBJS TRUE LIBOBJS HAVE_GETHOSTBYNAME_R_6_ARG HAVE_GETHOSTBYNAME_R_5_ARG HAVE_GETHOSTBYNAME_R_3_ARG HAVE_GETHOSTBYNAME_R HAVE_GETHOSTBYNAME LIBM LIBC UNICODE_OBJS THREADHEADERS SRCDIRS LTLIBOBJS'
316 ac_subst_files=''
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
356 ac_prev=
357 for ac_option
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
370 case $ac_option in
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
389 --config-cache | -C)
390 cache_file=config.cache ;;
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 esac
653 done
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670 done
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682 done
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705 test "$silent" = yes && exec 6>/dev/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
728 else
729 ac_srcdir_defaulted=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
778 # Report the --help message.
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
783 cat <<_ACEOF
784 \`configure' configures python 2.5 to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
793 Configuration:
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 _ACEOF
806 cat <<_ACEOF
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
809 [$ac_default_prefix]
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 [PREFIX]
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
833 _ACEOF
835 cat <<\_ACEOF
836 _ACEOF
839 if test -n "$ac_init_help"; then
840 case $ac_init_help in
841 short | recursive ) echo "Configuration of python 2.5:";;
842 esac
843 cat <<\_ACEOF
845 Optional Features:
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --enable-universalsdk[SDKDIR]
849 Build agains Mac OS X 10.4u SDK (ppc/i386)
850 --enable-framework[=INSTALLDIR]
851 Build (MacOSX|Darwin) framework
852 --enable-shared disable/enable building shared python library
853 --enable-profiling enable C-level code profiling
854 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
855 --enable-ipv6 Enable ipv6 (with ipv4) support
856 --disable-ipv6 Disable ipv6 support
857 --enable-unicode[=ucs[24]]
858 Enable Unicode strings (default is yes)
860 Optional Packages:
861 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
862 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
863 --without-gcc never use gcc
864 --with-cxx-main=<compiler>
865 compile main() and link python executable with C++
866 compiler
867 --with-suffix=.exe set executable suffix
868 --with-pydebug build with Py_DEBUG defined
869 --with-libs='lib1 ...' link against additional libs
870 --with-system-ffi build _ctypes module using an installed ffi library
871 --with-signal-module disable/enable signal module
872 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
873 --with(out)-threads[=DIRECTORY]
874 disable/enable thread support
875 --with(out)-thread[=DIRECTORY]
876 deprecated; use --with(out)-threads
877 --with-pth use GNU pth threading libraries
878 --with(out)-doc-strings disable/enable documentation strings
879 --with(out)-tsc enable/disable timestamp counter profile
880 --with(out)-pymalloc disable/enable specialized mallocs
881 --with-wctype-functions use wctype.h functions
882 --with-fpectl enable SIGFPE catching
883 --with-libm=STRING math library
884 --with-libc=STRING C library
886 Some influential environment variables:
887 CC C compiler command
888 CFLAGS C compiler flags
889 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
890 nonstandard directory <lib dir>
891 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
892 headers in a nonstandard directory <include dir>
893 CPP C preprocessor
895 Use these variables to override the choices made by `configure' or to help
896 it to find libraries and programs with nonstandard names/locations.
898 Report bugs to <http://www.python.org/python-bugs>.
899 _ACEOF
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
904 ac_popdir=`pwd`
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
907 ac_builddir=.
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
913 else
914 ac_dir_suffix= ac_top_builddir=
917 case $srcdir in
918 .) # No --srcdir option. We are building in place.
919 ac_srcdir=.
920 if test -z "$ac_top_builddir"; then
921 ac_top_srcdir=.
922 else
923 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
924 fi ;;
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
928 *) # Relative path.
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
931 esac
933 # Do not use `cd foo && pwd` to compute absolute paths, because
934 # the directories may not exist.
935 case `pwd` in
936 .) ac_abs_builddir="$ac_dir";;
938 case "$ac_dir" in
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
942 esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
951 esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
956 case $ac_srcdir in
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
960 esac;;
961 esac
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 esac;;
970 esac
972 cd $ac_dir
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
975 echo
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
978 echo
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
982 echo
983 $ac_configure --help
984 else
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987 cd $ac_popdir
988 done
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
993 cat <<\_ACEOF
994 python configure 2.5
995 generated by GNU Autoconf 2.59
997 Copyright (C) 2003 Free Software Foundation, Inc.
998 This configure script is free software; the Free Software Foundation
999 gives unlimited permission to copy, distribute and modify it.
1000 _ACEOF
1001 exit 0
1003 exec 5>config.log
1004 cat >&5 <<_ACEOF
1005 This file contains any messages produced by compilers while
1006 running configure, to aid debugging if configure makes a mistake.
1008 It was created by python $as_me 2.5, which was
1009 generated by GNU Autoconf 2.59. Invocation command line was
1011 $ $0 $@
1013 _ACEOF
1015 cat <<_ASUNAME
1016 ## --------- ##
1017 ## Platform. ##
1018 ## --------- ##
1020 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1021 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1022 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1023 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1024 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1026 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1027 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1029 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1030 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1031 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1032 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1033 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1034 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1035 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1037 _ASUNAME
1039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040 for as_dir in $PATH
1042 IFS=$as_save_IFS
1043 test -z "$as_dir" && as_dir=.
1044 echo "PATH: $as_dir"
1045 done
1047 } >&5
1049 cat >&5 <<_ACEOF
1052 ## ----------- ##
1053 ## Core tests. ##
1054 ## ----------- ##
1056 _ACEOF
1059 # Keep a trace of the command line.
1060 # Strip out --no-create and --no-recursion so they do not pile up.
1061 # Strip out --silent because we don't want to record it for future runs.
1062 # Also quote any args containing shell meta-characters.
1063 # Make two passes to allow for proper duplicate-argument suppression.
1064 ac_configure_args=
1065 ac_configure_args0=
1066 ac_configure_args1=
1067 ac_sep=
1068 ac_must_keep_next=false
1069 for ac_pass in 1 2
1071 for ac_arg
1073 case $ac_arg in
1074 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1077 continue ;;
1078 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1080 esac
1081 case $ac_pass in
1082 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1084 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085 if test $ac_must_keep_next = true; then
1086 ac_must_keep_next=false # Got value, back to normal.
1087 else
1088 case $ac_arg in
1089 *=* | --config-cache | -C | -disable-* | --disable-* \
1090 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092 | -with-* | --with-* | -without-* | --without-* | --x)
1093 case "$ac_configure_args0 " in
1094 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095 esac
1097 -* ) ac_must_keep_next=true ;;
1098 esac
1100 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101 # Get rid of the leading space.
1102 ac_sep=" "
1104 esac
1105 done
1106 done
1107 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1110 # When interrupted or exit'd, cleanup temporary files, and complete
1111 # config.log. We remove comments because anyway the quotes in there
1112 # would cause problems or look ugly.
1113 # WARNING: Be sure not to use single quotes in there, as some shells,
1114 # such as our DU 5.0 friend, will then `close' the trap.
1115 trap 'exit_status=$?
1116 # Save into config.log some information that might help in debugging.
1118 echo
1120 cat <<\_ASBOX
1121 ## ---------------- ##
1122 ## Cache variables. ##
1123 ## ---------------- ##
1124 _ASBOX
1125 echo
1126 # The following way of writing the cache mishandles newlines in values,
1128 (set) 2>&1 |
1129 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130 *ac_space=\ *)
1131 sed -n \
1132 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136 sed -n \
1137 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139 esac;
1141 echo
1143 cat <<\_ASBOX
1144 ## ----------------- ##
1145 ## Output variables. ##
1146 ## ----------------- ##
1147 _ASBOX
1148 echo
1149 for ac_var in $ac_subst_vars
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1153 done | sort
1154 echo
1156 if test -n "$ac_subst_files"; then
1157 cat <<\_ASBOX
1158 ## ------------- ##
1159 ## Output files. ##
1160 ## ------------- ##
1161 _ASBOX
1162 echo
1163 for ac_var in $ac_subst_files
1165 eval ac_val=$`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1167 done | sort
1168 echo
1171 if test -s confdefs.h; then
1172 cat <<\_ASBOX
1173 ## ----------- ##
1174 ## confdefs.h. ##
1175 ## ----------- ##
1176 _ASBOX
1177 echo
1178 sed "/^$/d" confdefs.h | sort
1179 echo
1181 test "$ac_signal" != 0 &&
1182 echo "$as_me: caught signal $ac_signal"
1183 echo "$as_me: exit $exit_status"
1184 } >&5
1185 rm -f core *.core &&
1186 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1187 exit $exit_status
1189 for ac_signal in 1 2 13 15; do
1190 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191 done
1192 ac_signal=0
1194 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1195 rm -rf conftest* confdefs.h
1196 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1197 echo >confdefs.h
1199 # Predefined preprocessor variables.
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_NAME "$PACKAGE_NAME"
1203 _ACEOF
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208 _ACEOF
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1213 _ACEOF
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_STRING "$PACKAGE_STRING"
1218 _ACEOF
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223 _ACEOF
1226 # Let the site file select an alternate cache file if it wants to.
1227 # Prefer explicitly selected file to automatically selected ones.
1228 if test -z "$CONFIG_SITE"; then
1229 if test "x$prefix" != xNONE; then
1230 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1231 else
1232 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235 for ac_site_file in $CONFIG_SITE; do
1236 if test -r "$ac_site_file"; then
1237 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238 echo "$as_me: loading site script $ac_site_file" >&6;}
1239 sed 's/^/| /' "$ac_site_file" >&5
1240 . "$ac_site_file"
1242 done
1244 if test -r "$cache_file"; then
1245 # Some versions of bash will fail to source /dev/null (special
1246 # files actually), so we avoid doing that.
1247 if test -f "$cache_file"; then
1248 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249 echo "$as_me: loading cache $cache_file" >&6;}
1250 case $cache_file in
1251 [\\/]* | ?:[\\/]* ) . $cache_file;;
1252 *) . ./$cache_file;;
1253 esac
1255 else
1256 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257 echo "$as_me: creating cache $cache_file" >&6;}
1258 >$cache_file
1261 # Check that the precious variables saved in the cache have kept the same
1262 # value.
1263 ac_cache_corrupted=false
1264 for ac_var in `(set) 2>&1 |
1265 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1266 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267 eval ac_new_set=\$ac_env_${ac_var}_set
1268 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269 eval ac_new_val="\$ac_env_${ac_var}_value"
1270 case $ac_old_set,$ac_new_set in
1271 set,)
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1274 ac_cache_corrupted=: ;;
1275 ,set)
1276 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1277 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278 ac_cache_corrupted=: ;;
1279 ,);;
1281 if test "x$ac_old_val" != "x$ac_new_val"; then
1282 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1283 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1284 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1285 echo "$as_me: former value: $ac_old_val" >&2;}
1286 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1287 echo "$as_me: current value: $ac_new_val" >&2;}
1288 ac_cache_corrupted=:
1289 fi;;
1290 esac
1291 # Pass precious variables to config.status.
1292 if test "$ac_new_set" = set; then
1293 case $ac_new_val in
1294 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1296 *) ac_arg=$ac_var=$ac_new_val ;;
1297 esac
1298 case " $ac_configure_args " in
1299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1300 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1301 esac
1303 done
1304 if $ac_cache_corrupted; then
1305 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1308 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309 { (exit 1); exit 1; }; }
1312 ac_ext=c
1313 ac_cpp='$CPP $CPPFLAGS'
1314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1345 ac_config_headers="$ac_config_headers pyconfig.h"
1353 # We don't use PACKAGE_ variables, and they cause conflicts
1354 # with other autoconf-based packages that include Python.h
1355 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1356 rm confdefs.h
1357 mv confdefs.h.new confdefs.h
1360 VERSION=2.5
1363 SOVERSION=1.0
1365 # The later defininition of _XOPEN_SOURCE disables certain features
1366 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1368 cat >>confdefs.h <<\_ACEOF
1369 #define _GNU_SOURCE 1
1370 _ACEOF
1373 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1374 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1375 # them.
1377 cat >>confdefs.h <<\_ACEOF
1378 #define _NETBSD_SOURCE 1
1379 _ACEOF
1382 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1383 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1384 # them.
1386 cat >>confdefs.h <<\_ACEOF
1387 #define __BSD_VISIBLE 1
1388 _ACEOF
1391 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1392 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1394 cat >>confdefs.h <<\_ACEOF
1395 #define _BSD_TYPES 1
1396 _ACEOF
1399 define_xopen_source=yes
1401 # Arguments passed to configure.
1403 CONFIG_ARGS="$ac_configure_args"
1405 # Check whether --enable-universalsdk or --disable-universalsdk was given.
1406 if test "${enable_universalsdk+set}" = set; then
1407 enableval="$enable_universalsdk"
1409 case $enableval in
1410 yes)
1411 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1413 esac
1414 case $enableval in
1416 UNIVERSALSDK=
1417 enable_universalsdk=
1420 UNIVERSALSDK=$enableval
1422 esac
1424 else
1426 UNIVERSALSDK=
1427 enable_universalsdk=
1432 # Check whether --enable-framework or --disable-framework was given.
1433 if test "${enable_framework+set}" = set; then
1434 enableval="$enable_framework"
1436 case $enableval in
1437 yes)
1438 enableval=/Library/Frameworks
1439 esac
1440 case $enableval in
1442 PYTHONFRAMEWORK=
1443 PYTHONFRAMEWORKDIR=no-framework
1444 PYTHONFRAMEWORKPREFIX=
1445 PYTHONFRAMEWORKINSTALLDIR=
1446 FRAMEWORKINSTALLFIRST=
1447 FRAMEWORKINSTALLLAST=
1448 FRAMEWORKALTINSTALLFIRST=
1449 FRAMEWORKALTINSTALLLAST=
1450 if test "x${prefix}" = "xNONE"; then
1451 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1452 else
1453 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1455 enable_framework=
1458 PYTHONFRAMEWORK=Python
1459 PYTHONFRAMEWORKDIR=Python.framework
1460 PYTHONFRAMEWORKPREFIX=$enableval
1461 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1462 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1463 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1464 FRAMEWORKALTINSTALLFIRST="${FRAMEWORKINSTALLFIRST} bininstall maninstall"
1465 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1466 if test "x${prefix}" = "xNONE" ; then
1467 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1468 else
1469 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1471 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1473 # Add makefiles for Mac specific code to the list of output
1474 # files:
1475 ac_config_files="$ac_config_files Mac/Makefile"
1477 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1479 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
1481 esac
1483 else
1485 PYTHONFRAMEWORK=
1486 PYTHONFRAMEWORKDIR=no-framework
1487 PYTHONFRAMEWORKPREFIX=
1488 PYTHONFRAMEWORKINSTALLDIR=
1489 FRAMEWORKINSTALLFIRST=
1490 FRAMEWORKINSTALLLAST=
1491 FRAMEWORKALTINSTALLFIRST=
1492 FRAMEWORKALTINSTALLLAST=
1493 if test "x${prefix}" = "xNONE" ; then
1494 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1495 else
1496 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1498 enable_framework=
1511 ##AC_ARG_WITH(dyld,
1512 ## AC_HELP_STRING(--with-dyld,
1513 ## Use (OpenStep|Rhapsody) dynamic linker))
1515 # Set name for machine-dependent library files
1517 echo "$as_me:$LINENO: checking MACHDEP" >&5
1518 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1519 if test -z "$MACHDEP"
1520 then
1521 ac_sys_system=`uname -s`
1522 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1523 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1524 ac_sys_release=`uname -v`
1525 else
1526 ac_sys_release=`uname -r`
1528 ac_md_system=`echo $ac_sys_system |
1529 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1530 ac_md_release=`echo $ac_sys_release |
1531 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1532 MACHDEP="$ac_md_system$ac_md_release"
1534 case $MACHDEP in
1535 cygwin*) MACHDEP="cygwin";;
1536 darwin*) MACHDEP="darwin";;
1537 atheos*) MACHDEP="atheos";;
1538 irix646) MACHDEP="irix6";;
1539 '') MACHDEP="unknown";;
1540 esac
1543 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1544 # disable features if it is defined, without any means to access these
1545 # features as extensions. For these systems, we skip the definition of
1546 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1547 # some feature, make sure there is no alternative way to access this
1548 # feature. Also, when using wildcards, make sure you have verified the
1549 # need for not defining _XOPEN_SOURCE on all systems matching the
1550 # wildcard, and that the wildcard does not include future systems
1551 # (which may remove their limitations).
1552 case $ac_sys_system/$ac_sys_release in
1553 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1554 # even though select is a POSIX function. Reported by J. Ribbens.
1555 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1556 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0])
1557 define_xopen_source=no;;
1558 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
1559 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
1560 # Marc Recht
1561 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6A-S)
1562 define_xopen_source=no;;
1563 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1564 # of union __?sigval. Reported by Stuart Bishop.
1565 SunOS/5.6)
1566 define_xopen_source=no;;
1567 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1568 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1569 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1570 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
1571 define_xopen_source=no;;
1572 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1573 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1574 SCO_SV/3.2)
1575 define_xopen_source=no;;
1576 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1577 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1578 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1579 # This should hopefully be fixed in FreeBSD 4.9
1580 FreeBSD/4.8* | Darwin/6* )
1581 define_xopen_source=no;;
1582 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1583 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1584 # or has another value. By not (re)defining it, the defaults come in place.
1585 AIX/4)
1586 define_xopen_source=no;;
1587 AIX/5)
1588 if test `uname -r` -eq 1; then
1589 define_xopen_source=no
1592 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1593 # disables platform specific features beyond repair.
1594 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1595 # has no effect, don't bother defining them
1596 Darwin/[789].*)
1597 define_xopen_source=no
1600 esac
1602 if test $define_xopen_source = yes
1603 then
1604 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1605 # defined precisely as g++ defines it
1606 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1607 # compiler
1608 case $ac_sys_system/$ac_sys_release in
1609 SunOS/5.8|SunOS/5.9|SunOS/5.10)
1611 cat >>confdefs.h <<\_ACEOF
1612 #define _XOPEN_SOURCE 500
1613 _ACEOF
1618 cat >>confdefs.h <<\_ACEOF
1619 #define _XOPEN_SOURCE 600
1620 _ACEOF
1623 esac
1625 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1626 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1627 # several APIs are not declared. Since this is also needed in some
1628 # cases for HP-UX, we define it globally.
1629 # except for Solaris 10, where it must not be defined,
1630 # as it implies XPG4.2
1631 case $ac_sys_system/$ac_sys_release in
1632 SunOS/5.10)
1636 cat >>confdefs.h <<\_ACEOF
1637 #define _XOPEN_SOURCE_EXTENDED 1
1638 _ACEOF
1641 esac
1644 cat >>confdefs.h <<\_ACEOF
1645 #define _POSIX_C_SOURCE 200112L
1646 _ACEOF
1652 # SGI compilers allow the specification of the both the ABI and the
1653 # ISA on the command line. Depending on the values of these switches,
1654 # different and often incompatable code will be generated.
1656 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1657 # thus supply support for various ABI/ISA combinations. The MACHDEP
1658 # variable is also adjusted.
1661 if test ! -z "$SGI_ABI"
1662 then
1663 CC="cc $SGI_ABI"
1664 LDFLAGS="$SGI_ABI $LDFLAGS"
1665 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1667 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1668 echo "${ECHO_T}$MACHDEP" >&6
1670 # And add extra plat-mac for darwin
1673 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1674 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1675 if test -z "$EXTRAPLATDIR"
1676 then
1677 case $MACHDEP in
1678 darwin)
1679 EXTRAPLATDIR="\$(PLATMACDIRS)"
1680 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
1683 EXTRAPLATDIR=""
1684 EXTRAMACHDEPPATH=""
1686 esac
1688 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1689 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1691 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1692 # it may influence the way we can build extensions, so distutils
1693 # needs to check it
1696 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
1697 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
1699 # checks for alternative programs
1701 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1702 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1703 # just to get things to compile and link. Users are free to override OPT
1704 # when running configure or make. The build should not break if they do.
1705 # BASECFLAGS should generally not be messed with, however.
1707 # XXX shouldn't some/most/all of this code be merged with the stuff later
1708 # on that fiddles with OPT and BASECFLAGS?
1709 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1710 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1712 # Check whether --with-gcc or --without-gcc was given.
1713 if test "${with_gcc+set}" = set; then
1714 withval="$with_gcc"
1716 case $withval in
1717 no) CC=cc
1718 without_gcc=yes;;
1719 yes) CC=gcc
1720 without_gcc=no;;
1721 *) CC=$withval
1722 without_gcc=$withval;;
1723 esac
1724 else
1726 case $ac_sys_system in
1727 AIX*) CC=cc_r
1728 without_gcc=;;
1729 BeOS*)
1730 case $BE_HOST_CPU in
1731 ppc)
1732 CC=mwcc
1733 without_gcc=yes
1734 BASECFLAGS="$BASECFLAGS -export pragma"
1735 OPT="$OPT -O"
1736 LDFLAGS="$LDFLAGS -nodup"
1738 x86)
1739 CC=gcc
1740 without_gcc=no
1741 OPT="$OPT -O"
1744 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1745 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1746 { (exit 1); exit 1; }; }
1748 esac
1749 AR="\$(srcdir)/Modules/ar_beos"
1750 RANLIB=:
1752 Monterey*)
1753 RANLIB=:
1754 without_gcc=;;
1755 *) without_gcc=no;;
1756 esac
1758 echo "$as_me:$LINENO: result: $without_gcc" >&5
1759 echo "${ECHO_T}$without_gcc" >&6
1761 # If the user switches compilers, we can't believe the cache
1762 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1763 then
1764 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1765 (it is also a good idea to do 'make clean' before compiling)" >&5
1766 echo "$as_me: error: cached CC is different -- throw away $cache_file
1767 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1768 { (exit 1); exit 1; }; }
1771 ac_ext=c
1772 ac_cpp='$CPP $CPPFLAGS'
1773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1776 if test -n "$ac_tool_prefix"; then
1777 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1778 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1779 echo "$as_me:$LINENO: checking for $ac_word" >&5
1780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1781 if test "${ac_cv_prog_CC+set}" = set; then
1782 echo $ECHO_N "(cached) $ECHO_C" >&6
1783 else
1784 if test -n "$CC"; then
1785 ac_cv_prog_CC="$CC" # Let the user override the test.
1786 else
1787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788 for as_dir in $PATH
1790 IFS=$as_save_IFS
1791 test -z "$as_dir" && as_dir=.
1792 for ac_exec_ext in '' $ac_executable_extensions; do
1793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1794 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1796 break 2
1798 done
1799 done
1803 CC=$ac_cv_prog_CC
1804 if test -n "$CC"; then
1805 echo "$as_me:$LINENO: result: $CC" >&5
1806 echo "${ECHO_T}$CC" >&6
1807 else
1808 echo "$as_me:$LINENO: result: no" >&5
1809 echo "${ECHO_T}no" >&6
1813 if test -z "$ac_cv_prog_CC"; then
1814 ac_ct_CC=$CC
1815 # Extract the first word of "gcc", so it can be a program name with args.
1816 set dummy gcc; ac_word=$2
1817 echo "$as_me:$LINENO: checking for $ac_word" >&5
1818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1821 else
1822 if test -n "$ac_ct_CC"; then
1823 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1824 else
1825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826 for as_dir in $PATH
1828 IFS=$as_save_IFS
1829 test -z "$as_dir" && as_dir=.
1830 for ac_exec_ext in '' $ac_executable_extensions; do
1831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832 ac_cv_prog_ac_ct_CC="gcc"
1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834 break 2
1836 done
1837 done
1841 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1842 if test -n "$ac_ct_CC"; then
1843 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1844 echo "${ECHO_T}$ac_ct_CC" >&6
1845 else
1846 echo "$as_me:$LINENO: result: no" >&5
1847 echo "${ECHO_T}no" >&6
1850 CC=$ac_ct_CC
1851 else
1852 CC="$ac_cv_prog_CC"
1855 if test -z "$CC"; then
1856 if test -n "$ac_tool_prefix"; then
1857 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1858 set dummy ${ac_tool_prefix}cc; ac_word=$2
1859 echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861 if test "${ac_cv_prog_CC+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1863 else
1864 if test -n "$CC"; then
1865 ac_cv_prog_CC="$CC" # Let the user override the test.
1866 else
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 for as_dir in $PATH
1870 IFS=$as_save_IFS
1871 test -z "$as_dir" && as_dir=.
1872 for ac_exec_ext in '' $ac_executable_extensions; do
1873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874 ac_cv_prog_CC="${ac_tool_prefix}cc"
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 break 2
1878 done
1879 done
1883 CC=$ac_cv_prog_CC
1884 if test -n "$CC"; then
1885 echo "$as_me:$LINENO: result: $CC" >&5
1886 echo "${ECHO_T}$CC" >&6
1887 else
1888 echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6
1893 if test -z "$ac_cv_prog_CC"; then
1894 ac_ct_CC=$CC
1895 # Extract the first word of "cc", so it can be a program name with args.
1896 set dummy cc; ac_word=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902 if test -n "$ac_ct_CC"; then
1903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1904 else
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 for as_dir in $PATH
1908 IFS=$as_save_IFS
1909 test -z "$as_dir" && as_dir=.
1910 for ac_exec_ext in '' $ac_executable_extensions; do
1911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912 ac_cv_prog_ac_ct_CC="cc"
1913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914 break 2
1916 done
1917 done
1921 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1922 if test -n "$ac_ct_CC"; then
1923 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1924 echo "${ECHO_T}$ac_ct_CC" >&6
1925 else
1926 echo "$as_me:$LINENO: result: no" >&5
1927 echo "${ECHO_T}no" >&6
1930 CC=$ac_ct_CC
1931 else
1932 CC="$ac_cv_prog_CC"
1936 if test -z "$CC"; then
1937 # Extract the first word of "cc", so it can be a program name with args.
1938 set dummy cc; ac_word=$2
1939 echo "$as_me:$LINENO: checking for $ac_word" >&5
1940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1941 if test "${ac_cv_prog_CC+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
1943 else
1944 if test -n "$CC"; then
1945 ac_cv_prog_CC="$CC" # Let the user override the test.
1946 else
1947 ac_prog_rejected=no
1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949 for as_dir in $PATH
1951 IFS=$as_save_IFS
1952 test -z "$as_dir" && as_dir=.
1953 for ac_exec_ext in '' $ac_executable_extensions; do
1954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1956 ac_prog_rejected=yes
1957 continue
1959 ac_cv_prog_CC="cc"
1960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961 break 2
1963 done
1964 done
1966 if test $ac_prog_rejected = yes; then
1967 # We found a bogon in the path, so make sure we never use it.
1968 set dummy $ac_cv_prog_CC
1969 shift
1970 if test $# != 0; then
1971 # We chose a different compiler from the bogus one.
1972 # However, it has the same basename, so the bogon will be chosen
1973 # first if we set CC to just the basename; use the full file name.
1974 shift
1975 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1980 CC=$ac_cv_prog_CC
1981 if test -n "$CC"; then
1982 echo "$as_me:$LINENO: result: $CC" >&5
1983 echo "${ECHO_T}$CC" >&6
1984 else
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1990 if test -z "$CC"; then
1991 if test -n "$ac_tool_prefix"; then
1992 for ac_prog in cl
1994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1995 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1996 echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_CC+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001 if test -n "$CC"; then
2002 ac_cv_prog_CC="$CC" # Let the user override the test.
2003 else
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2007 IFS=$as_save_IFS
2008 test -z "$as_dir" && as_dir=.
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 break 2
2015 done
2016 done
2020 CC=$ac_cv_prog_CC
2021 if test -n "$CC"; then
2022 echo "$as_me:$LINENO: result: $CC" >&5
2023 echo "${ECHO_T}$CC" >&6
2024 else
2025 echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2029 test -n "$CC" && break
2030 done
2032 if test -z "$CC"; then
2033 ac_ct_CC=$CC
2034 for ac_prog in cl
2036 # Extract the first word of "$ac_prog", so it can be a program name with args.
2037 set dummy $ac_prog; ac_word=$2
2038 echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 else
2043 if test -n "$ac_ct_CC"; then
2044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2045 else
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 for as_dir in $PATH
2049 IFS=$as_save_IFS
2050 test -z "$as_dir" && as_dir=.
2051 for ac_exec_ext in '' $ac_executable_extensions; do
2052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2053 ac_cv_prog_ac_ct_CC="$ac_prog"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 break 2
2057 done
2058 done
2062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2063 if test -n "$ac_ct_CC"; then
2064 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2065 echo "${ECHO_T}$ac_ct_CC" >&6
2066 else
2067 echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6
2071 test -n "$ac_ct_CC" && break
2072 done
2074 CC=$ac_ct_CC
2080 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2081 See \`config.log' for more details." >&5
2082 echo "$as_me: error: no acceptable C compiler found in \$PATH
2083 See \`config.log' for more details." >&2;}
2084 { (exit 1); exit 1; }; }
2086 # Provide some information about the compiler.
2087 echo "$as_me:$LINENO:" \
2088 "checking for C compiler version" >&5
2089 ac_compiler=`set X $ac_compile; echo $2`
2090 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2091 (eval $ac_compiler --version </dev/null >&5) 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }
2095 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2096 (eval $ac_compiler -v </dev/null >&5) 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
2100 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2101 (eval $ac_compiler -V </dev/null >&5) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }
2106 cat >conftest.$ac_ext <<_ACEOF
2107 /* confdefs.h. */
2108 _ACEOF
2109 cat confdefs.h >>conftest.$ac_ext
2110 cat >>conftest.$ac_ext <<_ACEOF
2111 /* end confdefs.h. */
2114 main ()
2118 return 0;
2120 _ACEOF
2121 ac_clean_files_save=$ac_clean_files
2122 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2123 # Try to create an executable without -o first, disregard a.out.
2124 # It will help us diagnose broken compilers, and finding out an intuition
2125 # of exeext.
2126 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2127 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2128 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2129 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2130 (eval $ac_link_default) 2>&5
2131 ac_status=$?
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }; then
2134 # Find the output, starting from the most likely. This scheme is
2135 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2136 # resort.
2138 # Be careful to initialize this variable, since it used to be cached.
2139 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2140 ac_cv_exeext=
2141 # b.out is created by i960 compilers.
2142 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2144 test -f "$ac_file" || continue
2145 case $ac_file in
2146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2148 conftest.$ac_ext )
2149 # This is the source file.
2151 [ab].out )
2152 # We found the default executable, but exeext='' is most
2153 # certainly right.
2154 break;;
2155 *.* )
2156 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2157 # FIXME: I believe we export ac_cv_exeext for Libtool,
2158 # but it would be cool to find out if it's true. Does anybody
2159 # maintain Libtool? --akim.
2160 export ac_cv_exeext
2161 break;;
2163 break;;
2164 esac
2165 done
2166 else
2167 echo "$as_me: failed program was:" >&5
2168 sed 's/^/| /' conftest.$ac_ext >&5
2170 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2171 See \`config.log' for more details." >&5
2172 echo "$as_me: error: C compiler cannot create executables
2173 See \`config.log' for more details." >&2;}
2174 { (exit 77); exit 77; }; }
2177 ac_exeext=$ac_cv_exeext
2178 echo "$as_me:$LINENO: result: $ac_file" >&5
2179 echo "${ECHO_T}$ac_file" >&6
2181 # Check the compiler produces executables we can run. If not, either
2182 # the compiler is broken, or we cross compile.
2183 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2184 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2185 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2186 # If not cross compiling, check that we can run a simple program.
2187 if test "$cross_compiling" != yes; then
2188 if { ac_try='./$ac_file'
2189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190 (eval $ac_try) 2>&5
2191 ac_status=$?
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; }; then
2194 cross_compiling=no
2195 else
2196 if test "$cross_compiling" = maybe; then
2197 cross_compiling=yes
2198 else
2199 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2200 If you meant to cross compile, use \`--host'.
2201 See \`config.log' for more details." >&5
2202 echo "$as_me: error: cannot run C compiled programs.
2203 If you meant to cross compile, use \`--host'.
2204 See \`config.log' for more details." >&2;}
2205 { (exit 1); exit 1; }; }
2209 echo "$as_me:$LINENO: result: yes" >&5
2210 echo "${ECHO_T}yes" >&6
2212 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2213 ac_clean_files=$ac_clean_files_save
2214 # Check the compiler produces executables we can run. If not, either
2215 # the compiler is broken, or we cross compile.
2216 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2217 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2218 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2219 echo "${ECHO_T}$cross_compiling" >&6
2221 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2222 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2224 (eval $ac_link) 2>&5
2225 ac_status=$?
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; then
2228 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2229 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2230 # work properly (i.e., refer to `conftest.exe'), while it won't with
2231 # `rm'.
2232 for ac_file in conftest.exe conftest conftest.*; do
2233 test -f "$ac_file" || continue
2234 case $ac_file in
2235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2236 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2237 export ac_cv_exeext
2238 break;;
2239 * ) break;;
2240 esac
2241 done
2242 else
2243 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2246 See \`config.log' for more details." >&2;}
2247 { (exit 1); exit 1; }; }
2250 rm -f conftest$ac_cv_exeext
2251 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2252 echo "${ECHO_T}$ac_cv_exeext" >&6
2254 rm -f conftest.$ac_ext
2255 EXEEXT=$ac_cv_exeext
2256 ac_exeext=$EXEEXT
2257 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2258 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2259 if test "${ac_cv_objext+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 else
2262 cat >conftest.$ac_ext <<_ACEOF
2263 /* confdefs.h. */
2264 _ACEOF
2265 cat confdefs.h >>conftest.$ac_ext
2266 cat >>conftest.$ac_ext <<_ACEOF
2267 /* end confdefs.h. */
2270 main ()
2274 return 0;
2276 _ACEOF
2277 rm -f conftest.o conftest.obj
2278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2279 (eval $ac_compile) 2>&5
2280 ac_status=$?
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; then
2283 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2284 case $ac_file in
2285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2286 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2287 break;;
2288 esac
2289 done
2290 else
2291 echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.$ac_ext >&5
2294 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2295 See \`config.log' for more details." >&5
2296 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2297 See \`config.log' for more details." >&2;}
2298 { (exit 1); exit 1; }; }
2301 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2303 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2304 echo "${ECHO_T}$ac_cv_objext" >&6
2305 OBJEXT=$ac_cv_objext
2306 ac_objext=$OBJEXT
2307 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2308 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2309 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 else
2312 cat >conftest.$ac_ext <<_ACEOF
2313 /* confdefs.h. */
2314 _ACEOF
2315 cat confdefs.h >>conftest.$ac_ext
2316 cat >>conftest.$ac_ext <<_ACEOF
2317 /* end confdefs.h. */
2320 main ()
2322 #ifndef __GNUC__
2323 choke me
2324 #endif
2327 return 0;
2329 _ACEOF
2330 rm -f conftest.$ac_objext
2331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332 (eval $ac_compile) 2>conftest.er1
2333 ac_status=$?
2334 grep -v '^ *+' conftest.er1 >conftest.err
2335 rm -f conftest.er1
2336 cat conftest.err >&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); } &&
2339 { ac_try='test -z "$ac_c_werror_flag"
2340 || test ! -s conftest.err'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 (eval $ac_try) 2>&5
2343 ac_status=$?
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; } &&
2346 { ac_try='test -s conftest.$ac_objext'
2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348 (eval $ac_try) 2>&5
2349 ac_status=$?
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }; }; then
2352 ac_compiler_gnu=yes
2353 else
2354 echo "$as_me: failed program was:" >&5
2355 sed 's/^/| /' conftest.$ac_ext >&5
2357 ac_compiler_gnu=no
2359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2360 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2363 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2364 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2365 GCC=`test $ac_compiler_gnu = yes && echo yes`
2366 ac_test_CFLAGS=${CFLAGS+set}
2367 ac_save_CFLAGS=$CFLAGS
2368 CFLAGS="-g"
2369 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2370 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2371 if test "${ac_cv_prog_cc_g+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2373 else
2374 cat >conftest.$ac_ext <<_ACEOF
2375 /* confdefs.h. */
2376 _ACEOF
2377 cat confdefs.h >>conftest.$ac_ext
2378 cat >>conftest.$ac_ext <<_ACEOF
2379 /* end confdefs.h. */
2382 main ()
2386 return 0;
2388 _ACEOF
2389 rm -f conftest.$ac_objext
2390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391 (eval $ac_compile) 2>conftest.er1
2392 ac_status=$?
2393 grep -v '^ *+' conftest.er1 >conftest.err
2394 rm -f conftest.er1
2395 cat conftest.err >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } &&
2398 { ac_try='test -z "$ac_c_werror_flag"
2399 || test ! -s conftest.err'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 (eval $ac_try) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; } &&
2405 { ac_try='test -s conftest.$ac_objext'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 (eval $ac_try) 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2411 ac_cv_prog_cc_g=yes
2412 else
2413 echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.$ac_ext >&5
2416 ac_cv_prog_cc_g=no
2418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2420 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2421 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2422 if test "$ac_test_CFLAGS" = set; then
2423 CFLAGS=$ac_save_CFLAGS
2424 elif test $ac_cv_prog_cc_g = yes; then
2425 if test "$GCC" = yes; then
2426 CFLAGS="-g -O2"
2427 else
2428 CFLAGS="-g"
2430 else
2431 if test "$GCC" = yes; then
2432 CFLAGS="-O2"
2433 else
2434 CFLAGS=
2437 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2438 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2439 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442 ac_cv_prog_cc_stdc=no
2443 ac_save_CC=$CC
2444 cat >conftest.$ac_ext <<_ACEOF
2445 /* confdefs.h. */
2446 _ACEOF
2447 cat confdefs.h >>conftest.$ac_ext
2448 cat >>conftest.$ac_ext <<_ACEOF
2449 /* end confdefs.h. */
2450 #include <stdarg.h>
2451 #include <stdio.h>
2452 #include <sys/types.h>
2453 #include <sys/stat.h>
2454 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2455 struct buf { int x; };
2456 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2457 static char *e (p, i)
2458 char **p;
2459 int i;
2461 return p[i];
2463 static char *f (char * (*g) (char **, int), char **p, ...)
2465 char *s;
2466 va_list v;
2467 va_start (v,p);
2468 s = g (p, va_arg (v,int));
2469 va_end (v);
2470 return s;
2473 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2474 function prototypes and stuff, but not '\xHH' hex character constants.
2475 These don't provoke an error unfortunately, instead are silently treated
2476 as 'x'. The following induces an error, until -std1 is added to get
2477 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2478 array size at least. It's necessary to write '\x00'==0 to get something
2479 that's true only with -std1. */
2480 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2482 int test (int i, double x);
2483 struct s1 {int (*f) (int a);};
2484 struct s2 {int (*f) (double a);};
2485 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2486 int argc;
2487 char **argv;
2489 main ()
2491 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2493 return 0;
2495 _ACEOF
2496 # Don't try gcc -ansi; that turns off useful extensions and
2497 # breaks some systems' header files.
2498 # AIX -qlanglvl=ansi
2499 # Ultrix and OSF/1 -std1
2500 # HP-UX 10.20 and later -Ae
2501 # HP-UX older versions -Aa -D_HPUX_SOURCE
2502 # SVR4 -Xc -D__EXTENSIONS__
2503 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2505 CC="$ac_save_CC $ac_arg"
2506 rm -f conftest.$ac_objext
2507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2508 (eval $ac_compile) 2>conftest.er1
2509 ac_status=$?
2510 grep -v '^ *+' conftest.er1 >conftest.err
2511 rm -f conftest.er1
2512 cat conftest.err >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); } &&
2515 { ac_try='test -z "$ac_c_werror_flag"
2516 || test ! -s conftest.err'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 (eval $ac_try) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; } &&
2522 { ac_try='test -s conftest.$ac_objext'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524 (eval $ac_try) 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2528 ac_cv_prog_cc_stdc=$ac_arg
2529 break
2530 else
2531 echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2535 rm -f conftest.err conftest.$ac_objext
2536 done
2537 rm -f conftest.$ac_ext conftest.$ac_objext
2538 CC=$ac_save_CC
2542 case "x$ac_cv_prog_cc_stdc" in
2543 x|xno)
2544 echo "$as_me:$LINENO: result: none needed" >&5
2545 echo "${ECHO_T}none needed" >&6 ;;
2547 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2548 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2549 CC="$CC $ac_cv_prog_cc_stdc" ;;
2550 esac
2552 # Some people use a C++ compiler to compile C. Since we use `exit',
2553 # in C++ we need to declare it. In case someone uses the same compiler
2554 # for both compiling C and C++ we need to have the C++ compiler decide
2555 # the declaration of exit, since it's the most demanding environment.
2556 cat >conftest.$ac_ext <<_ACEOF
2557 #ifndef __cplusplus
2558 choke me
2559 #endif
2560 _ACEOF
2561 rm -f conftest.$ac_objext
2562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>conftest.er1
2564 ac_status=$?
2565 grep -v '^ *+' conftest.er1 >conftest.err
2566 rm -f conftest.er1
2567 cat conftest.err >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } &&
2570 { ac_try='test -z "$ac_c_werror_flag"
2571 || test ! -s conftest.err'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 (eval $ac_try) 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; } &&
2577 { ac_try='test -s conftest.$ac_objext'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 (eval $ac_try) 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2583 for ac_declaration in \
2584 '' \
2585 'extern "C" void std::exit (int) throw (); using std::exit;' \
2586 'extern "C" void std::exit (int); using std::exit;' \
2587 'extern "C" void exit (int) throw ();' \
2588 'extern "C" void exit (int);' \
2589 'void exit (int);'
2591 cat >conftest.$ac_ext <<_ACEOF
2592 /* confdefs.h. */
2593 _ACEOF
2594 cat confdefs.h >>conftest.$ac_ext
2595 cat >>conftest.$ac_ext <<_ACEOF
2596 /* end confdefs.h. */
2597 $ac_declaration
2598 #include <stdlib.h>
2600 main ()
2602 exit (42);
2604 return 0;
2606 _ACEOF
2607 rm -f conftest.$ac_objext
2608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609 (eval $ac_compile) 2>conftest.er1
2610 ac_status=$?
2611 grep -v '^ *+' conftest.er1 >conftest.err
2612 rm -f conftest.er1
2613 cat conftest.err >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try='test -z "$ac_c_werror_flag"
2617 || test ! -s conftest.err'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 (eval $ac_try) 2>&5
2620 ac_status=$?
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; } &&
2623 { ac_try='test -s conftest.$ac_objext'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 (eval $ac_try) 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2630 else
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2634 continue
2636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2637 cat >conftest.$ac_ext <<_ACEOF
2638 /* confdefs.h. */
2639 _ACEOF
2640 cat confdefs.h >>conftest.$ac_ext
2641 cat >>conftest.$ac_ext <<_ACEOF
2642 /* end confdefs.h. */
2643 $ac_declaration
2645 main ()
2647 exit (42);
2649 return 0;
2651 _ACEOF
2652 rm -f conftest.$ac_objext
2653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654 (eval $ac_compile) 2>conftest.er1
2655 ac_status=$?
2656 grep -v '^ *+' conftest.er1 >conftest.err
2657 rm -f conftest.er1
2658 cat conftest.err >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } &&
2661 { ac_try='test -z "$ac_c_werror_flag"
2662 || test ! -s conftest.err'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 (eval $ac_try) 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; } &&
2668 { ac_try='test -s conftest.$ac_objext'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 (eval $ac_try) 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; }; then
2674 break
2675 else
2676 echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2681 done
2682 rm -f conftest*
2683 if test -n "$ac_declaration"; then
2684 echo '#ifdef __cplusplus' >>confdefs.h
2685 echo $ac_declaration >>confdefs.h
2686 echo '#endif' >>confdefs.h
2689 else
2690 echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2695 ac_ext=c
2696 ac_cpp='$CPP $CPPFLAGS'
2697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2704 echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
2705 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6
2707 # Check whether --with-cxx_main or --without-cxx_main was given.
2708 if test "${with_cxx_main+set}" = set; then
2709 withval="$with_cxx_main"
2712 case $withval in
2713 no) with_cxx_main=no
2714 MAINCC='$(CC)';;
2715 yes) with_cxx_main=yes
2716 MAINCC='$(CXX)';;
2717 *) with_cxx_main=yes
2718 MAINCC=$withval
2719 if test -z "$CXX"
2720 then
2721 CXX=$withval
2722 fi;;
2723 esac
2724 else
2726 with_cxx_main=no
2727 MAINCC='$(CC)'
2730 echo "$as_me:$LINENO: result: $with_cxx_main" >&5
2731 echo "${ECHO_T}$with_cxx_main" >&6
2733 preset_cxx="$CXX"
2734 if test -z "$CXX"
2735 then
2736 case "$CC" in
2737 gcc) # Extract the first word of "g++", so it can be a program name with args.
2738 set dummy g++; ac_word=$2
2739 echo "$as_me:$LINENO: checking for $ac_word" >&5
2740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2741 if test "${ac_cv_path_CXX+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 else
2744 case $CXX in
2745 [\\/]* | ?:[\\/]*)
2746 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in notfound
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2756 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
2757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2760 done
2761 done
2763 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
2765 esac
2767 CXX=$ac_cv_path_CXX
2769 if test -n "$CXX"; then
2770 echo "$as_me:$LINENO: result: $CXX" >&5
2771 echo "${ECHO_T}$CXX" >&6
2772 else
2773 echo "$as_me:$LINENO: result: no" >&5
2774 echo "${ECHO_T}no" >&6
2777 cc) # Extract the first word of "c++", so it can be a program name with args.
2778 set dummy c++; ac_word=$2
2779 echo "$as_me:$LINENO: checking for $ac_word" >&5
2780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2781 if test "${ac_cv_path_CXX+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784 case $CXX in
2785 [\\/]* | ?:[\\/]*)
2786 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in notfound
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2796 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
2797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 break 2
2800 done
2801 done
2803 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
2805 esac
2807 CXX=$ac_cv_path_CXX
2809 if test -n "$CXX"; then
2810 echo "$as_me:$LINENO: result: $CXX" >&5
2811 echo "${ECHO_T}$CXX" >&6
2812 else
2813 echo "$as_me:$LINENO: result: no" >&5
2814 echo "${ECHO_T}no" >&6
2817 esac
2818 if test "$CXX" = "notfound"
2819 then
2820 CXX=""
2823 if test -z "$CXX"
2824 then
2825 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2827 # Extract the first word of "$ac_prog", so it can be a program name with args.
2828 set dummy $ac_prog; ac_word=$2
2829 echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2831 if test "${ac_cv_prog_CXX+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 else
2834 if test -n "$CXX"; then
2835 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2840 IFS=$as_save_IFS
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_CXX="$ac_prog"
2845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 break 2
2848 done
2849 done
2853 CXX=$ac_cv_prog_CXX
2854 if test -n "$CXX"; then
2855 echo "$as_me:$LINENO: result: $CXX" >&5
2856 echo "${ECHO_T}$CXX" >&6
2857 else
2858 echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6
2862 test -n "$CXX" && break
2863 done
2864 test -n "$CXX" || CXX="notfound"
2866 if test "$CXX" = "notfound"
2867 then
2868 CXX=""
2871 if test "$preset_cxx" != "$CXX"
2872 then
2873 { echo "$as_me:$LINENO: WARNING:
2875 By default, distutils will build C++ extension modules with \"$CXX\".
2876 If this is not intended, then set CXX on the configure command line.
2877 " >&5
2878 echo "$as_me: WARNING:
2880 By default, distutils will build C++ extension modules with \"$CXX\".
2881 If this is not intended, then set CXX on the configure command line.
2882 " >&2;}
2886 # checks for UNIX variants that set C preprocessor variables
2888 ac_ext=c
2889 ac_cpp='$CPP $CPPFLAGS'
2890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2893 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2894 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2895 # On Suns, sometimes $CPP names a directory.
2896 if test -n "$CPP" && test -d "$CPP"; then
2897 CPP=
2899 if test -z "$CPP"; then
2900 if test "${ac_cv_prog_CPP+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903 # Double quotes because CPP needs to be expanded
2904 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2906 ac_preproc_ok=false
2907 for ac_c_preproc_warn_flag in '' yes
2909 # Use a header file that comes with gcc, so configuring glibc
2910 # with a fresh cross-compiler works.
2911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2912 # <limits.h> exists even on freestanding compilers.
2913 # On the NeXT, cc -E runs the code through the compiler's parser,
2914 # not just through cpp. "Syntax error" is here to catch this case.
2915 cat >conftest.$ac_ext <<_ACEOF
2916 /* confdefs.h. */
2917 _ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2921 #ifdef __STDC__
2922 # include <limits.h>
2923 #else
2924 # include <assert.h>
2925 #endif
2926 Syntax error
2927 _ACEOF
2928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2930 ac_status=$?
2931 grep -v '^ *+' conftest.er1 >conftest.err
2932 rm -f conftest.er1
2933 cat conftest.err >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } >/dev/null; then
2936 if test -s conftest.err; then
2937 ac_cpp_err=$ac_c_preproc_warn_flag
2938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2939 else
2940 ac_cpp_err=
2942 else
2943 ac_cpp_err=yes
2945 if test -z "$ac_cpp_err"; then
2947 else
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 # Broken: fails on valid input.
2952 continue
2954 rm -f conftest.err conftest.$ac_ext
2956 # OK, works on sane cases. Now check whether non-existent headers
2957 # can be detected and how.
2958 cat >conftest.$ac_ext <<_ACEOF
2959 /* confdefs.h. */
2960 _ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h. */
2964 #include <ac_nonexistent.h>
2965 _ACEOF
2966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2968 ac_status=$?
2969 grep -v '^ *+' conftest.er1 >conftest.err
2970 rm -f conftest.er1
2971 cat conftest.err >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } >/dev/null; then
2974 if test -s conftest.err; then
2975 ac_cpp_err=$ac_c_preproc_warn_flag
2976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2977 else
2978 ac_cpp_err=
2980 else
2981 ac_cpp_err=yes
2983 if test -z "$ac_cpp_err"; then
2984 # Broken: success on invalid input.
2985 continue
2986 else
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2990 # Passes both tests.
2991 ac_preproc_ok=:
2992 break
2994 rm -f conftest.err conftest.$ac_ext
2996 done
2997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2998 rm -f conftest.err conftest.$ac_ext
2999 if $ac_preproc_ok; then
3000 break
3003 done
3004 ac_cv_prog_CPP=$CPP
3007 CPP=$ac_cv_prog_CPP
3008 else
3009 ac_cv_prog_CPP=$CPP
3011 echo "$as_me:$LINENO: result: $CPP" >&5
3012 echo "${ECHO_T}$CPP" >&6
3013 ac_preproc_ok=false
3014 for ac_c_preproc_warn_flag in '' yes
3016 # Use a header file that comes with gcc, so configuring glibc
3017 # with a fresh cross-compiler works.
3018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3019 # <limits.h> exists even on freestanding compilers.
3020 # On the NeXT, cc -E runs the code through the compiler's parser,
3021 # not just through cpp. "Syntax error" is here to catch this case.
3022 cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h. */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3028 #ifdef __STDC__
3029 # include <limits.h>
3030 #else
3031 # include <assert.h>
3032 #endif
3033 Syntax error
3034 _ACEOF
3035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3037 ac_status=$?
3038 grep -v '^ *+' conftest.er1 >conftest.err
3039 rm -f conftest.er1
3040 cat conftest.err >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); } >/dev/null; then
3043 if test -s conftest.err; then
3044 ac_cpp_err=$ac_c_preproc_warn_flag
3045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3046 else
3047 ac_cpp_err=
3049 else
3050 ac_cpp_err=yes
3052 if test -z "$ac_cpp_err"; then
3054 else
3055 echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3058 # Broken: fails on valid input.
3059 continue
3061 rm -f conftest.err conftest.$ac_ext
3063 # OK, works on sane cases. Now check whether non-existent headers
3064 # can be detected and how.
3065 cat >conftest.$ac_ext <<_ACEOF
3066 /* confdefs.h. */
3067 _ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3071 #include <ac_nonexistent.h>
3072 _ACEOF
3073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3075 ac_status=$?
3076 grep -v '^ *+' conftest.er1 >conftest.err
3077 rm -f conftest.er1
3078 cat conftest.err >&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } >/dev/null; then
3081 if test -s conftest.err; then
3082 ac_cpp_err=$ac_c_preproc_warn_flag
3083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3084 else
3085 ac_cpp_err=
3087 else
3088 ac_cpp_err=yes
3090 if test -z "$ac_cpp_err"; then
3091 # Broken: success on invalid input.
3092 continue
3093 else
3094 echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3097 # Passes both tests.
3098 ac_preproc_ok=:
3099 break
3101 rm -f conftest.err conftest.$ac_ext
3103 done
3104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3105 rm -f conftest.err conftest.$ac_ext
3106 if $ac_preproc_ok; then
3108 else
3109 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3110 See \`config.log' for more details." >&5
3111 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3112 See \`config.log' for more details." >&2;}
3113 { (exit 1); exit 1; }; }
3116 ac_ext=c
3117 ac_cpp='$CPP $CPPFLAGS'
3118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3123 echo "$as_me:$LINENO: checking for egrep" >&5
3124 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3125 if test "${ac_cv_prog_egrep+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 else
3128 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3129 then ac_cv_prog_egrep='grep -E'
3130 else ac_cv_prog_egrep='egrep'
3133 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3134 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3135 EGREP=$ac_cv_prog_egrep
3139 echo "$as_me:$LINENO: checking for AIX" >&5
3140 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3141 cat >conftest.$ac_ext <<_ACEOF
3142 /* confdefs.h. */
3143 _ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3147 #ifdef _AIX
3149 #endif
3151 _ACEOF
3152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3153 $EGREP "yes" >/dev/null 2>&1; then
3154 echo "$as_me:$LINENO: result: yes" >&5
3155 echo "${ECHO_T}yes" >&6
3156 cat >>confdefs.h <<\_ACEOF
3157 #define _ALL_SOURCE 1
3158 _ACEOF
3160 else
3161 echo "$as_me:$LINENO: result: no" >&5
3162 echo "${ECHO_T}no" >&6
3164 rm -f conftest*
3168 # Check for unsupported systems
3169 case $ac_sys_system/$ac_sys_release in
3170 Linux*/1*)
3171 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3172 echo See README for details.
3173 exit 1;;
3174 esac
3177 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3178 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3180 # Check whether --with-suffix or --without-suffix was given.
3181 if test "${with_suffix+set}" = set; then
3182 withval="$with_suffix"
3184 case $withval in
3185 no) EXEEXT=;;
3186 yes) EXEEXT=.exe;;
3187 *) EXEEXT=$withval;;
3188 esac
3190 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3191 echo "${ECHO_T}$EXEEXT" >&6
3193 # Test whether we're running on a non-case-sensitive system, in which
3194 # case we give a warning if no ext is given
3196 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3197 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3198 if test ! -d CaseSensitiveTestDir; then
3199 mkdir CaseSensitiveTestDir
3202 if test -d casesensitivetestdir
3203 then
3204 echo "$as_me:$LINENO: result: yes" >&5
3205 echo "${ECHO_T}yes" >&6
3206 BUILDEXEEXT=.exe
3207 else
3208 echo "$as_me:$LINENO: result: no" >&5
3209 echo "${ECHO_T}no" >&6
3210 BUILDEXEEXT=$EXEEXT
3212 rmdir CaseSensitiveTestDir
3214 case $MACHDEP in
3215 bsdos*)
3216 case $CC in
3217 gcc) CC="$CC -D_HAVE_BSDI";;
3218 esac;;
3219 esac
3221 case $ac_sys_system in
3222 hp*|HP*)
3223 case $CC in
3224 cc|*/cc) CC="$CC -Ae";;
3225 esac;;
3226 Monterey*)
3227 case $CC in
3228 cc) CC="$CC -Wl,-Bexport";;
3229 esac;;
3230 SunOS*)
3231 # Some functions have a prototype only with that define, e.g. confstr
3233 cat >>confdefs.h <<\_ACEOF
3234 #define __EXTENSIONS__ 1
3235 _ACEOF
3238 esac
3242 echo "$as_me:$LINENO: checking LIBRARY" >&5
3243 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3244 if test -z "$LIBRARY"
3245 then
3246 LIBRARY='libpython$(VERSION).a'
3248 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3249 echo "${ECHO_T}$LIBRARY" >&6
3251 # LDLIBRARY is the name of the library to link against (as opposed to the
3252 # name of the library into which to insert object files). BLDLIBRARY is also
3253 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3254 # is blank as the main program is not linked directly against LDLIBRARY.
3255 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3256 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3257 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3258 # DLLLIBRARY is the shared (i.e., DLL) library.
3260 # RUNSHARED is used to run shared python without installed libraries
3262 # INSTSONAME is the name of the shared library that will be use to install
3263 # on the system - some systems like version suffix, others don't
3270 LDLIBRARY="$LIBRARY"
3271 BLDLIBRARY='$(LDLIBRARY)'
3272 INSTSONAME='$(LDLIBRARY)'
3273 DLLLIBRARY=''
3274 LDLIBRARYDIR=''
3275 RUNSHARED=''
3277 # LINKCC is the command that links the python executable -- default is $(CC).
3278 # If CXX is set, and if it is needed to link a main function that was
3279 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3280 # python might then depend on the C++ runtime
3281 # This is altered for AIX in order to build the export list before
3282 # linking.
3284 echo "$as_me:$LINENO: checking LINKCC" >&5
3285 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3286 if test -z "$LINKCC"
3287 then
3288 LINKCC='$(PURIFY) $(MAINCC)'
3289 case $ac_sys_system in
3290 AIX*)
3291 exp_extra="\"\""
3292 if test $ac_sys_release -ge 5 -o \
3293 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3294 exp_extra="."
3296 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3297 Monterey64*)
3298 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3299 esac
3301 echo "$as_me:$LINENO: result: $LINKCC" >&5
3302 echo "${ECHO_T}$LINKCC" >&6
3304 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3305 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3306 # Check whether --enable-shared or --disable-shared was given.
3307 if test "${enable_shared+set}" = set; then
3308 enableval="$enable_shared"
3312 if test -z "$enable_shared"
3313 then
3314 case $ac_sys_system in
3315 CYGWIN* | atheos*)
3316 enable_shared="yes";;
3318 enable_shared="no";;
3319 esac
3321 echo "$as_me:$LINENO: result: $enable_shared" >&5
3322 echo "${ECHO_T}$enable_shared" >&6
3324 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3325 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3326 # Check whether --enable-profiling or --disable-profiling was given.
3327 if test "${enable_profiling+set}" = set; then
3328 enableval="$enable_profiling"
3329 ac_save_cc="$CC"
3330 CC="$CC -pg"
3331 if test "$cross_compiling" = yes; then
3332 ac_enable_profiling="no"
3333 else
3334 cat >conftest.$ac_ext <<_ACEOF
3335 /* confdefs.h. */
3336 _ACEOF
3337 cat confdefs.h >>conftest.$ac_ext
3338 cat >>conftest.$ac_ext <<_ACEOF
3339 /* end confdefs.h. */
3340 int main() { return 0; }
3341 _ACEOF
3342 rm -f conftest$ac_exeext
3343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3344 (eval $ac_link) 2>&5
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349 (eval $ac_try) 2>&5
3350 ac_status=$?
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 ac_enable_profiling="yes"
3354 else
3355 echo "$as_me: program exited with status $ac_status" >&5
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3359 ( exit $ac_status )
3360 ac_enable_profiling="no"
3362 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3364 CC="$ac_save_cc"
3366 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3367 echo "${ECHO_T}$ac_enable_profiling" >&6
3369 case "$ac_enable_profiling" in
3370 "yes")
3371 BASECFLAGS="-pg $BASECFLAGS"
3372 LDFLAGS="-pg $LDFLAGS"
3374 esac
3376 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3377 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3379 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3380 # library that we build, but we do not want to link against it (we
3381 # will find it with a -framework option). For this reason there is an
3382 # extra variable BLDLIBRARY against which Python and the extension
3383 # modules are linked, BLDLIBRARY. This is normally the same as
3384 # LDLIBRARY, but empty for MacOSX framework builds.
3385 if test "$enable_framework"
3386 then
3387 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3388 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
3389 BLDLIBRARY=''
3390 else
3391 BLDLIBRARY='$(LDLIBRARY)'
3394 # Other platforms follow
3395 if test $enable_shared = "yes"; then
3397 cat >>confdefs.h <<\_ACEOF
3398 #define Py_ENABLE_SHARED 1
3399 _ACEOF
3401 case $ac_sys_system in
3402 BeOS*)
3403 LDLIBRARY='libpython$(VERSION).so'
3405 CYGWIN*)
3406 LDLIBRARY='libpython$(VERSION).dll.a'
3407 DLLLIBRARY='libpython$(VERSION).dll'
3409 SunOS*)
3410 LDLIBRARY='libpython$(VERSION).so'
3411 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3412 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3413 INSTSONAME="$LDLIBRARY".$SOVERSION
3415 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
3416 LDLIBRARY='libpython$(VERSION).so'
3417 BLDLIBRARY='-L. -lpython$(VERSION)'
3418 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3419 case $ac_sys_system in
3420 FreeBSD*)
3421 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
3423 esac
3424 INSTSONAME="$LDLIBRARY".$SOVERSION
3426 hp*|HP*)
3427 case `uname -m` in
3428 ia64)
3429 LDLIBRARY='libpython$(VERSION).so'
3432 LDLIBRARY='libpython$(VERSION).sl'
3434 esac
3435 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3436 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
3438 OSF*)
3439 LDLIBRARY='libpython$(VERSION).so'
3440 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3441 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3443 atheos*)
3444 LDLIBRARY='libpython$(VERSION).so'
3445 BLDLIBRARY='-L. -lpython$(VERSION)'
3446 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3448 esac
3449 else # shared is disabled
3450 case $ac_sys_system in
3451 CYGWIN*)
3452 BLDLIBRARY='$(LIBRARY)'
3453 LDLIBRARY='libpython$(VERSION).dll.a'
3455 esac
3458 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3459 echo "${ECHO_T}$LDLIBRARY" >&6
3461 if test -n "$ac_tool_prefix"; then
3462 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3463 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3464 echo "$as_me:$LINENO: checking for $ac_word" >&5
3465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3466 if test "${ac_cv_prog_RANLIB+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 else
3469 if test -n "$RANLIB"; then
3470 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3471 else
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3475 IFS=$as_save_IFS
3476 test -z "$as_dir" && as_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3479 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3481 break 2
3483 done
3484 done
3488 RANLIB=$ac_cv_prog_RANLIB
3489 if test -n "$RANLIB"; then
3490 echo "$as_me:$LINENO: result: $RANLIB" >&5
3491 echo "${ECHO_T}$RANLIB" >&6
3492 else
3493 echo "$as_me:$LINENO: result: no" >&5
3494 echo "${ECHO_T}no" >&6
3498 if test -z "$ac_cv_prog_RANLIB"; then
3499 ac_ct_RANLIB=$RANLIB
3500 # Extract the first word of "ranlib", so it can be a program name with args.
3501 set dummy ranlib; ac_word=$2
3502 echo "$as_me:$LINENO: checking for $ac_word" >&5
3503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3504 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 else
3507 if test -n "$ac_ct_RANLIB"; then
3508 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3509 else
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3513 IFS=$as_save_IFS
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517 ac_cv_prog_ac_ct_RANLIB="ranlib"
3518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 break 2
3521 done
3522 done
3524 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3527 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3528 if test -n "$ac_ct_RANLIB"; then
3529 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3530 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3531 else
3532 echo "$as_me:$LINENO: result: no" >&5
3533 echo "${ECHO_T}no" >&6
3536 RANLIB=$ac_ct_RANLIB
3537 else
3538 RANLIB="$ac_cv_prog_RANLIB"
3542 for ac_prog in ar aal
3544 # Extract the first word of "$ac_prog", so it can be a program name with args.
3545 set dummy $ac_prog; ac_word=$2
3546 echo "$as_me:$LINENO: checking for $ac_word" >&5
3547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3548 if test "${ac_cv_prog_AR+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551 if test -n "$AR"; then
3552 ac_cv_prog_AR="$AR" # Let the user override the test.
3553 else
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3557 IFS=$as_save_IFS
3558 test -z "$as_dir" && as_dir=.
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3561 ac_cv_prog_AR="$ac_prog"
3562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3563 break 2
3565 done
3566 done
3570 AR=$ac_cv_prog_AR
3571 if test -n "$AR"; then
3572 echo "$as_me:$LINENO: result: $AR" >&5
3573 echo "${ECHO_T}$AR" >&6
3574 else
3575 echo "$as_me:$LINENO: result: no" >&5
3576 echo "${ECHO_T}no" >&6
3579 test -n "$AR" && break
3580 done
3581 test -n "$AR" || AR="ar"
3585 # Extract the first word of "svnversion", so it can be a program name with args.
3586 set dummy svnversion; ac_word=$2
3587 echo "$as_me:$LINENO: checking for $ac_word" >&5
3588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3589 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 else
3592 if test -n "$SVNVERSION"; then
3593 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
3594 else
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 for as_dir in $PATH
3598 IFS=$as_save_IFS
3599 test -z "$as_dir" && as_dir=.
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3602 ac_cv_prog_SVNVERSION="found"
3603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 break 2
3606 done
3607 done
3609 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
3612 SVNVERSION=$ac_cv_prog_SVNVERSION
3613 if test -n "$SVNVERSION"; then
3614 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3615 echo "${ECHO_T}$SVNVERSION" >&6
3616 else
3617 echo "$as_me:$LINENO: result: no" >&5
3618 echo "${ECHO_T}no" >&6
3621 if test $SVNVERSION = found
3622 then
3623 SVNVERSION="svnversion \$(srcdir)"
3624 else
3625 SVNVERSION="echo exported"
3628 case $MACHDEP in
3629 bsdos*|hp*|HP*)
3630 # install -d does not work on BSDI or HP-UX
3631 if test -z "$INSTALL"
3632 then
3633 INSTALL="${srcdir}/install-sh -c"
3635 esac
3636 ac_aux_dir=
3637 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3638 if test -f $ac_dir/install-sh; then
3639 ac_aux_dir=$ac_dir
3640 ac_install_sh="$ac_aux_dir/install-sh -c"
3641 break
3642 elif test -f $ac_dir/install.sh; then
3643 ac_aux_dir=$ac_dir
3644 ac_install_sh="$ac_aux_dir/install.sh -c"
3645 break
3646 elif test -f $ac_dir/shtool; then
3647 ac_aux_dir=$ac_dir
3648 ac_install_sh="$ac_aux_dir/shtool install -c"
3649 break
3651 done
3652 if test -z "$ac_aux_dir"; then
3653 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3654 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3655 { (exit 1); exit 1; }; }
3657 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3658 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3659 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3661 # Find a good install program. We prefer a C program (faster),
3662 # so one script is as good as another. But avoid the broken or
3663 # incompatible versions:
3664 # SysV /etc/install, /usr/sbin/install
3665 # SunOS /usr/etc/install
3666 # IRIX /sbin/install
3667 # AIX /bin/install
3668 # AmigaOS /C/install, which installs bootblocks on floppy discs
3669 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3670 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3671 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3672 # OS/2's system install, which has a completely different semantic
3673 # ./install, which can be erroneously created by make from ./install.sh.
3674 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3675 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3676 if test -z "$INSTALL"; then
3677 if test "${ac_cv_path_install+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 else
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH
3683 IFS=$as_save_IFS
3684 test -z "$as_dir" && as_dir=.
3685 # Account for people who put trailing slashes in PATH elements.
3686 case $as_dir/ in
3687 ./ | .// | /cC/* | \
3688 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3689 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3690 /usr/ucb/* ) ;;
3692 # OSF1 and SCO ODT 3.0 have their own names for install.
3693 # Don't use installbsd from OSF since it installs stuff as root
3694 # by default.
3695 for ac_prog in ginstall scoinst install; do
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3698 if test $ac_prog = install &&
3699 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3700 # AIX install. It has an incompatible calling convention.
3702 elif test $ac_prog = install &&
3703 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3704 # program-specific install script used by HP pwplus--don't use.
3706 else
3707 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3708 break 3
3711 done
3712 done
3714 esac
3715 done
3719 if test "${ac_cv_path_install+set}" = set; then
3720 INSTALL=$ac_cv_path_install
3721 else
3722 # As a last resort, use the slow shell script. We don't cache a
3723 # path for INSTALL within a source directory, because that will
3724 # break other packages using the cache if that directory is
3725 # removed, or if the path is relative.
3726 INSTALL=$ac_install_sh
3729 echo "$as_me:$LINENO: result: $INSTALL" >&5
3730 echo "${ECHO_T}$INSTALL" >&6
3732 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3733 # It thinks the first close brace ends the variable substitution.
3734 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3736 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3738 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3741 # Not every filesystem supports hard links
3743 if test -z "$LN" ; then
3744 case $ac_sys_system in
3745 BeOS*) LN="ln -s";;
3746 CYGWIN*) LN="ln -s";;
3747 atheos*) LN="ln -s";;
3748 *) LN=ln;;
3749 esac
3752 # Check for --with-pydebug
3753 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3754 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3756 # Check whether --with-pydebug or --without-pydebug was given.
3757 if test "${with_pydebug+set}" = set; then
3758 withval="$with_pydebug"
3760 if test "$withval" != no
3761 then
3763 cat >>confdefs.h <<\_ACEOF
3764 #define Py_DEBUG 1
3765 _ACEOF
3767 echo "$as_me:$LINENO: result: yes" >&5
3768 echo "${ECHO_T}yes" >&6;
3769 Py_DEBUG='true'
3770 else echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6; Py_DEBUG='false'
3773 else
3774 echo "$as_me:$LINENO: result: no" >&5
3775 echo "${ECHO_T}no" >&6
3778 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3779 # merged with this chunk of code?
3781 # Optimizer/debugger flags
3782 # ------------------------
3783 # (The following bit of code is complicated enough - please keep things
3784 # indented properly. Just pretend you're editing Python code. ;-)
3786 # There are two parallel sets of case statements below, one that checks to
3787 # see if OPT was set and one that does BASECFLAGS setting based upon
3788 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3789 # user set OPT.
3791 # tweak OPT based on compiler and platform, only if the user didn't set
3792 # it on the command line
3794 if test -z "$OPT"
3795 then
3796 case $GCC in
3797 yes)
3798 if test "$CC" != 'g++' ; then
3799 STRICT_PROTO="-Wstrict-prototypes"
3801 case $ac_cv_prog_cc_g in
3802 yes)
3803 if test "$Py_DEBUG" = 'true' ; then
3804 # Optimization messes up debuggers, so turn it off for
3805 # debug builds.
3806 OPT="-g -Wall $STRICT_PROTO"
3807 else
3808 OPT="-g -O3 -Wall $STRICT_PROTO"
3812 OPT="-O3 -Wall $STRICT_PROTO"
3814 esac
3815 case $ac_sys_system in
3816 SCO_SV*) OPT="$OPT -m486 -DSCO5"
3818 esac
3822 OPT="-O"
3824 esac
3826 # The current (beta) Monterey compiler dies with optimizations
3827 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3828 case $ac_sys_system in
3829 Monterey*)
3830 OPT=""
3832 esac
3837 # tweak BASECFLAGS based on compiler and platform
3838 case $GCC in
3839 yes)
3840 # Python violates C99 rules, by casting between incompatible
3841 # pointer types. GCC may generate bad code as a result of that,
3842 # so use -fno-strict-aliasing if supported.
3843 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3844 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3845 ac_save_cc="$CC"
3846 CC="$CC -fno-strict-aliasing"
3847 if test "$cross_compiling" = yes; then
3848 ac_cv_no_strict_aliasing_ok=no
3849 else
3850 cat >conftest.$ac_ext <<_ACEOF
3851 /* confdefs.h. */
3852 _ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3856 int main() { return 0; }
3857 _ACEOF
3858 rm -f conftest$ac_exeext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3860 (eval $ac_link) 2>&5
3861 ac_status=$?
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 (eval $ac_try) 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; }; then
3869 ac_cv_no_strict_aliasing_ok=yes
3870 else
3871 echo "$as_me: program exited with status $ac_status" >&5
3872 echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3875 ( exit $ac_status )
3876 ac_cv_no_strict_aliasing_ok=no
3878 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3880 CC="$ac_save_cc"
3881 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3882 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3883 if test $ac_cv_no_strict_aliasing_ok = yes
3884 then
3885 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
3887 case $ac_sys_system in
3888 SCO_SV*)
3889 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
3891 # is there any other compiler on Darwin besides gcc?
3892 Darwin*)
3893 BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3894 if test "${enable_universalsdk}"; then
3895 BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
3899 OSF*)
3900 BASECFLAGS="$BASECFLAGS -mieee"
3902 esac
3906 case $ac_sys_system in
3907 OpenUNIX*|UnixWare*)
3908 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3910 OSF*)
3911 BASECFLAGS="$BASECFLAGS -ieee -std"
3913 SCO_SV*)
3914 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
3916 esac
3918 esac
3920 if test "$Py_DEBUG" = 'true'; then
3922 else
3923 OPT="-DNDEBUG $OPT"
3926 if test "$ac_arch_flags"
3927 then
3928 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
3931 # disable check for icc since it seems to pass, but generates a warning
3932 if test "$CC" = icc
3933 then
3934 ac_cv_opt_olimit_ok=no
3937 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3938 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3939 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3941 else
3942 ac_save_cc="$CC"
3943 CC="$CC -OPT:Olimit=0"
3944 if test "$cross_compiling" = yes; then
3945 ac_cv_opt_olimit_ok=no
3946 else
3947 cat >conftest.$ac_ext <<_ACEOF
3948 /* confdefs.h. */
3949 _ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3953 int main() { return 0; }
3954 _ACEOF
3955 rm -f conftest$ac_exeext
3956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3957 (eval $ac_link) 2>&5
3958 ac_status=$?
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962 (eval $ac_try) 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; }; then
3966 ac_cv_opt_olimit_ok=yes
3967 else
3968 echo "$as_me: program exited with status $ac_status" >&5
3969 echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3972 ( exit $ac_status )
3973 ac_cv_opt_olimit_ok=no
3975 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3977 CC="$ac_save_cc"
3980 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3981 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3982 if test $ac_cv_opt_olimit_ok = yes; then
3983 case $ac_sys_system in
3984 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3985 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3986 # environment?
3987 Darwin*)
3990 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
3992 esac
3993 else
3994 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3995 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3996 if test "${ac_cv_olimit_ok+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 else
3999 ac_save_cc="$CC"
4000 CC="$CC -Olimit 1500"
4001 if test "$cross_compiling" = yes; then
4002 ac_cv_olimit_ok=no
4003 else
4004 cat >conftest.$ac_ext <<_ACEOF
4005 /* confdefs.h. */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010 int main() { return 0; }
4011 _ACEOF
4012 rm -f conftest$ac_exeext
4013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4014 (eval $ac_link) 2>&5
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019 (eval $ac_try) 2>&5
4020 ac_status=$?
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; }; then
4023 ac_cv_olimit_ok=yes
4024 else
4025 echo "$as_me: program exited with status $ac_status" >&5
4026 echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4029 ( exit $ac_status )
4030 ac_cv_olimit_ok=no
4032 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4034 CC="$ac_save_cc"
4037 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4038 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4039 if test $ac_cv_olimit_ok = yes; then
4040 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4044 # On some compilers, pthreads are available without further options
4045 # (e.g. MacOS X). On some of these systems, the compiler will not
4046 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4047 # So we have to see first whether pthreads are available without
4048 # options before we can check whether -Kpthread improves anything.
4049 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4050 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4051 if test "${ac_cv_pthread_is_default+set}" = set; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4053 else
4054 if test "$cross_compiling" = yes; then
4055 ac_cv_pthread_is_default=no
4056 else
4057 cat >conftest.$ac_ext <<_ACEOF
4058 /* confdefs.h. */
4059 _ACEOF
4060 cat confdefs.h >>conftest.$ac_ext
4061 cat >>conftest.$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4064 #include <pthread.h>
4066 void* routine(void* p){return NULL;}
4068 int main(){
4069 pthread_t p;
4070 if(pthread_create(&p,NULL,routine,NULL)!=0)
4071 return 1;
4072 (void)pthread_detach(p);
4073 return 0;
4076 _ACEOF
4077 rm -f conftest$ac_exeext
4078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4079 (eval $ac_link) 2>&5
4080 ac_status=$?
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084 (eval $ac_try) 2>&5
4085 ac_status=$?
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; }; then
4089 ac_cv_pthread_is_default=yes
4090 ac_cv_kthread=no
4091 ac_cv_pthread=no
4093 else
4094 echo "$as_me: program exited with status $ac_status" >&5
4095 echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4098 ( exit $ac_status )
4099 ac_cv_pthread_is_default=no
4101 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4106 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4107 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4110 if test $ac_cv_pthread_is_default = yes
4111 then
4112 ac_cv_kpthread=no
4113 else
4114 # -Kpthread, if available, provides the right #defines
4115 # and linker options to make pthread_create available
4116 # Some compilers won't report that they do not support -Kpthread,
4117 # so we need to run a program to see whether it really made the
4118 # function available.
4119 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4120 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4121 if test "${ac_cv_kpthread+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124 ac_save_cc="$CC"
4125 CC="$CC -Kpthread"
4126 if test "$cross_compiling" = yes; then
4127 ac_cv_kpthread=no
4128 else
4129 cat >conftest.$ac_ext <<_ACEOF
4130 /* confdefs.h. */
4131 _ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4136 #include <pthread.h>
4138 void* routine(void* p){return NULL;}
4140 int main(){
4141 pthread_t p;
4142 if(pthread_create(&p,NULL,routine,NULL)!=0)
4143 return 1;
4144 (void)pthread_detach(p);
4145 return 0;
4148 _ACEOF
4149 rm -f conftest$ac_exeext
4150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4151 (eval $ac_link) 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156 (eval $ac_try) 2>&5
4157 ac_status=$?
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; }; then
4160 ac_cv_kpthread=yes
4161 else
4162 echo "$as_me: program exited with status $ac_status" >&5
4163 echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.$ac_ext >&5
4166 ( exit $ac_status )
4167 ac_cv_kpthread=no
4169 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4171 CC="$ac_save_cc"
4174 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4175 echo "${ECHO_T}$ac_cv_kpthread" >&6
4178 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4179 then
4180 # -Kthread, if available, provides the right #defines
4181 # and linker options to make pthread_create available
4182 # Some compilers won't report that they do not support -Kthread,
4183 # so we need to run a program to see whether it really made the
4184 # function available.
4185 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4186 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4187 if test "${ac_cv_kthread+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 else
4190 ac_save_cc="$CC"
4191 CC="$CC -Kthread"
4192 if test "$cross_compiling" = yes; then
4193 ac_cv_kthread=no
4194 else
4195 cat >conftest.$ac_ext <<_ACEOF
4196 /* confdefs.h. */
4197 _ACEOF
4198 cat confdefs.h >>conftest.$ac_ext
4199 cat >>conftest.$ac_ext <<_ACEOF
4200 /* end confdefs.h. */
4202 #include <pthread.h>
4204 void* routine(void* p){return NULL;}
4206 int main(){
4207 pthread_t p;
4208 if(pthread_create(&p,NULL,routine,NULL)!=0)
4209 return 1;
4210 (void)pthread_detach(p);
4211 return 0;
4214 _ACEOF
4215 rm -f conftest$ac_exeext
4216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4217 (eval $ac_link) 2>&5
4218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222 (eval $ac_try) 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; }; then
4226 ac_cv_kthread=yes
4227 else
4228 echo "$as_me: program exited with status $ac_status" >&5
4229 echo "$as_me: failed program was:" >&5
4230 sed 's/^/| /' conftest.$ac_ext >&5
4232 ( exit $ac_status )
4233 ac_cv_kthread=no
4235 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4237 CC="$ac_save_cc"
4240 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4241 echo "${ECHO_T}$ac_cv_kthread" >&6
4244 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
4245 then
4246 # -pthread, if available, provides the right #defines
4247 # and linker options to make pthread_create available
4248 # Some compilers won't report that they do not support -pthread,
4249 # so we need to run a program to see whether it really made the
4250 # function available.
4251 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4252 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4253 if test "${ac_cv_thread+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4255 else
4256 ac_save_cc="$CC"
4257 CC="$CC -pthread"
4258 if test "$cross_compiling" = yes; then
4259 ac_cv_pthread=no
4260 else
4261 cat >conftest.$ac_ext <<_ACEOF
4262 /* confdefs.h. */
4263 _ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4268 #include <pthread.h>
4270 void* routine(void* p){return NULL;}
4272 int main(){
4273 pthread_t p;
4274 if(pthread_create(&p,NULL,routine,NULL)!=0)
4275 return 1;
4276 (void)pthread_detach(p);
4277 return 0;
4280 _ACEOF
4281 rm -f conftest$ac_exeext
4282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4283 (eval $ac_link) 2>&5
4284 ac_status=$?
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288 (eval $ac_try) 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
4292 ac_cv_pthread=yes
4293 else
4294 echo "$as_me: program exited with status $ac_status" >&5
4295 echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4298 ( exit $ac_status )
4299 ac_cv_pthread=no
4301 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4303 CC="$ac_save_cc"
4306 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4307 echo "${ECHO_T}$ac_cv_pthread" >&6
4310 # If we have set a CC compiler flag for thread support then
4311 # check if it works for CXX, too.
4312 ac_cv_cxx_thread=no
4313 if test ! -z "$CXX"
4314 then
4315 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4316 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4317 ac_save_cxx="$CXX"
4319 if test "$ac_cv_kpthread" = "yes"
4320 then
4321 CXX="$CXX -Kpthread"
4322 ac_cv_cxx_thread=yes
4323 elif test "$ac_cv_kthread" = "yes"
4324 then
4325 CXX="$CXX -Kthread"
4326 ac_cv_cxx_thread=yes
4327 elif test "$ac_cv_pthread" = "yes"
4328 then
4329 CXX="$CXX -pthread"
4330 ac_cv_cxx_thread=yes
4333 if test $ac_cv_cxx_thread = yes
4334 then
4335 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
4336 $CXX -c conftest.$ac_ext 2>&5
4337 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
4338 && test -s conftest$ac_exeext && ./conftest$ac_exeext
4339 then
4340 ac_cv_cxx_thread=yes
4341 else
4342 ac_cv_cxx_thread=no
4344 rm -fr conftest*
4346 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4347 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4349 CXX="$ac_save_cxx"
4352 # checks for header files
4353 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4354 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4355 if test "${ac_cv_header_stdc+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 else
4358 cat >conftest.$ac_ext <<_ACEOF
4359 /* confdefs.h. */
4360 _ACEOF
4361 cat confdefs.h >>conftest.$ac_ext
4362 cat >>conftest.$ac_ext <<_ACEOF
4363 /* end confdefs.h. */
4364 #include <stdlib.h>
4365 #include <stdarg.h>
4366 #include <string.h>
4367 #include <float.h>
4370 main ()
4374 return 0;
4376 _ACEOF
4377 rm -f conftest.$ac_objext
4378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4379 (eval $ac_compile) 2>conftest.er1
4380 ac_status=$?
4381 grep -v '^ *+' conftest.er1 >conftest.err
4382 rm -f conftest.er1
4383 cat conftest.err >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } &&
4386 { ac_try='test -z "$ac_c_werror_flag"
4387 || test ! -s conftest.err'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389 (eval $ac_try) 2>&5
4390 ac_status=$?
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; } &&
4393 { ac_try='test -s conftest.$ac_objext'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 (eval $ac_try) 2>&5
4396 ac_status=$?
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
4399 ac_cv_header_stdc=yes
4400 else
4401 echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4404 ac_cv_header_stdc=no
4406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4408 if test $ac_cv_header_stdc = yes; then
4409 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4410 cat >conftest.$ac_ext <<_ACEOF
4411 /* confdefs.h. */
4412 _ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4416 #include <string.h>
4418 _ACEOF
4419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4420 $EGREP "memchr" >/dev/null 2>&1; then
4422 else
4423 ac_cv_header_stdc=no
4425 rm -f conftest*
4429 if test $ac_cv_header_stdc = yes; then
4430 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4431 cat >conftest.$ac_ext <<_ACEOF
4432 /* confdefs.h. */
4433 _ACEOF
4434 cat confdefs.h >>conftest.$ac_ext
4435 cat >>conftest.$ac_ext <<_ACEOF
4436 /* end confdefs.h. */
4437 #include <stdlib.h>
4439 _ACEOF
4440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4441 $EGREP "free" >/dev/null 2>&1; then
4443 else
4444 ac_cv_header_stdc=no
4446 rm -f conftest*
4450 if test $ac_cv_header_stdc = yes; then
4451 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4452 if test "$cross_compiling" = yes; then
4454 else
4455 cat >conftest.$ac_ext <<_ACEOF
4456 /* confdefs.h. */
4457 _ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4461 #include <ctype.h>
4462 #if ((' ' & 0x0FF) == 0x020)
4463 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4464 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4465 #else
4466 # define ISLOWER(c) \
4467 (('a' <= (c) && (c) <= 'i') \
4468 || ('j' <= (c) && (c) <= 'r') \
4469 || ('s' <= (c) && (c) <= 'z'))
4470 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4471 #endif
4473 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4475 main ()
4477 int i;
4478 for (i = 0; i < 256; i++)
4479 if (XOR (islower (i), ISLOWER (i))
4480 || toupper (i) != TOUPPER (i))
4481 exit(2);
4482 exit (0);
4484 _ACEOF
4485 rm -f conftest$ac_exeext
4486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4487 (eval $ac_link) 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492 (eval $ac_try) 2>&5
4493 ac_status=$?
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; }; then
4497 else
4498 echo "$as_me: program exited with status $ac_status" >&5
4499 echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4502 ( exit $ac_status )
4503 ac_cv_header_stdc=no
4505 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4509 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4510 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4511 if test $ac_cv_header_stdc = yes; then
4513 cat >>confdefs.h <<\_ACEOF
4514 #define STDC_HEADERS 1
4515 _ACEOF
4519 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4529 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4530 inttypes.h stdint.h unistd.h
4532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4533 echo "$as_me:$LINENO: checking for $ac_header" >&5
4534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4537 else
4538 cat >conftest.$ac_ext <<_ACEOF
4539 /* confdefs.h. */
4540 _ACEOF
4541 cat confdefs.h >>conftest.$ac_ext
4542 cat >>conftest.$ac_ext <<_ACEOF
4543 /* end confdefs.h. */
4544 $ac_includes_default
4546 #include <$ac_header>
4547 _ACEOF
4548 rm -f conftest.$ac_objext
4549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4550 (eval $ac_compile) 2>conftest.er1
4551 ac_status=$?
4552 grep -v '^ *+' conftest.er1 >conftest.err
4553 rm -f conftest.er1
4554 cat conftest.err >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } &&
4557 { ac_try='test -z "$ac_c_werror_flag"
4558 || test ! -s conftest.err'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560 (eval $ac_try) 2>&5
4561 ac_status=$?
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; } &&
4564 { ac_try='test -s conftest.$ac_objext'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 (eval $ac_try) 2>&5
4567 ac_status=$?
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; }; then
4570 eval "$as_ac_Header=yes"
4571 else
4572 echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.$ac_ext >&5
4575 eval "$as_ac_Header=no"
4577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4582 cat >>confdefs.h <<_ACEOF
4583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4584 _ACEOF
4588 done
4640 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
4641 fcntl.h grp.h \
4642 io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
4643 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
4644 unistd.h utime.h \
4645 sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
4646 sys/modem.h \
4647 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
4648 sys/time.h \
4649 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
4650 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
4651 bluetooth/bluetooth.h
4653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4655 echo "$as_me:$LINENO: checking for $ac_header" >&5
4656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4662 else
4663 # Is the header compilable?
4664 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4666 cat >conftest.$ac_ext <<_ACEOF
4667 /* confdefs.h. */
4668 _ACEOF
4669 cat confdefs.h >>conftest.$ac_ext
4670 cat >>conftest.$ac_ext <<_ACEOF
4671 /* end confdefs.h. */
4672 $ac_includes_default
4673 #include <$ac_header>
4674 _ACEOF
4675 rm -f conftest.$ac_objext
4676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4677 (eval $ac_compile) 2>conftest.er1
4678 ac_status=$?
4679 grep -v '^ *+' conftest.er1 >conftest.err
4680 rm -f conftest.er1
4681 cat conftest.err >&5
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); } &&
4684 { ac_try='test -z "$ac_c_werror_flag"
4685 || test ! -s conftest.err'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687 (eval $ac_try) 2>&5
4688 ac_status=$?
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; } &&
4691 { ac_try='test -s conftest.$ac_objext'
4692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693 (eval $ac_try) 2>&5
4694 ac_status=$?
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }; }; then
4697 ac_header_compiler=yes
4698 else
4699 echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4702 ac_header_compiler=no
4704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4706 echo "${ECHO_T}$ac_header_compiler" >&6
4708 # Is the header present?
4709 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4711 cat >conftest.$ac_ext <<_ACEOF
4712 /* confdefs.h. */
4713 _ACEOF
4714 cat confdefs.h >>conftest.$ac_ext
4715 cat >>conftest.$ac_ext <<_ACEOF
4716 /* end confdefs.h. */
4717 #include <$ac_header>
4718 _ACEOF
4719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4721 ac_status=$?
4722 grep -v '^ *+' conftest.er1 >conftest.err
4723 rm -f conftest.er1
4724 cat conftest.err >&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); } >/dev/null; then
4727 if test -s conftest.err; then
4728 ac_cpp_err=$ac_c_preproc_warn_flag
4729 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4730 else
4731 ac_cpp_err=
4733 else
4734 ac_cpp_err=yes
4736 if test -z "$ac_cpp_err"; then
4737 ac_header_preproc=yes
4738 else
4739 echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4742 ac_header_preproc=no
4744 rm -f conftest.err conftest.$ac_ext
4745 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4746 echo "${ECHO_T}$ac_header_preproc" >&6
4748 # So? What about this header?
4749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4750 yes:no: )
4751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4755 ac_header_preproc=yes
4757 no:yes:* )
4758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4761 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4763 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4765 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4769 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4771 cat <<\_ASBOX
4772 ## ------------------------------------------------ ##
4773 ## Report this to http://www.python.org/python-bugs ##
4774 ## ------------------------------------------------ ##
4775 _ASBOX
4777 sed "s/^/$as_me: WARNING: /" >&2
4779 esac
4780 echo "$as_me:$LINENO: checking for $ac_header" >&5
4781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785 eval "$as_ac_Header=\$ac_header_preproc"
4787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4792 cat >>confdefs.h <<_ACEOF
4793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4794 _ACEOF
4798 done
4805 ac_header_dirent=no
4806 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4807 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4808 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4809 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4812 else
4813 cat >conftest.$ac_ext <<_ACEOF
4814 /* confdefs.h. */
4815 _ACEOF
4816 cat confdefs.h >>conftest.$ac_ext
4817 cat >>conftest.$ac_ext <<_ACEOF
4818 /* end confdefs.h. */
4819 #include <sys/types.h>
4820 #include <$ac_hdr>
4823 main ()
4825 if ((DIR *) 0)
4826 return 0;
4828 return 0;
4830 _ACEOF
4831 rm -f conftest.$ac_objext
4832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833 (eval $ac_compile) 2>conftest.er1
4834 ac_status=$?
4835 grep -v '^ *+' conftest.er1 >conftest.err
4836 rm -f conftest.er1
4837 cat conftest.err >&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } &&
4840 { ac_try='test -z "$ac_c_werror_flag"
4841 || test ! -s conftest.err'
4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843 (eval $ac_try) 2>&5
4844 ac_status=$?
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; } &&
4847 { ac_try='test -s conftest.$ac_objext'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849 (eval $ac_try) 2>&5
4850 ac_status=$?
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4853 eval "$as_ac_Header=yes"
4854 else
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4858 eval "$as_ac_Header=no"
4860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4865 cat >>confdefs.h <<_ACEOF
4866 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4867 _ACEOF
4869 ac_header_dirent=$ac_hdr; break
4872 done
4873 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4874 if test $ac_header_dirent = dirent.h; then
4875 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4876 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4877 if test "${ac_cv_search_opendir+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 else
4880 ac_func_search_save_LIBS=$LIBS
4881 ac_cv_search_opendir=no
4882 cat >conftest.$ac_ext <<_ACEOF
4883 /* confdefs.h. */
4884 _ACEOF
4885 cat confdefs.h >>conftest.$ac_ext
4886 cat >>conftest.$ac_ext <<_ACEOF
4887 /* end confdefs.h. */
4889 /* Override any gcc2 internal prototype to avoid an error. */
4890 #ifdef __cplusplus
4891 extern "C"
4892 #endif
4893 /* We use char because int might match the return type of a gcc2
4894 builtin and then its argument prototype would still apply. */
4895 char opendir ();
4897 main ()
4899 opendir ();
4901 return 0;
4903 _ACEOF
4904 rm -f conftest.$ac_objext conftest$ac_exeext
4905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4906 (eval $ac_link) 2>conftest.er1
4907 ac_status=$?
4908 grep -v '^ *+' conftest.er1 >conftest.err
4909 rm -f conftest.er1
4910 cat conftest.err >&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } &&
4913 { ac_try='test -z "$ac_c_werror_flag"
4914 || test ! -s conftest.err'
4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 (eval $ac_try) 2>&5
4917 ac_status=$?
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; } &&
4920 { ac_try='test -s conftest$ac_exeext'
4921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922 (eval $ac_try) 2>&5
4923 ac_status=$?
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); }; }; then
4926 ac_cv_search_opendir="none required"
4927 else
4928 echo "$as_me: failed program was:" >&5
4929 sed 's/^/| /' conftest.$ac_ext >&5
4932 rm -f conftest.err conftest.$ac_objext \
4933 conftest$ac_exeext conftest.$ac_ext
4934 if test "$ac_cv_search_opendir" = no; then
4935 for ac_lib in dir; do
4936 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4937 cat >conftest.$ac_ext <<_ACEOF
4938 /* confdefs.h. */
4939 _ACEOF
4940 cat confdefs.h >>conftest.$ac_ext
4941 cat >>conftest.$ac_ext <<_ACEOF
4942 /* end confdefs.h. */
4944 /* Override any gcc2 internal prototype to avoid an error. */
4945 #ifdef __cplusplus
4946 extern "C"
4947 #endif
4948 /* We use char because int might match the return type of a gcc2
4949 builtin and then its argument prototype would still apply. */
4950 char opendir ();
4952 main ()
4954 opendir ();
4956 return 0;
4958 _ACEOF
4959 rm -f conftest.$ac_objext conftest$ac_exeext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4961 (eval $ac_link) 2>conftest.er1
4962 ac_status=$?
4963 grep -v '^ *+' conftest.er1 >conftest.err
4964 rm -f conftest.er1
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } &&
4968 { ac_try='test -z "$ac_c_werror_flag"
4969 || test ! -s conftest.err'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971 (eval $ac_try) 2>&5
4972 ac_status=$?
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; } &&
4975 { ac_try='test -s conftest$ac_exeext'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977 (eval $ac_try) 2>&5
4978 ac_status=$?
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; }; then
4981 ac_cv_search_opendir="-l$ac_lib"
4982 break
4983 else
4984 echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.$ac_ext >&5
4988 rm -f conftest.err conftest.$ac_objext \
4989 conftest$ac_exeext conftest.$ac_ext
4990 done
4992 LIBS=$ac_func_search_save_LIBS
4994 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4995 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4996 if test "$ac_cv_search_opendir" != no; then
4997 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5001 else
5002 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5003 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5004 if test "${ac_cv_search_opendir+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007 ac_func_search_save_LIBS=$LIBS
5008 ac_cv_search_opendir=no
5009 cat >conftest.$ac_ext <<_ACEOF
5010 /* confdefs.h. */
5011 _ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5016 /* Override any gcc2 internal prototype to avoid an error. */
5017 #ifdef __cplusplus
5018 extern "C"
5019 #endif
5020 /* We use char because int might match the return type of a gcc2
5021 builtin and then its argument prototype would still apply. */
5022 char opendir ();
5024 main ()
5026 opendir ();
5028 return 0;
5030 _ACEOF
5031 rm -f conftest.$ac_objext conftest$ac_exeext
5032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5033 (eval $ac_link) 2>conftest.er1
5034 ac_status=$?
5035 grep -v '^ *+' conftest.er1 >conftest.err
5036 rm -f conftest.er1
5037 cat conftest.err >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } &&
5040 { ac_try='test -z "$ac_c_werror_flag"
5041 || test ! -s conftest.err'
5042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5043 (eval $ac_try) 2>&5
5044 ac_status=$?
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); }; } &&
5047 { ac_try='test -s conftest$ac_exeext'
5048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5049 (eval $ac_try) 2>&5
5050 ac_status=$?
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); }; }; then
5053 ac_cv_search_opendir="none required"
5054 else
5055 echo "$as_me: failed program was:" >&5
5056 sed 's/^/| /' conftest.$ac_ext >&5
5059 rm -f conftest.err conftest.$ac_objext \
5060 conftest$ac_exeext conftest.$ac_ext
5061 if test "$ac_cv_search_opendir" = no; then
5062 for ac_lib in x; do
5063 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5064 cat >conftest.$ac_ext <<_ACEOF
5065 /* confdefs.h. */
5066 _ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5071 /* Override any gcc2 internal prototype to avoid an error. */
5072 #ifdef __cplusplus
5073 extern "C"
5074 #endif
5075 /* We use char because int might match the return type of a gcc2
5076 builtin and then its argument prototype would still apply. */
5077 char opendir ();
5079 main ()
5081 opendir ();
5083 return 0;
5085 _ACEOF
5086 rm -f conftest.$ac_objext conftest$ac_exeext
5087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5088 (eval $ac_link) 2>conftest.er1
5089 ac_status=$?
5090 grep -v '^ *+' conftest.er1 >conftest.err
5091 rm -f conftest.er1
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
5095 { ac_try='test -z "$ac_c_werror_flag"
5096 || test ! -s conftest.err'
5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098 (eval $ac_try) 2>&5
5099 ac_status=$?
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; } &&
5102 { ac_try='test -s conftest$ac_exeext'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104 (eval $ac_try) 2>&5
5105 ac_status=$?
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then
5108 ac_cv_search_opendir="-l$ac_lib"
5109 break
5110 else
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5115 rm -f conftest.err conftest.$ac_objext \
5116 conftest$ac_exeext conftest.$ac_ext
5117 done
5119 LIBS=$ac_func_search_save_LIBS
5121 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5122 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5123 if test "$ac_cv_search_opendir" != no; then
5124 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5130 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5131 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5132 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5134 else
5135 cat >conftest.$ac_ext <<_ACEOF
5136 /* confdefs.h. */
5137 _ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h. */
5141 #include <sys/types.h>
5143 main ()
5145 return makedev(0, 0);
5147 return 0;
5149 _ACEOF
5150 rm -f conftest.$ac_objext conftest$ac_exeext
5151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5152 (eval $ac_link) 2>conftest.er1
5153 ac_status=$?
5154 grep -v '^ *+' conftest.er1 >conftest.err
5155 rm -f conftest.er1
5156 cat conftest.err >&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); } &&
5159 { ac_try='test -z "$ac_c_werror_flag"
5160 || test ! -s conftest.err'
5161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5162 (eval $ac_try) 2>&5
5163 ac_status=$?
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); }; } &&
5166 { ac_try='test -s conftest$ac_exeext'
5167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168 (eval $ac_try) 2>&5
5169 ac_status=$?
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); }; }; then
5172 ac_cv_header_sys_types_h_makedev=yes
5173 else
5174 echo "$as_me: failed program was:" >&5
5175 sed 's/^/| /' conftest.$ac_ext >&5
5177 ac_cv_header_sys_types_h_makedev=no
5179 rm -f conftest.err conftest.$ac_objext \
5180 conftest$ac_exeext conftest.$ac_ext
5183 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5184 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5186 if test $ac_cv_header_sys_types_h_makedev = no; then
5187 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5188 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5189 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5190 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5194 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5195 else
5196 # Is the header compilable?
5197 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5198 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5199 cat >conftest.$ac_ext <<_ACEOF
5200 /* confdefs.h. */
5201 _ACEOF
5202 cat confdefs.h >>conftest.$ac_ext
5203 cat >>conftest.$ac_ext <<_ACEOF
5204 /* end confdefs.h. */
5205 $ac_includes_default
5206 #include <sys/mkdev.h>
5207 _ACEOF
5208 rm -f conftest.$ac_objext
5209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5210 (eval $ac_compile) 2>conftest.er1
5211 ac_status=$?
5212 grep -v '^ *+' conftest.er1 >conftest.err
5213 rm -f conftest.er1
5214 cat conftest.err >&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } &&
5217 { ac_try='test -z "$ac_c_werror_flag"
5218 || test ! -s conftest.err'
5219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220 (eval $ac_try) 2>&5
5221 ac_status=$?
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }; } &&
5224 { ac_try='test -s conftest.$ac_objext'
5225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226 (eval $ac_try) 2>&5
5227 ac_status=$?
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); }; }; then
5230 ac_header_compiler=yes
5231 else
5232 echo "$as_me: failed program was:" >&5
5233 sed 's/^/| /' conftest.$ac_ext >&5
5235 ac_header_compiler=no
5237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5239 echo "${ECHO_T}$ac_header_compiler" >&6
5241 # Is the header present?
5242 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5243 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5244 cat >conftest.$ac_ext <<_ACEOF
5245 /* confdefs.h. */
5246 _ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h. */
5250 #include <sys/mkdev.h>
5251 _ACEOF
5252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5254 ac_status=$?
5255 grep -v '^ *+' conftest.er1 >conftest.err
5256 rm -f conftest.er1
5257 cat conftest.err >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } >/dev/null; then
5260 if test -s conftest.err; then
5261 ac_cpp_err=$ac_c_preproc_warn_flag
5262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5263 else
5264 ac_cpp_err=
5266 else
5267 ac_cpp_err=yes
5269 if test -z "$ac_cpp_err"; then
5270 ac_header_preproc=yes
5271 else
5272 echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.$ac_ext >&5
5275 ac_header_preproc=no
5277 rm -f conftest.err conftest.$ac_ext
5278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5279 echo "${ECHO_T}$ac_header_preproc" >&6
5281 # So? What about this header?
5282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5283 yes:no: )
5284 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5285 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5286 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5287 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5288 ac_header_preproc=yes
5290 no:yes:* )
5291 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5292 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5293 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5294 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5295 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5296 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5297 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5298 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5299 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5300 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5301 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5302 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5304 cat <<\_ASBOX
5305 ## ------------------------------------------------ ##
5306 ## Report this to http://www.python.org/python-bugs ##
5307 ## ------------------------------------------------ ##
5308 _ASBOX
5310 sed "s/^/$as_me: WARNING: /" >&2
5312 esac
5313 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5314 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5315 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5317 else
5318 ac_cv_header_sys_mkdev_h=$ac_header_preproc
5320 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5321 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5324 if test $ac_cv_header_sys_mkdev_h = yes; then
5326 cat >>confdefs.h <<\_ACEOF
5327 #define MAJOR_IN_MKDEV 1
5328 _ACEOF
5334 if test $ac_cv_header_sys_mkdev_h = no; then
5335 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5336 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5337 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5338 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5339 echo $ECHO_N "(cached) $ECHO_C" >&6
5341 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5342 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5343 else
5344 # Is the header compilable?
5345 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5346 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5347 cat >conftest.$ac_ext <<_ACEOF
5348 /* confdefs.h. */
5349 _ACEOF
5350 cat confdefs.h >>conftest.$ac_ext
5351 cat >>conftest.$ac_ext <<_ACEOF
5352 /* end confdefs.h. */
5353 $ac_includes_default
5354 #include <sys/sysmacros.h>
5355 _ACEOF
5356 rm -f conftest.$ac_objext
5357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5358 (eval $ac_compile) 2>conftest.er1
5359 ac_status=$?
5360 grep -v '^ *+' conftest.er1 >conftest.err
5361 rm -f conftest.er1
5362 cat conftest.err >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } &&
5365 { ac_try='test -z "$ac_c_werror_flag"
5366 || test ! -s conftest.err'
5367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 (eval $ac_try) 2>&5
5369 ac_status=$?
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; } &&
5372 { ac_try='test -s conftest.$ac_objext'
5373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374 (eval $ac_try) 2>&5
5375 ac_status=$?
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; }; then
5378 ac_header_compiler=yes
5379 else
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5383 ac_header_compiler=no
5385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5387 echo "${ECHO_T}$ac_header_compiler" >&6
5389 # Is the header present?
5390 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5391 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5392 cat >conftest.$ac_ext <<_ACEOF
5393 /* confdefs.h. */
5394 _ACEOF
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5398 #include <sys/sysmacros.h>
5399 _ACEOF
5400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5402 ac_status=$?
5403 grep -v '^ *+' conftest.er1 >conftest.err
5404 rm -f conftest.er1
5405 cat conftest.err >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } >/dev/null; then
5408 if test -s conftest.err; then
5409 ac_cpp_err=$ac_c_preproc_warn_flag
5410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5411 else
5412 ac_cpp_err=
5414 else
5415 ac_cpp_err=yes
5417 if test -z "$ac_cpp_err"; then
5418 ac_header_preproc=yes
5419 else
5420 echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5423 ac_header_preproc=no
5425 rm -f conftest.err conftest.$ac_ext
5426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5427 echo "${ECHO_T}$ac_header_preproc" >&6
5429 # So? What about this header?
5430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5431 yes:no: )
5432 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5433 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5434 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5435 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5436 ac_header_preproc=yes
5438 no:yes:* )
5439 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5440 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5441 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5442 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5443 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5444 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5445 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5446 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5447 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5448 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5449 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5450 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5452 cat <<\_ASBOX
5453 ## ------------------------------------------------ ##
5454 ## Report this to http://www.python.org/python-bugs ##
5455 ## ------------------------------------------------ ##
5456 _ASBOX
5458 sed "s/^/$as_me: WARNING: /" >&2
5460 esac
5461 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5462 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5463 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 else
5466 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
5468 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5469 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5472 if test $ac_cv_header_sys_sysmacros_h = yes; then
5474 cat >>confdefs.h <<\_ACEOF
5475 #define MAJOR_IN_SYSMACROS 1
5476 _ACEOF
5485 # On Solaris, term.h requires curses.h
5487 for ac_header in term.h
5489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5490 echo "$as_me:$LINENO: checking for $ac_header" >&5
5491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5494 else
5495 cat >conftest.$ac_ext <<_ACEOF
5496 /* confdefs.h. */
5497 _ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5502 #ifdef HAVE_CURSES_H
5503 #include <curses.h>
5504 #endif
5507 #include <$ac_header>
5508 _ACEOF
5509 rm -f conftest.$ac_objext
5510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5511 (eval $ac_compile) 2>conftest.er1
5512 ac_status=$?
5513 grep -v '^ *+' conftest.er1 >conftest.err
5514 rm -f conftest.er1
5515 cat conftest.err >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } &&
5518 { ac_try='test -z "$ac_c_werror_flag"
5519 || test ! -s conftest.err'
5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521 (eval $ac_try) 2>&5
5522 ac_status=$?
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; } &&
5525 { ac_try='test -s conftest.$ac_objext'
5526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527 (eval $ac_try) 2>&5
5528 ac_status=$?
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; }; then
5531 eval "$as_ac_Header=yes"
5532 else
5533 echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.$ac_ext >&5
5536 eval "$as_ac_Header=no"
5538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5543 cat >>confdefs.h <<_ACEOF
5544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5545 _ACEOF
5549 done
5552 # On Linux, netlink.h requires asm/types.h
5554 for ac_header in linux/netlink.h
5556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5557 echo "$as_me:$LINENO: checking for $ac_header" >&5
5558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 else
5562 cat >conftest.$ac_ext <<_ACEOF
5563 /* confdefs.h. */
5564 _ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h. */
5569 #ifdef HAVE_ASM_TYPES_H
5570 #include <asm/types.h>
5571 #endif
5572 #ifdef HAVE_SYS_SOCKET_H
5573 #include <sys/socket.h>
5574 #endif
5577 #include <$ac_header>
5578 _ACEOF
5579 rm -f conftest.$ac_objext
5580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5581 (eval $ac_compile) 2>conftest.er1
5582 ac_status=$?
5583 grep -v '^ *+' conftest.er1 >conftest.err
5584 rm -f conftest.er1
5585 cat conftest.err >&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); } &&
5588 { ac_try='test -z "$ac_c_werror_flag"
5589 || test ! -s conftest.err'
5590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591 (eval $ac_try) 2>&5
5592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; } &&
5595 { ac_try='test -s conftest.$ac_objext'
5596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597 (eval $ac_try) 2>&5
5598 ac_status=$?
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }; }; then
5601 eval "$as_ac_Header=yes"
5602 else
5603 echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5606 eval "$as_ac_Header=no"
5608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5613 cat >>confdefs.h <<_ACEOF
5614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5615 _ACEOF
5619 done
5622 # checks for typedefs
5623 was_it_defined=no
5624 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5625 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5626 cat >conftest.$ac_ext <<_ACEOF
5627 /* confdefs.h. */
5628 _ACEOF
5629 cat confdefs.h >>conftest.$ac_ext
5630 cat >>conftest.$ac_ext <<_ACEOF
5631 /* end confdefs.h. */
5632 #include <time.h>
5634 _ACEOF
5635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5636 $EGREP "clock_t" >/dev/null 2>&1; then
5637 was_it_defined=yes
5638 else
5641 cat >>confdefs.h <<\_ACEOF
5642 #define clock_t long
5643 _ACEOF
5647 rm -f conftest*
5649 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5650 echo "${ECHO_T}$was_it_defined" >&6
5652 # Check whether using makedev requires defining _OSF_SOURCE
5653 echo "$as_me:$LINENO: checking for makedev" >&5
5654 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5655 cat >conftest.$ac_ext <<_ACEOF
5656 /* confdefs.h. */
5657 _ACEOF
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5661 #include <sys/types.h>
5663 main ()
5665 makedev(0, 0)
5667 return 0;
5669 _ACEOF
5670 rm -f conftest.$ac_objext conftest$ac_exeext
5671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5672 (eval $ac_link) 2>conftest.er1
5673 ac_status=$?
5674 grep -v '^ *+' conftest.er1 >conftest.err
5675 rm -f conftest.er1
5676 cat conftest.err >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } &&
5679 { ac_try='test -z "$ac_c_werror_flag"
5680 || test ! -s conftest.err'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 (eval $ac_try) 2>&5
5683 ac_status=$?
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; } &&
5686 { ac_try='test -s conftest$ac_exeext'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688 (eval $ac_try) 2>&5
5689 ac_status=$?
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; }; then
5692 ac_cv_has_makedev=yes
5693 else
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5697 ac_cv_has_makedev=no
5699 rm -f conftest.err conftest.$ac_objext \
5700 conftest$ac_exeext conftest.$ac_ext
5701 if test "$ac_cv_has_makedev" = "no"; then
5702 # we didn't link, try if _OSF_SOURCE will allow us to link
5703 cat >conftest.$ac_ext <<_ACEOF
5704 /* confdefs.h. */
5705 _ACEOF
5706 cat confdefs.h >>conftest.$ac_ext
5707 cat >>conftest.$ac_ext <<_ACEOF
5708 /* end confdefs.h. */
5710 #define _OSF_SOURCE 1
5711 #include <sys/types.h>
5714 main ()
5716 makedev(0, 0)
5718 return 0;
5720 _ACEOF
5721 rm -f conftest.$ac_objext conftest$ac_exeext
5722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5723 (eval $ac_link) 2>conftest.er1
5724 ac_status=$?
5725 grep -v '^ *+' conftest.er1 >conftest.err
5726 rm -f conftest.er1
5727 cat conftest.err >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } &&
5730 { ac_try='test -z "$ac_c_werror_flag"
5731 || test ! -s conftest.err'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733 (eval $ac_try) 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; } &&
5737 { ac_try='test -s conftest$ac_exeext'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 (eval $ac_try) 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; }; then
5743 ac_cv_has_makedev=yes
5744 else
5745 echo "$as_me: failed program was:" >&5
5746 sed 's/^/| /' conftest.$ac_ext >&5
5748 ac_cv_has_makedev=no
5750 rm -f conftest.err conftest.$ac_objext \
5751 conftest$ac_exeext conftest.$ac_ext
5752 if test "$ac_cv_has_makedev" = "yes"; then
5754 cat >>confdefs.h <<\_ACEOF
5755 #define _OSF_SOURCE 1
5756 _ACEOF
5760 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5761 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5762 if test "$ac_cv_has_makedev" = "yes"; then
5764 cat >>confdefs.h <<\_ACEOF
5765 #define HAVE_MAKEDEV 1
5766 _ACEOF
5770 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5771 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5772 # defined, but the compiler does not support pragma redefine_extname,
5773 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5774 # structures (such as rlimit64) without declaring them. As a
5775 # work-around, disable LFS on such configurations
5777 use_lfs=yes
5778 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5779 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5780 cat >conftest.$ac_ext <<_ACEOF
5781 /* confdefs.h. */
5782 _ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5787 #define _LARGEFILE_SOURCE 1
5788 #define _FILE_OFFSET_BITS 64
5789 #include <sys/resource.h>
5792 main ()
5794 struct rlimit foo;
5796 return 0;
5798 _ACEOF
5799 rm -f conftest.$ac_objext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5801 (eval $ac_compile) 2>conftest.er1
5802 ac_status=$?
5803 grep -v '^ *+' conftest.er1 >conftest.err
5804 rm -f conftest.er1
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } &&
5808 { ac_try='test -z "$ac_c_werror_flag"
5809 || test ! -s conftest.err'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 (eval $ac_try) 2>&5
5812 ac_status=$?
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; } &&
5815 { ac_try='test -s conftest.$ac_objext'
5816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817 (eval $ac_try) 2>&5
5818 ac_status=$?
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; }; then
5821 sol_lfs_bug=no
5822 else
5823 echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.$ac_ext >&5
5826 sol_lfs_bug=yes
5828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5829 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5830 echo "${ECHO_T}$sol_lfs_bug" >&6
5831 if test "$sol_lfs_bug" = "yes"; then
5832 use_lfs=no
5835 if test "$use_lfs" = "yes"; then
5836 # Two defines needed to enable largefile support on various platforms
5837 # These may affect some typedefs
5839 cat >>confdefs.h <<\_ACEOF
5840 #define _LARGEFILE_SOURCE 1
5841 _ACEOF
5844 cat >>confdefs.h <<\_ACEOF
5845 #define _FILE_OFFSET_BITS 64
5846 _ACEOF
5850 # Add some code to confdefs.h so that the test for off_t works on SCO
5851 cat >> confdefs.h <<\EOF
5852 #if defined(SCO_DS)
5853 #undef _OFF_T
5854 #endif
5857 # Type availability checks
5858 echo "$as_me:$LINENO: checking for mode_t" >&5
5859 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5860 if test "${ac_cv_type_mode_t+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5862 else
5863 cat >conftest.$ac_ext <<_ACEOF
5864 /* confdefs.h. */
5865 _ACEOF
5866 cat confdefs.h >>conftest.$ac_ext
5867 cat >>conftest.$ac_ext <<_ACEOF
5868 /* end confdefs.h. */
5869 $ac_includes_default
5871 main ()
5873 if ((mode_t *) 0)
5874 return 0;
5875 if (sizeof (mode_t))
5876 return 0;
5878 return 0;
5880 _ACEOF
5881 rm -f conftest.$ac_objext
5882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5883 (eval $ac_compile) 2>conftest.er1
5884 ac_status=$?
5885 grep -v '^ *+' conftest.er1 >conftest.err
5886 rm -f conftest.er1
5887 cat conftest.err >&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } &&
5890 { ac_try='test -z "$ac_c_werror_flag"
5891 || test ! -s conftest.err'
5892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893 (eval $ac_try) 2>&5
5894 ac_status=$?
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; } &&
5897 { ac_try='test -s conftest.$ac_objext'
5898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5899 (eval $ac_try) 2>&5
5900 ac_status=$?
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); }; }; then
5903 ac_cv_type_mode_t=yes
5904 else
5905 echo "$as_me: failed program was:" >&5
5906 sed 's/^/| /' conftest.$ac_ext >&5
5908 ac_cv_type_mode_t=no
5910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5912 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5913 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5914 if test $ac_cv_type_mode_t = yes; then
5916 else
5918 cat >>confdefs.h <<_ACEOF
5919 #define mode_t int
5920 _ACEOF
5924 echo "$as_me:$LINENO: checking for off_t" >&5
5925 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5926 if test "${ac_cv_type_off_t+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 else
5929 cat >conftest.$ac_ext <<_ACEOF
5930 /* confdefs.h. */
5931 _ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h. */
5935 $ac_includes_default
5937 main ()
5939 if ((off_t *) 0)
5940 return 0;
5941 if (sizeof (off_t))
5942 return 0;
5944 return 0;
5946 _ACEOF
5947 rm -f conftest.$ac_objext
5948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5949 (eval $ac_compile) 2>conftest.er1
5950 ac_status=$?
5951 grep -v '^ *+' conftest.er1 >conftest.err
5952 rm -f conftest.er1
5953 cat conftest.err >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); } &&
5956 { ac_try='test -z "$ac_c_werror_flag"
5957 || test ! -s conftest.err'
5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959 (eval $ac_try) 2>&5
5960 ac_status=$?
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; } &&
5963 { ac_try='test -s conftest.$ac_objext'
5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965 (eval $ac_try) 2>&5
5966 ac_status=$?
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; }; then
5969 ac_cv_type_off_t=yes
5970 else
5971 echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.$ac_ext >&5
5974 ac_cv_type_off_t=no
5976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5978 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5979 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5980 if test $ac_cv_type_off_t = yes; then
5982 else
5984 cat >>confdefs.h <<_ACEOF
5985 #define off_t long
5986 _ACEOF
5990 echo "$as_me:$LINENO: checking for pid_t" >&5
5991 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5992 if test "${ac_cv_type_pid_t+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995 cat >conftest.$ac_ext <<_ACEOF
5996 /* confdefs.h. */
5997 _ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6001 $ac_includes_default
6003 main ()
6005 if ((pid_t *) 0)
6006 return 0;
6007 if (sizeof (pid_t))
6008 return 0;
6010 return 0;
6012 _ACEOF
6013 rm -f conftest.$ac_objext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015 (eval $ac_compile) 2>conftest.er1
6016 ac_status=$?
6017 grep -v '^ *+' conftest.er1 >conftest.err
6018 rm -f conftest.er1
6019 cat conftest.err >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } &&
6022 { ac_try='test -z "$ac_c_werror_flag"
6023 || test ! -s conftest.err'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 (eval $ac_try) 2>&5
6026 ac_status=$?
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; } &&
6029 { ac_try='test -s conftest.$ac_objext'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 (eval $ac_try) 2>&5
6032 ac_status=$?
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; }; then
6035 ac_cv_type_pid_t=yes
6036 else
6037 echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6040 ac_cv_type_pid_t=no
6042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6044 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6045 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6046 if test $ac_cv_type_pid_t = yes; then
6048 else
6050 cat >>confdefs.h <<_ACEOF
6051 #define pid_t int
6052 _ACEOF
6056 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6057 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6058 if test "${ac_cv_type_signal+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061 cat >conftest.$ac_ext <<_ACEOF
6062 /* confdefs.h. */
6063 _ACEOF
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h. */
6067 #include <sys/types.h>
6068 #include <signal.h>
6069 #ifdef signal
6070 # undef signal
6071 #endif
6072 #ifdef __cplusplus
6073 extern "C" void (*signal (int, void (*)(int)))(int);
6074 #else
6075 void (*signal ()) ();
6076 #endif
6079 main ()
6081 int i;
6083 return 0;
6085 _ACEOF
6086 rm -f conftest.$ac_objext
6087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6088 (eval $ac_compile) 2>conftest.er1
6089 ac_status=$?
6090 grep -v '^ *+' conftest.er1 >conftest.err
6091 rm -f conftest.er1
6092 cat conftest.err >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } &&
6095 { ac_try='test -z "$ac_c_werror_flag"
6096 || test ! -s conftest.err'
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 (eval $ac_try) 2>&5
6099 ac_status=$?
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; } &&
6102 { ac_try='test -s conftest.$ac_objext'
6103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104 (eval $ac_try) 2>&5
6105 ac_status=$?
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); }; }; then
6108 ac_cv_type_signal=void
6109 else
6110 echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.$ac_ext >&5
6113 ac_cv_type_signal=int
6115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6117 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6118 echo "${ECHO_T}$ac_cv_type_signal" >&6
6120 cat >>confdefs.h <<_ACEOF
6121 #define RETSIGTYPE $ac_cv_type_signal
6122 _ACEOF
6125 echo "$as_me:$LINENO: checking for size_t" >&5
6126 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6127 if test "${ac_cv_type_size_t+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6129 else
6130 cat >conftest.$ac_ext <<_ACEOF
6131 /* confdefs.h. */
6132 _ACEOF
6133 cat confdefs.h >>conftest.$ac_ext
6134 cat >>conftest.$ac_ext <<_ACEOF
6135 /* end confdefs.h. */
6136 $ac_includes_default
6138 main ()
6140 if ((size_t *) 0)
6141 return 0;
6142 if (sizeof (size_t))
6143 return 0;
6145 return 0;
6147 _ACEOF
6148 rm -f conftest.$ac_objext
6149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6150 (eval $ac_compile) 2>conftest.er1
6151 ac_status=$?
6152 grep -v '^ *+' conftest.er1 >conftest.err
6153 rm -f conftest.er1
6154 cat conftest.err >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } &&
6157 { ac_try='test -z "$ac_c_werror_flag"
6158 || test ! -s conftest.err'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 (eval $ac_try) 2>&5
6161 ac_status=$?
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; } &&
6164 { ac_try='test -s conftest.$ac_objext'
6165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166 (eval $ac_try) 2>&5
6167 ac_status=$?
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; }; then
6170 ac_cv_type_size_t=yes
6171 else
6172 echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.$ac_ext >&5
6175 ac_cv_type_size_t=no
6177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6179 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6180 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6181 if test $ac_cv_type_size_t = yes; then
6183 else
6185 cat >>confdefs.h <<_ACEOF
6186 #define size_t unsigned
6187 _ACEOF
6191 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6192 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6193 if test "${ac_cv_type_uid_t+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196 cat >conftest.$ac_ext <<_ACEOF
6197 /* confdefs.h. */
6198 _ACEOF
6199 cat confdefs.h >>conftest.$ac_ext
6200 cat >>conftest.$ac_ext <<_ACEOF
6201 /* end confdefs.h. */
6202 #include <sys/types.h>
6204 _ACEOF
6205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6206 $EGREP "uid_t" >/dev/null 2>&1; then
6207 ac_cv_type_uid_t=yes
6208 else
6209 ac_cv_type_uid_t=no
6211 rm -f conftest*
6214 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6215 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6216 if test $ac_cv_type_uid_t = no; then
6218 cat >>confdefs.h <<\_ACEOF
6219 #define uid_t int
6220 _ACEOF
6223 cat >>confdefs.h <<\_ACEOF
6224 #define gid_t int
6225 _ACEOF
6229 echo "$as_me:$LINENO: checking for ssize_t" >&5
6230 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6231 if test "${ac_cv_type_ssize_t+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234 cat >conftest.$ac_ext <<_ACEOF
6235 /* confdefs.h. */
6236 _ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 $ac_includes_default
6242 main ()
6244 if ((ssize_t *) 0)
6245 return 0;
6246 if (sizeof (ssize_t))
6247 return 0;
6249 return 0;
6251 _ACEOF
6252 rm -f conftest.$ac_objext
6253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6254 (eval $ac_compile) 2>conftest.er1
6255 ac_status=$?
6256 grep -v '^ *+' conftest.er1 >conftest.err
6257 rm -f conftest.er1
6258 cat conftest.err >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } &&
6261 { ac_try='test -z "$ac_c_werror_flag"
6262 || test ! -s conftest.err'
6263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264 (eval $ac_try) 2>&5
6265 ac_status=$?
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; } &&
6268 { ac_try='test -s conftest.$ac_objext'
6269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270 (eval $ac_try) 2>&5
6271 ac_status=$?
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; }; then
6274 ac_cv_type_ssize_t=yes
6275 else
6276 echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.$ac_ext >&5
6279 ac_cv_type_ssize_t=no
6281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6283 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6284 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6285 if test $ac_cv_type_ssize_t = yes; then
6287 cat >>confdefs.h <<\_ACEOF
6288 #define HAVE_SSIZE_T 1
6289 _ACEOF
6294 # Sizes of various common basic types
6295 # ANSI C requires sizeof(char) == 1, so no need to check it
6296 echo "$as_me:$LINENO: checking for int" >&5
6297 echo $ECHO_N "checking for int... $ECHO_C" >&6
6298 if test "${ac_cv_type_int+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6300 else
6301 cat >conftest.$ac_ext <<_ACEOF
6302 /* confdefs.h. */
6303 _ACEOF
6304 cat confdefs.h >>conftest.$ac_ext
6305 cat >>conftest.$ac_ext <<_ACEOF
6306 /* end confdefs.h. */
6307 $ac_includes_default
6309 main ()
6311 if ((int *) 0)
6312 return 0;
6313 if (sizeof (int))
6314 return 0;
6316 return 0;
6318 _ACEOF
6319 rm -f conftest.$ac_objext
6320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6321 (eval $ac_compile) 2>conftest.er1
6322 ac_status=$?
6323 grep -v '^ *+' conftest.er1 >conftest.err
6324 rm -f conftest.er1
6325 cat conftest.err >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } &&
6328 { ac_try='test -z "$ac_c_werror_flag"
6329 || test ! -s conftest.err'
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331 (eval $ac_try) 2>&5
6332 ac_status=$?
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; } &&
6335 { ac_try='test -s conftest.$ac_objext'
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337 (eval $ac_try) 2>&5
6338 ac_status=$?
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; }; then
6341 ac_cv_type_int=yes
6342 else
6343 echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.$ac_ext >&5
6346 ac_cv_type_int=no
6348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6350 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6351 echo "${ECHO_T}$ac_cv_type_int" >&6
6353 echo "$as_me:$LINENO: checking size of int" >&5
6354 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6355 if test "${ac_cv_sizeof_int+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 else
6358 if test "$ac_cv_type_int" = yes; then
6359 # The cast to unsigned long works around a bug in the HP C Compiler
6360 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6361 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6362 # This bug is HP SR number 8606223364.
6363 if test "$cross_compiling" = yes; then
6364 # Depending upon the size, compute the lo and hi bounds.
6365 cat >conftest.$ac_ext <<_ACEOF
6366 /* confdefs.h. */
6367 _ACEOF
6368 cat confdefs.h >>conftest.$ac_ext
6369 cat >>conftest.$ac_ext <<_ACEOF
6370 /* end confdefs.h. */
6371 $ac_includes_default
6373 main ()
6375 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6376 test_array [0] = 0
6379 return 0;
6381 _ACEOF
6382 rm -f conftest.$ac_objext
6383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6384 (eval $ac_compile) 2>conftest.er1
6385 ac_status=$?
6386 grep -v '^ *+' conftest.er1 >conftest.err
6387 rm -f conftest.er1
6388 cat conftest.err >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } &&
6391 { ac_try='test -z "$ac_c_werror_flag"
6392 || test ! -s conftest.err'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 (eval $ac_try) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; } &&
6398 { ac_try='test -s conftest.$ac_objext'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 (eval $ac_try) 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
6404 ac_lo=0 ac_mid=0
6405 while :; do
6406 cat >conftest.$ac_ext <<_ACEOF
6407 /* confdefs.h. */
6408 _ACEOF
6409 cat confdefs.h >>conftest.$ac_ext
6410 cat >>conftest.$ac_ext <<_ACEOF
6411 /* end confdefs.h. */
6412 $ac_includes_default
6414 main ()
6416 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6417 test_array [0] = 0
6420 return 0;
6422 _ACEOF
6423 rm -f conftest.$ac_objext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6425 (eval $ac_compile) 2>conftest.er1
6426 ac_status=$?
6427 grep -v '^ *+' conftest.er1 >conftest.err
6428 rm -f conftest.er1
6429 cat conftest.err >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } &&
6432 { ac_try='test -z "$ac_c_werror_flag"
6433 || test ! -s conftest.err'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 (eval $ac_try) 2>&5
6436 ac_status=$?
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; } &&
6439 { ac_try='test -s conftest.$ac_objext'
6440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441 (eval $ac_try) 2>&5
6442 ac_status=$?
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); }; }; then
6445 ac_hi=$ac_mid; break
6446 else
6447 echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6450 ac_lo=`expr $ac_mid + 1`
6451 if test $ac_lo -le $ac_mid; then
6452 ac_lo= ac_hi=
6453 break
6455 ac_mid=`expr 2 '*' $ac_mid + 1`
6457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6458 done
6459 else
6460 echo "$as_me: failed program was:" >&5
6461 sed 's/^/| /' conftest.$ac_ext >&5
6463 cat >conftest.$ac_ext <<_ACEOF
6464 /* confdefs.h. */
6465 _ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h. */
6469 $ac_includes_default
6471 main ()
6473 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6474 test_array [0] = 0
6477 return 0;
6479 _ACEOF
6480 rm -f conftest.$ac_objext
6481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6482 (eval $ac_compile) 2>conftest.er1
6483 ac_status=$?
6484 grep -v '^ *+' conftest.er1 >conftest.err
6485 rm -f conftest.er1
6486 cat conftest.err >&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } &&
6489 { ac_try='test -z "$ac_c_werror_flag"
6490 || test ! -s conftest.err'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 (eval $ac_try) 2>&5
6493 ac_status=$?
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; } &&
6496 { ac_try='test -s conftest.$ac_objext'
6497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498 (eval $ac_try) 2>&5
6499 ac_status=$?
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; }; then
6502 ac_hi=-1 ac_mid=-1
6503 while :; do
6504 cat >conftest.$ac_ext <<_ACEOF
6505 /* confdefs.h. */
6506 _ACEOF
6507 cat confdefs.h >>conftest.$ac_ext
6508 cat >>conftest.$ac_ext <<_ACEOF
6509 /* end confdefs.h. */
6510 $ac_includes_default
6512 main ()
6514 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6515 test_array [0] = 0
6518 return 0;
6520 _ACEOF
6521 rm -f conftest.$ac_objext
6522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6523 (eval $ac_compile) 2>conftest.er1
6524 ac_status=$?
6525 grep -v '^ *+' conftest.er1 >conftest.err
6526 rm -f conftest.er1
6527 cat conftest.err >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } &&
6530 { ac_try='test -z "$ac_c_werror_flag"
6531 || test ! -s conftest.err'
6532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533 (eval $ac_try) 2>&5
6534 ac_status=$?
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; } &&
6537 { ac_try='test -s conftest.$ac_objext'
6538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539 (eval $ac_try) 2>&5
6540 ac_status=$?
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; }; then
6543 ac_lo=$ac_mid; break
6544 else
6545 echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6548 ac_hi=`expr '(' $ac_mid ')' - 1`
6549 if test $ac_mid -le $ac_hi; then
6550 ac_lo= ac_hi=
6551 break
6553 ac_mid=`expr 2 '*' $ac_mid`
6555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6556 done
6557 else
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6561 ac_lo= ac_hi=
6563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6566 # Binary search between lo and hi bounds.
6567 while test "x$ac_lo" != "x$ac_hi"; do
6568 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6569 cat >conftest.$ac_ext <<_ACEOF
6570 /* confdefs.h. */
6571 _ACEOF
6572 cat confdefs.h >>conftest.$ac_ext
6573 cat >>conftest.$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6575 $ac_includes_default
6577 main ()
6579 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6580 test_array [0] = 0
6583 return 0;
6585 _ACEOF
6586 rm -f conftest.$ac_objext
6587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6588 (eval $ac_compile) 2>conftest.er1
6589 ac_status=$?
6590 grep -v '^ *+' conftest.er1 >conftest.err
6591 rm -f conftest.er1
6592 cat conftest.err >&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } &&
6595 { ac_try='test -z "$ac_c_werror_flag"
6596 || test ! -s conftest.err'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598 (eval $ac_try) 2>&5
6599 ac_status=$?
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; } &&
6602 { ac_try='test -s conftest.$ac_objext'
6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604 (eval $ac_try) 2>&5
6605 ac_status=$?
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; }; then
6608 ac_hi=$ac_mid
6609 else
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.$ac_ext >&5
6613 ac_lo=`expr '(' $ac_mid ')' + 1`
6615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6616 done
6617 case $ac_lo in
6618 ?*) ac_cv_sizeof_int=$ac_lo;;
6619 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6620 See \`config.log' for more details." >&5
6621 echo "$as_me: error: cannot compute sizeof (int), 77
6622 See \`config.log' for more details." >&2;}
6623 { (exit 1); exit 1; }; } ;;
6624 esac
6625 else
6626 if test "$cross_compiling" = yes; then
6627 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6628 See \`config.log' for more details." >&5
6629 echo "$as_me: error: cannot run test program while cross compiling
6630 See \`config.log' for more details." >&2;}
6631 { (exit 1); exit 1; }; }
6632 else
6633 cat >conftest.$ac_ext <<_ACEOF
6634 /* confdefs.h. */
6635 _ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6639 $ac_includes_default
6640 long longval () { return (long) (sizeof (int)); }
6641 unsigned long ulongval () { return (long) (sizeof (int)); }
6642 #include <stdio.h>
6643 #include <stdlib.h>
6645 main ()
6648 FILE *f = fopen ("conftest.val", "w");
6649 if (! f)
6650 exit (1);
6651 if (((long) (sizeof (int))) < 0)
6653 long i = longval ();
6654 if (i != ((long) (sizeof (int))))
6655 exit (1);
6656 fprintf (f, "%ld\n", i);
6658 else
6660 unsigned long i = ulongval ();
6661 if (i != ((long) (sizeof (int))))
6662 exit (1);
6663 fprintf (f, "%lu\n", i);
6665 exit (ferror (f) || fclose (f) != 0);
6668 return 0;
6670 _ACEOF
6671 rm -f conftest$ac_exeext
6672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6673 (eval $ac_link) 2>&5
6674 ac_status=$?
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678 (eval $ac_try) 2>&5
6679 ac_status=$?
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; }; then
6682 ac_cv_sizeof_int=`cat conftest.val`
6683 else
6684 echo "$as_me: program exited with status $ac_status" >&5
6685 echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6688 ( exit $ac_status )
6689 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6690 See \`config.log' for more details." >&5
6691 echo "$as_me: error: cannot compute sizeof (int), 77
6692 See \`config.log' for more details." >&2;}
6693 { (exit 1); exit 1; }; }
6695 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6698 rm -f conftest.val
6699 else
6700 ac_cv_sizeof_int=0
6703 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6704 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6705 cat >>confdefs.h <<_ACEOF
6706 #define SIZEOF_INT $ac_cv_sizeof_int
6707 _ACEOF
6710 echo "$as_me:$LINENO: checking for long" >&5
6711 echo $ECHO_N "checking for long... $ECHO_C" >&6
6712 if test "${ac_cv_type_long+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715 cat >conftest.$ac_ext <<_ACEOF
6716 /* confdefs.h. */
6717 _ACEOF
6718 cat confdefs.h >>conftest.$ac_ext
6719 cat >>conftest.$ac_ext <<_ACEOF
6720 /* end confdefs.h. */
6721 $ac_includes_default
6723 main ()
6725 if ((long *) 0)
6726 return 0;
6727 if (sizeof (long))
6728 return 0;
6730 return 0;
6732 _ACEOF
6733 rm -f conftest.$ac_objext
6734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6735 (eval $ac_compile) 2>conftest.er1
6736 ac_status=$?
6737 grep -v '^ *+' conftest.er1 >conftest.err
6738 rm -f conftest.er1
6739 cat conftest.err >&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); } &&
6742 { ac_try='test -z "$ac_c_werror_flag"
6743 || test ! -s conftest.err'
6744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745 (eval $ac_try) 2>&5
6746 ac_status=$?
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); }; } &&
6749 { ac_try='test -s conftest.$ac_objext'
6750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751 (eval $ac_try) 2>&5
6752 ac_status=$?
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; }; then
6755 ac_cv_type_long=yes
6756 else
6757 echo "$as_me: failed program was:" >&5
6758 sed 's/^/| /' conftest.$ac_ext >&5
6760 ac_cv_type_long=no
6762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6764 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6765 echo "${ECHO_T}$ac_cv_type_long" >&6
6767 echo "$as_me:$LINENO: checking size of long" >&5
6768 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6769 if test "${ac_cv_sizeof_long+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 else
6772 if test "$ac_cv_type_long" = yes; then
6773 # The cast to unsigned long works around a bug in the HP C Compiler
6774 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6775 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6776 # This bug is HP SR number 8606223364.
6777 if test "$cross_compiling" = yes; then
6778 # Depending upon the size, compute the lo and hi bounds.
6779 cat >conftest.$ac_ext <<_ACEOF
6780 /* confdefs.h. */
6781 _ACEOF
6782 cat confdefs.h >>conftest.$ac_ext
6783 cat >>conftest.$ac_ext <<_ACEOF
6784 /* end confdefs.h. */
6785 $ac_includes_default
6787 main ()
6789 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6790 test_array [0] = 0
6793 return 0;
6795 _ACEOF
6796 rm -f conftest.$ac_objext
6797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6798 (eval $ac_compile) 2>conftest.er1
6799 ac_status=$?
6800 grep -v '^ *+' conftest.er1 >conftest.err
6801 rm -f conftest.er1
6802 cat conftest.err >&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); } &&
6805 { ac_try='test -z "$ac_c_werror_flag"
6806 || test ! -s conftest.err'
6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808 (eval $ac_try) 2>&5
6809 ac_status=$?
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; } &&
6812 { ac_try='test -s conftest.$ac_objext'
6813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814 (eval $ac_try) 2>&5
6815 ac_status=$?
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); }; }; then
6818 ac_lo=0 ac_mid=0
6819 while :; do
6820 cat >conftest.$ac_ext <<_ACEOF
6821 /* confdefs.h. */
6822 _ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6826 $ac_includes_default
6828 main ()
6830 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6831 test_array [0] = 0
6834 return 0;
6836 _ACEOF
6837 rm -f conftest.$ac_objext
6838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6839 (eval $ac_compile) 2>conftest.er1
6840 ac_status=$?
6841 grep -v '^ *+' conftest.er1 >conftest.err
6842 rm -f conftest.er1
6843 cat conftest.err >&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); } &&
6846 { ac_try='test -z "$ac_c_werror_flag"
6847 || test ! -s conftest.err'
6848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6849 (eval $ac_try) 2>&5
6850 ac_status=$?
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); }; } &&
6853 { ac_try='test -s conftest.$ac_objext'
6854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855 (eval $ac_try) 2>&5
6856 ac_status=$?
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; }; then
6859 ac_hi=$ac_mid; break
6860 else
6861 echo "$as_me: failed program was:" >&5
6862 sed 's/^/| /' conftest.$ac_ext >&5
6864 ac_lo=`expr $ac_mid + 1`
6865 if test $ac_lo -le $ac_mid; then
6866 ac_lo= ac_hi=
6867 break
6869 ac_mid=`expr 2 '*' $ac_mid + 1`
6871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6872 done
6873 else
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6877 cat >conftest.$ac_ext <<_ACEOF
6878 /* confdefs.h. */
6879 _ACEOF
6880 cat confdefs.h >>conftest.$ac_ext
6881 cat >>conftest.$ac_ext <<_ACEOF
6882 /* end confdefs.h. */
6883 $ac_includes_default
6885 main ()
6887 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6888 test_array [0] = 0
6891 return 0;
6893 _ACEOF
6894 rm -f conftest.$ac_objext
6895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6896 (eval $ac_compile) 2>conftest.er1
6897 ac_status=$?
6898 grep -v '^ *+' conftest.er1 >conftest.err
6899 rm -f conftest.er1
6900 cat conftest.err >&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } &&
6903 { ac_try='test -z "$ac_c_werror_flag"
6904 || test ! -s conftest.err'
6905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906 (eval $ac_try) 2>&5
6907 ac_status=$?
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); }; } &&
6910 { ac_try='test -s conftest.$ac_objext'
6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912 (eval $ac_try) 2>&5
6913 ac_status=$?
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; }; then
6916 ac_hi=-1 ac_mid=-1
6917 while :; do
6918 cat >conftest.$ac_ext <<_ACEOF
6919 /* confdefs.h. */
6920 _ACEOF
6921 cat confdefs.h >>conftest.$ac_ext
6922 cat >>conftest.$ac_ext <<_ACEOF
6923 /* end confdefs.h. */
6924 $ac_includes_default
6926 main ()
6928 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6929 test_array [0] = 0
6932 return 0;
6934 _ACEOF
6935 rm -f conftest.$ac_objext
6936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6937 (eval $ac_compile) 2>conftest.er1
6938 ac_status=$?
6939 grep -v '^ *+' conftest.er1 >conftest.err
6940 rm -f conftest.er1
6941 cat conftest.err >&5
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); } &&
6944 { ac_try='test -z "$ac_c_werror_flag"
6945 || test ! -s conftest.err'
6946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947 (eval $ac_try) 2>&5
6948 ac_status=$?
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; } &&
6951 { ac_try='test -s conftest.$ac_objext'
6952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953 (eval $ac_try) 2>&5
6954 ac_status=$?
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }; }; then
6957 ac_lo=$ac_mid; break
6958 else
6959 echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.$ac_ext >&5
6962 ac_hi=`expr '(' $ac_mid ')' - 1`
6963 if test $ac_mid -le $ac_hi; then
6964 ac_lo= ac_hi=
6965 break
6967 ac_mid=`expr 2 '*' $ac_mid`
6969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6970 done
6971 else
6972 echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.$ac_ext >&5
6975 ac_lo= ac_hi=
6977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6980 # Binary search between lo and hi bounds.
6981 while test "x$ac_lo" != "x$ac_hi"; do
6982 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6983 cat >conftest.$ac_ext <<_ACEOF
6984 /* confdefs.h. */
6985 _ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6989 $ac_includes_default
6991 main ()
6993 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6994 test_array [0] = 0
6997 return 0;
6999 _ACEOF
7000 rm -f conftest.$ac_objext
7001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7002 (eval $ac_compile) 2>conftest.er1
7003 ac_status=$?
7004 grep -v '^ *+' conftest.er1 >conftest.err
7005 rm -f conftest.er1
7006 cat conftest.err >&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } &&
7009 { ac_try='test -z "$ac_c_werror_flag"
7010 || test ! -s conftest.err'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 (eval $ac_try) 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; } &&
7016 { ac_try='test -s conftest.$ac_objext'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 (eval $ac_try) 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
7022 ac_hi=$ac_mid
7023 else
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7027 ac_lo=`expr '(' $ac_mid ')' + 1`
7029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7030 done
7031 case $ac_lo in
7032 ?*) ac_cv_sizeof_long=$ac_lo;;
7033 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7034 See \`config.log' for more details." >&5
7035 echo "$as_me: error: cannot compute sizeof (long), 77
7036 See \`config.log' for more details." >&2;}
7037 { (exit 1); exit 1; }; } ;;
7038 esac
7039 else
7040 if test "$cross_compiling" = yes; then
7041 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7042 See \`config.log' for more details." >&5
7043 echo "$as_me: error: cannot run test program while cross compiling
7044 See \`config.log' for more details." >&2;}
7045 { (exit 1); exit 1; }; }
7046 else
7047 cat >conftest.$ac_ext <<_ACEOF
7048 /* confdefs.h. */
7049 _ACEOF
7050 cat confdefs.h >>conftest.$ac_ext
7051 cat >>conftest.$ac_ext <<_ACEOF
7052 /* end confdefs.h. */
7053 $ac_includes_default
7054 long longval () { return (long) (sizeof (long)); }
7055 unsigned long ulongval () { return (long) (sizeof (long)); }
7056 #include <stdio.h>
7057 #include <stdlib.h>
7059 main ()
7062 FILE *f = fopen ("conftest.val", "w");
7063 if (! f)
7064 exit (1);
7065 if (((long) (sizeof (long))) < 0)
7067 long i = longval ();
7068 if (i != ((long) (sizeof (long))))
7069 exit (1);
7070 fprintf (f, "%ld\n", i);
7072 else
7074 unsigned long i = ulongval ();
7075 if (i != ((long) (sizeof (long))))
7076 exit (1);
7077 fprintf (f, "%lu\n", i);
7079 exit (ferror (f) || fclose (f) != 0);
7082 return 0;
7084 _ACEOF
7085 rm -f conftest$ac_exeext
7086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7087 (eval $ac_link) 2>&5
7088 ac_status=$?
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7092 (eval $ac_try) 2>&5
7093 ac_status=$?
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); }; }; then
7096 ac_cv_sizeof_long=`cat conftest.val`
7097 else
7098 echo "$as_me: program exited with status $ac_status" >&5
7099 echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.$ac_ext >&5
7102 ( exit $ac_status )
7103 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7104 See \`config.log' for more details." >&5
7105 echo "$as_me: error: cannot compute sizeof (long), 77
7106 See \`config.log' for more details." >&2;}
7107 { (exit 1); exit 1; }; }
7109 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7112 rm -f conftest.val
7113 else
7114 ac_cv_sizeof_long=0
7117 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7118 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7119 cat >>confdefs.h <<_ACEOF
7120 #define SIZEOF_LONG $ac_cv_sizeof_long
7121 _ACEOF
7124 echo "$as_me:$LINENO: checking for void *" >&5
7125 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7126 if test "${ac_cv_type_void_p+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7128 else
7129 cat >conftest.$ac_ext <<_ACEOF
7130 /* confdefs.h. */
7131 _ACEOF
7132 cat confdefs.h >>conftest.$ac_ext
7133 cat >>conftest.$ac_ext <<_ACEOF
7134 /* end confdefs.h. */
7135 $ac_includes_default
7137 main ()
7139 if ((void * *) 0)
7140 return 0;
7141 if (sizeof (void *))
7142 return 0;
7144 return 0;
7146 _ACEOF
7147 rm -f conftest.$ac_objext
7148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7149 (eval $ac_compile) 2>conftest.er1
7150 ac_status=$?
7151 grep -v '^ *+' conftest.er1 >conftest.err
7152 rm -f conftest.er1
7153 cat conftest.err >&5
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); } &&
7156 { ac_try='test -z "$ac_c_werror_flag"
7157 || test ! -s conftest.err'
7158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159 (eval $ac_try) 2>&5
7160 ac_status=$?
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); }; } &&
7163 { ac_try='test -s conftest.$ac_objext'
7164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165 (eval $ac_try) 2>&5
7166 ac_status=$?
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); }; }; then
7169 ac_cv_type_void_p=yes
7170 else
7171 echo "$as_me: failed program was:" >&5
7172 sed 's/^/| /' conftest.$ac_ext >&5
7174 ac_cv_type_void_p=no
7176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7178 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7179 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7181 echo "$as_me:$LINENO: checking size of void *" >&5
7182 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7183 if test "${ac_cv_sizeof_void_p+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7185 else
7186 if test "$ac_cv_type_void_p" = yes; then
7187 # The cast to unsigned long works around a bug in the HP C Compiler
7188 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7189 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7190 # This bug is HP SR number 8606223364.
7191 if test "$cross_compiling" = yes; then
7192 # Depending upon the size, compute the lo and hi bounds.
7193 cat >conftest.$ac_ext <<_ACEOF
7194 /* confdefs.h. */
7195 _ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7199 $ac_includes_default
7201 main ()
7203 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7204 test_array [0] = 0
7207 return 0;
7209 _ACEOF
7210 rm -f conftest.$ac_objext
7211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7212 (eval $ac_compile) 2>conftest.er1
7213 ac_status=$?
7214 grep -v '^ *+' conftest.er1 >conftest.err
7215 rm -f conftest.er1
7216 cat conftest.err >&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); } &&
7219 { ac_try='test -z "$ac_c_werror_flag"
7220 || test ! -s conftest.err'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222 (eval $ac_try) 2>&5
7223 ac_status=$?
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; } &&
7226 { ac_try='test -s conftest.$ac_objext'
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228 (eval $ac_try) 2>&5
7229 ac_status=$?
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; }; then
7232 ac_lo=0 ac_mid=0
7233 while :; do
7234 cat >conftest.$ac_ext <<_ACEOF
7235 /* confdefs.h. */
7236 _ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7240 $ac_includes_default
7242 main ()
7244 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7245 test_array [0] = 0
7248 return 0;
7250 _ACEOF
7251 rm -f conftest.$ac_objext
7252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7253 (eval $ac_compile) 2>conftest.er1
7254 ac_status=$?
7255 grep -v '^ *+' conftest.er1 >conftest.err
7256 rm -f conftest.er1
7257 cat conftest.err >&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); } &&
7260 { ac_try='test -z "$ac_c_werror_flag"
7261 || test ! -s conftest.err'
7262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7263 (eval $ac_try) 2>&5
7264 ac_status=$?
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); }; } &&
7267 { ac_try='test -s conftest.$ac_objext'
7268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7269 (eval $ac_try) 2>&5
7270 ac_status=$?
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); }; }; then
7273 ac_hi=$ac_mid; break
7274 else
7275 echo "$as_me: failed program was:" >&5
7276 sed 's/^/| /' conftest.$ac_ext >&5
7278 ac_lo=`expr $ac_mid + 1`
7279 if test $ac_lo -le $ac_mid; then
7280 ac_lo= ac_hi=
7281 break
7283 ac_mid=`expr 2 '*' $ac_mid + 1`
7285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7286 done
7287 else
7288 echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.$ac_ext >&5
7291 cat >conftest.$ac_ext <<_ACEOF
7292 /* confdefs.h. */
7293 _ACEOF
7294 cat confdefs.h >>conftest.$ac_ext
7295 cat >>conftest.$ac_ext <<_ACEOF
7296 /* end confdefs.h. */
7297 $ac_includes_default
7299 main ()
7301 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7302 test_array [0] = 0
7305 return 0;
7307 _ACEOF
7308 rm -f conftest.$ac_objext
7309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7310 (eval $ac_compile) 2>conftest.er1
7311 ac_status=$?
7312 grep -v '^ *+' conftest.er1 >conftest.err
7313 rm -f conftest.er1
7314 cat conftest.err >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); } &&
7317 { ac_try='test -z "$ac_c_werror_flag"
7318 || test ! -s conftest.err'
7319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 (eval $ac_try) 2>&5
7321 ac_status=$?
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); }; } &&
7324 { ac_try='test -s conftest.$ac_objext'
7325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326 (eval $ac_try) 2>&5
7327 ac_status=$?
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); }; }; then
7330 ac_hi=-1 ac_mid=-1
7331 while :; do
7332 cat >conftest.$ac_ext <<_ACEOF
7333 /* confdefs.h. */
7334 _ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7338 $ac_includes_default
7340 main ()
7342 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7343 test_array [0] = 0
7346 return 0;
7348 _ACEOF
7349 rm -f conftest.$ac_objext
7350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7351 (eval $ac_compile) 2>conftest.er1
7352 ac_status=$?
7353 grep -v '^ *+' conftest.er1 >conftest.err
7354 rm -f conftest.er1
7355 cat conftest.err >&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); } &&
7358 { ac_try='test -z "$ac_c_werror_flag"
7359 || test ! -s conftest.err'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361 (eval $ac_try) 2>&5
7362 ac_status=$?
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; } &&
7365 { ac_try='test -s conftest.$ac_objext'
7366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367 (eval $ac_try) 2>&5
7368 ac_status=$?
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); }; }; then
7371 ac_lo=$ac_mid; break
7372 else
7373 echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.$ac_ext >&5
7376 ac_hi=`expr '(' $ac_mid ')' - 1`
7377 if test $ac_mid -le $ac_hi; then
7378 ac_lo= ac_hi=
7379 break
7381 ac_mid=`expr 2 '*' $ac_mid`
7383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7384 done
7385 else
7386 echo "$as_me: failed program was:" >&5
7387 sed 's/^/| /' conftest.$ac_ext >&5
7389 ac_lo= ac_hi=
7391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7394 # Binary search between lo and hi bounds.
7395 while test "x$ac_lo" != "x$ac_hi"; do
7396 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7397 cat >conftest.$ac_ext <<_ACEOF
7398 /* confdefs.h. */
7399 _ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7403 $ac_includes_default
7405 main ()
7407 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7408 test_array [0] = 0
7411 return 0;
7413 _ACEOF
7414 rm -f conftest.$ac_objext
7415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7416 (eval $ac_compile) 2>conftest.er1
7417 ac_status=$?
7418 grep -v '^ *+' conftest.er1 >conftest.err
7419 rm -f conftest.er1
7420 cat conftest.err >&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } &&
7423 { ac_try='test -z "$ac_c_werror_flag"
7424 || test ! -s conftest.err'
7425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7426 (eval $ac_try) 2>&5
7427 ac_status=$?
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; } &&
7430 { ac_try='test -s conftest.$ac_objext'
7431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432 (eval $ac_try) 2>&5
7433 ac_status=$?
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; }; then
7436 ac_hi=$ac_mid
7437 else
7438 echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.$ac_ext >&5
7441 ac_lo=`expr '(' $ac_mid ')' + 1`
7443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7444 done
7445 case $ac_lo in
7446 ?*) ac_cv_sizeof_void_p=$ac_lo;;
7447 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7448 See \`config.log' for more details." >&5
7449 echo "$as_me: error: cannot compute sizeof (void *), 77
7450 See \`config.log' for more details." >&2;}
7451 { (exit 1); exit 1; }; } ;;
7452 esac
7453 else
7454 if test "$cross_compiling" = yes; then
7455 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7456 See \`config.log' for more details." >&5
7457 echo "$as_me: error: cannot run test program while cross compiling
7458 See \`config.log' for more details." >&2;}
7459 { (exit 1); exit 1; }; }
7460 else
7461 cat >conftest.$ac_ext <<_ACEOF
7462 /* confdefs.h. */
7463 _ACEOF
7464 cat confdefs.h >>conftest.$ac_ext
7465 cat >>conftest.$ac_ext <<_ACEOF
7466 /* end confdefs.h. */
7467 $ac_includes_default
7468 long longval () { return (long) (sizeof (void *)); }
7469 unsigned long ulongval () { return (long) (sizeof (void *)); }
7470 #include <stdio.h>
7471 #include <stdlib.h>
7473 main ()
7476 FILE *f = fopen ("conftest.val", "w");
7477 if (! f)
7478 exit (1);
7479 if (((long) (sizeof (void *))) < 0)
7481 long i = longval ();
7482 if (i != ((long) (sizeof (void *))))
7483 exit (1);
7484 fprintf (f, "%ld\n", i);
7486 else
7488 unsigned long i = ulongval ();
7489 if (i != ((long) (sizeof (void *))))
7490 exit (1);
7491 fprintf (f, "%lu\n", i);
7493 exit (ferror (f) || fclose (f) != 0);
7496 return 0;
7498 _ACEOF
7499 rm -f conftest$ac_exeext
7500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7501 (eval $ac_link) 2>&5
7502 ac_status=$?
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7506 (eval $ac_try) 2>&5
7507 ac_status=$?
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); }; }; then
7510 ac_cv_sizeof_void_p=`cat conftest.val`
7511 else
7512 echo "$as_me: program exited with status $ac_status" >&5
7513 echo "$as_me: failed program was:" >&5
7514 sed 's/^/| /' conftest.$ac_ext >&5
7516 ( exit $ac_status )
7517 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7518 See \`config.log' for more details." >&5
7519 echo "$as_me: error: cannot compute sizeof (void *), 77
7520 See \`config.log' for more details." >&2;}
7521 { (exit 1); exit 1; }; }
7523 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7526 rm -f conftest.val
7527 else
7528 ac_cv_sizeof_void_p=0
7531 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7532 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7533 cat >>confdefs.h <<_ACEOF
7534 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7535 _ACEOF
7538 echo "$as_me:$LINENO: checking for short" >&5
7539 echo $ECHO_N "checking for short... $ECHO_C" >&6
7540 if test "${ac_cv_type_short+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 else
7543 cat >conftest.$ac_ext <<_ACEOF
7544 /* confdefs.h. */
7545 _ACEOF
7546 cat confdefs.h >>conftest.$ac_ext
7547 cat >>conftest.$ac_ext <<_ACEOF
7548 /* end confdefs.h. */
7549 $ac_includes_default
7551 main ()
7553 if ((short *) 0)
7554 return 0;
7555 if (sizeof (short))
7556 return 0;
7558 return 0;
7560 _ACEOF
7561 rm -f conftest.$ac_objext
7562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7563 (eval $ac_compile) 2>conftest.er1
7564 ac_status=$?
7565 grep -v '^ *+' conftest.er1 >conftest.err
7566 rm -f conftest.er1
7567 cat conftest.err >&5
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); } &&
7570 { ac_try='test -z "$ac_c_werror_flag"
7571 || test ! -s conftest.err'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573 (eval $ac_try) 2>&5
7574 ac_status=$?
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; } &&
7577 { ac_try='test -s conftest.$ac_objext'
7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579 (eval $ac_try) 2>&5
7580 ac_status=$?
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; }; then
7583 ac_cv_type_short=yes
7584 else
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7588 ac_cv_type_short=no
7590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7592 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7593 echo "${ECHO_T}$ac_cv_type_short" >&6
7595 echo "$as_me:$LINENO: checking size of short" >&5
7596 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7597 if test "${ac_cv_sizeof_short+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7599 else
7600 if test "$ac_cv_type_short" = yes; then
7601 # The cast to unsigned long works around a bug in the HP C Compiler
7602 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7603 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7604 # This bug is HP SR number 8606223364.
7605 if test "$cross_compiling" = yes; then
7606 # Depending upon the size, compute the lo and hi bounds.
7607 cat >conftest.$ac_ext <<_ACEOF
7608 /* confdefs.h. */
7609 _ACEOF
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h. */
7613 $ac_includes_default
7615 main ()
7617 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7618 test_array [0] = 0
7621 return 0;
7623 _ACEOF
7624 rm -f conftest.$ac_objext
7625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7626 (eval $ac_compile) 2>conftest.er1
7627 ac_status=$?
7628 grep -v '^ *+' conftest.er1 >conftest.err
7629 rm -f conftest.er1
7630 cat conftest.err >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } &&
7633 { ac_try='test -z "$ac_c_werror_flag"
7634 || test ! -s conftest.err'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636 (eval $ac_try) 2>&5
7637 ac_status=$?
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; } &&
7640 { ac_try='test -s conftest.$ac_objext'
7641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7642 (eval $ac_try) 2>&5
7643 ac_status=$?
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); }; }; then
7646 ac_lo=0 ac_mid=0
7647 while :; do
7648 cat >conftest.$ac_ext <<_ACEOF
7649 /* confdefs.h. */
7650 _ACEOF
7651 cat confdefs.h >>conftest.$ac_ext
7652 cat >>conftest.$ac_ext <<_ACEOF
7653 /* end confdefs.h. */
7654 $ac_includes_default
7656 main ()
7658 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7659 test_array [0] = 0
7662 return 0;
7664 _ACEOF
7665 rm -f conftest.$ac_objext
7666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7667 (eval $ac_compile) 2>conftest.er1
7668 ac_status=$?
7669 grep -v '^ *+' conftest.er1 >conftest.err
7670 rm -f conftest.er1
7671 cat conftest.err >&5
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); } &&
7674 { ac_try='test -z "$ac_c_werror_flag"
7675 || test ! -s conftest.err'
7676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7677 (eval $ac_try) 2>&5
7678 ac_status=$?
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); }; } &&
7681 { ac_try='test -s conftest.$ac_objext'
7682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7683 (eval $ac_try) 2>&5
7684 ac_status=$?
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); }; }; then
7687 ac_hi=$ac_mid; break
7688 else
7689 echo "$as_me: failed program was:" >&5
7690 sed 's/^/| /' conftest.$ac_ext >&5
7692 ac_lo=`expr $ac_mid + 1`
7693 if test $ac_lo -le $ac_mid; then
7694 ac_lo= ac_hi=
7695 break
7697 ac_mid=`expr 2 '*' $ac_mid + 1`
7699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7700 done
7701 else
7702 echo "$as_me: failed program was:" >&5
7703 sed 's/^/| /' conftest.$ac_ext >&5
7705 cat >conftest.$ac_ext <<_ACEOF
7706 /* confdefs.h. */
7707 _ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h. */
7711 $ac_includes_default
7713 main ()
7715 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7716 test_array [0] = 0
7719 return 0;
7721 _ACEOF
7722 rm -f conftest.$ac_objext
7723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7724 (eval $ac_compile) 2>conftest.er1
7725 ac_status=$?
7726 grep -v '^ *+' conftest.er1 >conftest.err
7727 rm -f conftest.er1
7728 cat conftest.err >&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); } &&
7731 { ac_try='test -z "$ac_c_werror_flag"
7732 || test ! -s conftest.err'
7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734 (eval $ac_try) 2>&5
7735 ac_status=$?
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; } &&
7738 { ac_try='test -s conftest.$ac_objext'
7739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7740 (eval $ac_try) 2>&5
7741 ac_status=$?
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); }; }; then
7744 ac_hi=-1 ac_mid=-1
7745 while :; do
7746 cat >conftest.$ac_ext <<_ACEOF
7747 /* confdefs.h. */
7748 _ACEOF
7749 cat confdefs.h >>conftest.$ac_ext
7750 cat >>conftest.$ac_ext <<_ACEOF
7751 /* end confdefs.h. */
7752 $ac_includes_default
7754 main ()
7756 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7757 test_array [0] = 0
7760 return 0;
7762 _ACEOF
7763 rm -f conftest.$ac_objext
7764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7765 (eval $ac_compile) 2>conftest.er1
7766 ac_status=$?
7767 grep -v '^ *+' conftest.er1 >conftest.err
7768 rm -f conftest.er1
7769 cat conftest.err >&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); } &&
7772 { ac_try='test -z "$ac_c_werror_flag"
7773 || test ! -s conftest.err'
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775 (eval $ac_try) 2>&5
7776 ac_status=$?
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; } &&
7779 { ac_try='test -s conftest.$ac_objext'
7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781 (eval $ac_try) 2>&5
7782 ac_status=$?
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; }; then
7785 ac_lo=$ac_mid; break
7786 else
7787 echo "$as_me: failed program was:" >&5
7788 sed 's/^/| /' conftest.$ac_ext >&5
7790 ac_hi=`expr '(' $ac_mid ')' - 1`
7791 if test $ac_mid -le $ac_hi; then
7792 ac_lo= ac_hi=
7793 break
7795 ac_mid=`expr 2 '*' $ac_mid`
7797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7798 done
7799 else
7800 echo "$as_me: failed program was:" >&5
7801 sed 's/^/| /' conftest.$ac_ext >&5
7803 ac_lo= ac_hi=
7805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7808 # Binary search between lo and hi bounds.
7809 while test "x$ac_lo" != "x$ac_hi"; do
7810 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7811 cat >conftest.$ac_ext <<_ACEOF
7812 /* confdefs.h. */
7813 _ACEOF
7814 cat confdefs.h >>conftest.$ac_ext
7815 cat >>conftest.$ac_ext <<_ACEOF
7816 /* end confdefs.h. */
7817 $ac_includes_default
7819 main ()
7821 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7822 test_array [0] = 0
7825 return 0;
7827 _ACEOF
7828 rm -f conftest.$ac_objext
7829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7830 (eval $ac_compile) 2>conftest.er1
7831 ac_status=$?
7832 grep -v '^ *+' conftest.er1 >conftest.err
7833 rm -f conftest.er1
7834 cat conftest.err >&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } &&
7837 { ac_try='test -z "$ac_c_werror_flag"
7838 || test ! -s conftest.err'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 (eval $ac_try) 2>&5
7841 ac_status=$?
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; } &&
7844 { ac_try='test -s conftest.$ac_objext'
7845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846 (eval $ac_try) 2>&5
7847 ac_status=$?
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); }; }; then
7850 ac_hi=$ac_mid
7851 else
7852 echo "$as_me: failed program was:" >&5
7853 sed 's/^/| /' conftest.$ac_ext >&5
7855 ac_lo=`expr '(' $ac_mid ')' + 1`
7857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7858 done
7859 case $ac_lo in
7860 ?*) ac_cv_sizeof_short=$ac_lo;;
7861 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7862 See \`config.log' for more details." >&5
7863 echo "$as_me: error: cannot compute sizeof (short), 77
7864 See \`config.log' for more details." >&2;}
7865 { (exit 1); exit 1; }; } ;;
7866 esac
7867 else
7868 if test "$cross_compiling" = yes; then
7869 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7870 See \`config.log' for more details." >&5
7871 echo "$as_me: error: cannot run test program while cross compiling
7872 See \`config.log' for more details." >&2;}
7873 { (exit 1); exit 1; }; }
7874 else
7875 cat >conftest.$ac_ext <<_ACEOF
7876 /* confdefs.h. */
7877 _ACEOF
7878 cat confdefs.h >>conftest.$ac_ext
7879 cat >>conftest.$ac_ext <<_ACEOF
7880 /* end confdefs.h. */
7881 $ac_includes_default
7882 long longval () { return (long) (sizeof (short)); }
7883 unsigned long ulongval () { return (long) (sizeof (short)); }
7884 #include <stdio.h>
7885 #include <stdlib.h>
7887 main ()
7890 FILE *f = fopen ("conftest.val", "w");
7891 if (! f)
7892 exit (1);
7893 if (((long) (sizeof (short))) < 0)
7895 long i = longval ();
7896 if (i != ((long) (sizeof (short))))
7897 exit (1);
7898 fprintf (f, "%ld\n", i);
7900 else
7902 unsigned long i = ulongval ();
7903 if (i != ((long) (sizeof (short))))
7904 exit (1);
7905 fprintf (f, "%lu\n", i);
7907 exit (ferror (f) || fclose (f) != 0);
7910 return 0;
7912 _ACEOF
7913 rm -f conftest$ac_exeext
7914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7915 (eval $ac_link) 2>&5
7916 ac_status=$?
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920 (eval $ac_try) 2>&5
7921 ac_status=$?
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; }; then
7924 ac_cv_sizeof_short=`cat conftest.val`
7925 else
7926 echo "$as_me: program exited with status $ac_status" >&5
7927 echo "$as_me: failed program was:" >&5
7928 sed 's/^/| /' conftest.$ac_ext >&5
7930 ( exit $ac_status )
7931 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7932 See \`config.log' for more details." >&5
7933 echo "$as_me: error: cannot compute sizeof (short), 77
7934 See \`config.log' for more details." >&2;}
7935 { (exit 1); exit 1; }; }
7937 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7940 rm -f conftest.val
7941 else
7942 ac_cv_sizeof_short=0
7945 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7946 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7947 cat >>confdefs.h <<_ACEOF
7948 #define SIZEOF_SHORT $ac_cv_sizeof_short
7949 _ACEOF
7952 echo "$as_me:$LINENO: checking for float" >&5
7953 echo $ECHO_N "checking for float... $ECHO_C" >&6
7954 if test "${ac_cv_type_float+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7956 else
7957 cat >conftest.$ac_ext <<_ACEOF
7958 /* confdefs.h. */
7959 _ACEOF
7960 cat confdefs.h >>conftest.$ac_ext
7961 cat >>conftest.$ac_ext <<_ACEOF
7962 /* end confdefs.h. */
7963 $ac_includes_default
7965 main ()
7967 if ((float *) 0)
7968 return 0;
7969 if (sizeof (float))
7970 return 0;
7972 return 0;
7974 _ACEOF
7975 rm -f conftest.$ac_objext
7976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7977 (eval $ac_compile) 2>conftest.er1
7978 ac_status=$?
7979 grep -v '^ *+' conftest.er1 >conftest.err
7980 rm -f conftest.er1
7981 cat conftest.err >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } &&
7984 { ac_try='test -z "$ac_c_werror_flag"
7985 || test ! -s conftest.err'
7986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987 (eval $ac_try) 2>&5
7988 ac_status=$?
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; } &&
7991 { ac_try='test -s conftest.$ac_objext'
7992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993 (eval $ac_try) 2>&5
7994 ac_status=$?
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; }; then
7997 ac_cv_type_float=yes
7998 else
7999 echo "$as_me: failed program was:" >&5
8000 sed 's/^/| /' conftest.$ac_ext >&5
8002 ac_cv_type_float=no
8004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8006 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8007 echo "${ECHO_T}$ac_cv_type_float" >&6
8009 echo "$as_me:$LINENO: checking size of float" >&5
8010 echo $ECHO_N "checking size of float... $ECHO_C" >&6
8011 if test "${ac_cv_sizeof_float+set}" = set; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
8013 else
8014 if test "$ac_cv_type_float" = yes; then
8015 # The cast to unsigned long works around a bug in the HP C Compiler
8016 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8017 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8018 # This bug is HP SR number 8606223364.
8019 if test "$cross_compiling" = yes; then
8020 # Depending upon the size, compute the lo and hi bounds.
8021 cat >conftest.$ac_ext <<_ACEOF
8022 /* confdefs.h. */
8023 _ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h. */
8027 $ac_includes_default
8029 main ()
8031 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
8032 test_array [0] = 0
8035 return 0;
8037 _ACEOF
8038 rm -f conftest.$ac_objext
8039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8040 (eval $ac_compile) 2>conftest.er1
8041 ac_status=$?
8042 grep -v '^ *+' conftest.er1 >conftest.err
8043 rm -f conftest.er1
8044 cat conftest.err >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } &&
8047 { ac_try='test -z "$ac_c_werror_flag"
8048 || test ! -s conftest.err'
8049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050 (eval $ac_try) 2>&5
8051 ac_status=$?
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); }; } &&
8054 { ac_try='test -s conftest.$ac_objext'
8055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056 (eval $ac_try) 2>&5
8057 ac_status=$?
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; }; then
8060 ac_lo=0 ac_mid=0
8061 while :; do
8062 cat >conftest.$ac_ext <<_ACEOF
8063 /* confdefs.h. */
8064 _ACEOF
8065 cat confdefs.h >>conftest.$ac_ext
8066 cat >>conftest.$ac_ext <<_ACEOF
8067 /* end confdefs.h. */
8068 $ac_includes_default
8070 main ()
8072 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8073 test_array [0] = 0
8076 return 0;
8078 _ACEOF
8079 rm -f conftest.$ac_objext
8080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8081 (eval $ac_compile) 2>conftest.er1
8082 ac_status=$?
8083 grep -v '^ *+' conftest.er1 >conftest.err
8084 rm -f conftest.er1
8085 cat conftest.err >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } &&
8088 { ac_try='test -z "$ac_c_werror_flag"
8089 || test ! -s conftest.err'
8090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8091 (eval $ac_try) 2>&5
8092 ac_status=$?
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; } &&
8095 { ac_try='test -s conftest.$ac_objext'
8096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8097 (eval $ac_try) 2>&5
8098 ac_status=$?
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); }; }; then
8101 ac_hi=$ac_mid; break
8102 else
8103 echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8106 ac_lo=`expr $ac_mid + 1`
8107 if test $ac_lo -le $ac_mid; then
8108 ac_lo= ac_hi=
8109 break
8111 ac_mid=`expr 2 '*' $ac_mid + 1`
8113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8114 done
8115 else
8116 echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8119 cat >conftest.$ac_ext <<_ACEOF
8120 /* confdefs.h. */
8121 _ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8125 $ac_includes_default
8127 main ()
8129 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8130 test_array [0] = 0
8133 return 0;
8135 _ACEOF
8136 rm -f conftest.$ac_objext
8137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8138 (eval $ac_compile) 2>conftest.er1
8139 ac_status=$?
8140 grep -v '^ *+' conftest.er1 >conftest.err
8141 rm -f conftest.er1
8142 cat conftest.err >&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } &&
8145 { ac_try='test -z "$ac_c_werror_flag"
8146 || test ! -s conftest.err'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148 (eval $ac_try) 2>&5
8149 ac_status=$?
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; } &&
8152 { ac_try='test -s conftest.$ac_objext'
8153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154 (eval $ac_try) 2>&5
8155 ac_status=$?
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8158 ac_hi=-1 ac_mid=-1
8159 while :; do
8160 cat >conftest.$ac_ext <<_ACEOF
8161 /* confdefs.h. */
8162 _ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8166 $ac_includes_default
8168 main ()
8170 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8171 test_array [0] = 0
8174 return 0;
8176 _ACEOF
8177 rm -f conftest.$ac_objext
8178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8179 (eval $ac_compile) 2>conftest.er1
8180 ac_status=$?
8181 grep -v '^ *+' conftest.er1 >conftest.err
8182 rm -f conftest.er1
8183 cat conftest.err >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } &&
8186 { ac_try='test -z "$ac_c_werror_flag"
8187 || test ! -s conftest.err'
8188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189 (eval $ac_try) 2>&5
8190 ac_status=$?
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; } &&
8193 { ac_try='test -s conftest.$ac_objext'
8194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195 (eval $ac_try) 2>&5
8196 ac_status=$?
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); }; }; then
8199 ac_lo=$ac_mid; break
8200 else
8201 echo "$as_me: failed program was:" >&5
8202 sed 's/^/| /' conftest.$ac_ext >&5
8204 ac_hi=`expr '(' $ac_mid ')' - 1`
8205 if test $ac_mid -le $ac_hi; then
8206 ac_lo= ac_hi=
8207 break
8209 ac_mid=`expr 2 '*' $ac_mid`
8211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8212 done
8213 else
8214 echo "$as_me: failed program was:" >&5
8215 sed 's/^/| /' conftest.$ac_ext >&5
8217 ac_lo= ac_hi=
8219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8222 # Binary search between lo and hi bounds.
8223 while test "x$ac_lo" != "x$ac_hi"; do
8224 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8225 cat >conftest.$ac_ext <<_ACEOF
8226 /* confdefs.h. */
8227 _ACEOF
8228 cat confdefs.h >>conftest.$ac_ext
8229 cat >>conftest.$ac_ext <<_ACEOF
8230 /* end confdefs.h. */
8231 $ac_includes_default
8233 main ()
8235 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8236 test_array [0] = 0
8239 return 0;
8241 _ACEOF
8242 rm -f conftest.$ac_objext
8243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8244 (eval $ac_compile) 2>conftest.er1
8245 ac_status=$?
8246 grep -v '^ *+' conftest.er1 >conftest.err
8247 rm -f conftest.er1
8248 cat conftest.err >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } &&
8251 { ac_try='test -z "$ac_c_werror_flag"
8252 || test ! -s conftest.err'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 (eval $ac_try) 2>&5
8255 ac_status=$?
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } &&
8258 { ac_try='test -s conftest.$ac_objext'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 (eval $ac_try) 2>&5
8261 ac_status=$?
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; }; then
8264 ac_hi=$ac_mid
8265 else
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8269 ac_lo=`expr '(' $ac_mid ')' + 1`
8271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8272 done
8273 case $ac_lo in
8274 ?*) ac_cv_sizeof_float=$ac_lo;;
8275 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8276 See \`config.log' for more details." >&5
8277 echo "$as_me: error: cannot compute sizeof (float), 77
8278 See \`config.log' for more details." >&2;}
8279 { (exit 1); exit 1; }; } ;;
8280 esac
8281 else
8282 if test "$cross_compiling" = yes; then
8283 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8284 See \`config.log' for more details." >&5
8285 echo "$as_me: error: cannot run test program while cross compiling
8286 See \`config.log' for more details." >&2;}
8287 { (exit 1); exit 1; }; }
8288 else
8289 cat >conftest.$ac_ext <<_ACEOF
8290 /* confdefs.h. */
8291 _ACEOF
8292 cat confdefs.h >>conftest.$ac_ext
8293 cat >>conftest.$ac_ext <<_ACEOF
8294 /* end confdefs.h. */
8295 $ac_includes_default
8296 long longval () { return (long) (sizeof (float)); }
8297 unsigned long ulongval () { return (long) (sizeof (float)); }
8298 #include <stdio.h>
8299 #include <stdlib.h>
8301 main ()
8304 FILE *f = fopen ("conftest.val", "w");
8305 if (! f)
8306 exit (1);
8307 if (((long) (sizeof (float))) < 0)
8309 long i = longval ();
8310 if (i != ((long) (sizeof (float))))
8311 exit (1);
8312 fprintf (f, "%ld\n", i);
8314 else
8316 unsigned long i = ulongval ();
8317 if (i != ((long) (sizeof (float))))
8318 exit (1);
8319 fprintf (f, "%lu\n", i);
8321 exit (ferror (f) || fclose (f) != 0);
8324 return 0;
8326 _ACEOF
8327 rm -f conftest$ac_exeext
8328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8329 (eval $ac_link) 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334 (eval $ac_try) 2>&5
8335 ac_status=$?
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; }; then
8338 ac_cv_sizeof_float=`cat conftest.val`
8339 else
8340 echo "$as_me: program exited with status $ac_status" >&5
8341 echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8344 ( exit $ac_status )
8345 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8346 See \`config.log' for more details." >&5
8347 echo "$as_me: error: cannot compute sizeof (float), 77
8348 See \`config.log' for more details." >&2;}
8349 { (exit 1); exit 1; }; }
8351 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8354 rm -f conftest.val
8355 else
8356 ac_cv_sizeof_float=0
8359 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8360 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8361 cat >>confdefs.h <<_ACEOF
8362 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8363 _ACEOF
8366 echo "$as_me:$LINENO: checking for double" >&5
8367 echo $ECHO_N "checking for double... $ECHO_C" >&6
8368 if test "${ac_cv_type_double+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8370 else
8371 cat >conftest.$ac_ext <<_ACEOF
8372 /* confdefs.h. */
8373 _ACEOF
8374 cat confdefs.h >>conftest.$ac_ext
8375 cat >>conftest.$ac_ext <<_ACEOF
8376 /* end confdefs.h. */
8377 $ac_includes_default
8379 main ()
8381 if ((double *) 0)
8382 return 0;
8383 if (sizeof (double))
8384 return 0;
8386 return 0;
8388 _ACEOF
8389 rm -f conftest.$ac_objext
8390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8391 (eval $ac_compile) 2>conftest.er1
8392 ac_status=$?
8393 grep -v '^ *+' conftest.er1 >conftest.err
8394 rm -f conftest.er1
8395 cat conftest.err >&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); } &&
8398 { ac_try='test -z "$ac_c_werror_flag"
8399 || test ! -s conftest.err'
8400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401 (eval $ac_try) 2>&5
8402 ac_status=$?
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; } &&
8405 { ac_try='test -s conftest.$ac_objext'
8406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407 (eval $ac_try) 2>&5
8408 ac_status=$?
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; }; then
8411 ac_cv_type_double=yes
8412 else
8413 echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8416 ac_cv_type_double=no
8418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8420 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8421 echo "${ECHO_T}$ac_cv_type_double" >&6
8423 echo "$as_me:$LINENO: checking size of double" >&5
8424 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8425 if test "${ac_cv_sizeof_double+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8427 else
8428 if test "$ac_cv_type_double" = yes; then
8429 # The cast to unsigned long works around a bug in the HP C Compiler
8430 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8431 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8432 # This bug is HP SR number 8606223364.
8433 if test "$cross_compiling" = yes; then
8434 # Depending upon the size, compute the lo and hi bounds.
8435 cat >conftest.$ac_ext <<_ACEOF
8436 /* confdefs.h. */
8437 _ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h. */
8441 $ac_includes_default
8443 main ()
8445 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8446 test_array [0] = 0
8449 return 0;
8451 _ACEOF
8452 rm -f conftest.$ac_objext
8453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8454 (eval $ac_compile) 2>conftest.er1
8455 ac_status=$?
8456 grep -v '^ *+' conftest.er1 >conftest.err
8457 rm -f conftest.er1
8458 cat conftest.err >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } &&
8461 { ac_try='test -z "$ac_c_werror_flag"
8462 || test ! -s conftest.err'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 (eval $ac_try) 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; } &&
8468 { ac_try='test -s conftest.$ac_objext'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470 (eval $ac_try) 2>&5
8471 ac_status=$?
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; }; then
8474 ac_lo=0 ac_mid=0
8475 while :; do
8476 cat >conftest.$ac_ext <<_ACEOF
8477 /* confdefs.h. */
8478 _ACEOF
8479 cat confdefs.h >>conftest.$ac_ext
8480 cat >>conftest.$ac_ext <<_ACEOF
8481 /* end confdefs.h. */
8482 $ac_includes_default
8484 main ()
8486 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8487 test_array [0] = 0
8490 return 0;
8492 _ACEOF
8493 rm -f conftest.$ac_objext
8494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8495 (eval $ac_compile) 2>conftest.er1
8496 ac_status=$?
8497 grep -v '^ *+' conftest.er1 >conftest.err
8498 rm -f conftest.er1
8499 cat conftest.err >&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); } &&
8502 { ac_try='test -z "$ac_c_werror_flag"
8503 || test ! -s conftest.err'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505 (eval $ac_try) 2>&5
8506 ac_status=$?
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; } &&
8509 { ac_try='test -s conftest.$ac_objext'
8510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511 (eval $ac_try) 2>&5
8512 ac_status=$?
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }; }; then
8515 ac_hi=$ac_mid; break
8516 else
8517 echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8520 ac_lo=`expr $ac_mid + 1`
8521 if test $ac_lo -le $ac_mid; then
8522 ac_lo= ac_hi=
8523 break
8525 ac_mid=`expr 2 '*' $ac_mid + 1`
8527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8528 done
8529 else
8530 echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8533 cat >conftest.$ac_ext <<_ACEOF
8534 /* confdefs.h. */
8535 _ACEOF
8536 cat confdefs.h >>conftest.$ac_ext
8537 cat >>conftest.$ac_ext <<_ACEOF
8538 /* end confdefs.h. */
8539 $ac_includes_default
8541 main ()
8543 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8544 test_array [0] = 0
8547 return 0;
8549 _ACEOF
8550 rm -f conftest.$ac_objext
8551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8552 (eval $ac_compile) 2>conftest.er1
8553 ac_status=$?
8554 grep -v '^ *+' conftest.er1 >conftest.err
8555 rm -f conftest.er1
8556 cat conftest.err >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } &&
8559 { ac_try='test -z "$ac_c_werror_flag"
8560 || test ! -s conftest.err'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 (eval $ac_try) 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; } &&
8566 { ac_try='test -s conftest.$ac_objext'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568 (eval $ac_try) 2>&5
8569 ac_status=$?
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; }; then
8572 ac_hi=-1 ac_mid=-1
8573 while :; do
8574 cat >conftest.$ac_ext <<_ACEOF
8575 /* confdefs.h. */
8576 _ACEOF
8577 cat confdefs.h >>conftest.$ac_ext
8578 cat >>conftest.$ac_ext <<_ACEOF
8579 /* end confdefs.h. */
8580 $ac_includes_default
8582 main ()
8584 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8585 test_array [0] = 0
8588 return 0;
8590 _ACEOF
8591 rm -f conftest.$ac_objext
8592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8593 (eval $ac_compile) 2>conftest.er1
8594 ac_status=$?
8595 grep -v '^ *+' conftest.er1 >conftest.err
8596 rm -f conftest.er1
8597 cat conftest.err >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } &&
8600 { ac_try='test -z "$ac_c_werror_flag"
8601 || test ! -s conftest.err'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603 (eval $ac_try) 2>&5
8604 ac_status=$?
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; } &&
8607 { ac_try='test -s conftest.$ac_objext'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 (eval $ac_try) 2>&5
8610 ac_status=$?
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; }; then
8613 ac_lo=$ac_mid; break
8614 else
8615 echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8618 ac_hi=`expr '(' $ac_mid ')' - 1`
8619 if test $ac_mid -le $ac_hi; then
8620 ac_lo= ac_hi=
8621 break
8623 ac_mid=`expr 2 '*' $ac_mid`
8625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8626 done
8627 else
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8631 ac_lo= ac_hi=
8633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8636 # Binary search between lo and hi bounds.
8637 while test "x$ac_lo" != "x$ac_hi"; do
8638 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8639 cat >conftest.$ac_ext <<_ACEOF
8640 /* confdefs.h. */
8641 _ACEOF
8642 cat confdefs.h >>conftest.$ac_ext
8643 cat >>conftest.$ac_ext <<_ACEOF
8644 /* end confdefs.h. */
8645 $ac_includes_default
8647 main ()
8649 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8650 test_array [0] = 0
8653 return 0;
8655 _ACEOF
8656 rm -f conftest.$ac_objext
8657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8658 (eval $ac_compile) 2>conftest.er1
8659 ac_status=$?
8660 grep -v '^ *+' conftest.er1 >conftest.err
8661 rm -f conftest.er1
8662 cat conftest.err >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } &&
8665 { ac_try='test -z "$ac_c_werror_flag"
8666 || test ! -s conftest.err'
8667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668 (eval $ac_try) 2>&5
8669 ac_status=$?
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; } &&
8672 { ac_try='test -s conftest.$ac_objext'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674 (eval $ac_try) 2>&5
8675 ac_status=$?
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; }; then
8678 ac_hi=$ac_mid
8679 else
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8683 ac_lo=`expr '(' $ac_mid ')' + 1`
8685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8686 done
8687 case $ac_lo in
8688 ?*) ac_cv_sizeof_double=$ac_lo;;
8689 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8690 See \`config.log' for more details." >&5
8691 echo "$as_me: error: cannot compute sizeof (double), 77
8692 See \`config.log' for more details." >&2;}
8693 { (exit 1); exit 1; }; } ;;
8694 esac
8695 else
8696 if test "$cross_compiling" = yes; then
8697 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8698 See \`config.log' for more details." >&5
8699 echo "$as_me: error: cannot run test program while cross compiling
8700 See \`config.log' for more details." >&2;}
8701 { (exit 1); exit 1; }; }
8702 else
8703 cat >conftest.$ac_ext <<_ACEOF
8704 /* confdefs.h. */
8705 _ACEOF
8706 cat confdefs.h >>conftest.$ac_ext
8707 cat >>conftest.$ac_ext <<_ACEOF
8708 /* end confdefs.h. */
8709 $ac_includes_default
8710 long longval () { return (long) (sizeof (double)); }
8711 unsigned long ulongval () { return (long) (sizeof (double)); }
8712 #include <stdio.h>
8713 #include <stdlib.h>
8715 main ()
8718 FILE *f = fopen ("conftest.val", "w");
8719 if (! f)
8720 exit (1);
8721 if (((long) (sizeof (double))) < 0)
8723 long i = longval ();
8724 if (i != ((long) (sizeof (double))))
8725 exit (1);
8726 fprintf (f, "%ld\n", i);
8728 else
8730 unsigned long i = ulongval ();
8731 if (i != ((long) (sizeof (double))))
8732 exit (1);
8733 fprintf (f, "%lu\n", i);
8735 exit (ferror (f) || fclose (f) != 0);
8738 return 0;
8740 _ACEOF
8741 rm -f conftest$ac_exeext
8742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8743 (eval $ac_link) 2>&5
8744 ac_status=$?
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8748 (eval $ac_try) 2>&5
8749 ac_status=$?
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); }; }; then
8752 ac_cv_sizeof_double=`cat conftest.val`
8753 else
8754 echo "$as_me: program exited with status $ac_status" >&5
8755 echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8758 ( exit $ac_status )
8759 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8760 See \`config.log' for more details." >&5
8761 echo "$as_me: error: cannot compute sizeof (double), 77
8762 See \`config.log' for more details." >&2;}
8763 { (exit 1); exit 1; }; }
8765 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8768 rm -f conftest.val
8769 else
8770 ac_cv_sizeof_double=0
8773 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8774 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8775 cat >>confdefs.h <<_ACEOF
8776 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8777 _ACEOF
8780 echo "$as_me:$LINENO: checking for fpos_t" >&5
8781 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8782 if test "${ac_cv_type_fpos_t+set}" = set; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8784 else
8785 cat >conftest.$ac_ext <<_ACEOF
8786 /* confdefs.h. */
8787 _ACEOF
8788 cat confdefs.h >>conftest.$ac_ext
8789 cat >>conftest.$ac_ext <<_ACEOF
8790 /* end confdefs.h. */
8791 $ac_includes_default
8793 main ()
8795 if ((fpos_t *) 0)
8796 return 0;
8797 if (sizeof (fpos_t))
8798 return 0;
8800 return 0;
8802 _ACEOF
8803 rm -f conftest.$ac_objext
8804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8805 (eval $ac_compile) 2>conftest.er1
8806 ac_status=$?
8807 grep -v '^ *+' conftest.er1 >conftest.err
8808 rm -f conftest.er1
8809 cat conftest.err >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } &&
8812 { ac_try='test -z "$ac_c_werror_flag"
8813 || test ! -s conftest.err'
8814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815 (eval $ac_try) 2>&5
8816 ac_status=$?
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); }; } &&
8819 { ac_try='test -s conftest.$ac_objext'
8820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8821 (eval $ac_try) 2>&5
8822 ac_status=$?
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); }; }; then
8825 ac_cv_type_fpos_t=yes
8826 else
8827 echo "$as_me: failed program was:" >&5
8828 sed 's/^/| /' conftest.$ac_ext >&5
8830 ac_cv_type_fpos_t=no
8832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8834 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8835 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8837 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8838 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8839 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
8841 else
8842 if test "$ac_cv_type_fpos_t" = yes; then
8843 # The cast to unsigned long works around a bug in the HP C Compiler
8844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8846 # This bug is HP SR number 8606223364.
8847 if test "$cross_compiling" = yes; then
8848 # Depending upon the size, compute the lo and hi bounds.
8849 cat >conftest.$ac_ext <<_ACEOF
8850 /* confdefs.h. */
8851 _ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8855 $ac_includes_default
8857 main ()
8859 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8860 test_array [0] = 0
8863 return 0;
8865 _ACEOF
8866 rm -f conftest.$ac_objext
8867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8868 (eval $ac_compile) 2>conftest.er1
8869 ac_status=$?
8870 grep -v '^ *+' conftest.er1 >conftest.err
8871 rm -f conftest.er1
8872 cat conftest.err >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } &&
8875 { ac_try='test -z "$ac_c_werror_flag"
8876 || test ! -s conftest.err'
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878 (eval $ac_try) 2>&5
8879 ac_status=$?
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; } &&
8882 { ac_try='test -s conftest.$ac_objext'
8883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884 (eval $ac_try) 2>&5
8885 ac_status=$?
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); }; }; then
8888 ac_lo=0 ac_mid=0
8889 while :; do
8890 cat >conftest.$ac_ext <<_ACEOF
8891 /* confdefs.h. */
8892 _ACEOF
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h. */
8896 $ac_includes_default
8898 main ()
8900 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8901 test_array [0] = 0
8904 return 0;
8906 _ACEOF
8907 rm -f conftest.$ac_objext
8908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8909 (eval $ac_compile) 2>conftest.er1
8910 ac_status=$?
8911 grep -v '^ *+' conftest.er1 >conftest.err
8912 rm -f conftest.er1
8913 cat conftest.err >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); } &&
8916 { ac_try='test -z "$ac_c_werror_flag"
8917 || test ! -s conftest.err'
8918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919 (eval $ac_try) 2>&5
8920 ac_status=$?
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); }; } &&
8923 { ac_try='test -s conftest.$ac_objext'
8924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8925 (eval $ac_try) 2>&5
8926 ac_status=$?
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); }; }; then
8929 ac_hi=$ac_mid; break
8930 else
8931 echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8934 ac_lo=`expr $ac_mid + 1`
8935 if test $ac_lo -le $ac_mid; then
8936 ac_lo= ac_hi=
8937 break
8939 ac_mid=`expr 2 '*' $ac_mid + 1`
8941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8942 done
8943 else
8944 echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.$ac_ext >&5
8947 cat >conftest.$ac_ext <<_ACEOF
8948 /* confdefs.h. */
8949 _ACEOF
8950 cat confdefs.h >>conftest.$ac_ext
8951 cat >>conftest.$ac_ext <<_ACEOF
8952 /* end confdefs.h. */
8953 $ac_includes_default
8955 main ()
8957 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8958 test_array [0] = 0
8961 return 0;
8963 _ACEOF
8964 rm -f conftest.$ac_objext
8965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8966 (eval $ac_compile) 2>conftest.er1
8967 ac_status=$?
8968 grep -v '^ *+' conftest.er1 >conftest.err
8969 rm -f conftest.er1
8970 cat conftest.err >&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); } &&
8973 { ac_try='test -z "$ac_c_werror_flag"
8974 || test ! -s conftest.err'
8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976 (eval $ac_try) 2>&5
8977 ac_status=$?
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; } &&
8980 { ac_try='test -s conftest.$ac_objext'
8981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982 (eval $ac_try) 2>&5
8983 ac_status=$?
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); }; }; then
8986 ac_hi=-1 ac_mid=-1
8987 while :; do
8988 cat >conftest.$ac_ext <<_ACEOF
8989 /* confdefs.h. */
8990 _ACEOF
8991 cat confdefs.h >>conftest.$ac_ext
8992 cat >>conftest.$ac_ext <<_ACEOF
8993 /* end confdefs.h. */
8994 $ac_includes_default
8996 main ()
8998 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8999 test_array [0] = 0
9002 return 0;
9004 _ACEOF
9005 rm -f conftest.$ac_objext
9006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9007 (eval $ac_compile) 2>conftest.er1
9008 ac_status=$?
9009 grep -v '^ *+' conftest.er1 >conftest.err
9010 rm -f conftest.er1
9011 cat conftest.err >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); } &&
9014 { ac_try='test -z "$ac_c_werror_flag"
9015 || test ! -s conftest.err'
9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017 (eval $ac_try) 2>&5
9018 ac_status=$?
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; } &&
9021 { ac_try='test -s conftest.$ac_objext'
9022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023 (eval $ac_try) 2>&5
9024 ac_status=$?
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; }; then
9027 ac_lo=$ac_mid; break
9028 else
9029 echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9032 ac_hi=`expr '(' $ac_mid ')' - 1`
9033 if test $ac_mid -le $ac_hi; then
9034 ac_lo= ac_hi=
9035 break
9037 ac_mid=`expr 2 '*' $ac_mid`
9039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9040 done
9041 else
9042 echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.$ac_ext >&5
9045 ac_lo= ac_hi=
9047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9050 # Binary search between lo and hi bounds.
9051 while test "x$ac_lo" != "x$ac_hi"; do
9052 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9053 cat >conftest.$ac_ext <<_ACEOF
9054 /* confdefs.h. */
9055 _ACEOF
9056 cat confdefs.h >>conftest.$ac_ext
9057 cat >>conftest.$ac_ext <<_ACEOF
9058 /* end confdefs.h. */
9059 $ac_includes_default
9061 main ()
9063 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9064 test_array [0] = 0
9067 return 0;
9069 _ACEOF
9070 rm -f conftest.$ac_objext
9071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9072 (eval $ac_compile) 2>conftest.er1
9073 ac_status=$?
9074 grep -v '^ *+' conftest.er1 >conftest.err
9075 rm -f conftest.er1
9076 cat conftest.err >&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); } &&
9079 { ac_try='test -z "$ac_c_werror_flag"
9080 || test ! -s conftest.err'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 (eval $ac_try) 2>&5
9083 ac_status=$?
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; } &&
9086 { ac_try='test -s conftest.$ac_objext'
9087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088 (eval $ac_try) 2>&5
9089 ac_status=$?
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); }; }; then
9092 ac_hi=$ac_mid
9093 else
9094 echo "$as_me: failed program was:" >&5
9095 sed 's/^/| /' conftest.$ac_ext >&5
9097 ac_lo=`expr '(' $ac_mid ')' + 1`
9099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9100 done
9101 case $ac_lo in
9102 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9103 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9104 See \`config.log' for more details." >&5
9105 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9106 See \`config.log' for more details." >&2;}
9107 { (exit 1); exit 1; }; } ;;
9108 esac
9109 else
9110 if test "$cross_compiling" = yes; then
9111 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9112 See \`config.log' for more details." >&5
9113 echo "$as_me: error: cannot run test program while cross compiling
9114 See \`config.log' for more details." >&2;}
9115 { (exit 1); exit 1; }; }
9116 else
9117 cat >conftest.$ac_ext <<_ACEOF
9118 /* confdefs.h. */
9119 _ACEOF
9120 cat confdefs.h >>conftest.$ac_ext
9121 cat >>conftest.$ac_ext <<_ACEOF
9122 /* end confdefs.h. */
9123 $ac_includes_default
9124 long longval () { return (long) (sizeof (fpos_t)); }
9125 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9126 #include <stdio.h>
9127 #include <stdlib.h>
9129 main ()
9132 FILE *f = fopen ("conftest.val", "w");
9133 if (! f)
9134 exit (1);
9135 if (((long) (sizeof (fpos_t))) < 0)
9137 long i = longval ();
9138 if (i != ((long) (sizeof (fpos_t))))
9139 exit (1);
9140 fprintf (f, "%ld\n", i);
9142 else
9144 unsigned long i = ulongval ();
9145 if (i != ((long) (sizeof (fpos_t))))
9146 exit (1);
9147 fprintf (f, "%lu\n", i);
9149 exit (ferror (f) || fclose (f) != 0);
9152 return 0;
9154 _ACEOF
9155 rm -f conftest$ac_exeext
9156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9157 (eval $ac_link) 2>&5
9158 ac_status=$?
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162 (eval $ac_try) 2>&5
9163 ac_status=$?
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; }; then
9166 ac_cv_sizeof_fpos_t=`cat conftest.val`
9167 else
9168 echo "$as_me: program exited with status $ac_status" >&5
9169 echo "$as_me: failed program was:" >&5
9170 sed 's/^/| /' conftest.$ac_ext >&5
9172 ( exit $ac_status )
9173 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9174 See \`config.log' for more details." >&5
9175 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9176 See \`config.log' for more details." >&2;}
9177 { (exit 1); exit 1; }; }
9179 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9182 rm -f conftest.val
9183 else
9184 ac_cv_sizeof_fpos_t=0
9187 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9188 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9189 cat >>confdefs.h <<_ACEOF
9190 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9191 _ACEOF
9194 echo "$as_me:$LINENO: checking for size_t" >&5
9195 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9196 if test "${ac_cv_type_size_t+set}" = set; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9198 else
9199 cat >conftest.$ac_ext <<_ACEOF
9200 /* confdefs.h. */
9201 _ACEOF
9202 cat confdefs.h >>conftest.$ac_ext
9203 cat >>conftest.$ac_ext <<_ACEOF
9204 /* end confdefs.h. */
9205 $ac_includes_default
9207 main ()
9209 if ((size_t *) 0)
9210 return 0;
9211 if (sizeof (size_t))
9212 return 0;
9214 return 0;
9216 _ACEOF
9217 rm -f conftest.$ac_objext
9218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9219 (eval $ac_compile) 2>conftest.er1
9220 ac_status=$?
9221 grep -v '^ *+' conftest.er1 >conftest.err
9222 rm -f conftest.er1
9223 cat conftest.err >&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } &&
9226 { ac_try='test -z "$ac_c_werror_flag"
9227 || test ! -s conftest.err'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 (eval $ac_try) 2>&5
9230 ac_status=$?
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; } &&
9233 { ac_try='test -s conftest.$ac_objext'
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235 (eval $ac_try) 2>&5
9236 ac_status=$?
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; }; then
9239 ac_cv_type_size_t=yes
9240 else
9241 echo "$as_me: failed program was:" >&5
9242 sed 's/^/| /' conftest.$ac_ext >&5
9244 ac_cv_type_size_t=no
9246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9248 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9249 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9251 echo "$as_me:$LINENO: checking size of size_t" >&5
9252 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9253 if test "${ac_cv_sizeof_size_t+set}" = set; then
9254 echo $ECHO_N "(cached) $ECHO_C" >&6
9255 else
9256 if test "$ac_cv_type_size_t" = yes; then
9257 # The cast to unsigned long works around a bug in the HP C Compiler
9258 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9259 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9260 # This bug is HP SR number 8606223364.
9261 if test "$cross_compiling" = yes; then
9262 # Depending upon the size, compute the lo and hi bounds.
9263 cat >conftest.$ac_ext <<_ACEOF
9264 /* confdefs.h. */
9265 _ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h. */
9269 $ac_includes_default
9271 main ()
9273 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9274 test_array [0] = 0
9277 return 0;
9279 _ACEOF
9280 rm -f conftest.$ac_objext
9281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9282 (eval $ac_compile) 2>conftest.er1
9283 ac_status=$?
9284 grep -v '^ *+' conftest.er1 >conftest.err
9285 rm -f conftest.er1
9286 cat conftest.err >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } &&
9289 { ac_try='test -z "$ac_c_werror_flag"
9290 || test ! -s conftest.err'
9291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292 (eval $ac_try) 2>&5
9293 ac_status=$?
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; } &&
9296 { ac_try='test -s conftest.$ac_objext'
9297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298 (eval $ac_try) 2>&5
9299 ac_status=$?
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; }; then
9302 ac_lo=0 ac_mid=0
9303 while :; do
9304 cat >conftest.$ac_ext <<_ACEOF
9305 /* confdefs.h. */
9306 _ACEOF
9307 cat confdefs.h >>conftest.$ac_ext
9308 cat >>conftest.$ac_ext <<_ACEOF
9309 /* end confdefs.h. */
9310 $ac_includes_default
9312 main ()
9314 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9315 test_array [0] = 0
9318 return 0;
9320 _ACEOF
9321 rm -f conftest.$ac_objext
9322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9323 (eval $ac_compile) 2>conftest.er1
9324 ac_status=$?
9325 grep -v '^ *+' conftest.er1 >conftest.err
9326 rm -f conftest.er1
9327 cat conftest.err >&5
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); } &&
9330 { ac_try='test -z "$ac_c_werror_flag"
9331 || test ! -s conftest.err'
9332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9333 (eval $ac_try) 2>&5
9334 ac_status=$?
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); }; } &&
9337 { ac_try='test -s conftest.$ac_objext'
9338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9339 (eval $ac_try) 2>&5
9340 ac_status=$?
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; }; then
9343 ac_hi=$ac_mid; break
9344 else
9345 echo "$as_me: failed program was:" >&5
9346 sed 's/^/| /' conftest.$ac_ext >&5
9348 ac_lo=`expr $ac_mid + 1`
9349 if test $ac_lo -le $ac_mid; then
9350 ac_lo= ac_hi=
9351 break
9353 ac_mid=`expr 2 '*' $ac_mid + 1`
9355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9356 done
9357 else
9358 echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.$ac_ext >&5
9361 cat >conftest.$ac_ext <<_ACEOF
9362 /* confdefs.h. */
9363 _ACEOF
9364 cat confdefs.h >>conftest.$ac_ext
9365 cat >>conftest.$ac_ext <<_ACEOF
9366 /* end confdefs.h. */
9367 $ac_includes_default
9369 main ()
9371 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9372 test_array [0] = 0
9375 return 0;
9377 _ACEOF
9378 rm -f conftest.$ac_objext
9379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9380 (eval $ac_compile) 2>conftest.er1
9381 ac_status=$?
9382 grep -v '^ *+' conftest.er1 >conftest.err
9383 rm -f conftest.er1
9384 cat conftest.err >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } &&
9387 { ac_try='test -z "$ac_c_werror_flag"
9388 || test ! -s conftest.err'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390 (eval $ac_try) 2>&5
9391 ac_status=$?
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; } &&
9394 { ac_try='test -s conftest.$ac_objext'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 (eval $ac_try) 2>&5
9397 ac_status=$?
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; }; then
9400 ac_hi=-1 ac_mid=-1
9401 while :; do
9402 cat >conftest.$ac_ext <<_ACEOF
9403 /* confdefs.h. */
9404 _ACEOF
9405 cat confdefs.h >>conftest.$ac_ext
9406 cat >>conftest.$ac_ext <<_ACEOF
9407 /* end confdefs.h. */
9408 $ac_includes_default
9410 main ()
9412 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9413 test_array [0] = 0
9416 return 0;
9418 _ACEOF
9419 rm -f conftest.$ac_objext
9420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9421 (eval $ac_compile) 2>conftest.er1
9422 ac_status=$?
9423 grep -v '^ *+' conftest.er1 >conftest.err
9424 rm -f conftest.er1
9425 cat conftest.err >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } &&
9428 { ac_try='test -z "$ac_c_werror_flag"
9429 || test ! -s conftest.err'
9430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9431 (eval $ac_try) 2>&5
9432 ac_status=$?
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); }; } &&
9435 { ac_try='test -s conftest.$ac_objext'
9436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9437 (eval $ac_try) 2>&5
9438 ac_status=$?
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); }; }; then
9441 ac_lo=$ac_mid; break
9442 else
9443 echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.$ac_ext >&5
9446 ac_hi=`expr '(' $ac_mid ')' - 1`
9447 if test $ac_mid -le $ac_hi; then
9448 ac_lo= ac_hi=
9449 break
9451 ac_mid=`expr 2 '*' $ac_mid`
9453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9454 done
9455 else
9456 echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9459 ac_lo= ac_hi=
9461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9464 # Binary search between lo and hi bounds.
9465 while test "x$ac_lo" != "x$ac_hi"; do
9466 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9467 cat >conftest.$ac_ext <<_ACEOF
9468 /* confdefs.h. */
9469 _ACEOF
9470 cat confdefs.h >>conftest.$ac_ext
9471 cat >>conftest.$ac_ext <<_ACEOF
9472 /* end confdefs.h. */
9473 $ac_includes_default
9475 main ()
9477 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9478 test_array [0] = 0
9481 return 0;
9483 _ACEOF
9484 rm -f conftest.$ac_objext
9485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9486 (eval $ac_compile) 2>conftest.er1
9487 ac_status=$?
9488 grep -v '^ *+' conftest.er1 >conftest.err
9489 rm -f conftest.er1
9490 cat conftest.err >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } &&
9493 { ac_try='test -z "$ac_c_werror_flag"
9494 || test ! -s conftest.err'
9495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496 (eval $ac_try) 2>&5
9497 ac_status=$?
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; } &&
9500 { ac_try='test -s conftest.$ac_objext'
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502 (eval $ac_try) 2>&5
9503 ac_status=$?
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; }; then
9506 ac_hi=$ac_mid
9507 else
9508 echo "$as_me: failed program was:" >&5
9509 sed 's/^/| /' conftest.$ac_ext >&5
9511 ac_lo=`expr '(' $ac_mid ')' + 1`
9513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9514 done
9515 case $ac_lo in
9516 ?*) ac_cv_sizeof_size_t=$ac_lo;;
9517 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9518 See \`config.log' for more details." >&5
9519 echo "$as_me: error: cannot compute sizeof (size_t), 77
9520 See \`config.log' for more details." >&2;}
9521 { (exit 1); exit 1; }; } ;;
9522 esac
9523 else
9524 if test "$cross_compiling" = yes; then
9525 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9526 See \`config.log' for more details." >&5
9527 echo "$as_me: error: cannot run test program while cross compiling
9528 See \`config.log' for more details." >&2;}
9529 { (exit 1); exit 1; }; }
9530 else
9531 cat >conftest.$ac_ext <<_ACEOF
9532 /* confdefs.h. */
9533 _ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h. */
9537 $ac_includes_default
9538 long longval () { return (long) (sizeof (size_t)); }
9539 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9540 #include <stdio.h>
9541 #include <stdlib.h>
9543 main ()
9546 FILE *f = fopen ("conftest.val", "w");
9547 if (! f)
9548 exit (1);
9549 if (((long) (sizeof (size_t))) < 0)
9551 long i = longval ();
9552 if (i != ((long) (sizeof (size_t))))
9553 exit (1);
9554 fprintf (f, "%ld\n", i);
9556 else
9558 unsigned long i = ulongval ();
9559 if (i != ((long) (sizeof (size_t))))
9560 exit (1);
9561 fprintf (f, "%lu\n", i);
9563 exit (ferror (f) || fclose (f) != 0);
9566 return 0;
9568 _ACEOF
9569 rm -f conftest$ac_exeext
9570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9571 (eval $ac_link) 2>&5
9572 ac_status=$?
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 (eval $ac_try) 2>&5
9577 ac_status=$?
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); }; }; then
9580 ac_cv_sizeof_size_t=`cat conftest.val`
9581 else
9582 echo "$as_me: program exited with status $ac_status" >&5
9583 echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.$ac_ext >&5
9586 ( exit $ac_status )
9587 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9588 See \`config.log' for more details." >&5
9589 echo "$as_me: error: cannot compute sizeof (size_t), 77
9590 See \`config.log' for more details." >&2;}
9591 { (exit 1); exit 1; }; }
9593 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9596 rm -f conftest.val
9597 else
9598 ac_cv_sizeof_size_t=0
9601 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9602 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9603 cat >>confdefs.h <<_ACEOF
9604 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9605 _ACEOF
9609 echo "$as_me:$LINENO: checking for long long support" >&5
9610 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9611 have_long_long=no
9612 cat >conftest.$ac_ext <<_ACEOF
9613 /* confdefs.h. */
9614 _ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h. */
9620 main ()
9622 long long x; x = (long long)0;
9624 return 0;
9626 _ACEOF
9627 rm -f conftest.$ac_objext
9628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9629 (eval $ac_compile) 2>conftest.er1
9630 ac_status=$?
9631 grep -v '^ *+' conftest.er1 >conftest.err
9632 rm -f conftest.er1
9633 cat conftest.err >&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); } &&
9636 { ac_try='test -z "$ac_c_werror_flag"
9637 || test ! -s conftest.err'
9638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639 (eval $ac_try) 2>&5
9640 ac_status=$?
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); }; } &&
9643 { ac_try='test -s conftest.$ac_objext'
9644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9645 (eval $ac_try) 2>&5
9646 ac_status=$?
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); }; }; then
9651 cat >>confdefs.h <<\_ACEOF
9652 #define HAVE_LONG_LONG 1
9653 _ACEOF
9655 have_long_long=yes
9657 else
9658 echo "$as_me: failed program was:" >&5
9659 sed 's/^/| /' conftest.$ac_ext >&5
9662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9663 echo "$as_me:$LINENO: result: $have_long_long" >&5
9664 echo "${ECHO_T}$have_long_long" >&6
9665 if test "$have_long_long" = yes ; then
9666 echo "$as_me:$LINENO: checking for long long" >&5
9667 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9668 if test "${ac_cv_type_long_long+set}" = set; then
9669 echo $ECHO_N "(cached) $ECHO_C" >&6
9670 else
9671 cat >conftest.$ac_ext <<_ACEOF
9672 /* confdefs.h. */
9673 _ACEOF
9674 cat confdefs.h >>conftest.$ac_ext
9675 cat >>conftest.$ac_ext <<_ACEOF
9676 /* end confdefs.h. */
9677 $ac_includes_default
9679 main ()
9681 if ((long long *) 0)
9682 return 0;
9683 if (sizeof (long long))
9684 return 0;
9686 return 0;
9688 _ACEOF
9689 rm -f conftest.$ac_objext
9690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9691 (eval $ac_compile) 2>conftest.er1
9692 ac_status=$?
9693 grep -v '^ *+' conftest.er1 >conftest.err
9694 rm -f conftest.er1
9695 cat conftest.err >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } &&
9698 { ac_try='test -z "$ac_c_werror_flag"
9699 || test ! -s conftest.err'
9700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701 (eval $ac_try) 2>&5
9702 ac_status=$?
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; } &&
9705 { ac_try='test -s conftest.$ac_objext'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 (eval $ac_try) 2>&5
9708 ac_status=$?
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; }; then
9711 ac_cv_type_long_long=yes
9712 else
9713 echo "$as_me: failed program was:" >&5
9714 sed 's/^/| /' conftest.$ac_ext >&5
9716 ac_cv_type_long_long=no
9718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9720 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9721 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9723 echo "$as_me:$LINENO: checking size of long long" >&5
9724 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9725 if test "${ac_cv_sizeof_long_long+set}" = set; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
9727 else
9728 if test "$ac_cv_type_long_long" = yes; then
9729 # The cast to unsigned long works around a bug in the HP C Compiler
9730 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9731 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9732 # This bug is HP SR number 8606223364.
9733 if test "$cross_compiling" = yes; then
9734 # Depending upon the size, compute the lo and hi bounds.
9735 cat >conftest.$ac_ext <<_ACEOF
9736 /* confdefs.h. */
9737 _ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h. */
9741 $ac_includes_default
9743 main ()
9745 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9746 test_array [0] = 0
9749 return 0;
9751 _ACEOF
9752 rm -f conftest.$ac_objext
9753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9754 (eval $ac_compile) 2>conftest.er1
9755 ac_status=$?
9756 grep -v '^ *+' conftest.er1 >conftest.err
9757 rm -f conftest.er1
9758 cat conftest.err >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } &&
9761 { ac_try='test -z "$ac_c_werror_flag"
9762 || test ! -s conftest.err'
9763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9764 (eval $ac_try) 2>&5
9765 ac_status=$?
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); }; } &&
9768 { ac_try='test -s conftest.$ac_objext'
9769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9770 (eval $ac_try) 2>&5
9771 ac_status=$?
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); }; }; then
9774 ac_lo=0 ac_mid=0
9775 while :; do
9776 cat >conftest.$ac_ext <<_ACEOF
9777 /* confdefs.h. */
9778 _ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h. */
9782 $ac_includes_default
9784 main ()
9786 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9787 test_array [0] = 0
9790 return 0;
9792 _ACEOF
9793 rm -f conftest.$ac_objext
9794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9795 (eval $ac_compile) 2>conftest.er1
9796 ac_status=$?
9797 grep -v '^ *+' conftest.er1 >conftest.err
9798 rm -f conftest.er1
9799 cat conftest.err >&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); } &&
9802 { ac_try='test -z "$ac_c_werror_flag"
9803 || test ! -s conftest.err'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805 (eval $ac_try) 2>&5
9806 ac_status=$?
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; } &&
9809 { ac_try='test -s conftest.$ac_objext'
9810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9811 (eval $ac_try) 2>&5
9812 ac_status=$?
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); }; }; then
9815 ac_hi=$ac_mid; break
9816 else
9817 echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9820 ac_lo=`expr $ac_mid + 1`
9821 if test $ac_lo -le $ac_mid; then
9822 ac_lo= ac_hi=
9823 break
9825 ac_mid=`expr 2 '*' $ac_mid + 1`
9827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9828 done
9829 else
9830 echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9833 cat >conftest.$ac_ext <<_ACEOF
9834 /* confdefs.h. */
9835 _ACEOF
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h. */
9839 $ac_includes_default
9841 main ()
9843 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9844 test_array [0] = 0
9847 return 0;
9849 _ACEOF
9850 rm -f conftest.$ac_objext
9851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9852 (eval $ac_compile) 2>conftest.er1
9853 ac_status=$?
9854 grep -v '^ *+' conftest.er1 >conftest.err
9855 rm -f conftest.er1
9856 cat conftest.err >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } &&
9859 { ac_try='test -z "$ac_c_werror_flag"
9860 || test ! -s conftest.err'
9861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862 (eval $ac_try) 2>&5
9863 ac_status=$?
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; } &&
9866 { ac_try='test -s conftest.$ac_objext'
9867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868 (eval $ac_try) 2>&5
9869 ac_status=$?
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; }; then
9872 ac_hi=-1 ac_mid=-1
9873 while :; do
9874 cat >conftest.$ac_ext <<_ACEOF
9875 /* confdefs.h. */
9876 _ACEOF
9877 cat confdefs.h >>conftest.$ac_ext
9878 cat >>conftest.$ac_ext <<_ACEOF
9879 /* end confdefs.h. */
9880 $ac_includes_default
9882 main ()
9884 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9885 test_array [0] = 0
9888 return 0;
9890 _ACEOF
9891 rm -f conftest.$ac_objext
9892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9893 (eval $ac_compile) 2>conftest.er1
9894 ac_status=$?
9895 grep -v '^ *+' conftest.er1 >conftest.err
9896 rm -f conftest.er1
9897 cat conftest.err >&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); } &&
9900 { ac_try='test -z "$ac_c_werror_flag"
9901 || test ! -s conftest.err'
9902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903 (eval $ac_try) 2>&5
9904 ac_status=$?
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; } &&
9907 { ac_try='test -s conftest.$ac_objext'
9908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9909 (eval $ac_try) 2>&5
9910 ac_status=$?
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); }; }; then
9913 ac_lo=$ac_mid; break
9914 else
9915 echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9918 ac_hi=`expr '(' $ac_mid ')' - 1`
9919 if test $ac_mid -le $ac_hi; then
9920 ac_lo= ac_hi=
9921 break
9923 ac_mid=`expr 2 '*' $ac_mid`
9925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9926 done
9927 else
9928 echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9931 ac_lo= ac_hi=
9933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9936 # Binary search between lo and hi bounds.
9937 while test "x$ac_lo" != "x$ac_hi"; do
9938 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9939 cat >conftest.$ac_ext <<_ACEOF
9940 /* confdefs.h. */
9941 _ACEOF
9942 cat confdefs.h >>conftest.$ac_ext
9943 cat >>conftest.$ac_ext <<_ACEOF
9944 /* end confdefs.h. */
9945 $ac_includes_default
9947 main ()
9949 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9950 test_array [0] = 0
9953 return 0;
9955 _ACEOF
9956 rm -f conftest.$ac_objext
9957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9958 (eval $ac_compile) 2>conftest.er1
9959 ac_status=$?
9960 grep -v '^ *+' conftest.er1 >conftest.err
9961 rm -f conftest.er1
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try='test -z "$ac_c_werror_flag"
9966 || test ! -s conftest.err'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968 (eval $ac_try) 2>&5
9969 ac_status=$?
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; } &&
9972 { ac_try='test -s conftest.$ac_objext'
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 (eval $ac_try) 2>&5
9975 ac_status=$?
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; }; then
9978 ac_hi=$ac_mid
9979 else
9980 echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9983 ac_lo=`expr '(' $ac_mid ')' + 1`
9985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9986 done
9987 case $ac_lo in
9988 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9989 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9990 See \`config.log' for more details." >&5
9991 echo "$as_me: error: cannot compute sizeof (long long), 77
9992 See \`config.log' for more details." >&2;}
9993 { (exit 1); exit 1; }; } ;;
9994 esac
9995 else
9996 if test "$cross_compiling" = yes; then
9997 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9998 See \`config.log' for more details." >&5
9999 echo "$as_me: error: cannot run test program while cross compiling
10000 See \`config.log' for more details." >&2;}
10001 { (exit 1); exit 1; }; }
10002 else
10003 cat >conftest.$ac_ext <<_ACEOF
10004 /* confdefs.h. */
10005 _ACEOF
10006 cat confdefs.h >>conftest.$ac_ext
10007 cat >>conftest.$ac_ext <<_ACEOF
10008 /* end confdefs.h. */
10009 $ac_includes_default
10010 long longval () { return (long) (sizeof (long long)); }
10011 unsigned long ulongval () { return (long) (sizeof (long long)); }
10012 #include <stdio.h>
10013 #include <stdlib.h>
10015 main ()
10018 FILE *f = fopen ("conftest.val", "w");
10019 if (! f)
10020 exit (1);
10021 if (((long) (sizeof (long long))) < 0)
10023 long i = longval ();
10024 if (i != ((long) (sizeof (long long))))
10025 exit (1);
10026 fprintf (f, "%ld\n", i);
10028 else
10030 unsigned long i = ulongval ();
10031 if (i != ((long) (sizeof (long long))))
10032 exit (1);
10033 fprintf (f, "%lu\n", i);
10035 exit (ferror (f) || fclose (f) != 0);
10038 return 0;
10040 _ACEOF
10041 rm -f conftest$ac_exeext
10042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10043 (eval $ac_link) 2>&5
10044 ac_status=$?
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048 (eval $ac_try) 2>&5
10049 ac_status=$?
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; }; then
10052 ac_cv_sizeof_long_long=`cat conftest.val`
10053 else
10054 echo "$as_me: program exited with status $ac_status" >&5
10055 echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10058 ( exit $ac_status )
10059 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10060 See \`config.log' for more details." >&5
10061 echo "$as_me: error: cannot compute sizeof (long long), 77
10062 See \`config.log' for more details." >&2;}
10063 { (exit 1); exit 1; }; }
10065 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10068 rm -f conftest.val
10069 else
10070 ac_cv_sizeof_long_long=0
10073 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10074 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10075 cat >>confdefs.h <<_ACEOF
10076 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10077 _ACEOF
10082 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10083 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10084 if test "${ac_cv_type_uintptr_t+set}" = set; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6
10086 else
10087 cat >conftest.$ac_ext <<_ACEOF
10088 /* confdefs.h. */
10089 _ACEOF
10090 cat confdefs.h >>conftest.$ac_ext
10091 cat >>conftest.$ac_ext <<_ACEOF
10092 /* end confdefs.h. */
10093 #ifdef HAVE_STDINT_H
10094 #include <stdint.h>
10095 #endif
10098 main ()
10100 if ((uintptr_t *) 0)
10101 return 0;
10102 if (sizeof (uintptr_t))
10103 return 0;
10105 return 0;
10107 _ACEOF
10108 rm -f conftest.$ac_objext
10109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10110 (eval $ac_compile) 2>conftest.er1
10111 ac_status=$?
10112 grep -v '^ *+' conftest.er1 >conftest.err
10113 rm -f conftest.er1
10114 cat conftest.err >&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } &&
10117 { ac_try='test -z "$ac_c_werror_flag"
10118 || test ! -s conftest.err'
10119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120 (eval $ac_try) 2>&5
10121 ac_status=$?
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); }; } &&
10124 { ac_try='test -s conftest.$ac_objext'
10125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126 (eval $ac_try) 2>&5
10127 ac_status=$?
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }; }; then
10130 ac_cv_type_uintptr_t=yes
10131 else
10132 echo "$as_me: failed program was:" >&5
10133 sed 's/^/| /' conftest.$ac_ext >&5
10135 ac_cv_type_uintptr_t=no
10137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10139 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10140 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10141 if test $ac_cv_type_uintptr_t = yes; then
10143 cat >>confdefs.h <<_ACEOF
10144 #define HAVE_UINTPTR_T 1
10145 _ACEOF
10147 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10148 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10149 if test "${ac_cv_type_uintptr_t+set}" = set; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10151 else
10152 cat >conftest.$ac_ext <<_ACEOF
10153 /* confdefs.h. */
10154 _ACEOF
10155 cat confdefs.h >>conftest.$ac_ext
10156 cat >>conftest.$ac_ext <<_ACEOF
10157 /* end confdefs.h. */
10158 $ac_includes_default
10160 main ()
10162 if ((uintptr_t *) 0)
10163 return 0;
10164 if (sizeof (uintptr_t))
10165 return 0;
10167 return 0;
10169 _ACEOF
10170 rm -f conftest.$ac_objext
10171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10172 (eval $ac_compile) 2>conftest.er1
10173 ac_status=$?
10174 grep -v '^ *+' conftest.er1 >conftest.err
10175 rm -f conftest.er1
10176 cat conftest.err >&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } &&
10179 { ac_try='test -z "$ac_c_werror_flag"
10180 || test ! -s conftest.err'
10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10183 ac_status=$?
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; } &&
10186 { ac_try='test -s conftest.$ac_objext'
10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188 (eval $ac_try) 2>&5
10189 ac_status=$?
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; }; then
10192 ac_cv_type_uintptr_t=yes
10193 else
10194 echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.$ac_ext >&5
10197 ac_cv_type_uintptr_t=no
10199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10201 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10202 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10204 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10205 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10206 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10207 echo $ECHO_N "(cached) $ECHO_C" >&6
10208 else
10209 if test "$ac_cv_type_uintptr_t" = yes; then
10210 # The cast to unsigned long works around a bug in the HP C Compiler
10211 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10212 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10213 # This bug is HP SR number 8606223364.
10214 if test "$cross_compiling" = yes; then
10215 # Depending upon the size, compute the lo and hi bounds.
10216 cat >conftest.$ac_ext <<_ACEOF
10217 /* confdefs.h. */
10218 _ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10222 $ac_includes_default
10224 main ()
10226 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
10227 test_array [0] = 0
10230 return 0;
10232 _ACEOF
10233 rm -f conftest.$ac_objext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10235 (eval $ac_compile) 2>conftest.er1
10236 ac_status=$?
10237 grep -v '^ *+' conftest.er1 >conftest.err
10238 rm -f conftest.er1
10239 cat conftest.err >&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } &&
10242 { ac_try='test -z "$ac_c_werror_flag"
10243 || test ! -s conftest.err'
10244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10246 ac_status=$?
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; } &&
10249 { ac_try='test -s conftest.$ac_objext'
10250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251 (eval $ac_try) 2>&5
10252 ac_status=$?
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; }; then
10255 ac_lo=0 ac_mid=0
10256 while :; do
10257 cat >conftest.$ac_ext <<_ACEOF
10258 /* confdefs.h. */
10259 _ACEOF
10260 cat confdefs.h >>conftest.$ac_ext
10261 cat >>conftest.$ac_ext <<_ACEOF
10262 /* end confdefs.h. */
10263 $ac_includes_default
10265 main ()
10267 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10268 test_array [0] = 0
10271 return 0;
10273 _ACEOF
10274 rm -f conftest.$ac_objext
10275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10276 (eval $ac_compile) 2>conftest.er1
10277 ac_status=$?
10278 grep -v '^ *+' conftest.er1 >conftest.err
10279 rm -f conftest.er1
10280 cat conftest.err >&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } &&
10283 { ac_try='test -z "$ac_c_werror_flag"
10284 || test ! -s conftest.err'
10285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286 (eval $ac_try) 2>&5
10287 ac_status=$?
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); }; } &&
10290 { ac_try='test -s conftest.$ac_objext'
10291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10293 ac_status=$?
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; }; then
10296 ac_hi=$ac_mid; break
10297 else
10298 echo "$as_me: failed program was:" >&5
10299 sed 's/^/| /' conftest.$ac_ext >&5
10301 ac_lo=`expr $ac_mid + 1`
10302 if test $ac_lo -le $ac_mid; then
10303 ac_lo= ac_hi=
10304 break
10306 ac_mid=`expr 2 '*' $ac_mid + 1`
10308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10309 done
10310 else
10311 echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10314 cat >conftest.$ac_ext <<_ACEOF
10315 /* confdefs.h. */
10316 _ACEOF
10317 cat confdefs.h >>conftest.$ac_ext
10318 cat >>conftest.$ac_ext <<_ACEOF
10319 /* end confdefs.h. */
10320 $ac_includes_default
10322 main ()
10324 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10325 test_array [0] = 0
10328 return 0;
10330 _ACEOF
10331 rm -f conftest.$ac_objext
10332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10333 (eval $ac_compile) 2>conftest.er1
10334 ac_status=$?
10335 grep -v '^ *+' conftest.er1 >conftest.err
10336 rm -f conftest.er1
10337 cat conftest.err >&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } &&
10340 { ac_try='test -z "$ac_c_werror_flag"
10341 || test ! -s conftest.err'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10344 ac_status=$?
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; } &&
10347 { ac_try='test -s conftest.$ac_objext'
10348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349 (eval $ac_try) 2>&5
10350 ac_status=$?
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; }; then
10353 ac_hi=-1 ac_mid=-1
10354 while :; do
10355 cat >conftest.$ac_ext <<_ACEOF
10356 /* confdefs.h. */
10357 _ACEOF
10358 cat confdefs.h >>conftest.$ac_ext
10359 cat >>conftest.$ac_ext <<_ACEOF
10360 /* end confdefs.h. */
10361 $ac_includes_default
10363 main ()
10365 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10366 test_array [0] = 0
10369 return 0;
10371 _ACEOF
10372 rm -f conftest.$ac_objext
10373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10374 (eval $ac_compile) 2>conftest.er1
10375 ac_status=$?
10376 grep -v '^ *+' conftest.er1 >conftest.err
10377 rm -f conftest.er1
10378 cat conftest.err >&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } &&
10381 { ac_try='test -z "$ac_c_werror_flag"
10382 || test ! -s conftest.err'
10383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384 (eval $ac_try) 2>&5
10385 ac_status=$?
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); }; } &&
10388 { ac_try='test -s conftest.$ac_objext'
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10391 ac_status=$?
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; }; then
10394 ac_lo=$ac_mid; break
10395 else
10396 echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.$ac_ext >&5
10399 ac_hi=`expr '(' $ac_mid ')' - 1`
10400 if test $ac_mid -le $ac_hi; then
10401 ac_lo= ac_hi=
10402 break
10404 ac_mid=`expr 2 '*' $ac_mid`
10406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10407 done
10408 else
10409 echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10412 ac_lo= ac_hi=
10414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10417 # Binary search between lo and hi bounds.
10418 while test "x$ac_lo" != "x$ac_hi"; do
10419 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10420 cat >conftest.$ac_ext <<_ACEOF
10421 /* confdefs.h. */
10422 _ACEOF
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h. */
10426 $ac_includes_default
10428 main ()
10430 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10431 test_array [0] = 0
10434 return 0;
10436 _ACEOF
10437 rm -f conftest.$ac_objext
10438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10439 (eval $ac_compile) 2>conftest.er1
10440 ac_status=$?
10441 grep -v '^ *+' conftest.er1 >conftest.err
10442 rm -f conftest.er1
10443 cat conftest.err >&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); } &&
10446 { ac_try='test -z "$ac_c_werror_flag"
10447 || test ! -s conftest.err'
10448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10449 (eval $ac_try) 2>&5
10450 ac_status=$?
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; } &&
10453 { ac_try='test -s conftest.$ac_objext'
10454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455 (eval $ac_try) 2>&5
10456 ac_status=$?
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); }; }; then
10459 ac_hi=$ac_mid
10460 else
10461 echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.$ac_ext >&5
10464 ac_lo=`expr '(' $ac_mid ')' + 1`
10466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10467 done
10468 case $ac_lo in
10469 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
10470 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10471 See \`config.log' for more details." >&5
10472 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10473 See \`config.log' for more details." >&2;}
10474 { (exit 1); exit 1; }; } ;;
10475 esac
10476 else
10477 if test "$cross_compiling" = yes; then
10478 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10479 See \`config.log' for more details." >&5
10480 echo "$as_me: error: cannot run test program while cross compiling
10481 See \`config.log' for more details." >&2;}
10482 { (exit 1); exit 1; }; }
10483 else
10484 cat >conftest.$ac_ext <<_ACEOF
10485 /* confdefs.h. */
10486 _ACEOF
10487 cat confdefs.h >>conftest.$ac_ext
10488 cat >>conftest.$ac_ext <<_ACEOF
10489 /* end confdefs.h. */
10490 $ac_includes_default
10491 long longval () { return (long) (sizeof (uintptr_t)); }
10492 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
10493 #include <stdio.h>
10494 #include <stdlib.h>
10496 main ()
10499 FILE *f = fopen ("conftest.val", "w");
10500 if (! f)
10501 exit (1);
10502 if (((long) (sizeof (uintptr_t))) < 0)
10504 long i = longval ();
10505 if (i != ((long) (sizeof (uintptr_t))))
10506 exit (1);
10507 fprintf (f, "%ld\n", i);
10509 else
10511 unsigned long i = ulongval ();
10512 if (i != ((long) (sizeof (uintptr_t))))
10513 exit (1);
10514 fprintf (f, "%lu\n", i);
10516 exit (ferror (f) || fclose (f) != 0);
10519 return 0;
10521 _ACEOF
10522 rm -f conftest$ac_exeext
10523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10524 (eval $ac_link) 2>&5
10525 ac_status=$?
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529 (eval $ac_try) 2>&5
10530 ac_status=$?
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); }; }; then
10533 ac_cv_sizeof_uintptr_t=`cat conftest.val`
10534 else
10535 echo "$as_me: program exited with status $ac_status" >&5
10536 echo "$as_me: failed program was:" >&5
10537 sed 's/^/| /' conftest.$ac_ext >&5
10539 ( exit $ac_status )
10540 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10541 See \`config.log' for more details." >&5
10542 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10543 See \`config.log' for more details." >&2;}
10544 { (exit 1); exit 1; }; }
10546 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10549 rm -f conftest.val
10550 else
10551 ac_cv_sizeof_uintptr_t=0
10554 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
10555 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
10556 cat >>confdefs.h <<_ACEOF
10557 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
10558 _ACEOF
10565 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
10566 echo "$as_me:$LINENO: checking size of off_t" >&5
10567 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
10568 if test "${ac_cv_sizeof_off_t+set}" = set; then
10569 echo $ECHO_N "(cached) $ECHO_C" >&6
10570 else
10571 if test "$cross_compiling" = yes; then
10572 ac_cv_sizeof_off_t=4
10573 else
10574 cat >conftest.$ac_ext <<_ACEOF
10575 /* confdefs.h. */
10576 _ACEOF
10577 cat confdefs.h >>conftest.$ac_ext
10578 cat >>conftest.$ac_ext <<_ACEOF
10579 /* end confdefs.h. */
10580 #include <stdio.h>
10581 #include <sys/types.h>
10582 main()
10584 FILE *f=fopen("conftestval", "w");
10585 if (!f) exit(1);
10586 fprintf(f, "%d\n", sizeof(off_t));
10587 exit(0);
10589 _ACEOF
10590 rm -f conftest$ac_exeext
10591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10592 (eval $ac_link) 2>&5
10593 ac_status=$?
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597 (eval $ac_try) 2>&5
10598 ac_status=$?
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; }; then
10601 ac_cv_sizeof_off_t=`cat conftestval`
10602 else
10603 echo "$as_me: program exited with status $ac_status" >&5
10604 echo "$as_me: failed program was:" >&5
10605 sed 's/^/| /' conftest.$ac_ext >&5
10607 ( exit $ac_status )
10608 ac_cv_sizeof_off_t=0
10610 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10615 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
10616 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
10618 cat >>confdefs.h <<_ACEOF
10619 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10620 _ACEOF
10623 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
10624 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
10625 if test "$have_long_long" = yes -a \
10626 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
10627 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
10629 cat >>confdefs.h <<\_ACEOF
10630 #define HAVE_LARGEFILE_SUPPORT 1
10631 _ACEOF
10633 echo "$as_me:$LINENO: result: yes" >&5
10634 echo "${ECHO_T}yes" >&6
10635 else
10636 echo "$as_me:$LINENO: result: no" >&5
10637 echo "${ECHO_T}no" >&6
10640 # AC_CHECK_SIZEOF() doesn't include <time.h>.
10641 echo "$as_me:$LINENO: checking size of time_t" >&5
10642 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
10643 if test "${ac_cv_sizeof_time_t+set}" = set; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10645 else
10646 if test "$cross_compiling" = yes; then
10647 ac_cv_sizeof_time_t=4
10648 else
10649 cat >conftest.$ac_ext <<_ACEOF
10650 /* confdefs.h. */
10651 _ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h. */
10655 #include <stdio.h>
10656 #include <time.h>
10657 main()
10659 FILE *f=fopen("conftestval", "w");
10660 if (!f) exit(1);
10661 fprintf(f, "%d\n", sizeof(time_t));
10662 exit(0);
10664 _ACEOF
10665 rm -f conftest$ac_exeext
10666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10667 (eval $ac_link) 2>&5
10668 ac_status=$?
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672 (eval $ac_try) 2>&5
10673 ac_status=$?
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); }; }; then
10676 ac_cv_sizeof_time_t=`cat conftestval`
10677 else
10678 echo "$as_me: program exited with status $ac_status" >&5
10679 echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10682 ( exit $ac_status )
10683 ac_cv_sizeof_time_t=0
10685 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10690 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10691 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10693 cat >>confdefs.h <<_ACEOF
10694 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10695 _ACEOF
10699 # if have pthread_t then define SIZEOF_PTHREAD_T
10700 ac_save_cc="$CC"
10701 if test "$ac_cv_kpthread" = "yes"
10702 then CC="$CC -Kpthread"
10703 elif test "$ac_cv_kthread" = "yes"
10704 then CC="$CC -Kthread"
10705 elif test "$ac_cv_pthread" = "yes"
10706 then CC="$CC -pthread"
10708 echo "$as_me:$LINENO: checking for pthread_t" >&5
10709 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10710 have_pthread_t=no
10711 cat >conftest.$ac_ext <<_ACEOF
10712 /* confdefs.h. */
10713 _ACEOF
10714 cat confdefs.h >>conftest.$ac_ext
10715 cat >>conftest.$ac_ext <<_ACEOF
10716 /* end confdefs.h. */
10717 #include <pthread.h>
10719 main ()
10721 pthread_t x; x = *(pthread_t*)0;
10723 return 0;
10725 _ACEOF
10726 rm -f conftest.$ac_objext
10727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10728 (eval $ac_compile) 2>conftest.er1
10729 ac_status=$?
10730 grep -v '^ *+' conftest.er1 >conftest.err
10731 rm -f conftest.er1
10732 cat conftest.err >&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } &&
10735 { ac_try='test -z "$ac_c_werror_flag"
10736 || test ! -s conftest.err'
10737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5
10739 ac_status=$?
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; } &&
10742 { ac_try='test -s conftest.$ac_objext'
10743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744 (eval $ac_try) 2>&5
10745 ac_status=$?
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); }; }; then
10748 have_pthread_t=yes
10749 else
10750 echo "$as_me: failed program was:" >&5
10751 sed 's/^/| /' conftest.$ac_ext >&5
10754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10755 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10756 echo "${ECHO_T}$have_pthread_t" >&6
10757 if test "$have_pthread_t" = yes ; then
10758 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10759 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10760 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10761 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
10763 else
10764 if test "$cross_compiling" = yes; then
10765 ac_cv_sizeof_pthread_t=4
10766 else
10767 cat >conftest.$ac_ext <<_ACEOF
10768 /* confdefs.h. */
10769 _ACEOF
10770 cat confdefs.h >>conftest.$ac_ext
10771 cat >>conftest.$ac_ext <<_ACEOF
10772 /* end confdefs.h. */
10773 #include <stdio.h>
10774 #include <pthread.h>
10775 main()
10777 FILE *f=fopen("conftestval", "w");
10778 if (!f) exit(1);
10779 fprintf(f, "%d\n", sizeof(pthread_t));
10780 exit(0);
10782 _ACEOF
10783 rm -f conftest$ac_exeext
10784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10785 (eval $ac_link) 2>&5
10786 ac_status=$?
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10791 ac_status=$?
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; }; then
10794 ac_cv_sizeof_pthread_t=`cat conftestval`
10795 else
10796 echo "$as_me: program exited with status $ac_status" >&5
10797 echo "$as_me: failed program was:" >&5
10798 sed 's/^/| /' conftest.$ac_ext >&5
10800 ( exit $ac_status )
10801 ac_cv_sizeof_pthread_t=0
10803 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10808 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10809 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10811 cat >>confdefs.h <<_ACEOF
10812 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10813 _ACEOF
10816 CC="$ac_save_cc"
10818 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10819 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10820 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10821 if test "${enable_toolbox_glue+set}" = set; then
10822 enableval="$enable_toolbox_glue"
10826 if test -z "$enable_toolbox_glue"
10827 then
10828 case $ac_sys_system/$ac_sys_release in
10829 Darwin/*)
10830 enable_toolbox_glue="yes";;
10832 enable_toolbox_glue="no";;
10833 esac
10835 case "$enable_toolbox_glue" in
10836 yes)
10837 extra_machdep_objs="Python/mactoolboxglue.o"
10838 extra_undefs="-u _PyMac_Error"
10840 cat >>confdefs.h <<\_ACEOF
10841 #define USE_TOOLBOX_OBJECT_GLUE 1
10842 _ACEOF
10846 extra_machdep_objs=""
10847 extra_undefs=""
10849 esac
10850 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10851 echo "${ECHO_T}$enable_toolbox_glue" >&6
10854 case $ac_sys_system/$ac_sys_release in
10855 Darwin/[01567]\..*)
10856 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
10858 Darwin/*)
10859 OTHER_LIBTOOL_OPT=""
10861 esac
10864 case $ac_sys_system/$ac_sys_release in
10865 Darwin/[01567]\..*)
10866 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
10867 if test "${enable_universalsdk}"; then
10869 else
10870 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
10872 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10873 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10874 Darwin/*)
10875 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10876 if test ${gcc_version} '<' 4.0
10877 then
10878 LIBTOOL_CRUFT="-lcc_dynamic"
10879 else
10880 LIBTOOL_CRUFT=""
10882 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
10883 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10884 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10885 esac
10887 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10888 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10889 if test "$enable_framework"
10890 then
10891 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
10892 # -F. is needed to allow linking to the framework while
10893 # in the build location.
10895 cat >>confdefs.h <<\_ACEOF
10896 #define WITH_NEXT_FRAMEWORK 1
10897 _ACEOF
10899 echo "$as_me:$LINENO: result: yes" >&5
10900 echo "${ECHO_T}yes" >&6
10901 else
10902 echo "$as_me:$LINENO: result: no" >&5
10903 echo "${ECHO_T}no" >&6
10906 echo "$as_me:$LINENO: checking for dyld" >&5
10907 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10908 case $ac_sys_system/$ac_sys_release in
10909 Darwin/*)
10911 cat >>confdefs.h <<\_ACEOF
10912 #define WITH_DYLD 1
10913 _ACEOF
10915 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10916 echo "${ECHO_T}always on for Darwin" >&6
10919 echo "$as_me:$LINENO: result: no" >&5
10920 echo "${ECHO_T}no" >&6
10922 esac
10924 # Set info about shared libraries.
10930 # SO is the extension of shared libraries `(including the dot!)
10931 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10932 echo "$as_me:$LINENO: checking SO" >&5
10933 echo $ECHO_N "checking SO... $ECHO_C" >&6
10934 if test -z "$SO"
10935 then
10936 case $ac_sys_system in
10937 hp*|HP*)
10938 case `uname -m` in
10939 ia64) SO=.so;;
10940 *) SO=.sl;;
10941 esac
10943 CYGWIN*) SO=.dll;;
10944 *) SO=.so;;
10945 esac
10946 else
10947 # this might also be a termcap variable, see #610332
10948 echo
10949 echo '====================================================================='
10950 echo '+ +'
10951 echo '+ WARNING: You have set SO in your environment. +'
10952 echo '+ Do you really mean to change the extension for shared libraries? +'
10953 echo '+ Continuing in 10 seconds to let you to ponder. +'
10954 echo '+ +'
10955 echo '====================================================================='
10956 sleep 10
10958 echo "$as_me:$LINENO: result: $SO" >&5
10959 echo "${ECHO_T}$SO" >&6
10961 cat >>confdefs.h <<_ACEOF
10962 #define SHLIB_EXT "$SO"
10963 _ACEOF
10965 # LDSHARED is the ld *command* used to create shared library
10966 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10967 # (Shared libraries in this instance are shared modules to be loaded into
10968 # Python, as opposed to building Python itself as a shared library.)
10969 echo "$as_me:$LINENO: checking LDSHARED" >&5
10970 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10971 if test -z "$LDSHARED"
10972 then
10973 case $ac_sys_system/$ac_sys_release in
10974 AIX*)
10975 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10976 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10978 BeOS*)
10979 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10980 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10982 IRIX/5*) LDSHARED="ld -shared";;
10983 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
10984 SunOS/5*)
10985 if test "$GCC" = "yes"
10986 then LDSHARED='$(CC) -shared'
10987 else LDSHARED='$(CC) -G';
10988 fi ;;
10989 hp*|HP*) LDSHARED="ld -b";;
10990 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
10991 Darwin/1.3*)
10992 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10993 if test "$enable_framework" ; then
10994 # Link against the framework. All externals should be defined.
10995 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10996 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10997 else
10998 # No framework. Ignore undefined symbols, assuming they come from Python
10999 LDSHARED="$LDSHARED -undefined suppress"
11000 fi ;;
11001 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
11002 LDSHARED='$(CC) $(LDFLAGS) -bundle'
11003 if test "$enable_framework" ; then
11004 # Link against the framework. All externals should be defined.
11005 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11006 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11007 else
11008 # No framework, use the Python app as bundle-loader
11009 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
11010 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
11011 fi ;;
11012 Darwin/*)
11013 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
11014 # This allows an extension to be used in any Python
11015 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
11016 if test ${cur_target} '>' 10.2; then
11017 cur_target=10.3
11019 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
11020 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
11021 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
11022 then
11023 if test "${enable_universalsdk}"; then
11024 LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
11026 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
11027 BLDSHARED="$LDSHARED"
11028 else
11029 LDSHARED='$(CC) $(LDFLAGS) -bundle'
11030 if test "$enable_framework" ; then
11031 # Link against the framework. All externals should be defined.
11032 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11033 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11034 else
11035 # No framework, use the Python app as bundle-loader
11036 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
11037 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
11041 Linux*|GNU*) LDSHARED='$(CC) -shared';;
11042 BSD/OS*/4*) LDSHARED="gcc -shared";;
11043 FreeBSD*)
11044 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11045 then
11046 LDSHARED="$CC -shared ${LDFLAGS}"
11047 else
11048 LDSHARED="ld -Bshareable ${LDFLAGS}"
11049 fi;;
11050 OpenBSD*)
11051 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11052 then
11053 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11054 else
11055 case `uname -r` in
11056 [01].* | 2.[0-7] | 2.[0-7].*)
11057 LDSHARED="ld -Bshareable ${LDFLAGS}"
11060 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11062 esac
11063 fi;;
11064 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
11065 OpenUNIX*|UnixWare*)
11066 if test "$GCC" = "yes"
11067 then LDSHARED='$(CC) -shared'
11068 else LDSHARED='$(CC) -G'
11069 fi;;
11070 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
11071 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11072 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
11073 atheos*) LDSHARED="gcc -shared";;
11074 *) LDSHARED="ld";;
11075 esac
11077 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11078 echo "${ECHO_T}$LDSHARED" >&6
11079 BLDSHARED=${BLDSHARED-$LDSHARED}
11080 # CCSHARED are the C *flags* used to create objects to go into a shared
11081 # library (module) -- this is only needed for a few systems
11082 echo "$as_me:$LINENO: checking CCSHARED" >&5
11083 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11084 if test -z "$CCSHARED"
11085 then
11086 case $ac_sys_system/$ac_sys_release in
11087 SunOS*) if test "$GCC" = yes;
11088 then CCSHARED="-fPIC";
11089 else CCSHARED="-xcode=pic32";
11090 fi;;
11091 hp*|HP*) if test "$GCC" = yes;
11092 then CCSHARED="-fPIC";
11093 else CCSHARED="+z";
11094 fi;;
11095 Linux*|GNU*) CCSHARED="-fPIC";;
11096 BSD/OS*/4*) CCSHARED="-fpic";;
11097 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
11098 OpenUNIX*|UnixWare*)
11099 if test "$GCC" = "yes"
11100 then CCSHARED="-fPIC"
11101 else CCSHARED="-KPIC"
11102 fi;;
11103 SCO_SV*)
11104 if test "$GCC" = "yes"
11105 then CCSHARED="-fPIC"
11106 else CCSHARED="-Kpic -belf"
11107 fi;;
11108 Monterey*) CCSHARED="-G";;
11109 IRIX*/6*) case $CC in
11110 *gcc*) CCSHARED="-shared";;
11111 *) CCSHARED="";;
11112 esac;;
11113 atheos*) CCSHARED="-fPIC";;
11114 esac
11116 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11117 echo "${ECHO_T}$CCSHARED" >&6
11118 # LINKFORSHARED are the flags passed to the $(CC) command that links
11119 # the python executable -- this is only needed for a few systems
11120 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11121 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11122 if test -z "$LINKFORSHARED"
11123 then
11124 case $ac_sys_system/$ac_sys_release in
11125 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
11126 hp*|HP*)
11127 LINKFORSHARED="-Wl,-E -Wl,+s";;
11128 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11129 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
11130 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
11131 # -u libsys_s pulls in all symbols in libsys
11132 Darwin/*)
11133 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11134 # which is
11135 # not used by the core itself but which needs to be in the core so
11136 # that dynamically loaded extension modules have access to it.
11137 # -prebind is no longer used, because it actually seems to give a
11138 # slowdown in stead of a speedup, maybe due to the large number of
11139 # dynamic loads Python does.
11141 LINKFORSHARED="$extra_undefs"
11142 if test "$enable_framework"
11143 then
11144 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11146 LINKFORSHARED="$LINKFORSHARED";;
11147 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
11148 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
11149 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
11150 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
11151 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11152 then
11153 LINKFORSHARED="-Wl,--export-dynamic"
11154 fi;;
11155 SunOS/5*) case $CC in
11156 *gcc*)
11157 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
11158 then
11159 LINKFORSHARED="-Xlinker --export-dynamic"
11160 fi;;
11161 esac;;
11162 CYGWIN*)
11163 if test $enable_shared = "no"
11164 then
11165 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
11166 fi;;
11167 esac
11169 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11170 echo "${ECHO_T}$LINKFORSHARED" >&6
11173 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11174 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11175 if test ! "$LIBRARY" = "$LDLIBRARY"
11176 then
11177 case $ac_sys_system in
11178 CYGWIN*)
11179 # Cygwin needs CCSHARED when building extension DLLs
11180 # but not when building the interpreter DLL.
11181 CFLAGSFORSHARED='';;
11183 CFLAGSFORSHARED='$(CCSHARED)'
11184 esac
11186 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11187 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11189 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11190 # library (with --enable-shared).
11191 # For platforms on which shared libraries are not allowed to have unresolved
11192 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11193 # if it is not required, since it creates a dependency of the shared library
11194 # to LIBS. This, in turn, means that applications linking the shared libpython
11195 # don't need to link LIBS explicitly. The default should be only changed
11196 # on systems where this approach causes problems.
11198 echo "$as_me:$LINENO: checking SHLIBS" >&5
11199 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11200 case "$ac_sys_system" in
11202 SHLIBS='$(LIBS)';;
11203 esac
11204 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11205 echo "${ECHO_T}$SHLIBS" >&6
11208 # checks for libraries
11210 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11211 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11212 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11213 echo $ECHO_N "(cached) $ECHO_C" >&6
11214 else
11215 ac_check_lib_save_LIBS=$LIBS
11216 LIBS="-ldl $LIBS"
11217 cat >conftest.$ac_ext <<_ACEOF
11218 /* confdefs.h. */
11219 _ACEOF
11220 cat confdefs.h >>conftest.$ac_ext
11221 cat >>conftest.$ac_ext <<_ACEOF
11222 /* end confdefs.h. */
11224 /* Override any gcc2 internal prototype to avoid an error. */
11225 #ifdef __cplusplus
11226 extern "C"
11227 #endif
11228 /* We use char because int might match the return type of a gcc2
11229 builtin and then its argument prototype would still apply. */
11230 char dlopen ();
11232 main ()
11234 dlopen ();
11236 return 0;
11238 _ACEOF
11239 rm -f conftest.$ac_objext conftest$ac_exeext
11240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11241 (eval $ac_link) 2>conftest.er1
11242 ac_status=$?
11243 grep -v '^ *+' conftest.er1 >conftest.err
11244 rm -f conftest.er1
11245 cat conftest.err >&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); } &&
11248 { ac_try='test -z "$ac_c_werror_flag"
11249 || test ! -s conftest.err'
11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251 (eval $ac_try) 2>&5
11252 ac_status=$?
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; } &&
11255 { ac_try='test -s conftest$ac_exeext'
11256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257 (eval $ac_try) 2>&5
11258 ac_status=$?
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }; }; then
11261 ac_cv_lib_dl_dlopen=yes
11262 else
11263 echo "$as_me: failed program was:" >&5
11264 sed 's/^/| /' conftest.$ac_ext >&5
11266 ac_cv_lib_dl_dlopen=no
11268 rm -f conftest.err conftest.$ac_objext \
11269 conftest$ac_exeext conftest.$ac_ext
11270 LIBS=$ac_check_lib_save_LIBS
11272 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11273 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11274 if test $ac_cv_lib_dl_dlopen = yes; then
11275 cat >>confdefs.h <<_ACEOF
11276 #define HAVE_LIBDL 1
11277 _ACEOF
11279 LIBS="-ldl $LIBS"
11282 # Dynamic linking for SunOS/Solaris and SYSV
11284 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11285 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11286 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
11288 else
11289 ac_check_lib_save_LIBS=$LIBS
11290 LIBS="-ldld $LIBS"
11291 cat >conftest.$ac_ext <<_ACEOF
11292 /* confdefs.h. */
11293 _ACEOF
11294 cat confdefs.h >>conftest.$ac_ext
11295 cat >>conftest.$ac_ext <<_ACEOF
11296 /* end confdefs.h. */
11298 /* Override any gcc2 internal prototype to avoid an error. */
11299 #ifdef __cplusplus
11300 extern "C"
11301 #endif
11302 /* We use char because int might match the return type of a gcc2
11303 builtin and then its argument prototype would still apply. */
11304 char shl_load ();
11306 main ()
11308 shl_load ();
11310 return 0;
11312 _ACEOF
11313 rm -f conftest.$ac_objext conftest$ac_exeext
11314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11315 (eval $ac_link) 2>conftest.er1
11316 ac_status=$?
11317 grep -v '^ *+' conftest.er1 >conftest.err
11318 rm -f conftest.er1
11319 cat conftest.err >&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } &&
11322 { ac_try='test -z "$ac_c_werror_flag"
11323 || test ! -s conftest.err'
11324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11326 ac_status=$?
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; } &&
11329 { ac_try='test -s conftest$ac_exeext'
11330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11331 (eval $ac_try) 2>&5
11332 ac_status=$?
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; }; then
11335 ac_cv_lib_dld_shl_load=yes
11336 else
11337 echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11340 ac_cv_lib_dld_shl_load=no
11342 rm -f conftest.err conftest.$ac_objext \
11343 conftest$ac_exeext conftest.$ac_ext
11344 LIBS=$ac_check_lib_save_LIBS
11346 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11347 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11348 if test $ac_cv_lib_dld_shl_load = yes; then
11349 cat >>confdefs.h <<_ACEOF
11350 #define HAVE_LIBDLD 1
11351 _ACEOF
11353 LIBS="-ldld $LIBS"
11356 # Dynamic linking for HP-UX
11358 # only check for sem_ini if thread support is requested
11359 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11360 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11361 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11362 if test "${ac_cv_search_sem_init+set}" = set; then
11363 echo $ECHO_N "(cached) $ECHO_C" >&6
11364 else
11365 ac_func_search_save_LIBS=$LIBS
11366 ac_cv_search_sem_init=no
11367 cat >conftest.$ac_ext <<_ACEOF
11368 /* confdefs.h. */
11369 _ACEOF
11370 cat confdefs.h >>conftest.$ac_ext
11371 cat >>conftest.$ac_ext <<_ACEOF
11372 /* end confdefs.h. */
11374 /* Override any gcc2 internal prototype to avoid an error. */
11375 #ifdef __cplusplus
11376 extern "C"
11377 #endif
11378 /* We use char because int might match the return type of a gcc2
11379 builtin and then its argument prototype would still apply. */
11380 char sem_init ();
11382 main ()
11384 sem_init ();
11386 return 0;
11388 _ACEOF
11389 rm -f conftest.$ac_objext conftest$ac_exeext
11390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11391 (eval $ac_link) 2>conftest.er1
11392 ac_status=$?
11393 grep -v '^ *+' conftest.er1 >conftest.err
11394 rm -f conftest.er1
11395 cat conftest.err >&5
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); } &&
11398 { ac_try='test -z "$ac_c_werror_flag"
11399 || test ! -s conftest.err'
11400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11401 (eval $ac_try) 2>&5
11402 ac_status=$?
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; } &&
11405 { ac_try='test -s conftest$ac_exeext'
11406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11407 (eval $ac_try) 2>&5
11408 ac_status=$?
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); }; }; then
11411 ac_cv_search_sem_init="none required"
11412 else
11413 echo "$as_me: failed program was:" >&5
11414 sed 's/^/| /' conftest.$ac_ext >&5
11417 rm -f conftest.err conftest.$ac_objext \
11418 conftest$ac_exeext conftest.$ac_ext
11419 if test "$ac_cv_search_sem_init" = no; then
11420 for ac_lib in pthread rt posix4; do
11421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11422 cat >conftest.$ac_ext <<_ACEOF
11423 /* confdefs.h. */
11424 _ACEOF
11425 cat confdefs.h >>conftest.$ac_ext
11426 cat >>conftest.$ac_ext <<_ACEOF
11427 /* end confdefs.h. */
11429 /* Override any gcc2 internal prototype to avoid an error. */
11430 #ifdef __cplusplus
11431 extern "C"
11432 #endif
11433 /* We use char because int might match the return type of a gcc2
11434 builtin and then its argument prototype would still apply. */
11435 char sem_init ();
11437 main ()
11439 sem_init ();
11441 return 0;
11443 _ACEOF
11444 rm -f conftest.$ac_objext conftest$ac_exeext
11445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11446 (eval $ac_link) 2>conftest.er1
11447 ac_status=$?
11448 grep -v '^ *+' conftest.er1 >conftest.err
11449 rm -f conftest.er1
11450 cat conftest.err >&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); } &&
11453 { ac_try='test -z "$ac_c_werror_flag"
11454 || test ! -s conftest.err'
11455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11456 (eval $ac_try) 2>&5
11457 ac_status=$?
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); }; } &&
11460 { ac_try='test -s conftest$ac_exeext'
11461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11462 (eval $ac_try) 2>&5
11463 ac_status=$?
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; }; then
11466 ac_cv_search_sem_init="-l$ac_lib"
11467 break
11468 else
11469 echo "$as_me: failed program was:" >&5
11470 sed 's/^/| /' conftest.$ac_ext >&5
11473 rm -f conftest.err conftest.$ac_objext \
11474 conftest$ac_exeext conftest.$ac_ext
11475 done
11477 LIBS=$ac_func_search_save_LIBS
11479 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
11480 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
11481 if test "$ac_cv_search_sem_init" != no; then
11482 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
11485 # 'Real Time' functions on Solaris
11486 # posix4 on Solaris 2.6
11487 # pthread (first!) on Linux
11490 # check if we need libintl for locale functions
11491 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
11492 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
11493 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
11495 else
11496 ac_check_lib_save_LIBS=$LIBS
11497 LIBS="-lintl $LIBS"
11498 cat >conftest.$ac_ext <<_ACEOF
11499 /* confdefs.h. */
11500 _ACEOF
11501 cat confdefs.h >>conftest.$ac_ext
11502 cat >>conftest.$ac_ext <<_ACEOF
11503 /* end confdefs.h. */
11505 /* Override any gcc2 internal prototype to avoid an error. */
11506 #ifdef __cplusplus
11507 extern "C"
11508 #endif
11509 /* We use char because int might match the return type of a gcc2
11510 builtin and then its argument prototype would still apply. */
11511 char textdomain ();
11513 main ()
11515 textdomain ();
11517 return 0;
11519 _ACEOF
11520 rm -f conftest.$ac_objext conftest$ac_exeext
11521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11522 (eval $ac_link) 2>conftest.er1
11523 ac_status=$?
11524 grep -v '^ *+' conftest.er1 >conftest.err
11525 rm -f conftest.er1
11526 cat conftest.err >&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } &&
11529 { ac_try='test -z "$ac_c_werror_flag"
11530 || test ! -s conftest.err'
11531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532 (eval $ac_try) 2>&5
11533 ac_status=$?
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); }; } &&
11536 { ac_try='test -s conftest$ac_exeext'
11537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11538 (eval $ac_try) 2>&5
11539 ac_status=$?
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; }; then
11542 ac_cv_lib_intl_textdomain=yes
11543 else
11544 echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.$ac_ext >&5
11547 ac_cv_lib_intl_textdomain=no
11549 rm -f conftest.err conftest.$ac_objext \
11550 conftest$ac_exeext conftest.$ac_ext
11551 LIBS=$ac_check_lib_save_LIBS
11553 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
11554 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
11555 if test $ac_cv_lib_intl_textdomain = yes; then
11557 cat >>confdefs.h <<\_ACEOF
11558 #define WITH_LIBINTL 1
11559 _ACEOF
11564 # checks for system dependent C++ extensions support
11565 case "$ac_sys_system" in
11566 AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
11567 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
11568 cat >conftest.$ac_ext <<_ACEOF
11569 /* confdefs.h. */
11570 _ACEOF
11571 cat confdefs.h >>conftest.$ac_ext
11572 cat >>conftest.$ac_ext <<_ACEOF
11573 /* end confdefs.h. */
11574 #include "/usr/lpp/xlC/include/load.h"
11576 main ()
11578 loadAndInit("", 0, "")
11580 return 0;
11582 _ACEOF
11583 rm -f conftest.$ac_objext conftest$ac_exeext
11584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11585 (eval $ac_link) 2>conftest.er1
11586 ac_status=$?
11587 grep -v '^ *+' conftest.er1 >conftest.err
11588 rm -f conftest.er1
11589 cat conftest.err >&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); } &&
11592 { ac_try='test -z "$ac_c_werror_flag"
11593 || test ! -s conftest.err'
11594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11595 (eval $ac_try) 2>&5
11596 ac_status=$?
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); }; } &&
11599 { ac_try='test -s conftest$ac_exeext'
11600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601 (eval $ac_try) 2>&5
11602 ac_status=$?
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); }; }; then
11606 cat >>confdefs.h <<\_ACEOF
11607 #define AIX_GENUINE_CPLUSPLUS 1
11608 _ACEOF
11610 echo "$as_me:$LINENO: result: yes" >&5
11611 echo "${ECHO_T}yes" >&6
11612 else
11613 echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11616 echo "$as_me:$LINENO: result: no" >&5
11617 echo "${ECHO_T}no" >&6
11619 rm -f conftest.err conftest.$ac_objext \
11620 conftest$ac_exeext conftest.$ac_ext;;
11621 *) ;;
11622 esac
11624 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
11625 # BeOS' sockets are stashed in libnet.
11626 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
11627 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
11628 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
11630 else
11631 ac_check_lib_save_LIBS=$LIBS
11632 LIBS="-lnsl $LIBS"
11633 cat >conftest.$ac_ext <<_ACEOF
11634 /* confdefs.h. */
11635 _ACEOF
11636 cat confdefs.h >>conftest.$ac_ext
11637 cat >>conftest.$ac_ext <<_ACEOF
11638 /* end confdefs.h. */
11640 /* Override any gcc2 internal prototype to avoid an error. */
11641 #ifdef __cplusplus
11642 extern "C"
11643 #endif
11644 /* We use char because int might match the return type of a gcc2
11645 builtin and then its argument prototype would still apply. */
11646 char t_open ();
11648 main ()
11650 t_open ();
11652 return 0;
11654 _ACEOF
11655 rm -f conftest.$ac_objext conftest$ac_exeext
11656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11657 (eval $ac_link) 2>conftest.er1
11658 ac_status=$?
11659 grep -v '^ *+' conftest.er1 >conftest.err
11660 rm -f conftest.er1
11661 cat conftest.err >&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); } &&
11664 { ac_try='test -z "$ac_c_werror_flag"
11665 || test ! -s conftest.err'
11666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11667 (eval $ac_try) 2>&5
11668 ac_status=$?
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }; } &&
11671 { ac_try='test -s conftest$ac_exeext'
11672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11673 (eval $ac_try) 2>&5
11674 ac_status=$?
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); }; }; then
11677 ac_cv_lib_nsl_t_open=yes
11678 else
11679 echo "$as_me: failed program was:" >&5
11680 sed 's/^/| /' conftest.$ac_ext >&5
11682 ac_cv_lib_nsl_t_open=no
11684 rm -f conftest.err conftest.$ac_objext \
11685 conftest$ac_exeext conftest.$ac_ext
11686 LIBS=$ac_check_lib_save_LIBS
11688 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11689 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11690 if test $ac_cv_lib_nsl_t_open = yes; then
11691 LIBS="-lnsl $LIBS"
11693 # SVR4
11694 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11695 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11696 if test "${ac_cv_lib_socket_socket+set}" = set; then
11697 echo $ECHO_N "(cached) $ECHO_C" >&6
11698 else
11699 ac_check_lib_save_LIBS=$LIBS
11700 LIBS="-lsocket $LIBS $LIBS"
11701 cat >conftest.$ac_ext <<_ACEOF
11702 /* confdefs.h. */
11703 _ACEOF
11704 cat confdefs.h >>conftest.$ac_ext
11705 cat >>conftest.$ac_ext <<_ACEOF
11706 /* end confdefs.h. */
11708 /* Override any gcc2 internal prototype to avoid an error. */
11709 #ifdef __cplusplus
11710 extern "C"
11711 #endif
11712 /* We use char because int might match the return type of a gcc2
11713 builtin and then its argument prototype would still apply. */
11714 char socket ();
11716 main ()
11718 socket ();
11720 return 0;
11722 _ACEOF
11723 rm -f conftest.$ac_objext conftest$ac_exeext
11724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11725 (eval $ac_link) 2>conftest.er1
11726 ac_status=$?
11727 grep -v '^ *+' conftest.er1 >conftest.err
11728 rm -f conftest.er1
11729 cat conftest.err >&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } &&
11732 { ac_try='test -z "$ac_c_werror_flag"
11733 || test ! -s conftest.err'
11734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11735 (eval $ac_try) 2>&5
11736 ac_status=$?
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); }; } &&
11739 { ac_try='test -s conftest$ac_exeext'
11740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11741 (eval $ac_try) 2>&5
11742 ac_status=$?
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; }; then
11745 ac_cv_lib_socket_socket=yes
11746 else
11747 echo "$as_me: failed program was:" >&5
11748 sed 's/^/| /' conftest.$ac_ext >&5
11750 ac_cv_lib_socket_socket=no
11752 rm -f conftest.err conftest.$ac_objext \
11753 conftest$ac_exeext conftest.$ac_ext
11754 LIBS=$ac_check_lib_save_LIBS
11756 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11757 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11758 if test $ac_cv_lib_socket_socket = yes; then
11759 LIBS="-lsocket $LIBS"
11761 # SVR4 sockets
11763 case "$ac_sys_system" in
11764 BeOS*)
11765 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11766 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11767 if test "${ac_cv_lib_net_socket+set}" = set; then
11768 echo $ECHO_N "(cached) $ECHO_C" >&6
11769 else
11770 ac_check_lib_save_LIBS=$LIBS
11771 LIBS="-lnet $LIBS $LIBS"
11772 cat >conftest.$ac_ext <<_ACEOF
11773 /* confdefs.h. */
11774 _ACEOF
11775 cat confdefs.h >>conftest.$ac_ext
11776 cat >>conftest.$ac_ext <<_ACEOF
11777 /* end confdefs.h. */
11779 /* Override any gcc2 internal prototype to avoid an error. */
11780 #ifdef __cplusplus
11781 extern "C"
11782 #endif
11783 /* We use char because int might match the return type of a gcc2
11784 builtin and then its argument prototype would still apply. */
11785 char socket ();
11787 main ()
11789 socket ();
11791 return 0;
11793 _ACEOF
11794 rm -f conftest.$ac_objext conftest$ac_exeext
11795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11796 (eval $ac_link) 2>conftest.er1
11797 ac_status=$?
11798 grep -v '^ *+' conftest.er1 >conftest.err
11799 rm -f conftest.er1
11800 cat conftest.err >&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); } &&
11803 { ac_try='test -z "$ac_c_werror_flag"
11804 || test ! -s conftest.err'
11805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11806 (eval $ac_try) 2>&5
11807 ac_status=$?
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); }; } &&
11810 { ac_try='test -s conftest$ac_exeext'
11811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11812 (eval $ac_try) 2>&5
11813 ac_status=$?
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; }; then
11816 ac_cv_lib_net_socket=yes
11817 else
11818 echo "$as_me: failed program was:" >&5
11819 sed 's/^/| /' conftest.$ac_ext >&5
11821 ac_cv_lib_net_socket=no
11823 rm -f conftest.err conftest.$ac_objext \
11824 conftest$ac_exeext conftest.$ac_ext
11825 LIBS=$ac_check_lib_save_LIBS
11827 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11828 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11829 if test $ac_cv_lib_net_socket = yes; then
11830 LIBS="-lnet $LIBS"
11832 # BeOS
11834 esac
11836 echo "$as_me:$LINENO: checking for --with-libs" >&5
11837 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11839 # Check whether --with-libs or --without-libs was given.
11840 if test "${with_libs+set}" = set; then
11841 withval="$with_libs"
11843 echo "$as_me:$LINENO: result: $withval" >&5
11844 echo "${ECHO_T}$withval" >&6
11845 LIBS="$withval $LIBS"
11847 else
11848 echo "$as_me:$LINENO: result: no" >&5
11849 echo "${ECHO_T}no" >&6
11852 # Check for use of the system libffi library
11853 echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
11854 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6
11856 # Check whether --with-system_ffi or --without-system_ffi was given.
11857 if test "${with_system_ffi+set}" = set; then
11858 withval="$with_system_ffi"
11862 if test -z "$with_system_ffi"
11863 then with_system_ffi="no"
11865 echo "$as_me:$LINENO: result: $with_system_ffi" >&5
11866 echo "${ECHO_T}$with_system_ffi" >&6
11868 # Determine if signalmodule should be used.
11871 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11872 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11874 # Check whether --with-signal-module or --without-signal-module was given.
11875 if test "${with_signal_module+set}" = set; then
11876 withval="$with_signal_module"
11880 if test -z "$with_signal_module"
11881 then with_signal_module="yes"
11883 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11884 echo "${ECHO_T}$with_signal_module" >&6
11886 if test "${with_signal_module}" = "yes"; then
11887 USE_SIGNAL_MODULE=""
11888 SIGNAL_OBJS=""
11889 else
11890 USE_SIGNAL_MODULE="#"
11891 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
11894 # This is used to generate Setup.config
11896 USE_THREAD_MODULE=""
11898 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11899 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11902 # Check whether --with-dec-threads or --without-dec-threads was given.
11903 if test "${with_dec_threads+set}" = set; then
11904 withval="$with_dec_threads"
11906 echo "$as_me:$LINENO: result: $withval" >&5
11907 echo "${ECHO_T}$withval" >&6
11908 LDLAST=-threads
11909 if test "${with_thread+set}" != set; then
11910 with_thread="$withval";
11912 else
11913 echo "$as_me:$LINENO: result: no" >&5
11914 echo "${ECHO_T}no" >&6
11917 # Templates for things AC_DEFINEd more than once.
11918 # For a single AC_DEFINE, no template is needed.
11926 echo "$as_me:$LINENO: checking for --with-threads" >&5
11927 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11929 # Check whether --with-threads or --without-threads was given.
11930 if test "${with_threads+set}" = set; then
11931 withval="$with_threads"
11935 # --with-thread is deprecated, but check for it anyway
11937 # Check whether --with-thread or --without-thread was given.
11938 if test "${with_thread+set}" = set; then
11939 withval="$with_thread"
11940 with_threads=$with_thread
11943 if test -z "$with_threads"
11944 then with_threads="yes"
11946 echo "$as_me:$LINENO: result: $with_threads" >&5
11947 echo "${ECHO_T}$with_threads" >&6
11950 if test "$with_threads" = "no"
11951 then
11952 USE_THREAD_MODULE="#"
11953 elif test "$ac_cv_pthread_is_default" = yes
11954 then
11955 cat >>confdefs.h <<\_ACEOF
11956 #define WITH_THREAD 1
11957 _ACEOF
11959 # Defining _REENTRANT on system with POSIX threads should not hurt.
11960 cat >>confdefs.h <<\_ACEOF
11961 #define _REENTRANT 1
11962 _ACEOF
11964 posix_threads=yes
11965 THREADOBJ="Python/thread.o"
11966 elif test "$ac_cv_kpthread" = "yes"
11967 then
11968 CC="$CC -Kpthread"
11969 if test "$ac_cv_cxx_thread" = "yes"; then
11970 CXX="$CXX -Kpthread"
11972 cat >>confdefs.h <<\_ACEOF
11973 #define WITH_THREAD 1
11974 _ACEOF
11976 posix_threads=yes
11977 THREADOBJ="Python/thread.o"
11978 elif test "$ac_cv_kthread" = "yes"
11979 then
11980 CC="$CC -Kthread"
11981 if test "$ac_cv_cxx_thread" = "yes"; then
11982 CXX="$CXX -Kthread"
11984 cat >>confdefs.h <<\_ACEOF
11985 #define WITH_THREAD 1
11986 _ACEOF
11988 posix_threads=yes
11989 THREADOBJ="Python/thread.o"
11990 elif test "$ac_cv_pthread" = "yes"
11991 then
11992 CC="$CC -pthread"
11993 if test "$ac_cv_cxx_thread" = "yes"; then
11994 CXX="$CXX -pthread"
11996 cat >>confdefs.h <<\_ACEOF
11997 #define WITH_THREAD 1
11998 _ACEOF
12000 posix_threads=yes
12001 THREADOBJ="Python/thread.o"
12002 else
12003 if test ! -z "$with_threads" -a -d "$with_threads"
12004 then LDFLAGS="$LDFLAGS -L$with_threads"
12006 if test ! -z "$withval" -a -d "$withval"
12007 then LDFLAGS="$LDFLAGS -L$withval"
12010 # According to the POSIX spec, a pthreads implementation must
12011 # define _POSIX_THREADS in unistd.h. Some apparently don't
12012 # (e.g. gnu pth with pthread emulation)
12013 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
12014 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
12015 cat >conftest.$ac_ext <<_ACEOF
12016 /* confdefs.h. */
12017 _ACEOF
12018 cat confdefs.h >>conftest.$ac_ext
12019 cat >>conftest.$ac_ext <<_ACEOF
12020 /* end confdefs.h. */
12022 #include <unistd.h>
12023 #ifdef _POSIX_THREADS
12025 #endif
12027 _ACEOF
12028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12029 $EGREP "yes" >/dev/null 2>&1; then
12030 unistd_defines_pthreads=yes
12031 else
12032 unistd_defines_pthreads=no
12034 rm -f conftest*
12036 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
12037 echo "${ECHO_T}$unistd_defines_pthreads" >&6
12039 cat >>confdefs.h <<\_ACEOF
12040 #define _REENTRANT 1
12041 _ACEOF
12043 if test "${ac_cv_header_cthreads_h+set}" = set; then
12044 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12045 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12046 if test "${ac_cv_header_cthreads_h+set}" = set; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12050 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12051 else
12052 # Is the header compilable?
12053 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
12054 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
12055 cat >conftest.$ac_ext <<_ACEOF
12056 /* confdefs.h. */
12057 _ACEOF
12058 cat confdefs.h >>conftest.$ac_ext
12059 cat >>conftest.$ac_ext <<_ACEOF
12060 /* end confdefs.h. */
12061 $ac_includes_default
12062 #include <cthreads.h>
12063 _ACEOF
12064 rm -f conftest.$ac_objext
12065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12066 (eval $ac_compile) 2>conftest.er1
12067 ac_status=$?
12068 grep -v '^ *+' conftest.er1 >conftest.err
12069 rm -f conftest.er1
12070 cat conftest.err >&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); } &&
12073 { ac_try='test -z "$ac_c_werror_flag"
12074 || test ! -s conftest.err'
12075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12076 (eval $ac_try) 2>&5
12077 ac_status=$?
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); }; } &&
12080 { ac_try='test -s conftest.$ac_objext'
12081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082 (eval $ac_try) 2>&5
12083 ac_status=$?
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; }; then
12086 ac_header_compiler=yes
12087 else
12088 echo "$as_me: failed program was:" >&5
12089 sed 's/^/| /' conftest.$ac_ext >&5
12091 ac_header_compiler=no
12093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12094 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12095 echo "${ECHO_T}$ac_header_compiler" >&6
12097 # Is the header present?
12098 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12099 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12100 cat >conftest.$ac_ext <<_ACEOF
12101 /* confdefs.h. */
12102 _ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h. */
12106 #include <cthreads.h>
12107 _ACEOF
12108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12110 ac_status=$?
12111 grep -v '^ *+' conftest.er1 >conftest.err
12112 rm -f conftest.er1
12113 cat conftest.err >&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); } >/dev/null; then
12116 if test -s conftest.err; then
12117 ac_cpp_err=$ac_c_preproc_warn_flag
12118 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12119 else
12120 ac_cpp_err=
12122 else
12123 ac_cpp_err=yes
12125 if test -z "$ac_cpp_err"; then
12126 ac_header_preproc=yes
12127 else
12128 echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12131 ac_header_preproc=no
12133 rm -f conftest.err conftest.$ac_ext
12134 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12135 echo "${ECHO_T}$ac_header_preproc" >&6
12137 # So? What about this header?
12138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12139 yes:no: )
12140 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12141 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12142 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12143 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12144 ac_header_preproc=yes
12146 no:yes:* )
12147 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12148 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12149 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12150 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12151 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12152 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12153 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12154 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12155 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12156 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12157 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12158 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12160 cat <<\_ASBOX
12161 ## ------------------------------------------------ ##
12162 ## Report this to http://www.python.org/python-bugs ##
12163 ## ------------------------------------------------ ##
12164 _ASBOX
12166 sed "s/^/$as_me: WARNING: /" >&2
12168 esac
12169 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12170 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12171 if test "${ac_cv_header_cthreads_h+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12173 else
12174 ac_cv_header_cthreads_h=$ac_header_preproc
12176 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12177 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12180 if test $ac_cv_header_cthreads_h = yes; then
12181 cat >>confdefs.h <<\_ACEOF
12182 #define WITH_THREAD 1
12183 _ACEOF
12185 cat >>confdefs.h <<\_ACEOF
12186 #define C_THREADS 1
12187 _ACEOF
12190 cat >>confdefs.h <<\_ACEOF
12191 #define HURD_C_THREADS 1
12192 _ACEOF
12194 LIBS="$LIBS -lthreads"
12195 THREADOBJ="Python/thread.o"
12196 else
12198 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12199 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12200 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12201 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12202 echo $ECHO_N "(cached) $ECHO_C" >&6
12204 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12205 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12206 else
12207 # Is the header compilable?
12208 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12209 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12210 cat >conftest.$ac_ext <<_ACEOF
12211 /* confdefs.h. */
12212 _ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h. */
12216 $ac_includes_default
12217 #include <mach/cthreads.h>
12218 _ACEOF
12219 rm -f conftest.$ac_objext
12220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12221 (eval $ac_compile) 2>conftest.er1
12222 ac_status=$?
12223 grep -v '^ *+' conftest.er1 >conftest.err
12224 rm -f conftest.er1
12225 cat conftest.err >&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } &&
12228 { ac_try='test -z "$ac_c_werror_flag"
12229 || test ! -s conftest.err'
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12232 ac_status=$?
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; } &&
12235 { ac_try='test -s conftest.$ac_objext'
12236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237 (eval $ac_try) 2>&5
12238 ac_status=$?
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); }; }; then
12241 ac_header_compiler=yes
12242 else
12243 echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12246 ac_header_compiler=no
12248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12249 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12250 echo "${ECHO_T}$ac_header_compiler" >&6
12252 # Is the header present?
12253 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12254 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12255 cat >conftest.$ac_ext <<_ACEOF
12256 /* confdefs.h. */
12257 _ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12261 #include <mach/cthreads.h>
12262 _ACEOF
12263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12265 ac_status=$?
12266 grep -v '^ *+' conftest.er1 >conftest.err
12267 rm -f conftest.er1
12268 cat conftest.err >&5
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); } >/dev/null; then
12271 if test -s conftest.err; then
12272 ac_cpp_err=$ac_c_preproc_warn_flag
12273 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12274 else
12275 ac_cpp_err=
12277 else
12278 ac_cpp_err=yes
12280 if test -z "$ac_cpp_err"; then
12281 ac_header_preproc=yes
12282 else
12283 echo "$as_me: failed program was:" >&5
12284 sed 's/^/| /' conftest.$ac_ext >&5
12286 ac_header_preproc=no
12288 rm -f conftest.err conftest.$ac_ext
12289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12290 echo "${ECHO_T}$ac_header_preproc" >&6
12292 # So? What about this header?
12293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12294 yes:no: )
12295 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12296 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12297 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12298 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12299 ac_header_preproc=yes
12301 no:yes:* )
12302 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12303 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12304 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12305 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12306 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12307 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12308 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12309 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12310 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12311 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12312 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12313 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12315 cat <<\_ASBOX
12316 ## ------------------------------------------------ ##
12317 ## Report this to http://www.python.org/python-bugs ##
12318 ## ------------------------------------------------ ##
12319 _ASBOX
12321 sed "s/^/$as_me: WARNING: /" >&2
12323 esac
12324 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12325 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12326 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12327 echo $ECHO_N "(cached) $ECHO_C" >&6
12328 else
12329 ac_cv_header_mach_cthreads_h=$ac_header_preproc
12331 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12332 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12335 if test $ac_cv_header_mach_cthreads_h = yes; then
12336 cat >>confdefs.h <<\_ACEOF
12337 #define WITH_THREAD 1
12338 _ACEOF
12340 cat >>confdefs.h <<\_ACEOF
12341 #define C_THREADS 1
12342 _ACEOF
12345 cat >>confdefs.h <<\_ACEOF
12346 #define MACH_C_THREADS 1
12347 _ACEOF
12349 THREADOBJ="Python/thread.o"
12350 else
12352 echo "$as_me:$LINENO: checking for --with-pth" >&5
12353 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12355 # Check whether --with-pth or --without-pth was given.
12356 if test "${with_pth+set}" = set; then
12357 withval="$with_pth"
12358 echo "$as_me:$LINENO: result: $withval" >&5
12359 echo "${ECHO_T}$withval" >&6
12360 cat >>confdefs.h <<\_ACEOF
12361 #define WITH_THREAD 1
12362 _ACEOF
12365 cat >>confdefs.h <<\_ACEOF
12366 #define HAVE_PTH 1
12367 _ACEOF
12369 LIBS="-lpth $LIBS"
12370 THREADOBJ="Python/thread.o"
12371 else
12372 echo "$as_me:$LINENO: result: no" >&5
12373 echo "${ECHO_T}no" >&6
12375 # Just looking for pthread_create in libpthread is not enough:
12376 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12377 # So we really have to include pthread.h, and then link.
12378 _libs=$LIBS
12379 LIBS="$LIBS -lpthread"
12380 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12381 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12382 cat >conftest.$ac_ext <<_ACEOF
12383 /* confdefs.h. */
12384 _ACEOF
12385 cat confdefs.h >>conftest.$ac_ext
12386 cat >>conftest.$ac_ext <<_ACEOF
12387 /* end confdefs.h. */
12388 #include <pthread.h>
12390 void * start_routine (void *arg) { exit (0); }
12392 main ()
12395 pthread_create (NULL, NULL, start_routine, NULL)
12397 return 0;
12399 _ACEOF
12400 rm -f conftest.$ac_objext conftest$ac_exeext
12401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12402 (eval $ac_link) 2>conftest.er1
12403 ac_status=$?
12404 grep -v '^ *+' conftest.er1 >conftest.err
12405 rm -f conftest.er1
12406 cat conftest.err >&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } &&
12409 { ac_try='test -z "$ac_c_werror_flag"
12410 || test ! -s conftest.err'
12411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412 (eval $ac_try) 2>&5
12413 ac_status=$?
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; } &&
12416 { ac_try='test -s conftest$ac_exeext'
12417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418 (eval $ac_try) 2>&5
12419 ac_status=$?
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }; }; then
12423 echo "$as_me:$LINENO: result: yes" >&5
12424 echo "${ECHO_T}yes" >&6
12425 cat >>confdefs.h <<\_ACEOF
12426 #define WITH_THREAD 1
12427 _ACEOF
12429 posix_threads=yes
12430 THREADOBJ="Python/thread.o"
12431 else
12432 echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.$ac_ext >&5
12436 LIBS=$_libs
12437 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12438 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12439 if test "${ac_cv_func_pthread_detach+set}" = set; then
12440 echo $ECHO_N "(cached) $ECHO_C" >&6
12441 else
12442 cat >conftest.$ac_ext <<_ACEOF
12443 /* confdefs.h. */
12444 _ACEOF
12445 cat confdefs.h >>conftest.$ac_ext
12446 cat >>conftest.$ac_ext <<_ACEOF
12447 /* end confdefs.h. */
12448 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12450 #define pthread_detach innocuous_pthread_detach
12452 /* System header to define __stub macros and hopefully few prototypes,
12453 which can conflict with char pthread_detach (); below.
12454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12455 <limits.h> exists even on freestanding compilers. */
12457 #ifdef __STDC__
12458 # include <limits.h>
12459 #else
12460 # include <assert.h>
12461 #endif
12463 #undef pthread_detach
12465 /* Override any gcc2 internal prototype to avoid an error. */
12466 #ifdef __cplusplus
12467 extern "C"
12469 #endif
12470 /* We use char because int might match the return type of a gcc2
12471 builtin and then its argument prototype would still apply. */
12472 char pthread_detach ();
12473 /* The GNU C library defines this for functions which it implements
12474 to always fail with ENOSYS. Some functions are actually named
12475 something starting with __ and the normal name is an alias. */
12476 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
12477 choke me
12478 #else
12479 char (*f) () = pthread_detach;
12480 #endif
12481 #ifdef __cplusplus
12483 #endif
12486 main ()
12488 return f != pthread_detach;
12490 return 0;
12492 _ACEOF
12493 rm -f conftest.$ac_objext conftest$ac_exeext
12494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12495 (eval $ac_link) 2>conftest.er1
12496 ac_status=$?
12497 grep -v '^ *+' conftest.er1 >conftest.err
12498 rm -f conftest.er1
12499 cat conftest.err >&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); } &&
12502 { ac_try='test -z "$ac_c_werror_flag"
12503 || test ! -s conftest.err'
12504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12505 (eval $ac_try) 2>&5
12506 ac_status=$?
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); }; } &&
12509 { ac_try='test -s conftest$ac_exeext'
12510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511 (eval $ac_try) 2>&5
12512 ac_status=$?
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; }; then
12515 ac_cv_func_pthread_detach=yes
12516 else
12517 echo "$as_me: failed program was:" >&5
12518 sed 's/^/| /' conftest.$ac_ext >&5
12520 ac_cv_func_pthread_detach=no
12522 rm -f conftest.err conftest.$ac_objext \
12523 conftest$ac_exeext conftest.$ac_ext
12525 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
12526 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
12527 if test $ac_cv_func_pthread_detach = yes; then
12528 cat >>confdefs.h <<\_ACEOF
12529 #define WITH_THREAD 1
12530 _ACEOF
12532 posix_threads=yes
12533 THREADOBJ="Python/thread.o"
12534 else
12536 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12537 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12538 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12539 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12540 echo $ECHO_N "(cached) $ECHO_C" >&6
12542 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12543 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12544 else
12545 # Is the header compilable?
12546 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
12547 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
12548 cat >conftest.$ac_ext <<_ACEOF
12549 /* confdefs.h. */
12550 _ACEOF
12551 cat confdefs.h >>conftest.$ac_ext
12552 cat >>conftest.$ac_ext <<_ACEOF
12553 /* end confdefs.h. */
12554 $ac_includes_default
12555 #include <atheos/threads.h>
12556 _ACEOF
12557 rm -f conftest.$ac_objext
12558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12559 (eval $ac_compile) 2>conftest.er1
12560 ac_status=$?
12561 grep -v '^ *+' conftest.er1 >conftest.err
12562 rm -f conftest.er1
12563 cat conftest.err >&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); } &&
12566 { ac_try='test -z "$ac_c_werror_flag"
12567 || test ! -s conftest.err'
12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569 (eval $ac_try) 2>&5
12570 ac_status=$?
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; } &&
12573 { ac_try='test -s conftest.$ac_objext'
12574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12575 (eval $ac_try) 2>&5
12576 ac_status=$?
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); }; }; then
12579 ac_header_compiler=yes
12580 else
12581 echo "$as_me: failed program was:" >&5
12582 sed 's/^/| /' conftest.$ac_ext >&5
12584 ac_header_compiler=no
12586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12587 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12588 echo "${ECHO_T}$ac_header_compiler" >&6
12590 # Is the header present?
12591 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
12592 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
12593 cat >conftest.$ac_ext <<_ACEOF
12594 /* confdefs.h. */
12595 _ACEOF
12596 cat confdefs.h >>conftest.$ac_ext
12597 cat >>conftest.$ac_ext <<_ACEOF
12598 /* end confdefs.h. */
12599 #include <atheos/threads.h>
12600 _ACEOF
12601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12603 ac_status=$?
12604 grep -v '^ *+' conftest.er1 >conftest.err
12605 rm -f conftest.er1
12606 cat conftest.err >&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } >/dev/null; then
12609 if test -s conftest.err; then
12610 ac_cpp_err=$ac_c_preproc_warn_flag
12611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12612 else
12613 ac_cpp_err=
12615 else
12616 ac_cpp_err=yes
12618 if test -z "$ac_cpp_err"; then
12619 ac_header_preproc=yes
12620 else
12621 echo "$as_me: failed program was:" >&5
12622 sed 's/^/| /' conftest.$ac_ext >&5
12624 ac_header_preproc=no
12626 rm -f conftest.err conftest.$ac_ext
12627 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12628 echo "${ECHO_T}$ac_header_preproc" >&6
12630 # So? What about this header?
12631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12632 yes:no: )
12633 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12634 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12635 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
12636 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
12637 ac_header_preproc=yes
12639 no:yes:* )
12640 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
12641 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
12642 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
12643 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
12644 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
12645 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
12646 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
12647 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12648 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
12649 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
12650 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
12651 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
12653 cat <<\_ASBOX
12654 ## ------------------------------------------------ ##
12655 ## Report this to http://www.python.org/python-bugs ##
12656 ## ------------------------------------------------ ##
12657 _ASBOX
12659 sed "s/^/$as_me: WARNING: /" >&2
12661 esac
12662 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12663 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12664 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6
12666 else
12667 ac_cv_header_atheos_threads_h=$ac_header_preproc
12669 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12670 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12673 if test $ac_cv_header_atheos_threads_h = yes; then
12674 cat >>confdefs.h <<\_ACEOF
12675 #define WITH_THREAD 1
12676 _ACEOF
12679 cat >>confdefs.h <<\_ACEOF
12680 #define ATHEOS_THREADS 1
12681 _ACEOF
12683 THREADOBJ="Python/thread.o"
12684 else
12686 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12687 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12688 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12689 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12690 echo $ECHO_N "(cached) $ECHO_C" >&6
12692 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12693 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12694 else
12695 # Is the header compilable?
12696 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
12697 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
12698 cat >conftest.$ac_ext <<_ACEOF
12699 /* confdefs.h. */
12700 _ACEOF
12701 cat confdefs.h >>conftest.$ac_ext
12702 cat >>conftest.$ac_ext <<_ACEOF
12703 /* end confdefs.h. */
12704 $ac_includes_default
12705 #include <kernel/OS.h>
12706 _ACEOF
12707 rm -f conftest.$ac_objext
12708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12709 (eval $ac_compile) 2>conftest.er1
12710 ac_status=$?
12711 grep -v '^ *+' conftest.er1 >conftest.err
12712 rm -f conftest.er1
12713 cat conftest.err >&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); } &&
12716 { ac_try='test -z "$ac_c_werror_flag"
12717 || test ! -s conftest.err'
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5
12720 ac_status=$?
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; } &&
12723 { ac_try='test -s conftest.$ac_objext'
12724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12725 (eval $ac_try) 2>&5
12726 ac_status=$?
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); }; }; then
12729 ac_header_compiler=yes
12730 else
12731 echo "$as_me: failed program was:" >&5
12732 sed 's/^/| /' conftest.$ac_ext >&5
12734 ac_header_compiler=no
12736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12738 echo "${ECHO_T}$ac_header_compiler" >&6
12740 # Is the header present?
12741 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12742 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12743 cat >conftest.$ac_ext <<_ACEOF
12744 /* confdefs.h. */
12745 _ACEOF
12746 cat confdefs.h >>conftest.$ac_ext
12747 cat >>conftest.$ac_ext <<_ACEOF
12748 /* end confdefs.h. */
12749 #include <kernel/OS.h>
12750 _ACEOF
12751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12753 ac_status=$?
12754 grep -v '^ *+' conftest.er1 >conftest.err
12755 rm -f conftest.er1
12756 cat conftest.err >&5
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); } >/dev/null; then
12759 if test -s conftest.err; then
12760 ac_cpp_err=$ac_c_preproc_warn_flag
12761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12762 else
12763 ac_cpp_err=
12765 else
12766 ac_cpp_err=yes
12768 if test -z "$ac_cpp_err"; then
12769 ac_header_preproc=yes
12770 else
12771 echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.$ac_ext >&5
12774 ac_header_preproc=no
12776 rm -f conftest.err conftest.$ac_ext
12777 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12778 echo "${ECHO_T}$ac_header_preproc" >&6
12780 # So? What about this header?
12781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12782 yes:no: )
12783 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12784 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12785 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12786 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12787 ac_header_preproc=yes
12789 no:yes:* )
12790 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12791 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12792 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12793 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12794 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12795 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12796 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12797 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12798 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12799 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12800 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12801 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12803 cat <<\_ASBOX
12804 ## ------------------------------------------------ ##
12805 ## Report this to http://www.python.org/python-bugs ##
12806 ## ------------------------------------------------ ##
12807 _ASBOX
12809 sed "s/^/$as_me: WARNING: /" >&2
12811 esac
12812 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12813 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12814 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
12816 else
12817 ac_cv_header_kernel_OS_h=$ac_header_preproc
12819 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12820 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12823 if test $ac_cv_header_kernel_OS_h = yes; then
12824 cat >>confdefs.h <<\_ACEOF
12825 #define WITH_THREAD 1
12826 _ACEOF
12829 cat >>confdefs.h <<\_ACEOF
12830 #define BEOS_THREADS 1
12831 _ACEOF
12833 THREADOBJ="Python/thread.o"
12834 else
12836 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12837 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12838 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12839 echo $ECHO_N "(cached) $ECHO_C" >&6
12840 else
12841 ac_check_lib_save_LIBS=$LIBS
12842 LIBS="-lpthreads $LIBS"
12843 cat >conftest.$ac_ext <<_ACEOF
12844 /* confdefs.h. */
12845 _ACEOF
12846 cat confdefs.h >>conftest.$ac_ext
12847 cat >>conftest.$ac_ext <<_ACEOF
12848 /* end confdefs.h. */
12850 /* Override any gcc2 internal prototype to avoid an error. */
12851 #ifdef __cplusplus
12852 extern "C"
12853 #endif
12854 /* We use char because int might match the return type of a gcc2
12855 builtin and then its argument prototype would still apply. */
12856 char pthread_create ();
12858 main ()
12860 pthread_create ();
12862 return 0;
12864 _ACEOF
12865 rm -f conftest.$ac_objext conftest$ac_exeext
12866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12867 (eval $ac_link) 2>conftest.er1
12868 ac_status=$?
12869 grep -v '^ *+' conftest.er1 >conftest.err
12870 rm -f conftest.er1
12871 cat conftest.err >&5
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); } &&
12874 { ac_try='test -z "$ac_c_werror_flag"
12875 || test ! -s conftest.err'
12876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12877 (eval $ac_try) 2>&5
12878 ac_status=$?
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }; } &&
12881 { ac_try='test -s conftest$ac_exeext'
12882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12883 (eval $ac_try) 2>&5
12884 ac_status=$?
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); }; }; then
12887 ac_cv_lib_pthreads_pthread_create=yes
12888 else
12889 echo "$as_me: failed program was:" >&5
12890 sed 's/^/| /' conftest.$ac_ext >&5
12892 ac_cv_lib_pthreads_pthread_create=no
12894 rm -f conftest.err conftest.$ac_objext \
12895 conftest$ac_exeext conftest.$ac_ext
12896 LIBS=$ac_check_lib_save_LIBS
12898 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12899 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12900 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12901 cat >>confdefs.h <<\_ACEOF
12902 #define WITH_THREAD 1
12903 _ACEOF
12905 posix_threads=yes
12906 LIBS="$LIBS -lpthreads"
12907 THREADOBJ="Python/thread.o"
12908 else
12910 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12911 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12912 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12914 else
12915 ac_check_lib_save_LIBS=$LIBS
12916 LIBS="-lc_r $LIBS"
12917 cat >conftest.$ac_ext <<_ACEOF
12918 /* confdefs.h. */
12919 _ACEOF
12920 cat confdefs.h >>conftest.$ac_ext
12921 cat >>conftest.$ac_ext <<_ACEOF
12922 /* end confdefs.h. */
12924 /* Override any gcc2 internal prototype to avoid an error. */
12925 #ifdef __cplusplus
12926 extern "C"
12927 #endif
12928 /* We use char because int might match the return type of a gcc2
12929 builtin and then its argument prototype would still apply. */
12930 char pthread_create ();
12932 main ()
12934 pthread_create ();
12936 return 0;
12938 _ACEOF
12939 rm -f conftest.$ac_objext conftest$ac_exeext
12940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12941 (eval $ac_link) 2>conftest.er1
12942 ac_status=$?
12943 grep -v '^ *+' conftest.er1 >conftest.err
12944 rm -f conftest.er1
12945 cat conftest.err >&5
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); } &&
12948 { ac_try='test -z "$ac_c_werror_flag"
12949 || test ! -s conftest.err'
12950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12951 (eval $ac_try) 2>&5
12952 ac_status=$?
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); }; } &&
12955 { ac_try='test -s conftest$ac_exeext'
12956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12957 (eval $ac_try) 2>&5
12958 ac_status=$?
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); }; }; then
12961 ac_cv_lib_c_r_pthread_create=yes
12962 else
12963 echo "$as_me: failed program was:" >&5
12964 sed 's/^/| /' conftest.$ac_ext >&5
12966 ac_cv_lib_c_r_pthread_create=no
12968 rm -f conftest.err conftest.$ac_objext \
12969 conftest$ac_exeext conftest.$ac_ext
12970 LIBS=$ac_check_lib_save_LIBS
12972 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12973 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12974 if test $ac_cv_lib_c_r_pthread_create = yes; then
12975 cat >>confdefs.h <<\_ACEOF
12976 #define WITH_THREAD 1
12977 _ACEOF
12979 posix_threads=yes
12980 LIBS="$LIBS -lc_r"
12981 THREADOBJ="Python/thread.o"
12982 else
12984 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12985 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12986 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12987 echo $ECHO_N "(cached) $ECHO_C" >&6
12988 else
12989 ac_check_lib_save_LIBS=$LIBS
12990 LIBS="-lpthread $LIBS"
12991 cat >conftest.$ac_ext <<_ACEOF
12992 /* confdefs.h. */
12993 _ACEOF
12994 cat confdefs.h >>conftest.$ac_ext
12995 cat >>conftest.$ac_ext <<_ACEOF
12996 /* end confdefs.h. */
12998 /* Override any gcc2 internal prototype to avoid an error. */
12999 #ifdef __cplusplus
13000 extern "C"
13001 #endif
13002 /* We use char because int might match the return type of a gcc2
13003 builtin and then its argument prototype would still apply. */
13004 char __pthread_create_system ();
13006 main ()
13008 __pthread_create_system ();
13010 return 0;
13012 _ACEOF
13013 rm -f conftest.$ac_objext conftest$ac_exeext
13014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13015 (eval $ac_link) 2>conftest.er1
13016 ac_status=$?
13017 grep -v '^ *+' conftest.er1 >conftest.err
13018 rm -f conftest.er1
13019 cat conftest.err >&5
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); } &&
13022 { ac_try='test -z "$ac_c_werror_flag"
13023 || test ! -s conftest.err'
13024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13025 (eval $ac_try) 2>&5
13026 ac_status=$?
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); }; } &&
13029 { ac_try='test -s conftest$ac_exeext'
13030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13031 (eval $ac_try) 2>&5
13032 ac_status=$?
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); }; }; then
13035 ac_cv_lib_pthread___pthread_create_system=yes
13036 else
13037 echo "$as_me: failed program was:" >&5
13038 sed 's/^/| /' conftest.$ac_ext >&5
13040 ac_cv_lib_pthread___pthread_create_system=no
13042 rm -f conftest.err conftest.$ac_objext \
13043 conftest$ac_exeext conftest.$ac_ext
13044 LIBS=$ac_check_lib_save_LIBS
13046 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
13047 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
13048 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
13049 cat >>confdefs.h <<\_ACEOF
13050 #define WITH_THREAD 1
13051 _ACEOF
13053 posix_threads=yes
13054 LIBS="$LIBS -lpthread"
13055 THREADOBJ="Python/thread.o"
13056 else
13058 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
13059 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
13060 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
13061 echo $ECHO_N "(cached) $ECHO_C" >&6
13062 else
13063 ac_check_lib_save_LIBS=$LIBS
13064 LIBS="-lcma $LIBS"
13065 cat >conftest.$ac_ext <<_ACEOF
13066 /* confdefs.h. */
13067 _ACEOF
13068 cat confdefs.h >>conftest.$ac_ext
13069 cat >>conftest.$ac_ext <<_ACEOF
13070 /* end confdefs.h. */
13072 /* Override any gcc2 internal prototype to avoid an error. */
13073 #ifdef __cplusplus
13074 extern "C"
13075 #endif
13076 /* We use char because int might match the return type of a gcc2
13077 builtin and then its argument prototype would still apply. */
13078 char pthread_create ();
13080 main ()
13082 pthread_create ();
13084 return 0;
13086 _ACEOF
13087 rm -f conftest.$ac_objext conftest$ac_exeext
13088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13089 (eval $ac_link) 2>conftest.er1
13090 ac_status=$?
13091 grep -v '^ *+' conftest.er1 >conftest.err
13092 rm -f conftest.er1
13093 cat conftest.err >&5
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); } &&
13096 { ac_try='test -z "$ac_c_werror_flag"
13097 || test ! -s conftest.err'
13098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13099 (eval $ac_try) 2>&5
13100 ac_status=$?
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); }; } &&
13103 { ac_try='test -s conftest$ac_exeext'
13104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105 (eval $ac_try) 2>&5
13106 ac_status=$?
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; }; then
13109 ac_cv_lib_cma_pthread_create=yes
13110 else
13111 echo "$as_me: failed program was:" >&5
13112 sed 's/^/| /' conftest.$ac_ext >&5
13114 ac_cv_lib_cma_pthread_create=no
13116 rm -f conftest.err conftest.$ac_objext \
13117 conftest$ac_exeext conftest.$ac_ext
13118 LIBS=$ac_check_lib_save_LIBS
13120 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13121 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13122 if test $ac_cv_lib_cma_pthread_create = yes; then
13123 cat >>confdefs.h <<\_ACEOF
13124 #define WITH_THREAD 1
13125 _ACEOF
13127 posix_threads=yes
13128 LIBS="$LIBS -lcma"
13129 THREADOBJ="Python/thread.o"
13130 else
13132 USE_THREAD_MODULE="#"
13151 rm -f conftest.err conftest.$ac_objext \
13152 conftest$ac_exeext conftest.$ac_ext
13161 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13162 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13163 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13165 else
13166 ac_check_lib_save_LIBS=$LIBS
13167 LIBS="-lmpc $LIBS"
13168 cat >conftest.$ac_ext <<_ACEOF
13169 /* confdefs.h. */
13170 _ACEOF
13171 cat confdefs.h >>conftest.$ac_ext
13172 cat >>conftest.$ac_ext <<_ACEOF
13173 /* end confdefs.h. */
13175 /* Override any gcc2 internal prototype to avoid an error. */
13176 #ifdef __cplusplus
13177 extern "C"
13178 #endif
13179 /* We use char because int might match the return type of a gcc2
13180 builtin and then its argument prototype would still apply. */
13181 char usconfig ();
13183 main ()
13185 usconfig ();
13187 return 0;
13189 _ACEOF
13190 rm -f conftest.$ac_objext conftest$ac_exeext
13191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13192 (eval $ac_link) 2>conftest.er1
13193 ac_status=$?
13194 grep -v '^ *+' conftest.er1 >conftest.err
13195 rm -f conftest.er1
13196 cat conftest.err >&5
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); } &&
13199 { ac_try='test -z "$ac_c_werror_flag"
13200 || test ! -s conftest.err'
13201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202 (eval $ac_try) 2>&5
13203 ac_status=$?
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); }; } &&
13206 { ac_try='test -s conftest$ac_exeext'
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5
13209 ac_status=$?
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; }; then
13212 ac_cv_lib_mpc_usconfig=yes
13213 else
13214 echo "$as_me: failed program was:" >&5
13215 sed 's/^/| /' conftest.$ac_ext >&5
13217 ac_cv_lib_mpc_usconfig=no
13219 rm -f conftest.err conftest.$ac_objext \
13220 conftest$ac_exeext conftest.$ac_ext
13221 LIBS=$ac_check_lib_save_LIBS
13223 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13224 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13225 if test $ac_cv_lib_mpc_usconfig = yes; then
13226 cat >>confdefs.h <<\_ACEOF
13227 #define WITH_THREAD 1
13228 _ACEOF
13230 LIBS="$LIBS -lmpc"
13231 THREADOBJ="Python/thread.o"
13232 USE_THREAD_MODULE=""
13236 if test "$posix_threads" != "yes"; then
13237 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13238 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13239 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13240 echo $ECHO_N "(cached) $ECHO_C" >&6
13241 else
13242 ac_check_lib_save_LIBS=$LIBS
13243 LIBS="-lthread $LIBS"
13244 cat >conftest.$ac_ext <<_ACEOF
13245 /* confdefs.h. */
13246 _ACEOF
13247 cat confdefs.h >>conftest.$ac_ext
13248 cat >>conftest.$ac_ext <<_ACEOF
13249 /* end confdefs.h. */
13251 /* Override any gcc2 internal prototype to avoid an error. */
13252 #ifdef __cplusplus
13253 extern "C"
13254 #endif
13255 /* We use char because int might match the return type of a gcc2
13256 builtin and then its argument prototype would still apply. */
13257 char thr_create ();
13259 main ()
13261 thr_create ();
13263 return 0;
13265 _ACEOF
13266 rm -f conftest.$ac_objext conftest$ac_exeext
13267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13268 (eval $ac_link) 2>conftest.er1
13269 ac_status=$?
13270 grep -v '^ *+' conftest.er1 >conftest.err
13271 rm -f conftest.er1
13272 cat conftest.err >&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } &&
13275 { ac_try='test -z "$ac_c_werror_flag"
13276 || test ! -s conftest.err'
13277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13278 (eval $ac_try) 2>&5
13279 ac_status=$?
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); }; } &&
13282 { ac_try='test -s conftest$ac_exeext'
13283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13284 (eval $ac_try) 2>&5
13285 ac_status=$?
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); }; }; then
13288 ac_cv_lib_thread_thr_create=yes
13289 else
13290 echo "$as_me: failed program was:" >&5
13291 sed 's/^/| /' conftest.$ac_ext >&5
13293 ac_cv_lib_thread_thr_create=no
13295 rm -f conftest.err conftest.$ac_objext \
13296 conftest$ac_exeext conftest.$ac_ext
13297 LIBS=$ac_check_lib_save_LIBS
13299 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13300 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13301 if test $ac_cv_lib_thread_thr_create = yes; then
13302 cat >>confdefs.h <<\_ACEOF
13303 #define WITH_THREAD 1
13304 _ACEOF
13306 LIBS="$LIBS -lthread"
13307 THREADOBJ="Python/thread.o"
13308 USE_THREAD_MODULE=""
13313 if test "$USE_THREAD_MODULE" != "#"
13314 then
13315 # If the above checks didn't disable threads, (at least) OSF1
13316 # needs this '-threads' argument during linking.
13317 case $ac_sys_system in
13318 OSF1) LDLAST=-threads;;
13319 esac
13323 if test "$posix_threads" = "yes"; then
13324 if test "$unistd_defines_pthreads" = "no"; then
13326 cat >>confdefs.h <<\_ACEOF
13327 #define _POSIX_THREADS 1
13328 _ACEOF
13332 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13333 case $ac_sys_system/$ac_sys_release in
13334 SunOS/5.6)
13335 cat >>confdefs.h <<\_ACEOF
13336 #define HAVE_PTHREAD_DESTRUCTOR 1
13337 _ACEOF
13340 SunOS/5.8)
13341 cat >>confdefs.h <<\_ACEOF
13342 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13343 _ACEOF
13346 esac
13348 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13349 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13350 if test "${ac_cv_pthread_system_supported+set}" = set; then
13351 echo $ECHO_N "(cached) $ECHO_C" >&6
13352 else
13353 if test "$cross_compiling" = yes; then
13354 ac_cv_pthread_system_supported=no
13355 else
13356 cat >conftest.$ac_ext <<_ACEOF
13357 /* confdefs.h. */
13358 _ACEOF
13359 cat confdefs.h >>conftest.$ac_ext
13360 cat >>conftest.$ac_ext <<_ACEOF
13361 /* end confdefs.h. */
13362 #include <pthread.h>
13363 void *foo(void *parm) {
13364 return NULL;
13366 main() {
13367 pthread_attr_t attr;
13368 pthread_t id;
13369 if (pthread_attr_init(&attr)) exit(-1);
13370 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13371 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13372 exit(0);
13374 _ACEOF
13375 rm -f conftest$ac_exeext
13376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13377 (eval $ac_link) 2>&5
13378 ac_status=$?
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13382 (eval $ac_try) 2>&5
13383 ac_status=$?
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); }; }; then
13386 ac_cv_pthread_system_supported=yes
13387 else
13388 echo "$as_me: program exited with status $ac_status" >&5
13389 echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13392 ( exit $ac_status )
13393 ac_cv_pthread_system_supported=no
13395 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13400 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13401 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13402 if test "$ac_cv_pthread_system_supported" = "yes"; then
13404 cat >>confdefs.h <<\_ACEOF
13405 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13406 _ACEOF
13410 for ac_func in pthread_sigmask
13412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13413 echo "$as_me:$LINENO: checking for $ac_func" >&5
13414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13415 if eval "test \"\${$as_ac_var+set}\" = set"; then
13416 echo $ECHO_N "(cached) $ECHO_C" >&6
13417 else
13418 cat >conftest.$ac_ext <<_ACEOF
13419 /* confdefs.h. */
13420 _ACEOF
13421 cat confdefs.h >>conftest.$ac_ext
13422 cat >>conftest.$ac_ext <<_ACEOF
13423 /* end confdefs.h. */
13424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13426 #define $ac_func innocuous_$ac_func
13428 /* System header to define __stub macros and hopefully few prototypes,
13429 which can conflict with char $ac_func (); below.
13430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13431 <limits.h> exists even on freestanding compilers. */
13433 #ifdef __STDC__
13434 # include <limits.h>
13435 #else
13436 # include <assert.h>
13437 #endif
13439 #undef $ac_func
13441 /* Override any gcc2 internal prototype to avoid an error. */
13442 #ifdef __cplusplus
13443 extern "C"
13445 #endif
13446 /* We use char because int might match the return type of a gcc2
13447 builtin and then its argument prototype would still apply. */
13448 char $ac_func ();
13449 /* The GNU C library defines this for functions which it implements
13450 to always fail with ENOSYS. Some functions are actually named
13451 something starting with __ and the normal name is an alias. */
13452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13453 choke me
13454 #else
13455 char (*f) () = $ac_func;
13456 #endif
13457 #ifdef __cplusplus
13459 #endif
13462 main ()
13464 return f != $ac_func;
13466 return 0;
13468 _ACEOF
13469 rm -f conftest.$ac_objext conftest$ac_exeext
13470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13471 (eval $ac_link) 2>conftest.er1
13472 ac_status=$?
13473 grep -v '^ *+' conftest.er1 >conftest.err
13474 rm -f conftest.er1
13475 cat conftest.err >&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); } &&
13478 { ac_try='test -z "$ac_c_werror_flag"
13479 || test ! -s conftest.err'
13480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481 (eval $ac_try) 2>&5
13482 ac_status=$?
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; } &&
13485 { ac_try='test -s conftest$ac_exeext'
13486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487 (eval $ac_try) 2>&5
13488 ac_status=$?
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; }; then
13491 eval "$as_ac_var=yes"
13492 else
13493 echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13496 eval "$as_ac_var=no"
13498 rm -f conftest.err conftest.$ac_objext \
13499 conftest$ac_exeext conftest.$ac_ext
13501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13503 if test `eval echo '${'$as_ac_var'}'` = yes; then
13504 cat >>confdefs.h <<_ACEOF
13505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13506 _ACEOF
13507 case $ac_sys_system in
13508 CYGWIN*)
13510 cat >>confdefs.h <<\_ACEOF
13511 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
13512 _ACEOF
13515 esac
13517 done
13522 # Check for enable-ipv6
13525 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
13526 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
13527 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13528 if test "${enable_ipv6+set}" = set; then
13529 enableval="$enable_ipv6"
13530 case "$enableval" in
13532 echo "$as_me:$LINENO: result: no" >&5
13533 echo "${ECHO_T}no" >&6
13534 ipv6=no
13536 *) echo "$as_me:$LINENO: result: yes" >&5
13537 echo "${ECHO_T}yes" >&6
13538 cat >>confdefs.h <<\_ACEOF
13539 #define ENABLE_IPV6 1
13540 _ACEOF
13542 ipv6=yes
13544 esac
13545 else
13547 if test "$cross_compiling" = yes; then
13548 echo "$as_me:$LINENO: result: no" >&5
13549 echo "${ECHO_T}no" >&6
13550 ipv6=no
13552 else
13553 cat >conftest.$ac_ext <<_ACEOF
13554 /* confdefs.h. */
13555 _ACEOF
13556 cat confdefs.h >>conftest.$ac_ext
13557 cat >>conftest.$ac_ext <<_ACEOF
13558 /* end confdefs.h. */
13559 /* AF_INET6 available check */
13560 #include <sys/types.h>
13561 #include <sys/socket.h>
13562 main()
13564 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
13565 exit(1);
13566 else
13567 exit(0);
13570 _ACEOF
13571 rm -f conftest$ac_exeext
13572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13573 (eval $ac_link) 2>&5
13574 ac_status=$?
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578 (eval $ac_try) 2>&5
13579 ac_status=$?
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; }; then
13582 echo "$as_me:$LINENO: result: yes" >&5
13583 echo "${ECHO_T}yes" >&6
13584 ipv6=yes
13585 else
13586 echo "$as_me: program exited with status $ac_status" >&5
13587 echo "$as_me: failed program was:" >&5
13588 sed 's/^/| /' conftest.$ac_ext >&5
13590 ( exit $ac_status )
13591 echo "$as_me:$LINENO: result: no" >&5
13592 echo "${ECHO_T}no" >&6
13593 ipv6=no
13595 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13598 if test "$ipv6" = "yes"; then
13599 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
13600 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
13601 cat >conftest.$ac_ext <<_ACEOF
13602 /* confdefs.h. */
13603 _ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h. */
13607 #include <sys/types.h>
13608 #include <netinet/in.h>
13610 main ()
13612 struct sockaddr_in6 x;
13613 x.sin6_scope_id;
13615 return 0;
13617 _ACEOF
13618 rm -f conftest.$ac_objext
13619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13620 (eval $ac_compile) 2>conftest.er1
13621 ac_status=$?
13622 grep -v '^ *+' conftest.er1 >conftest.err
13623 rm -f conftest.er1
13624 cat conftest.err >&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); } &&
13627 { ac_try='test -z "$ac_c_werror_flag"
13628 || test ! -s conftest.err'
13629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630 (eval $ac_try) 2>&5
13631 ac_status=$?
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; } &&
13634 { ac_try='test -s conftest.$ac_objext'
13635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636 (eval $ac_try) 2>&5
13637 ac_status=$?
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; }; then
13640 echo "$as_me:$LINENO: result: yes" >&5
13641 echo "${ECHO_T}yes" >&6
13642 ipv6=yes
13643 else
13644 echo "$as_me: failed program was:" >&5
13645 sed 's/^/| /' conftest.$ac_ext >&5
13647 echo "$as_me:$LINENO: result: no" >&5
13648 echo "${ECHO_T}no" >&6
13649 ipv6=no
13651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13654 if test "$ipv6" = "yes"; then
13655 cat >>confdefs.h <<\_ACEOF
13656 #define ENABLE_IPV6 1
13657 _ACEOF
13663 ipv6type=unknown
13664 ipv6lib=none
13665 ipv6trylibc=no
13667 if test "$ipv6" = "yes"; then
13668 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
13669 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
13670 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
13672 case $i in
13673 inria)
13674 cat >conftest.$ac_ext <<_ACEOF
13675 /* confdefs.h. */
13676 _ACEOF
13677 cat confdefs.h >>conftest.$ac_ext
13678 cat >>conftest.$ac_ext <<_ACEOF
13679 /* end confdefs.h. */
13681 #include <netinet/in.h>
13682 #ifdef IPV6_INRIA_VERSION
13684 #endif
13685 _ACEOF
13686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13687 $EGREP "yes" >/dev/null 2>&1; then
13688 ipv6type=$i
13690 rm -f conftest*
13693 kame)
13694 cat >conftest.$ac_ext <<_ACEOF
13695 /* confdefs.h. */
13696 _ACEOF
13697 cat confdefs.h >>conftest.$ac_ext
13698 cat >>conftest.$ac_ext <<_ACEOF
13699 /* end confdefs.h. */
13701 #include <netinet/in.h>
13702 #ifdef __KAME__
13704 #endif
13705 _ACEOF
13706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13707 $EGREP "yes" >/dev/null 2>&1; then
13708 ipv6type=$i;
13709 ipv6lib=inet6
13710 ipv6libdir=/usr/local/v6/lib
13711 ipv6trylibc=yes
13713 rm -f conftest*
13716 linux-glibc)
13717 cat >conftest.$ac_ext <<_ACEOF
13718 /* confdefs.h. */
13719 _ACEOF
13720 cat confdefs.h >>conftest.$ac_ext
13721 cat >>conftest.$ac_ext <<_ACEOF
13722 /* end confdefs.h. */
13724 #include <features.h>
13725 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13727 #endif
13728 _ACEOF
13729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13730 $EGREP "yes" >/dev/null 2>&1; then
13731 ipv6type=$i;
13732 ipv6trylibc=yes
13734 rm -f conftest*
13737 linux-inet6)
13738 if test -d /usr/inet6; then
13739 ipv6type=$i
13740 ipv6lib=inet6
13741 ipv6libdir=/usr/inet6/lib
13742 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
13745 solaris)
13746 if test -f /etc/netconfig; then
13747 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
13748 ipv6type=$i
13749 ipv6trylibc=yes
13753 toshiba)
13754 cat >conftest.$ac_ext <<_ACEOF
13755 /* confdefs.h. */
13756 _ACEOF
13757 cat confdefs.h >>conftest.$ac_ext
13758 cat >>conftest.$ac_ext <<_ACEOF
13759 /* end confdefs.h. */
13761 #include <sys/param.h>
13762 #ifdef _TOSHIBA_INET6
13764 #endif
13765 _ACEOF
13766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13767 $EGREP "yes" >/dev/null 2>&1; then
13768 ipv6type=$i;
13769 ipv6lib=inet6;
13770 ipv6libdir=/usr/local/v6/lib
13772 rm -f conftest*
13775 v6d)
13776 cat >conftest.$ac_ext <<_ACEOF
13777 /* confdefs.h. */
13778 _ACEOF
13779 cat confdefs.h >>conftest.$ac_ext
13780 cat >>conftest.$ac_ext <<_ACEOF
13781 /* end confdefs.h. */
13783 #include </usr/local/v6/include/sys/v6config.h>
13784 #ifdef __V6D__
13786 #endif
13787 _ACEOF
13788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13789 $EGREP "yes" >/dev/null 2>&1; then
13790 ipv6type=$i;
13791 ipv6lib=v6;
13792 ipv6libdir=/usr/local/v6/lib;
13793 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
13795 rm -f conftest*
13798 zeta)
13799 cat >conftest.$ac_ext <<_ACEOF
13800 /* confdefs.h. */
13801 _ACEOF
13802 cat confdefs.h >>conftest.$ac_ext
13803 cat >>conftest.$ac_ext <<_ACEOF
13804 /* end confdefs.h. */
13806 #include <sys/param.h>
13807 #ifdef _ZETA_MINAMI_INET6
13809 #endif
13810 _ACEOF
13811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13812 $EGREP "yes" >/dev/null 2>&1; then
13813 ipv6type=$i;
13814 ipv6lib=inet6;
13815 ipv6libdir=/usr/local/v6/lib
13817 rm -f conftest*
13820 esac
13821 if test "$ipv6type" != "unknown"; then
13822 break
13824 done
13825 echo "$as_me:$LINENO: result: $ipv6type" >&5
13826 echo "${ECHO_T}$ipv6type" >&6
13829 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13830 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
13831 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
13832 echo "using lib$ipv6lib"
13833 else
13834 if test $ipv6trylibc = "yes"; then
13835 echo "using libc"
13836 else
13837 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13838 echo "You need to fetch lib$ipv6lib.a from appropriate"
13839 echo 'ipv6 kit and compile beforehand.'
13840 exit 1
13845 # Check for --with-doc-strings
13846 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13847 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13849 # Check whether --with-doc-strings or --without-doc-strings was given.
13850 if test "${with_doc_strings+set}" = set; then
13851 withval="$with_doc_strings"
13855 if test -z "$with_doc_strings"
13856 then with_doc_strings="yes"
13858 if test "$with_doc_strings" != "no"
13859 then
13861 cat >>confdefs.h <<\_ACEOF
13862 #define WITH_DOC_STRINGS 1
13863 _ACEOF
13866 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13867 echo "${ECHO_T}$with_doc_strings" >&6
13869 # Check for Python-specific malloc support
13870 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13871 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13873 # Check whether --with-tsc or --without-tsc was given.
13874 if test "${with_tsc+set}" = set; then
13875 withval="$with_tsc"
13877 if test "$withval" != no
13878 then
13880 cat >>confdefs.h <<\_ACEOF
13881 #define WITH_TSC 1
13882 _ACEOF
13884 echo "$as_me:$LINENO: result: yes" >&5
13885 echo "${ECHO_T}yes" >&6
13886 else echo "$as_me:$LINENO: result: no" >&5
13887 echo "${ECHO_T}no" >&6
13889 else
13890 echo "$as_me:$LINENO: result: no" >&5
13891 echo "${ECHO_T}no" >&6
13894 # Check for Python-specific malloc support
13895 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13896 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13898 # Check whether --with-pymalloc or --without-pymalloc was given.
13899 if test "${with_pymalloc+set}" = set; then
13900 withval="$with_pymalloc"
13904 if test -z "$with_pymalloc"
13905 then with_pymalloc="yes"
13907 if test "$with_pymalloc" != "no"
13908 then
13910 cat >>confdefs.h <<\_ACEOF
13911 #define WITH_PYMALLOC 1
13912 _ACEOF
13915 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13916 echo "${ECHO_T}$with_pymalloc" >&6
13918 # Check for --with-wctype-functions
13919 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13920 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13922 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13923 if test "${with_wctype_functions+set}" = set; then
13924 withval="$with_wctype_functions"
13926 if test "$withval" != no
13927 then
13929 cat >>confdefs.h <<\_ACEOF
13930 #define WANT_WCTYPE_FUNCTIONS 1
13931 _ACEOF
13933 echo "$as_me:$LINENO: result: yes" >&5
13934 echo "${ECHO_T}yes" >&6
13935 else echo "$as_me:$LINENO: result: no" >&5
13936 echo "${ECHO_T}no" >&6
13938 else
13939 echo "$as_me:$LINENO: result: no" >&5
13940 echo "${ECHO_T}no" >&6
13943 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13945 DLINCLDIR=.
13947 # the dlopen() function means we might want to use dynload_shlib.o. some
13948 # platforms, such as AIX, have dlopen(), but don't want to use it.
13950 for ac_func in dlopen
13952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13953 echo "$as_me:$LINENO: checking for $ac_func" >&5
13954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13955 if eval "test \"\${$as_ac_var+set}\" = set"; then
13956 echo $ECHO_N "(cached) $ECHO_C" >&6
13957 else
13958 cat >conftest.$ac_ext <<_ACEOF
13959 /* confdefs.h. */
13960 _ACEOF
13961 cat confdefs.h >>conftest.$ac_ext
13962 cat >>conftest.$ac_ext <<_ACEOF
13963 /* end confdefs.h. */
13964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13966 #define $ac_func innocuous_$ac_func
13968 /* System header to define __stub macros and hopefully few prototypes,
13969 which can conflict with char $ac_func (); below.
13970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13971 <limits.h> exists even on freestanding compilers. */
13973 #ifdef __STDC__
13974 # include <limits.h>
13975 #else
13976 # include <assert.h>
13977 #endif
13979 #undef $ac_func
13981 /* Override any gcc2 internal prototype to avoid an error. */
13982 #ifdef __cplusplus
13983 extern "C"
13985 #endif
13986 /* We use char because int might match the return type of a gcc2
13987 builtin and then its argument prototype would still apply. */
13988 char $ac_func ();
13989 /* The GNU C library defines this for functions which it implements
13990 to always fail with ENOSYS. Some functions are actually named
13991 something starting with __ and the normal name is an alias. */
13992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13993 choke me
13994 #else
13995 char (*f) () = $ac_func;
13996 #endif
13997 #ifdef __cplusplus
13999 #endif
14002 main ()
14004 return f != $ac_func;
14006 return 0;
14008 _ACEOF
14009 rm -f conftest.$ac_objext conftest$ac_exeext
14010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14011 (eval $ac_link) 2>conftest.er1
14012 ac_status=$?
14013 grep -v '^ *+' conftest.er1 >conftest.err
14014 rm -f conftest.er1
14015 cat conftest.err >&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); } &&
14018 { ac_try='test -z "$ac_c_werror_flag"
14019 || test ! -s conftest.err'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14022 ac_status=$?
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; } &&
14025 { ac_try='test -s conftest$ac_exeext'
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14028 ac_status=$?
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; }; then
14031 eval "$as_ac_var=yes"
14032 else
14033 echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.$ac_ext >&5
14036 eval "$as_ac_var=no"
14038 rm -f conftest.err conftest.$ac_objext \
14039 conftest$ac_exeext conftest.$ac_ext
14041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14043 if test `eval echo '${'$as_ac_var'}'` = yes; then
14044 cat >>confdefs.h <<_ACEOF
14045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14046 _ACEOF
14049 done
14052 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
14053 # loading of modules.
14055 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
14056 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
14057 if test -z "$DYNLOADFILE"
14058 then
14059 case $ac_sys_system/$ac_sys_release in
14060 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
14061 if test "$ac_cv_func_dlopen" = yes
14062 then DYNLOADFILE="dynload_shlib.o"
14063 else DYNLOADFILE="dynload_aix.o"
14066 BeOS*) DYNLOADFILE="dynload_beos.o";;
14067 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
14068 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
14069 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
14070 atheos*) DYNLOADFILE="dynload_atheos.o";;
14072 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
14073 # out any dynamic loading
14074 if test "$ac_cv_func_dlopen" = yes
14075 then DYNLOADFILE="dynload_shlib.o"
14076 else DYNLOADFILE="dynload_stub.o"
14079 esac
14081 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
14082 echo "${ECHO_T}$DYNLOADFILE" >&6
14083 if test "$DYNLOADFILE" != "dynload_stub.o"
14084 then
14086 cat >>confdefs.h <<\_ACEOF
14087 #define HAVE_DYNAMIC_LOADING 1
14088 _ACEOF
14092 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14095 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14096 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14097 if test -z "$MACHDEP_OBJS"
14098 then
14099 MACHDEP_OBJS=$extra_machdep_objs
14100 else
14101 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
14103 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14104 echo "${ECHO_T}MACHDEP_OBJS" >&6
14106 # checks for library functions
14183 for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \
14184 execv fork fpathconf ftime ftruncate \
14185 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14186 getpriority getpwent getspnam getspent getsid getwd \
14187 kill killpg lchown lstat mkfifo mknod mktime \
14188 mremap nice pathconf pause plock poll pthread_init \
14189 putenv readlink realpath \
14190 select setegid seteuid setgid \
14191 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14192 sigaction siginterrupt sigrelse strftime \
14193 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
14194 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14197 echo "$as_me:$LINENO: checking for $ac_func" >&5
14198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14199 if eval "test \"\${$as_ac_var+set}\" = set"; then
14200 echo $ECHO_N "(cached) $ECHO_C" >&6
14201 else
14202 cat >conftest.$ac_ext <<_ACEOF
14203 /* confdefs.h. */
14204 _ACEOF
14205 cat confdefs.h >>conftest.$ac_ext
14206 cat >>conftest.$ac_ext <<_ACEOF
14207 /* end confdefs.h. */
14208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14210 #define $ac_func innocuous_$ac_func
14212 /* System header to define __stub macros and hopefully few prototypes,
14213 which can conflict with char $ac_func (); below.
14214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14215 <limits.h> exists even on freestanding compilers. */
14217 #ifdef __STDC__
14218 # include <limits.h>
14219 #else
14220 # include <assert.h>
14221 #endif
14223 #undef $ac_func
14225 /* Override any gcc2 internal prototype to avoid an error. */
14226 #ifdef __cplusplus
14227 extern "C"
14229 #endif
14230 /* We use char because int might match the return type of a gcc2
14231 builtin and then its argument prototype would still apply. */
14232 char $ac_func ();
14233 /* The GNU C library defines this for functions which it implements
14234 to always fail with ENOSYS. Some functions are actually named
14235 something starting with __ and the normal name is an alias. */
14236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14237 choke me
14238 #else
14239 char (*f) () = $ac_func;
14240 #endif
14241 #ifdef __cplusplus
14243 #endif
14246 main ()
14248 return f != $ac_func;
14250 return 0;
14252 _ACEOF
14253 rm -f conftest.$ac_objext conftest$ac_exeext
14254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14255 (eval $ac_link) 2>conftest.er1
14256 ac_status=$?
14257 grep -v '^ *+' conftest.er1 >conftest.err
14258 rm -f conftest.er1
14259 cat conftest.err >&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); } &&
14262 { ac_try='test -z "$ac_c_werror_flag"
14263 || test ! -s conftest.err'
14264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265 (eval $ac_try) 2>&5
14266 ac_status=$?
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; } &&
14269 { ac_try='test -s conftest$ac_exeext'
14270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271 (eval $ac_try) 2>&5
14272 ac_status=$?
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; }; then
14275 eval "$as_ac_var=yes"
14276 else
14277 echo "$as_me: failed program was:" >&5
14278 sed 's/^/| /' conftest.$ac_ext >&5
14280 eval "$as_ac_var=no"
14282 rm -f conftest.err conftest.$ac_objext \
14283 conftest$ac_exeext conftest.$ac_ext
14285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14287 if test `eval echo '${'$as_ac_var'}'` = yes; then
14288 cat >>confdefs.h <<_ACEOF
14289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14290 _ACEOF
14293 done
14296 # For some functions, having a definition is not sufficient, since
14297 # we want to take their address.
14298 echo "$as_me:$LINENO: checking for chroot" >&5
14299 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14300 cat >conftest.$ac_ext <<_ACEOF
14301 /* confdefs.h. */
14302 _ACEOF
14303 cat confdefs.h >>conftest.$ac_ext
14304 cat >>conftest.$ac_ext <<_ACEOF
14305 /* end confdefs.h. */
14306 #include <unistd.h>
14308 main ()
14310 void *x=chroot
14312 return 0;
14314 _ACEOF
14315 rm -f conftest.$ac_objext
14316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14317 (eval $ac_compile) 2>conftest.er1
14318 ac_status=$?
14319 grep -v '^ *+' conftest.er1 >conftest.err
14320 rm -f conftest.er1
14321 cat conftest.err >&5
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); } &&
14324 { ac_try='test -z "$ac_c_werror_flag"
14325 || test ! -s conftest.err'
14326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327 (eval $ac_try) 2>&5
14328 ac_status=$?
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; } &&
14331 { ac_try='test -s conftest.$ac_objext'
14332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333 (eval $ac_try) 2>&5
14334 ac_status=$?
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; }; then
14338 cat >>confdefs.h <<\_ACEOF
14339 #define HAVE_CHROOT 1
14340 _ACEOF
14342 echo "$as_me:$LINENO: result: yes" >&5
14343 echo "${ECHO_T}yes" >&6
14344 else
14345 echo "$as_me: failed program was:" >&5
14346 sed 's/^/| /' conftest.$ac_ext >&5
14348 echo "$as_me:$LINENO: result: no" >&5
14349 echo "${ECHO_T}no" >&6
14352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14353 echo "$as_me:$LINENO: checking for link" >&5
14354 echo $ECHO_N "checking for link... $ECHO_C" >&6
14355 cat >conftest.$ac_ext <<_ACEOF
14356 /* confdefs.h. */
14357 _ACEOF
14358 cat confdefs.h >>conftest.$ac_ext
14359 cat >>conftest.$ac_ext <<_ACEOF
14360 /* end confdefs.h. */
14361 #include <unistd.h>
14363 main ()
14365 void *x=link
14367 return 0;
14369 _ACEOF
14370 rm -f conftest.$ac_objext
14371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14372 (eval $ac_compile) 2>conftest.er1
14373 ac_status=$?
14374 grep -v '^ *+' conftest.er1 >conftest.err
14375 rm -f conftest.er1
14376 cat conftest.err >&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } &&
14379 { ac_try='test -z "$ac_c_werror_flag"
14380 || test ! -s conftest.err'
14381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382 (eval $ac_try) 2>&5
14383 ac_status=$?
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; } &&
14386 { ac_try='test -s conftest.$ac_objext'
14387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388 (eval $ac_try) 2>&5
14389 ac_status=$?
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; }; then
14393 cat >>confdefs.h <<\_ACEOF
14394 #define HAVE_LINK 1
14395 _ACEOF
14397 echo "$as_me:$LINENO: result: yes" >&5
14398 echo "${ECHO_T}yes" >&6
14399 else
14400 echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14403 echo "$as_me:$LINENO: result: no" >&5
14404 echo "${ECHO_T}no" >&6
14407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14408 echo "$as_me:$LINENO: checking for symlink" >&5
14409 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14410 cat >conftest.$ac_ext <<_ACEOF
14411 /* confdefs.h. */
14412 _ACEOF
14413 cat confdefs.h >>conftest.$ac_ext
14414 cat >>conftest.$ac_ext <<_ACEOF
14415 /* end confdefs.h. */
14416 #include <unistd.h>
14418 main ()
14420 void *x=symlink
14422 return 0;
14424 _ACEOF
14425 rm -f conftest.$ac_objext
14426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14427 (eval $ac_compile) 2>conftest.er1
14428 ac_status=$?
14429 grep -v '^ *+' conftest.er1 >conftest.err
14430 rm -f conftest.er1
14431 cat conftest.err >&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } &&
14434 { ac_try='test -z "$ac_c_werror_flag"
14435 || test ! -s conftest.err'
14436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437 (eval $ac_try) 2>&5
14438 ac_status=$?
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; } &&
14441 { ac_try='test -s conftest.$ac_objext'
14442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443 (eval $ac_try) 2>&5
14444 ac_status=$?
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); }; }; then
14448 cat >>confdefs.h <<\_ACEOF
14449 #define HAVE_SYMLINK 1
14450 _ACEOF
14452 echo "$as_me:$LINENO: result: yes" >&5
14453 echo "${ECHO_T}yes" >&6
14454 else
14455 echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.$ac_ext >&5
14458 echo "$as_me:$LINENO: result: no" >&5
14459 echo "${ECHO_T}no" >&6
14462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14463 echo "$as_me:$LINENO: checking for fchdir" >&5
14464 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
14465 cat >conftest.$ac_ext <<_ACEOF
14466 /* confdefs.h. */
14467 _ACEOF
14468 cat confdefs.h >>conftest.$ac_ext
14469 cat >>conftest.$ac_ext <<_ACEOF
14470 /* end confdefs.h. */
14471 #include <unistd.h>
14473 main ()
14475 void *x=fchdir
14477 return 0;
14479 _ACEOF
14480 rm -f conftest.$ac_objext
14481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14482 (eval $ac_compile) 2>conftest.er1
14483 ac_status=$?
14484 grep -v '^ *+' conftest.er1 >conftest.err
14485 rm -f conftest.er1
14486 cat conftest.err >&5
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); } &&
14489 { ac_try='test -z "$ac_c_werror_flag"
14490 || test ! -s conftest.err'
14491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14492 (eval $ac_try) 2>&5
14493 ac_status=$?
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); }; } &&
14496 { ac_try='test -s conftest.$ac_objext'
14497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14498 (eval $ac_try) 2>&5
14499 ac_status=$?
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); }; }; then
14503 cat >>confdefs.h <<\_ACEOF
14504 #define HAVE_FCHDIR 1
14505 _ACEOF
14507 echo "$as_me:$LINENO: result: yes" >&5
14508 echo "${ECHO_T}yes" >&6
14509 else
14510 echo "$as_me: failed program was:" >&5
14511 sed 's/^/| /' conftest.$ac_ext >&5
14513 echo "$as_me:$LINENO: result: no" >&5
14514 echo "${ECHO_T}no" >&6
14517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14518 echo "$as_me:$LINENO: checking for fsync" >&5
14519 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
14520 cat >conftest.$ac_ext <<_ACEOF
14521 /* confdefs.h. */
14522 _ACEOF
14523 cat confdefs.h >>conftest.$ac_ext
14524 cat >>conftest.$ac_ext <<_ACEOF
14525 /* end confdefs.h. */
14526 #include <unistd.h>
14528 main ()
14530 void *x=fsync
14532 return 0;
14534 _ACEOF
14535 rm -f conftest.$ac_objext
14536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14537 (eval $ac_compile) 2>conftest.er1
14538 ac_status=$?
14539 grep -v '^ *+' conftest.er1 >conftest.err
14540 rm -f conftest.er1
14541 cat conftest.err >&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); } &&
14544 { ac_try='test -z "$ac_c_werror_flag"
14545 || test ! -s conftest.err'
14546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14547 (eval $ac_try) 2>&5
14548 ac_status=$?
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); }; } &&
14551 { ac_try='test -s conftest.$ac_objext'
14552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14553 (eval $ac_try) 2>&5
14554 ac_status=$?
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); }; }; then
14558 cat >>confdefs.h <<\_ACEOF
14559 #define HAVE_FSYNC 1
14560 _ACEOF
14562 echo "$as_me:$LINENO: result: yes" >&5
14563 echo "${ECHO_T}yes" >&6
14564 else
14565 echo "$as_me: failed program was:" >&5
14566 sed 's/^/| /' conftest.$ac_ext >&5
14568 echo "$as_me:$LINENO: result: no" >&5
14569 echo "${ECHO_T}no" >&6
14572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14573 echo "$as_me:$LINENO: checking for fdatasync" >&5
14574 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
14575 cat >conftest.$ac_ext <<_ACEOF
14576 /* confdefs.h. */
14577 _ACEOF
14578 cat confdefs.h >>conftest.$ac_ext
14579 cat >>conftest.$ac_ext <<_ACEOF
14580 /* end confdefs.h. */
14581 #include <unistd.h>
14583 main ()
14585 void *x=fdatasync
14587 return 0;
14589 _ACEOF
14590 rm -f conftest.$ac_objext
14591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14592 (eval $ac_compile) 2>conftest.er1
14593 ac_status=$?
14594 grep -v '^ *+' conftest.er1 >conftest.err
14595 rm -f conftest.er1
14596 cat conftest.err >&5
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); } &&
14599 { ac_try='test -z "$ac_c_werror_flag"
14600 || test ! -s conftest.err'
14601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14602 (eval $ac_try) 2>&5
14603 ac_status=$?
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); }; } &&
14606 { ac_try='test -s conftest.$ac_objext'
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14609 ac_status=$?
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; }; then
14613 cat >>confdefs.h <<\_ACEOF
14614 #define HAVE_FDATASYNC 1
14615 _ACEOF
14617 echo "$as_me:$LINENO: result: yes" >&5
14618 echo "${ECHO_T}yes" >&6
14619 else
14620 echo "$as_me: failed program was:" >&5
14621 sed 's/^/| /' conftest.$ac_ext >&5
14623 echo "$as_me:$LINENO: result: no" >&5
14624 echo "${ECHO_T}no" >&6
14627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14629 # On some systems (eg. FreeBSD 5), we would find a definition of the
14630 # functions ctermid_r, setgroups in the library, but no prototype
14631 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
14632 # address to avoid compiler warnings and potential miscompilations
14633 # because of the missing prototypes.
14635 echo "$as_me:$LINENO: checking for ctermid_r" >&5
14636 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
14637 cat >conftest.$ac_ext <<_ACEOF
14638 /* confdefs.h. */
14639 _ACEOF
14640 cat confdefs.h >>conftest.$ac_ext
14641 cat >>conftest.$ac_ext <<_ACEOF
14642 /* end confdefs.h. */
14644 #include "confdefs.h"
14645 #include <stdio.h>
14648 main ()
14650 void* p = ctermid_r
14652 return 0;
14654 _ACEOF
14655 rm -f conftest.$ac_objext
14656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14657 (eval $ac_compile) 2>conftest.er1
14658 ac_status=$?
14659 grep -v '^ *+' conftest.er1 >conftest.err
14660 rm -f conftest.er1
14661 cat conftest.err >&5
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); } &&
14664 { ac_try='test -z "$ac_c_werror_flag"
14665 || test ! -s conftest.err'
14666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14667 (eval $ac_try) 2>&5
14668 ac_status=$?
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); }; } &&
14671 { ac_try='test -s conftest.$ac_objext'
14672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14673 (eval $ac_try) 2>&5
14674 ac_status=$?
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); }; }; then
14678 cat >>confdefs.h <<\_ACEOF
14679 #define HAVE_CTERMID_R 1
14680 _ACEOF
14682 echo "$as_me:$LINENO: result: yes" >&5
14683 echo "${ECHO_T}yes" >&6
14684 else
14685 echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14688 echo "$as_me:$LINENO: result: no" >&5
14689 echo "${ECHO_T}no" >&6
14692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14694 echo "$as_me:$LINENO: checking for flock" >&5
14695 echo $ECHO_N "checking for flock... $ECHO_C" >&6
14696 cat >conftest.$ac_ext <<_ACEOF
14697 /* confdefs.h. */
14698 _ACEOF
14699 cat confdefs.h >>conftest.$ac_ext
14700 cat >>conftest.$ac_ext <<_ACEOF
14701 /* end confdefs.h. */
14703 #include "confdefs.h"
14704 #include <sys/file.h>
14707 main ()
14709 void* p = flock
14711 return 0;
14713 _ACEOF
14714 rm -f conftest.$ac_objext
14715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14716 (eval $ac_compile) 2>conftest.er1
14717 ac_status=$?
14718 grep -v '^ *+' conftest.er1 >conftest.err
14719 rm -f conftest.er1
14720 cat conftest.err >&5
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); } &&
14723 { ac_try='test -z "$ac_c_werror_flag"
14724 || test ! -s conftest.err'
14725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726 (eval $ac_try) 2>&5
14727 ac_status=$?
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); }; } &&
14730 { ac_try='test -s conftest.$ac_objext'
14731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732 (eval $ac_try) 2>&5
14733 ac_status=$?
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); }; }; then
14737 cat >>confdefs.h <<\_ACEOF
14738 #define HAVE_FLOCK 1
14739 _ACEOF
14741 echo "$as_me:$LINENO: result: yes" >&5
14742 echo "${ECHO_T}yes" >&6
14743 else
14744 echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14747 echo "$as_me:$LINENO: result: no" >&5
14748 echo "${ECHO_T}no" >&6
14751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14753 echo "$as_me:$LINENO: checking for getpagesize" >&5
14754 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14755 cat >conftest.$ac_ext <<_ACEOF
14756 /* confdefs.h. */
14757 _ACEOF
14758 cat confdefs.h >>conftest.$ac_ext
14759 cat >>conftest.$ac_ext <<_ACEOF
14760 /* end confdefs.h. */
14762 #include "confdefs.h"
14763 #include <unistd.h>
14766 main ()
14768 void* p = getpagesize
14770 return 0;
14772 _ACEOF
14773 rm -f conftest.$ac_objext
14774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14775 (eval $ac_compile) 2>conftest.er1
14776 ac_status=$?
14777 grep -v '^ *+' conftest.er1 >conftest.err
14778 rm -f conftest.er1
14779 cat conftest.err >&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); } &&
14782 { ac_try='test -z "$ac_c_werror_flag"
14783 || test ! -s conftest.err'
14784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785 (eval $ac_try) 2>&5
14786 ac_status=$?
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); }; } &&
14789 { ac_try='test -s conftest.$ac_objext'
14790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14791 (eval $ac_try) 2>&5
14792 ac_status=$?
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; }; then
14796 cat >>confdefs.h <<\_ACEOF
14797 #define HAVE_GETPAGESIZE 1
14798 _ACEOF
14800 echo "$as_me:$LINENO: result: yes" >&5
14801 echo "${ECHO_T}yes" >&6
14802 else
14803 echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.$ac_ext >&5
14806 echo "$as_me:$LINENO: result: no" >&5
14807 echo "${ECHO_T}no" >&6
14810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14812 for ac_prog in true
14814 # Extract the first word of "$ac_prog", so it can be a program name with args.
14815 set dummy $ac_prog; ac_word=$2
14816 echo "$as_me:$LINENO: checking for $ac_word" >&5
14817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14818 if test "${ac_cv_prog_TRUE+set}" = set; then
14819 echo $ECHO_N "(cached) $ECHO_C" >&6
14820 else
14821 if test -n "$TRUE"; then
14822 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
14823 else
14824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14825 for as_dir in $PATH
14827 IFS=$as_save_IFS
14828 test -z "$as_dir" && as_dir=.
14829 for ac_exec_ext in '' $ac_executable_extensions; do
14830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14831 ac_cv_prog_TRUE="$ac_prog"
14832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14833 break 2
14835 done
14836 done
14840 TRUE=$ac_cv_prog_TRUE
14841 if test -n "$TRUE"; then
14842 echo "$as_me:$LINENO: result: $TRUE" >&5
14843 echo "${ECHO_T}$TRUE" >&6
14844 else
14845 echo "$as_me:$LINENO: result: no" >&5
14846 echo "${ECHO_T}no" >&6
14849 test -n "$TRUE" && break
14850 done
14851 test -n "$TRUE" || TRUE="/bin/true"
14854 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14855 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14856 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14857 echo $ECHO_N "(cached) $ECHO_C" >&6
14858 else
14859 ac_check_lib_save_LIBS=$LIBS
14860 LIBS="-lc $LIBS"
14861 cat >conftest.$ac_ext <<_ACEOF
14862 /* confdefs.h. */
14863 _ACEOF
14864 cat confdefs.h >>conftest.$ac_ext
14865 cat >>conftest.$ac_ext <<_ACEOF
14866 /* end confdefs.h. */
14868 /* Override any gcc2 internal prototype to avoid an error. */
14869 #ifdef __cplusplus
14870 extern "C"
14871 #endif
14872 /* We use char because int might match the return type of a gcc2
14873 builtin and then its argument prototype would still apply. */
14874 char inet_aton ();
14876 main ()
14878 inet_aton ();
14880 return 0;
14882 _ACEOF
14883 rm -f conftest.$ac_objext conftest$ac_exeext
14884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14885 (eval $ac_link) 2>conftest.er1
14886 ac_status=$?
14887 grep -v '^ *+' conftest.er1 >conftest.err
14888 rm -f conftest.er1
14889 cat conftest.err >&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); } &&
14892 { ac_try='test -z "$ac_c_werror_flag"
14893 || test ! -s conftest.err'
14894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14895 (eval $ac_try) 2>&5
14896 ac_status=$?
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); }; } &&
14899 { ac_try='test -s conftest$ac_exeext'
14900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901 (eval $ac_try) 2>&5
14902 ac_status=$?
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); }; }; then
14905 ac_cv_lib_c_inet_aton=yes
14906 else
14907 echo "$as_me: failed program was:" >&5
14908 sed 's/^/| /' conftest.$ac_ext >&5
14910 ac_cv_lib_c_inet_aton=no
14912 rm -f conftest.err conftest.$ac_objext \
14913 conftest$ac_exeext conftest.$ac_ext
14914 LIBS=$ac_check_lib_save_LIBS
14916 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14917 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14918 if test $ac_cv_lib_c_inet_aton = yes; then
14919 $ac_cv_prog_TRUE
14920 else
14922 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14923 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14924 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14925 echo $ECHO_N "(cached) $ECHO_C" >&6
14926 else
14927 ac_check_lib_save_LIBS=$LIBS
14928 LIBS="-lresolv $LIBS"
14929 cat >conftest.$ac_ext <<_ACEOF
14930 /* confdefs.h. */
14931 _ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h. */
14936 /* Override any gcc2 internal prototype to avoid an error. */
14937 #ifdef __cplusplus
14938 extern "C"
14939 #endif
14940 /* We use char because int might match the return type of a gcc2
14941 builtin and then its argument prototype would still apply. */
14942 char inet_aton ();
14944 main ()
14946 inet_aton ();
14948 return 0;
14950 _ACEOF
14951 rm -f conftest.$ac_objext conftest$ac_exeext
14952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14953 (eval $ac_link) 2>conftest.er1
14954 ac_status=$?
14955 grep -v '^ *+' conftest.er1 >conftest.err
14956 rm -f conftest.er1
14957 cat conftest.err >&5
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); } &&
14960 { ac_try='test -z "$ac_c_werror_flag"
14961 || test ! -s conftest.err'
14962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963 (eval $ac_try) 2>&5
14964 ac_status=$?
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); }; } &&
14967 { ac_try='test -s conftest$ac_exeext'
14968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969 (eval $ac_try) 2>&5
14970 ac_status=$?
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); }; }; then
14973 ac_cv_lib_resolv_inet_aton=yes
14974 else
14975 echo "$as_me: failed program was:" >&5
14976 sed 's/^/| /' conftest.$ac_ext >&5
14978 ac_cv_lib_resolv_inet_aton=no
14980 rm -f conftest.err conftest.$ac_objext \
14981 conftest$ac_exeext conftest.$ac_ext
14982 LIBS=$ac_check_lib_save_LIBS
14984 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14985 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14986 if test $ac_cv_lib_resolv_inet_aton = yes; then
14987 cat >>confdefs.h <<_ACEOF
14988 #define HAVE_LIBRESOLV 1
14989 _ACEOF
14991 LIBS="-lresolv $LIBS"
14999 case $ac_sys_system/$ac_sys_release in
15000 Darwin/*)
15001 _CUR_CFLAGS="${CFLAGS}"
15002 _CUR_LDFLAGS="${LDFLAGS}"
15003 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
15004 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
15006 esac
15008 echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
15009 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6
15010 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
15011 echo $ECHO_N "(cached) $ECHO_C" >&6
15012 else
15013 ac_check_lib_save_LIBS=$LIBS
15014 LIBS="-lz $LIBS"
15015 cat >conftest.$ac_ext <<_ACEOF
15016 /* confdefs.h. */
15017 _ACEOF
15018 cat confdefs.h >>conftest.$ac_ext
15019 cat >>conftest.$ac_ext <<_ACEOF
15020 /* end confdefs.h. */
15022 /* Override any gcc2 internal prototype to avoid an error. */
15023 #ifdef __cplusplus
15024 extern "C"
15025 #endif
15026 /* We use char because int might match the return type of a gcc2
15027 builtin and then its argument prototype would still apply. */
15028 char inflateCopy ();
15030 main ()
15032 inflateCopy ();
15034 return 0;
15036 _ACEOF
15037 rm -f conftest.$ac_objext conftest$ac_exeext
15038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15039 (eval $ac_link) 2>conftest.er1
15040 ac_status=$?
15041 grep -v '^ *+' conftest.er1 >conftest.err
15042 rm -f conftest.er1
15043 cat conftest.err >&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); } &&
15046 { ac_try='test -z "$ac_c_werror_flag"
15047 || test ! -s conftest.err'
15048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049 (eval $ac_try) 2>&5
15050 ac_status=$?
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; } &&
15053 { ac_try='test -s conftest$ac_exeext'
15054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055 (eval $ac_try) 2>&5
15056 ac_status=$?
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); }; }; then
15059 ac_cv_lib_z_inflateCopy=yes
15060 else
15061 echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15064 ac_cv_lib_z_inflateCopy=no
15066 rm -f conftest.err conftest.$ac_objext \
15067 conftest$ac_exeext conftest.$ac_ext
15068 LIBS=$ac_check_lib_save_LIBS
15070 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
15071 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6
15072 if test $ac_cv_lib_z_inflateCopy = yes; then
15074 cat >>confdefs.h <<\_ACEOF
15075 #define HAVE_ZLIB_COPY 1
15076 _ACEOF
15081 case $ac_sys_system/$ac_sys_release in
15082 Darwin/*)
15083 CFLAGS="${_CUR_CFLAGS}"
15084 LDFLAGS="${_CUR_LDFLAGS}"
15086 esac
15088 echo "$as_me:$LINENO: checking for hstrerror" >&5
15089 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
15090 cat >conftest.$ac_ext <<_ACEOF
15091 /* confdefs.h. */
15092 _ACEOF
15093 cat confdefs.h >>conftest.$ac_ext
15094 cat >>conftest.$ac_ext <<_ACEOF
15095 /* end confdefs.h. */
15097 #include "confdefs.h"
15098 #include <netdb.h>
15101 main ()
15103 void* p = hstrerror; hstrerror(0)
15105 return 0;
15107 _ACEOF
15108 rm -f conftest.$ac_objext conftest$ac_exeext
15109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15110 (eval $ac_link) 2>conftest.er1
15111 ac_status=$?
15112 grep -v '^ *+' conftest.er1 >conftest.err
15113 rm -f conftest.er1
15114 cat conftest.err >&5
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); } &&
15117 { ac_try='test -z "$ac_c_werror_flag"
15118 || test ! -s conftest.err'
15119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15120 (eval $ac_try) 2>&5
15121 ac_status=$?
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); }; } &&
15124 { ac_try='test -s conftest$ac_exeext'
15125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126 (eval $ac_try) 2>&5
15127 ac_status=$?
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; }; then
15131 cat >>confdefs.h <<\_ACEOF
15132 #define HAVE_HSTRERROR 1
15133 _ACEOF
15135 echo "$as_me:$LINENO: result: yes" >&5
15136 echo "${ECHO_T}yes" >&6
15137 else
15138 echo "$as_me: failed program was:" >&5
15139 sed 's/^/| /' conftest.$ac_ext >&5
15141 echo "$as_me:$LINENO: result: no" >&5
15142 echo "${ECHO_T}no" >&6
15145 rm -f conftest.err conftest.$ac_objext \
15146 conftest$ac_exeext conftest.$ac_ext
15148 echo "$as_me:$LINENO: checking for inet_aton" >&5
15149 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
15150 cat >conftest.$ac_ext <<_ACEOF
15151 /* confdefs.h. */
15152 _ACEOF
15153 cat confdefs.h >>conftest.$ac_ext
15154 cat >>conftest.$ac_ext <<_ACEOF
15155 /* end confdefs.h. */
15157 #include "confdefs.h"
15158 #include <sys/types.h>
15159 #include <sys/socket.h>
15160 #include <netinet/in.h>
15161 #include <arpa/inet.h>
15164 main ()
15166 void* p = inet_aton;inet_aton(0,0)
15168 return 0;
15170 _ACEOF
15171 rm -f conftest.$ac_objext conftest$ac_exeext
15172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15173 (eval $ac_link) 2>conftest.er1
15174 ac_status=$?
15175 grep -v '^ *+' conftest.er1 >conftest.err
15176 rm -f conftest.er1
15177 cat conftest.err >&5
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); } &&
15180 { ac_try='test -z "$ac_c_werror_flag"
15181 || test ! -s conftest.err'
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; } &&
15187 { ac_try='test -s conftest$ac_exeext'
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15190 ac_status=$?
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
15194 cat >>confdefs.h <<\_ACEOF
15195 #define HAVE_INET_ATON 1
15196 _ACEOF
15198 echo "$as_me:$LINENO: result: yes" >&5
15199 echo "${ECHO_T}yes" >&6
15200 else
15201 echo "$as_me: failed program was:" >&5
15202 sed 's/^/| /' conftest.$ac_ext >&5
15204 echo "$as_me:$LINENO: result: no" >&5
15205 echo "${ECHO_T}no" >&6
15208 rm -f conftest.err conftest.$ac_objext \
15209 conftest$ac_exeext conftest.$ac_ext
15211 echo "$as_me:$LINENO: checking for inet_pton" >&5
15212 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15213 cat >conftest.$ac_ext <<_ACEOF
15214 /* confdefs.h. */
15215 _ACEOF
15216 cat confdefs.h >>conftest.$ac_ext
15217 cat >>conftest.$ac_ext <<_ACEOF
15218 /* end confdefs.h. */
15220 #include "confdefs.h"
15221 #include <sys/types.h>
15222 #include <sys/socket.h>
15223 #include <netinet/in.h>
15224 #include <arpa/inet.h>
15227 main ()
15229 void* p = inet_pton
15231 return 0;
15233 _ACEOF
15234 rm -f conftest.$ac_objext
15235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15236 (eval $ac_compile) 2>conftest.er1
15237 ac_status=$?
15238 grep -v '^ *+' conftest.er1 >conftest.err
15239 rm -f conftest.er1
15240 cat conftest.err >&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); } &&
15243 { ac_try='test -z "$ac_c_werror_flag"
15244 || test ! -s conftest.err'
15245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15247 ac_status=$?
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; } &&
15250 { ac_try='test -s conftest.$ac_objext'
15251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15252 (eval $ac_try) 2>&5
15253 ac_status=$?
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); }; }; then
15257 cat >>confdefs.h <<\_ACEOF
15258 #define HAVE_INET_PTON 1
15259 _ACEOF
15261 echo "$as_me:$LINENO: result: yes" >&5
15262 echo "${ECHO_T}yes" >&6
15263 else
15264 echo "$as_me: failed program was:" >&5
15265 sed 's/^/| /' conftest.$ac_ext >&5
15267 echo "$as_me:$LINENO: result: no" >&5
15268 echo "${ECHO_T}no" >&6
15271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15273 # On some systems, setgroups is in unistd.h, on others, in grp.h
15274 echo "$as_me:$LINENO: checking for setgroups" >&5
15275 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15276 cat >conftest.$ac_ext <<_ACEOF
15277 /* confdefs.h. */
15278 _ACEOF
15279 cat confdefs.h >>conftest.$ac_ext
15280 cat >>conftest.$ac_ext <<_ACEOF
15281 /* end confdefs.h. */
15283 #include "confdefs.h"
15284 #include <unistd.h>
15285 #ifdef HAVE_GRP_H
15286 #include <grp.h>
15287 #endif
15290 main ()
15292 void* p = setgroups
15294 return 0;
15296 _ACEOF
15297 rm -f conftest.$ac_objext
15298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15299 (eval $ac_compile) 2>conftest.er1
15300 ac_status=$?
15301 grep -v '^ *+' conftest.er1 >conftest.err
15302 rm -f conftest.er1
15303 cat conftest.err >&5
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); } &&
15306 { ac_try='test -z "$ac_c_werror_flag"
15307 || test ! -s conftest.err'
15308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15309 (eval $ac_try) 2>&5
15310 ac_status=$?
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); }; } &&
15313 { ac_try='test -s conftest.$ac_objext'
15314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15315 (eval $ac_try) 2>&5
15316 ac_status=$?
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); }; }; then
15320 cat >>confdefs.h <<\_ACEOF
15321 #define HAVE_SETGROUPS 1
15322 _ACEOF
15324 echo "$as_me:$LINENO: result: yes" >&5
15325 echo "${ECHO_T}yes" >&6
15326 else
15327 echo "$as_me: failed program was:" >&5
15328 sed 's/^/| /' conftest.$ac_ext >&5
15330 echo "$as_me:$LINENO: result: no" >&5
15331 echo "${ECHO_T}no" >&6
15334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15336 # check for openpty and forkpty
15339 for ac_func in openpty
15341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15342 echo "$as_me:$LINENO: checking for $ac_func" >&5
15343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15344 if eval "test \"\${$as_ac_var+set}\" = set"; then
15345 echo $ECHO_N "(cached) $ECHO_C" >&6
15346 else
15347 cat >conftest.$ac_ext <<_ACEOF
15348 /* confdefs.h. */
15349 _ACEOF
15350 cat confdefs.h >>conftest.$ac_ext
15351 cat >>conftest.$ac_ext <<_ACEOF
15352 /* end confdefs.h. */
15353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15355 #define $ac_func innocuous_$ac_func
15357 /* System header to define __stub macros and hopefully few prototypes,
15358 which can conflict with char $ac_func (); below.
15359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15360 <limits.h> exists even on freestanding compilers. */
15362 #ifdef __STDC__
15363 # include <limits.h>
15364 #else
15365 # include <assert.h>
15366 #endif
15368 #undef $ac_func
15370 /* Override any gcc2 internal prototype to avoid an error. */
15371 #ifdef __cplusplus
15372 extern "C"
15374 #endif
15375 /* We use char because int might match the return type of a gcc2
15376 builtin and then its argument prototype would still apply. */
15377 char $ac_func ();
15378 /* The GNU C library defines this for functions which it implements
15379 to always fail with ENOSYS. Some functions are actually named
15380 something starting with __ and the normal name is an alias. */
15381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15382 choke me
15383 #else
15384 char (*f) () = $ac_func;
15385 #endif
15386 #ifdef __cplusplus
15388 #endif
15391 main ()
15393 return f != $ac_func;
15395 return 0;
15397 _ACEOF
15398 rm -f conftest.$ac_objext conftest$ac_exeext
15399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15400 (eval $ac_link) 2>conftest.er1
15401 ac_status=$?
15402 grep -v '^ *+' conftest.er1 >conftest.err
15403 rm -f conftest.er1
15404 cat conftest.err >&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); } &&
15407 { ac_try='test -z "$ac_c_werror_flag"
15408 || test ! -s conftest.err'
15409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410 (eval $ac_try) 2>&5
15411 ac_status=$?
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; } &&
15414 { ac_try='test -s conftest$ac_exeext'
15415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416 (eval $ac_try) 2>&5
15417 ac_status=$?
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); }; }; then
15420 eval "$as_ac_var=yes"
15421 else
15422 echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15425 eval "$as_ac_var=no"
15427 rm -f conftest.err conftest.$ac_objext \
15428 conftest$ac_exeext conftest.$ac_ext
15430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15431 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15432 if test `eval echo '${'$as_ac_var'}'` = yes; then
15433 cat >>confdefs.h <<_ACEOF
15434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15435 _ACEOF
15437 else
15438 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15439 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15440 if test "${ac_cv_lib_util_openpty+set}" = set; then
15441 echo $ECHO_N "(cached) $ECHO_C" >&6
15442 else
15443 ac_check_lib_save_LIBS=$LIBS
15444 LIBS="-lutil $LIBS"
15445 cat >conftest.$ac_ext <<_ACEOF
15446 /* confdefs.h. */
15447 _ACEOF
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h. */
15452 /* Override any gcc2 internal prototype to avoid an error. */
15453 #ifdef __cplusplus
15454 extern "C"
15455 #endif
15456 /* We use char because int might match the return type of a gcc2
15457 builtin and then its argument prototype would still apply. */
15458 char openpty ();
15460 main ()
15462 openpty ();
15464 return 0;
15466 _ACEOF
15467 rm -f conftest.$ac_objext conftest$ac_exeext
15468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15469 (eval $ac_link) 2>conftest.er1
15470 ac_status=$?
15471 grep -v '^ *+' conftest.er1 >conftest.err
15472 rm -f conftest.er1
15473 cat conftest.err >&5
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); } &&
15476 { ac_try='test -z "$ac_c_werror_flag"
15477 || test ! -s conftest.err'
15478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15479 (eval $ac_try) 2>&5
15480 ac_status=$?
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); }; } &&
15483 { ac_try='test -s conftest$ac_exeext'
15484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485 (eval $ac_try) 2>&5
15486 ac_status=$?
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); }; }; then
15489 ac_cv_lib_util_openpty=yes
15490 else
15491 echo "$as_me: failed program was:" >&5
15492 sed 's/^/| /' conftest.$ac_ext >&5
15494 ac_cv_lib_util_openpty=no
15496 rm -f conftest.err conftest.$ac_objext \
15497 conftest$ac_exeext conftest.$ac_ext
15498 LIBS=$ac_check_lib_save_LIBS
15500 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15501 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15502 if test $ac_cv_lib_util_openpty = yes; then
15503 cat >>confdefs.h <<\_ACEOF
15504 #define HAVE_OPENPTY 1
15505 _ACEOF
15506 LIBS="$LIBS -lutil"
15507 else
15508 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
15509 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
15510 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
15511 echo $ECHO_N "(cached) $ECHO_C" >&6
15512 else
15513 ac_check_lib_save_LIBS=$LIBS
15514 LIBS="-lbsd $LIBS"
15515 cat >conftest.$ac_ext <<_ACEOF
15516 /* confdefs.h. */
15517 _ACEOF
15518 cat confdefs.h >>conftest.$ac_ext
15519 cat >>conftest.$ac_ext <<_ACEOF
15520 /* end confdefs.h. */
15522 /* Override any gcc2 internal prototype to avoid an error. */
15523 #ifdef __cplusplus
15524 extern "C"
15525 #endif
15526 /* We use char because int might match the return type of a gcc2
15527 builtin and then its argument prototype would still apply. */
15528 char openpty ();
15530 main ()
15532 openpty ();
15534 return 0;
15536 _ACEOF
15537 rm -f conftest.$ac_objext conftest$ac_exeext
15538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15539 (eval $ac_link) 2>conftest.er1
15540 ac_status=$?
15541 grep -v '^ *+' conftest.er1 >conftest.err
15542 rm -f conftest.er1
15543 cat conftest.err >&5
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); } &&
15546 { ac_try='test -z "$ac_c_werror_flag"
15547 || test ! -s conftest.err'
15548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15549 (eval $ac_try) 2>&5
15550 ac_status=$?
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); }; } &&
15553 { ac_try='test -s conftest$ac_exeext'
15554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555 (eval $ac_try) 2>&5
15556 ac_status=$?
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); }; }; then
15559 ac_cv_lib_bsd_openpty=yes
15560 else
15561 echo "$as_me: failed program was:" >&5
15562 sed 's/^/| /' conftest.$ac_ext >&5
15564 ac_cv_lib_bsd_openpty=no
15566 rm -f conftest.err conftest.$ac_objext \
15567 conftest$ac_exeext conftest.$ac_ext
15568 LIBS=$ac_check_lib_save_LIBS
15570 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
15571 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
15572 if test $ac_cv_lib_bsd_openpty = yes; then
15573 cat >>confdefs.h <<\_ACEOF
15574 #define HAVE_OPENPTY 1
15575 _ACEOF
15576 LIBS="$LIBS -lbsd"
15584 done
15587 for ac_func in forkpty
15589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15590 echo "$as_me:$LINENO: checking for $ac_func" >&5
15591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15592 if eval "test \"\${$as_ac_var+set}\" = set"; then
15593 echo $ECHO_N "(cached) $ECHO_C" >&6
15594 else
15595 cat >conftest.$ac_ext <<_ACEOF
15596 /* confdefs.h. */
15597 _ACEOF
15598 cat confdefs.h >>conftest.$ac_ext
15599 cat >>conftest.$ac_ext <<_ACEOF
15600 /* end confdefs.h. */
15601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15603 #define $ac_func innocuous_$ac_func
15605 /* System header to define __stub macros and hopefully few prototypes,
15606 which can conflict with char $ac_func (); below.
15607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15608 <limits.h> exists even on freestanding compilers. */
15610 #ifdef __STDC__
15611 # include <limits.h>
15612 #else
15613 # include <assert.h>
15614 #endif
15616 #undef $ac_func
15618 /* Override any gcc2 internal prototype to avoid an error. */
15619 #ifdef __cplusplus
15620 extern "C"
15622 #endif
15623 /* We use char because int might match the return type of a gcc2
15624 builtin and then its argument prototype would still apply. */
15625 char $ac_func ();
15626 /* The GNU C library defines this for functions which it implements
15627 to always fail with ENOSYS. Some functions are actually named
15628 something starting with __ and the normal name is an alias. */
15629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15630 choke me
15631 #else
15632 char (*f) () = $ac_func;
15633 #endif
15634 #ifdef __cplusplus
15636 #endif
15639 main ()
15641 return f != $ac_func;
15643 return 0;
15645 _ACEOF
15646 rm -f conftest.$ac_objext conftest$ac_exeext
15647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15648 (eval $ac_link) 2>conftest.er1
15649 ac_status=$?
15650 grep -v '^ *+' conftest.er1 >conftest.err
15651 rm -f conftest.er1
15652 cat conftest.err >&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } &&
15655 { ac_try='test -z "$ac_c_werror_flag"
15656 || test ! -s conftest.err'
15657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658 (eval $ac_try) 2>&5
15659 ac_status=$?
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); }; } &&
15662 { ac_try='test -s conftest$ac_exeext'
15663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15664 (eval $ac_try) 2>&5
15665 ac_status=$?
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); }; }; then
15668 eval "$as_ac_var=yes"
15669 else
15670 echo "$as_me: failed program was:" >&5
15671 sed 's/^/| /' conftest.$ac_ext >&5
15673 eval "$as_ac_var=no"
15675 rm -f conftest.err conftest.$ac_objext \
15676 conftest$ac_exeext conftest.$ac_ext
15678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15679 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15680 if test `eval echo '${'$as_ac_var'}'` = yes; then
15681 cat >>confdefs.h <<_ACEOF
15682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15683 _ACEOF
15685 else
15686 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
15687 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
15688 if test "${ac_cv_lib_util_forkpty+set}" = set; then
15689 echo $ECHO_N "(cached) $ECHO_C" >&6
15690 else
15691 ac_check_lib_save_LIBS=$LIBS
15692 LIBS="-lutil $LIBS"
15693 cat >conftest.$ac_ext <<_ACEOF
15694 /* confdefs.h. */
15695 _ACEOF
15696 cat confdefs.h >>conftest.$ac_ext
15697 cat >>conftest.$ac_ext <<_ACEOF
15698 /* end confdefs.h. */
15700 /* Override any gcc2 internal prototype to avoid an error. */
15701 #ifdef __cplusplus
15702 extern "C"
15703 #endif
15704 /* We use char because int might match the return type of a gcc2
15705 builtin and then its argument prototype would still apply. */
15706 char forkpty ();
15708 main ()
15710 forkpty ();
15712 return 0;
15714 _ACEOF
15715 rm -f conftest.$ac_objext conftest$ac_exeext
15716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15717 (eval $ac_link) 2>conftest.er1
15718 ac_status=$?
15719 grep -v '^ *+' conftest.er1 >conftest.err
15720 rm -f conftest.er1
15721 cat conftest.err >&5
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } &&
15724 { ac_try='test -z "$ac_c_werror_flag"
15725 || test ! -s conftest.err'
15726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727 (eval $ac_try) 2>&5
15728 ac_status=$?
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); }; } &&
15731 { ac_try='test -s conftest$ac_exeext'
15732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733 (eval $ac_try) 2>&5
15734 ac_status=$?
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); }; }; then
15737 ac_cv_lib_util_forkpty=yes
15738 else
15739 echo "$as_me: failed program was:" >&5
15740 sed 's/^/| /' conftest.$ac_ext >&5
15742 ac_cv_lib_util_forkpty=no
15744 rm -f conftest.err conftest.$ac_objext \
15745 conftest$ac_exeext conftest.$ac_ext
15746 LIBS=$ac_check_lib_save_LIBS
15748 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
15749 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
15750 if test $ac_cv_lib_util_forkpty = yes; then
15751 cat >>confdefs.h <<\_ACEOF
15752 #define HAVE_FORKPTY 1
15753 _ACEOF
15754 LIBS="$LIBS -lutil"
15755 else
15756 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
15757 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
15758 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
15759 echo $ECHO_N "(cached) $ECHO_C" >&6
15760 else
15761 ac_check_lib_save_LIBS=$LIBS
15762 LIBS="-lbsd $LIBS"
15763 cat >conftest.$ac_ext <<_ACEOF
15764 /* confdefs.h. */
15765 _ACEOF
15766 cat confdefs.h >>conftest.$ac_ext
15767 cat >>conftest.$ac_ext <<_ACEOF
15768 /* end confdefs.h. */
15770 /* Override any gcc2 internal prototype to avoid an error. */
15771 #ifdef __cplusplus
15772 extern "C"
15773 #endif
15774 /* We use char because int might match the return type of a gcc2
15775 builtin and then its argument prototype would still apply. */
15776 char forkpty ();
15778 main ()
15780 forkpty ();
15782 return 0;
15784 _ACEOF
15785 rm -f conftest.$ac_objext conftest$ac_exeext
15786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15787 (eval $ac_link) 2>conftest.er1
15788 ac_status=$?
15789 grep -v '^ *+' conftest.er1 >conftest.err
15790 rm -f conftest.er1
15791 cat conftest.err >&5
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); } &&
15794 { ac_try='test -z "$ac_c_werror_flag"
15795 || test ! -s conftest.err'
15796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15797 (eval $ac_try) 2>&5
15798 ac_status=$?
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); }; } &&
15801 { ac_try='test -s conftest$ac_exeext'
15802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15803 (eval $ac_try) 2>&5
15804 ac_status=$?
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); }; }; then
15807 ac_cv_lib_bsd_forkpty=yes
15808 else
15809 echo "$as_me: failed program was:" >&5
15810 sed 's/^/| /' conftest.$ac_ext >&5
15812 ac_cv_lib_bsd_forkpty=no
15814 rm -f conftest.err conftest.$ac_objext \
15815 conftest$ac_exeext conftest.$ac_ext
15816 LIBS=$ac_check_lib_save_LIBS
15818 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
15819 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
15820 if test $ac_cv_lib_bsd_forkpty = yes; then
15821 cat >>confdefs.h <<\_ACEOF
15822 #define HAVE_FORKPTY 1
15823 _ACEOF
15824 LIBS="$LIBS -lbsd"
15832 done
15835 # check for long file support functions
15842 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
15844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15845 echo "$as_me:$LINENO: checking for $ac_func" >&5
15846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15847 if eval "test \"\${$as_ac_var+set}\" = set"; then
15848 echo $ECHO_N "(cached) $ECHO_C" >&6
15849 else
15850 cat >conftest.$ac_ext <<_ACEOF
15851 /* confdefs.h. */
15852 _ACEOF
15853 cat confdefs.h >>conftest.$ac_ext
15854 cat >>conftest.$ac_ext <<_ACEOF
15855 /* end confdefs.h. */
15856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15858 #define $ac_func innocuous_$ac_func
15860 /* System header to define __stub macros and hopefully few prototypes,
15861 which can conflict with char $ac_func (); below.
15862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15863 <limits.h> exists even on freestanding compilers. */
15865 #ifdef __STDC__
15866 # include <limits.h>
15867 #else
15868 # include <assert.h>
15869 #endif
15871 #undef $ac_func
15873 /* Override any gcc2 internal prototype to avoid an error. */
15874 #ifdef __cplusplus
15875 extern "C"
15877 #endif
15878 /* We use char because int might match the return type of a gcc2
15879 builtin and then its argument prototype would still apply. */
15880 char $ac_func ();
15881 /* The GNU C library defines this for functions which it implements
15882 to always fail with ENOSYS. Some functions are actually named
15883 something starting with __ and the normal name is an alias. */
15884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15885 choke me
15886 #else
15887 char (*f) () = $ac_func;
15888 #endif
15889 #ifdef __cplusplus
15891 #endif
15894 main ()
15896 return f != $ac_func;
15898 return 0;
15900 _ACEOF
15901 rm -f conftest.$ac_objext conftest$ac_exeext
15902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15903 (eval $ac_link) 2>conftest.er1
15904 ac_status=$?
15905 grep -v '^ *+' conftest.er1 >conftest.err
15906 rm -f conftest.er1
15907 cat conftest.err >&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } &&
15910 { ac_try='test -z "$ac_c_werror_flag"
15911 || test ! -s conftest.err'
15912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15913 (eval $ac_try) 2>&5
15914 ac_status=$?
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); }; } &&
15917 { ac_try='test -s conftest$ac_exeext'
15918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919 (eval $ac_try) 2>&5
15920 ac_status=$?
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; }; then
15923 eval "$as_ac_var=yes"
15924 else
15925 echo "$as_me: failed program was:" >&5
15926 sed 's/^/| /' conftest.$ac_ext >&5
15928 eval "$as_ac_var=no"
15930 rm -f conftest.err conftest.$ac_objext \
15931 conftest$ac_exeext conftest.$ac_ext
15933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15935 if test `eval echo '${'$as_ac_var'}'` = yes; then
15936 cat >>confdefs.h <<_ACEOF
15937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15938 _ACEOF
15941 done
15949 for ac_func in dup2 getcwd strdup strerror memmove
15951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15952 echo "$as_me:$LINENO: checking for $ac_func" >&5
15953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15954 if eval "test \"\${$as_ac_var+set}\" = set"; then
15955 echo $ECHO_N "(cached) $ECHO_C" >&6
15956 else
15957 cat >conftest.$ac_ext <<_ACEOF
15958 /* confdefs.h. */
15959 _ACEOF
15960 cat confdefs.h >>conftest.$ac_ext
15961 cat >>conftest.$ac_ext <<_ACEOF
15962 /* end confdefs.h. */
15963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15965 #define $ac_func innocuous_$ac_func
15967 /* System header to define __stub macros and hopefully few prototypes,
15968 which can conflict with char $ac_func (); below.
15969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15970 <limits.h> exists even on freestanding compilers. */
15972 #ifdef __STDC__
15973 # include <limits.h>
15974 #else
15975 # include <assert.h>
15976 #endif
15978 #undef $ac_func
15980 /* Override any gcc2 internal prototype to avoid an error. */
15981 #ifdef __cplusplus
15982 extern "C"
15984 #endif
15985 /* We use char because int might match the return type of a gcc2
15986 builtin and then its argument prototype would still apply. */
15987 char $ac_func ();
15988 /* The GNU C library defines this for functions which it implements
15989 to always fail with ENOSYS. Some functions are actually named
15990 something starting with __ and the normal name is an alias. */
15991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15992 choke me
15993 #else
15994 char (*f) () = $ac_func;
15995 #endif
15996 #ifdef __cplusplus
15998 #endif
16001 main ()
16003 return f != $ac_func;
16005 return 0;
16007 _ACEOF
16008 rm -f conftest.$ac_objext conftest$ac_exeext
16009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16010 (eval $ac_link) 2>conftest.er1
16011 ac_status=$?
16012 grep -v '^ *+' conftest.er1 >conftest.err
16013 rm -f conftest.er1
16014 cat conftest.err >&5
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); } &&
16017 { ac_try='test -z "$ac_c_werror_flag"
16018 || test ! -s conftest.err'
16019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020 (eval $ac_try) 2>&5
16021 ac_status=$?
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; } &&
16024 { ac_try='test -s conftest$ac_exeext'
16025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16026 (eval $ac_try) 2>&5
16027 ac_status=$?
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); }; }; then
16030 eval "$as_ac_var=yes"
16031 else
16032 echo "$as_me: failed program was:" >&5
16033 sed 's/^/| /' conftest.$ac_ext >&5
16035 eval "$as_ac_var=no"
16037 rm -f conftest.err conftest.$ac_objext \
16038 conftest$ac_exeext conftest.$ac_ext
16040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16041 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16042 if test `eval echo '${'$as_ac_var'}'` = yes; then
16043 cat >>confdefs.h <<_ACEOF
16044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16045 _ACEOF
16047 else
16048 case $LIBOBJS in
16049 "$ac_func.$ac_objext" | \
16050 *" $ac_func.$ac_objext" | \
16051 "$ac_func.$ac_objext "* | \
16052 *" $ac_func.$ac_objext "* ) ;;
16053 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16054 esac
16057 done
16061 for ac_func in getpgrp
16063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16064 echo "$as_me:$LINENO: checking for $ac_func" >&5
16065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16066 if eval "test \"\${$as_ac_var+set}\" = set"; then
16067 echo $ECHO_N "(cached) $ECHO_C" >&6
16068 else
16069 cat >conftest.$ac_ext <<_ACEOF
16070 /* confdefs.h. */
16071 _ACEOF
16072 cat confdefs.h >>conftest.$ac_ext
16073 cat >>conftest.$ac_ext <<_ACEOF
16074 /* end confdefs.h. */
16075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16077 #define $ac_func innocuous_$ac_func
16079 /* System header to define __stub macros and hopefully few prototypes,
16080 which can conflict with char $ac_func (); below.
16081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16082 <limits.h> exists even on freestanding compilers. */
16084 #ifdef __STDC__
16085 # include <limits.h>
16086 #else
16087 # include <assert.h>
16088 #endif
16090 #undef $ac_func
16092 /* Override any gcc2 internal prototype to avoid an error. */
16093 #ifdef __cplusplus
16094 extern "C"
16096 #endif
16097 /* We use char because int might match the return type of a gcc2
16098 builtin and then its argument prototype would still apply. */
16099 char $ac_func ();
16100 /* The GNU C library defines this for functions which it implements
16101 to always fail with ENOSYS. Some functions are actually named
16102 something starting with __ and the normal name is an alias. */
16103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16104 choke me
16105 #else
16106 char (*f) () = $ac_func;
16107 #endif
16108 #ifdef __cplusplus
16110 #endif
16113 main ()
16115 return f != $ac_func;
16117 return 0;
16119 _ACEOF
16120 rm -f conftest.$ac_objext conftest$ac_exeext
16121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16122 (eval $ac_link) 2>conftest.er1
16123 ac_status=$?
16124 grep -v '^ *+' conftest.er1 >conftest.err
16125 rm -f conftest.er1
16126 cat conftest.err >&5
16127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); } &&
16129 { ac_try='test -z "$ac_c_werror_flag"
16130 || test ! -s conftest.err'
16131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16132 (eval $ac_try) 2>&5
16133 ac_status=$?
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); }; } &&
16136 { ac_try='test -s conftest$ac_exeext'
16137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16138 (eval $ac_try) 2>&5
16139 ac_status=$?
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); }; }; then
16142 eval "$as_ac_var=yes"
16143 else
16144 echo "$as_me: failed program was:" >&5
16145 sed 's/^/| /' conftest.$ac_ext >&5
16147 eval "$as_ac_var=no"
16149 rm -f conftest.err conftest.$ac_objext \
16150 conftest$ac_exeext conftest.$ac_ext
16152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16154 if test `eval echo '${'$as_ac_var'}'` = yes; then
16155 cat >>confdefs.h <<_ACEOF
16156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16157 _ACEOF
16158 cat >conftest.$ac_ext <<_ACEOF
16159 /* confdefs.h. */
16160 _ACEOF
16161 cat confdefs.h >>conftest.$ac_ext
16162 cat >>conftest.$ac_ext <<_ACEOF
16163 /* end confdefs.h. */
16164 #include <unistd.h>
16166 main ()
16168 getpgrp(0);
16170 return 0;
16172 _ACEOF
16173 rm -f conftest.$ac_objext
16174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16175 (eval $ac_compile) 2>conftest.er1
16176 ac_status=$?
16177 grep -v '^ *+' conftest.er1 >conftest.err
16178 rm -f conftest.er1
16179 cat conftest.err >&5
16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); } &&
16182 { ac_try='test -z "$ac_c_werror_flag"
16183 || test ! -s conftest.err'
16184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16185 (eval $ac_try) 2>&5
16186 ac_status=$?
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); }; } &&
16189 { ac_try='test -s conftest.$ac_objext'
16190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16191 (eval $ac_try) 2>&5
16192 ac_status=$?
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); }; }; then
16196 cat >>confdefs.h <<\_ACEOF
16197 #define GETPGRP_HAVE_ARG 1
16198 _ACEOF
16201 else
16202 echo "$as_me: failed program was:" >&5
16203 sed 's/^/| /' conftest.$ac_ext >&5
16206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16209 done
16212 for ac_func in setpgrp
16214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16215 echo "$as_me:$LINENO: checking for $ac_func" >&5
16216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16217 if eval "test \"\${$as_ac_var+set}\" = set"; then
16218 echo $ECHO_N "(cached) $ECHO_C" >&6
16219 else
16220 cat >conftest.$ac_ext <<_ACEOF
16221 /* confdefs.h. */
16222 _ACEOF
16223 cat confdefs.h >>conftest.$ac_ext
16224 cat >>conftest.$ac_ext <<_ACEOF
16225 /* end confdefs.h. */
16226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16228 #define $ac_func innocuous_$ac_func
16230 /* System header to define __stub macros and hopefully few prototypes,
16231 which can conflict with char $ac_func (); below.
16232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16233 <limits.h> exists even on freestanding compilers. */
16235 #ifdef __STDC__
16236 # include <limits.h>
16237 #else
16238 # include <assert.h>
16239 #endif
16241 #undef $ac_func
16243 /* Override any gcc2 internal prototype to avoid an error. */
16244 #ifdef __cplusplus
16245 extern "C"
16247 #endif
16248 /* We use char because int might match the return type of a gcc2
16249 builtin and then its argument prototype would still apply. */
16250 char $ac_func ();
16251 /* The GNU C library defines this for functions which it implements
16252 to always fail with ENOSYS. Some functions are actually named
16253 something starting with __ and the normal name is an alias. */
16254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16255 choke me
16256 #else
16257 char (*f) () = $ac_func;
16258 #endif
16259 #ifdef __cplusplus
16261 #endif
16264 main ()
16266 return f != $ac_func;
16268 return 0;
16270 _ACEOF
16271 rm -f conftest.$ac_objext conftest$ac_exeext
16272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16273 (eval $ac_link) 2>conftest.er1
16274 ac_status=$?
16275 grep -v '^ *+' conftest.er1 >conftest.err
16276 rm -f conftest.er1
16277 cat conftest.err >&5
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); } &&
16280 { ac_try='test -z "$ac_c_werror_flag"
16281 || test ! -s conftest.err'
16282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16283 (eval $ac_try) 2>&5
16284 ac_status=$?
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); }; } &&
16287 { ac_try='test -s conftest$ac_exeext'
16288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16289 (eval $ac_try) 2>&5
16290 ac_status=$?
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); }; }; then
16293 eval "$as_ac_var=yes"
16294 else
16295 echo "$as_me: failed program was:" >&5
16296 sed 's/^/| /' conftest.$ac_ext >&5
16298 eval "$as_ac_var=no"
16300 rm -f conftest.err conftest.$ac_objext \
16301 conftest$ac_exeext conftest.$ac_ext
16303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16304 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16305 if test `eval echo '${'$as_ac_var'}'` = yes; then
16306 cat >>confdefs.h <<_ACEOF
16307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16308 _ACEOF
16309 cat >conftest.$ac_ext <<_ACEOF
16310 /* confdefs.h. */
16311 _ACEOF
16312 cat confdefs.h >>conftest.$ac_ext
16313 cat >>conftest.$ac_ext <<_ACEOF
16314 /* end confdefs.h. */
16315 #include <unistd.h>
16317 main ()
16319 setpgrp(0,0);
16321 return 0;
16323 _ACEOF
16324 rm -f conftest.$ac_objext
16325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16326 (eval $ac_compile) 2>conftest.er1
16327 ac_status=$?
16328 grep -v '^ *+' conftest.er1 >conftest.err
16329 rm -f conftest.er1
16330 cat conftest.err >&5
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); } &&
16333 { ac_try='test -z "$ac_c_werror_flag"
16334 || test ! -s conftest.err'
16335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16336 (eval $ac_try) 2>&5
16337 ac_status=$?
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); }; } &&
16340 { ac_try='test -s conftest.$ac_objext'
16341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16342 (eval $ac_try) 2>&5
16343 ac_status=$?
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); }; }; then
16347 cat >>confdefs.h <<\_ACEOF
16348 #define SETPGRP_HAVE_ARG 1
16349 _ACEOF
16352 else
16353 echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16360 done
16363 for ac_func in gettimeofday
16365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16366 echo "$as_me:$LINENO: checking for $ac_func" >&5
16367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16368 if eval "test \"\${$as_ac_var+set}\" = set"; then
16369 echo $ECHO_N "(cached) $ECHO_C" >&6
16370 else
16371 cat >conftest.$ac_ext <<_ACEOF
16372 /* confdefs.h. */
16373 _ACEOF
16374 cat confdefs.h >>conftest.$ac_ext
16375 cat >>conftest.$ac_ext <<_ACEOF
16376 /* end confdefs.h. */
16377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16379 #define $ac_func innocuous_$ac_func
16381 /* System header to define __stub macros and hopefully few prototypes,
16382 which can conflict with char $ac_func (); below.
16383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16384 <limits.h> exists even on freestanding compilers. */
16386 #ifdef __STDC__
16387 # include <limits.h>
16388 #else
16389 # include <assert.h>
16390 #endif
16392 #undef $ac_func
16394 /* Override any gcc2 internal prototype to avoid an error. */
16395 #ifdef __cplusplus
16396 extern "C"
16398 #endif
16399 /* We use char because int might match the return type of a gcc2
16400 builtin and then its argument prototype would still apply. */
16401 char $ac_func ();
16402 /* The GNU C library defines this for functions which it implements
16403 to always fail with ENOSYS. Some functions are actually named
16404 something starting with __ and the normal name is an alias. */
16405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16406 choke me
16407 #else
16408 char (*f) () = $ac_func;
16409 #endif
16410 #ifdef __cplusplus
16412 #endif
16415 main ()
16417 return f != $ac_func;
16419 return 0;
16421 _ACEOF
16422 rm -f conftest.$ac_objext conftest$ac_exeext
16423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16424 (eval $ac_link) 2>conftest.er1
16425 ac_status=$?
16426 grep -v '^ *+' conftest.er1 >conftest.err
16427 rm -f conftest.er1
16428 cat conftest.err >&5
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); } &&
16431 { ac_try='test -z "$ac_c_werror_flag"
16432 || test ! -s conftest.err'
16433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434 (eval $ac_try) 2>&5
16435 ac_status=$?
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }; } &&
16438 { ac_try='test -s conftest$ac_exeext'
16439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16440 (eval $ac_try) 2>&5
16441 ac_status=$?
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); }; }; then
16444 eval "$as_ac_var=yes"
16445 else
16446 echo "$as_me: failed program was:" >&5
16447 sed 's/^/| /' conftest.$ac_ext >&5
16449 eval "$as_ac_var=no"
16451 rm -f conftest.err conftest.$ac_objext \
16452 conftest$ac_exeext conftest.$ac_ext
16454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16456 if test `eval echo '${'$as_ac_var'}'` = yes; then
16457 cat >>confdefs.h <<_ACEOF
16458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16459 _ACEOF
16460 cat >conftest.$ac_ext <<_ACEOF
16461 /* confdefs.h. */
16462 _ACEOF
16463 cat confdefs.h >>conftest.$ac_ext
16464 cat >>conftest.$ac_ext <<_ACEOF
16465 /* end confdefs.h. */
16466 #include <sys/time.h>
16468 main ()
16470 gettimeofday((struct timeval*)0,(struct timezone*)0);
16472 return 0;
16474 _ACEOF
16475 rm -f conftest.$ac_objext
16476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16477 (eval $ac_compile) 2>conftest.er1
16478 ac_status=$?
16479 grep -v '^ *+' conftest.er1 >conftest.err
16480 rm -f conftest.er1
16481 cat conftest.err >&5
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); } &&
16484 { ac_try='test -z "$ac_c_werror_flag"
16485 || test ! -s conftest.err'
16486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16487 (eval $ac_try) 2>&5
16488 ac_status=$?
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); }; } &&
16491 { ac_try='test -s conftest.$ac_objext'
16492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16493 (eval $ac_try) 2>&5
16494 ac_status=$?
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); }; }; then
16498 else
16499 echo "$as_me: failed program was:" >&5
16500 sed 's/^/| /' conftest.$ac_ext >&5
16503 cat >>confdefs.h <<\_ACEOF
16504 #define GETTIMEOFDAY_NO_TZ 1
16505 _ACEOF
16509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16512 done
16515 echo "$as_me:$LINENO: checking for major" >&5
16516 echo $ECHO_N "checking for major... $ECHO_C" >&6
16517 cat >conftest.$ac_ext <<_ACEOF
16518 /* confdefs.h. */
16519 _ACEOF
16520 cat confdefs.h >>conftest.$ac_ext
16521 cat >>conftest.$ac_ext <<_ACEOF
16522 /* end confdefs.h. */
16524 #if defined(MAJOR_IN_MKDEV)
16525 #include <sys/mkdev.h>
16526 #elif defined(MAJOR_IN_SYSMACROS)
16527 #include <sys/sysmacros.h>
16528 #else
16529 #include <sys/types.h>
16530 #endif
16533 main ()
16536 makedev(major(0),minor(0));
16539 return 0;
16541 _ACEOF
16542 rm -f conftest.$ac_objext conftest$ac_exeext
16543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16544 (eval $ac_link) 2>conftest.er1
16545 ac_status=$?
16546 grep -v '^ *+' conftest.er1 >conftest.err
16547 rm -f conftest.er1
16548 cat conftest.err >&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } &&
16551 { ac_try='test -z "$ac_c_werror_flag"
16552 || test ! -s conftest.err'
16553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554 (eval $ac_try) 2>&5
16555 ac_status=$?
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; } &&
16558 { ac_try='test -s conftest$ac_exeext'
16559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16560 (eval $ac_try) 2>&5
16561 ac_status=$?
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); }; }; then
16566 cat >>confdefs.h <<\_ACEOF
16567 #define HAVE_DEVICE_MACROS 1
16568 _ACEOF
16570 echo "$as_me:$LINENO: result: yes" >&5
16571 echo "${ECHO_T}yes" >&6
16573 else
16574 echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.$ac_ext >&5
16578 echo "$as_me:$LINENO: result: no" >&5
16579 echo "${ECHO_T}no" >&6
16582 rm -f conftest.err conftest.$ac_objext \
16583 conftest$ac_exeext conftest.$ac_ext
16585 # On OSF/1 V5.1, getaddrinfo is available, but a define
16586 # for [no]getaddrinfo in netdb.h.
16587 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16588 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
16589 cat >conftest.$ac_ext <<_ACEOF
16590 /* confdefs.h. */
16591 _ACEOF
16592 cat confdefs.h >>conftest.$ac_ext
16593 cat >>conftest.$ac_ext <<_ACEOF
16594 /* end confdefs.h. */
16596 #include <sys/types.h>
16597 #include <sys/socket.h>
16598 #include <netdb.h>
16599 #include <stdio.h>
16602 main ()
16605 getaddrinfo(NULL, NULL, NULL, NULL);
16608 return 0;
16610 _ACEOF
16611 rm -f conftest.$ac_objext conftest$ac_exeext
16612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16613 (eval $ac_link) 2>conftest.er1
16614 ac_status=$?
16615 grep -v '^ *+' conftest.er1 >conftest.err
16616 rm -f conftest.er1
16617 cat conftest.err >&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); } &&
16620 { ac_try='test -z "$ac_c_werror_flag"
16621 || test ! -s conftest.err'
16622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16623 (eval $ac_try) 2>&5
16624 ac_status=$?
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); }; } &&
16627 { ac_try='test -s conftest$ac_exeext'
16628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629 (eval $ac_try) 2>&5
16630 ac_status=$?
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; }; then
16634 echo "$as_me:$LINENO: result: yes" >&5
16635 echo "${ECHO_T}yes" >&6
16636 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
16637 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
16638 if test "$cross_compiling" = yes; then
16639 echo "$as_me:$LINENO: result: buggy" >&5
16640 echo "${ECHO_T}buggy" >&6
16641 buggygetaddrinfo=yes
16642 else
16643 cat >conftest.$ac_ext <<_ACEOF
16644 /* confdefs.h. */
16645 _ACEOF
16646 cat confdefs.h >>conftest.$ac_ext
16647 cat >>conftest.$ac_ext <<_ACEOF
16648 /* end confdefs.h. */
16650 #include <sys/types.h>
16651 #include <netdb.h>
16652 #include <string.h>
16653 #include <sys/socket.h>
16654 #include <netinet/in.h>
16656 main()
16658 int passive, gaierr, inet4 = 0, inet6 = 0;
16659 struct addrinfo hints, *ai, *aitop;
16660 char straddr[INET6_ADDRSTRLEN], strport[16];
16662 for (passive = 0; passive <= 1; passive++) {
16663 memset(&hints, 0, sizeof(hints));
16664 hints.ai_family = AF_UNSPEC;
16665 hints.ai_flags = passive ? AI_PASSIVE : 0;
16666 hints.ai_socktype = SOCK_STREAM;
16667 hints.ai_protocol = IPPROTO_TCP;
16668 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
16669 (void)gai_strerror(gaierr);
16670 goto bad;
16672 for (ai = aitop; ai; ai = ai->ai_next) {
16673 if (ai->ai_addr == NULL ||
16674 ai->ai_addrlen == 0 ||
16675 getnameinfo(ai->ai_addr, ai->ai_addrlen,
16676 straddr, sizeof(straddr), strport, sizeof(strport),
16677 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
16678 goto bad;
16680 switch (ai->ai_family) {
16681 case AF_INET:
16682 if (strcmp(strport, "54321") != 0) {
16683 goto bad;
16685 if (passive) {
16686 if (strcmp(straddr, "0.0.0.0") != 0) {
16687 goto bad;
16689 } else {
16690 if (strcmp(straddr, "127.0.0.1") != 0) {
16691 goto bad;
16694 inet4++;
16695 break;
16696 case AF_INET6:
16697 if (strcmp(strport, "54321") != 0) {
16698 goto bad;
16700 if (passive) {
16701 if (strcmp(straddr, "::") != 0) {
16702 goto bad;
16704 } else {
16705 if (strcmp(straddr, "::1") != 0) {
16706 goto bad;
16709 inet6++;
16710 break;
16711 case AF_UNSPEC:
16712 goto bad;
16713 break;
16714 default:
16715 /* another family support? */
16716 break;
16721 if (!(inet4 == 0 || inet4 == 2))
16722 goto bad;
16723 if (!(inet6 == 0 || inet6 == 2))
16724 goto bad;
16726 if (aitop)
16727 freeaddrinfo(aitop);
16728 exit(0);
16730 bad:
16731 if (aitop)
16732 freeaddrinfo(aitop);
16733 exit(1);
16736 _ACEOF
16737 rm -f conftest$ac_exeext
16738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16739 (eval $ac_link) 2>&5
16740 ac_status=$?
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744 (eval $ac_try) 2>&5
16745 ac_status=$?
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; }; then
16748 echo "$as_me:$LINENO: result: good" >&5
16749 echo "${ECHO_T}good" >&6
16750 buggygetaddrinfo=no
16751 else
16752 echo "$as_me: program exited with status $ac_status" >&5
16753 echo "$as_me: failed program was:" >&5
16754 sed 's/^/| /' conftest.$ac_ext >&5
16756 ( exit $ac_status )
16757 echo "$as_me:$LINENO: result: buggy" >&5
16758 echo "${ECHO_T}buggy" >&6
16759 buggygetaddrinfo=yes
16761 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16763 else
16764 echo "$as_me: failed program was:" >&5
16765 sed 's/^/| /' conftest.$ac_ext >&5
16768 echo "$as_me:$LINENO: result: no" >&5
16769 echo "${ECHO_T}no" >&6
16770 buggygetaddrinfo=yes
16773 rm -f conftest.err conftest.$ac_objext \
16774 conftest$ac_exeext conftest.$ac_ext
16776 if test "$buggygetaddrinfo" = "yes"; then
16777 if test "$ipv6" = "yes"; then
16778 echo 'Fatal: You must get working getaddrinfo() function.'
16779 echo ' or you can specify "--disable-ipv6"'.
16780 exit 1
16782 else
16784 cat >>confdefs.h <<\_ACEOF
16785 #define HAVE_GETADDRINFO 1
16786 _ACEOF
16790 for ac_func in getnameinfo
16792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16793 echo "$as_me:$LINENO: checking for $ac_func" >&5
16794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16795 if eval "test \"\${$as_ac_var+set}\" = set"; then
16796 echo $ECHO_N "(cached) $ECHO_C" >&6
16797 else
16798 cat >conftest.$ac_ext <<_ACEOF
16799 /* confdefs.h. */
16800 _ACEOF
16801 cat confdefs.h >>conftest.$ac_ext
16802 cat >>conftest.$ac_ext <<_ACEOF
16803 /* end confdefs.h. */
16804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16806 #define $ac_func innocuous_$ac_func
16808 /* System header to define __stub macros and hopefully few prototypes,
16809 which can conflict with char $ac_func (); below.
16810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16811 <limits.h> exists even on freestanding compilers. */
16813 #ifdef __STDC__
16814 # include <limits.h>
16815 #else
16816 # include <assert.h>
16817 #endif
16819 #undef $ac_func
16821 /* Override any gcc2 internal prototype to avoid an error. */
16822 #ifdef __cplusplus
16823 extern "C"
16825 #endif
16826 /* We use char because int might match the return type of a gcc2
16827 builtin and then its argument prototype would still apply. */
16828 char $ac_func ();
16829 /* The GNU C library defines this for functions which it implements
16830 to always fail with ENOSYS. Some functions are actually named
16831 something starting with __ and the normal name is an alias. */
16832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16833 choke me
16834 #else
16835 char (*f) () = $ac_func;
16836 #endif
16837 #ifdef __cplusplus
16839 #endif
16842 main ()
16844 return f != $ac_func;
16846 return 0;
16848 _ACEOF
16849 rm -f conftest.$ac_objext conftest$ac_exeext
16850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16851 (eval $ac_link) 2>conftest.er1
16852 ac_status=$?
16853 grep -v '^ *+' conftest.er1 >conftest.err
16854 rm -f conftest.er1
16855 cat conftest.err >&5
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); } &&
16858 { ac_try='test -z "$ac_c_werror_flag"
16859 || test ! -s conftest.err'
16860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16861 (eval $ac_try) 2>&5
16862 ac_status=$?
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); }; } &&
16865 { ac_try='test -s conftest$ac_exeext'
16866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16867 (eval $ac_try) 2>&5
16868 ac_status=$?
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); }; }; then
16871 eval "$as_ac_var=yes"
16872 else
16873 echo "$as_me: failed program was:" >&5
16874 sed 's/^/| /' conftest.$ac_ext >&5
16876 eval "$as_ac_var=no"
16878 rm -f conftest.err conftest.$ac_objext \
16879 conftest$ac_exeext conftest.$ac_ext
16881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16882 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16883 if test `eval echo '${'$as_ac_var'}'` = yes; then
16884 cat >>confdefs.h <<_ACEOF
16885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16886 _ACEOF
16889 done
16892 # checks for structures
16893 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16894 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16895 if test "${ac_cv_header_time+set}" = set; then
16896 echo $ECHO_N "(cached) $ECHO_C" >&6
16897 else
16898 cat >conftest.$ac_ext <<_ACEOF
16899 /* confdefs.h. */
16900 _ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16904 #include <sys/types.h>
16905 #include <sys/time.h>
16906 #include <time.h>
16909 main ()
16911 if ((struct tm *) 0)
16912 return 0;
16914 return 0;
16916 _ACEOF
16917 rm -f conftest.$ac_objext
16918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16919 (eval $ac_compile) 2>conftest.er1
16920 ac_status=$?
16921 grep -v '^ *+' conftest.er1 >conftest.err
16922 rm -f conftest.er1
16923 cat conftest.err >&5
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); } &&
16926 { ac_try='test -z "$ac_c_werror_flag"
16927 || test ! -s conftest.err'
16928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16929 (eval $ac_try) 2>&5
16930 ac_status=$?
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); }; } &&
16933 { ac_try='test -s conftest.$ac_objext'
16934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16935 (eval $ac_try) 2>&5
16936 ac_status=$?
16937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); }; }; then
16939 ac_cv_header_time=yes
16940 else
16941 echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16944 ac_cv_header_time=no
16946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16948 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16949 echo "${ECHO_T}$ac_cv_header_time" >&6
16950 if test $ac_cv_header_time = yes; then
16952 cat >>confdefs.h <<\_ACEOF
16953 #define TIME_WITH_SYS_TIME 1
16954 _ACEOF
16958 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16959 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16960 if test "${ac_cv_struct_tm+set}" = set; then
16961 echo $ECHO_N "(cached) $ECHO_C" >&6
16962 else
16963 cat >conftest.$ac_ext <<_ACEOF
16964 /* confdefs.h. */
16965 _ACEOF
16966 cat confdefs.h >>conftest.$ac_ext
16967 cat >>conftest.$ac_ext <<_ACEOF
16968 /* end confdefs.h. */
16969 #include <sys/types.h>
16970 #include <time.h>
16973 main ()
16975 struct tm *tp; tp->tm_sec;
16977 return 0;
16979 _ACEOF
16980 rm -f conftest.$ac_objext
16981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16982 (eval $ac_compile) 2>conftest.er1
16983 ac_status=$?
16984 grep -v '^ *+' conftest.er1 >conftest.err
16985 rm -f conftest.er1
16986 cat conftest.err >&5
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); } &&
16989 { ac_try='test -z "$ac_c_werror_flag"
16990 || test ! -s conftest.err'
16991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16992 (eval $ac_try) 2>&5
16993 ac_status=$?
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); }; } &&
16996 { ac_try='test -s conftest.$ac_objext'
16997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16998 (eval $ac_try) 2>&5
16999 ac_status=$?
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); }; }; then
17002 ac_cv_struct_tm=time.h
17003 else
17004 echo "$as_me: failed program was:" >&5
17005 sed 's/^/| /' conftest.$ac_ext >&5
17007 ac_cv_struct_tm=sys/time.h
17009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17011 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17012 echo "${ECHO_T}$ac_cv_struct_tm" >&6
17013 if test $ac_cv_struct_tm = sys/time.h; then
17015 cat >>confdefs.h <<\_ACEOF
17016 #define TM_IN_SYS_TIME 1
17017 _ACEOF
17021 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
17022 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
17023 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
17024 echo $ECHO_N "(cached) $ECHO_C" >&6
17025 else
17026 cat >conftest.$ac_ext <<_ACEOF
17027 /* confdefs.h. */
17028 _ACEOF
17029 cat confdefs.h >>conftest.$ac_ext
17030 cat >>conftest.$ac_ext <<_ACEOF
17031 /* end confdefs.h. */
17032 #include <sys/types.h>
17033 #include <$ac_cv_struct_tm>
17037 main ()
17039 static struct tm ac_aggr;
17040 if (ac_aggr.tm_zone)
17041 return 0;
17043 return 0;
17045 _ACEOF
17046 rm -f conftest.$ac_objext
17047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17048 (eval $ac_compile) 2>conftest.er1
17049 ac_status=$?
17050 grep -v '^ *+' conftest.er1 >conftest.err
17051 rm -f conftest.er1
17052 cat conftest.err >&5
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); } &&
17055 { ac_try='test -z "$ac_c_werror_flag"
17056 || test ! -s conftest.err'
17057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17058 (eval $ac_try) 2>&5
17059 ac_status=$?
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); }; } &&
17062 { ac_try='test -s conftest.$ac_objext'
17063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17064 (eval $ac_try) 2>&5
17065 ac_status=$?
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); }; }; then
17068 ac_cv_member_struct_tm_tm_zone=yes
17069 else
17070 echo "$as_me: failed program was:" >&5
17071 sed 's/^/| /' conftest.$ac_ext >&5
17073 cat >conftest.$ac_ext <<_ACEOF
17074 /* confdefs.h. */
17075 _ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h. */
17079 #include <sys/types.h>
17080 #include <$ac_cv_struct_tm>
17084 main ()
17086 static struct tm ac_aggr;
17087 if (sizeof ac_aggr.tm_zone)
17088 return 0;
17090 return 0;
17092 _ACEOF
17093 rm -f conftest.$ac_objext
17094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17095 (eval $ac_compile) 2>conftest.er1
17096 ac_status=$?
17097 grep -v '^ *+' conftest.er1 >conftest.err
17098 rm -f conftest.er1
17099 cat conftest.err >&5
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); } &&
17102 { ac_try='test -z "$ac_c_werror_flag"
17103 || test ! -s conftest.err'
17104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17105 (eval $ac_try) 2>&5
17106 ac_status=$?
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); }; } &&
17109 { ac_try='test -s conftest.$ac_objext'
17110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17111 (eval $ac_try) 2>&5
17112 ac_status=$?
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); }; }; then
17115 ac_cv_member_struct_tm_tm_zone=yes
17116 else
17117 echo "$as_me: failed program was:" >&5
17118 sed 's/^/| /' conftest.$ac_ext >&5
17120 ac_cv_member_struct_tm_tm_zone=no
17122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17126 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17127 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
17128 if test $ac_cv_member_struct_tm_tm_zone = yes; then
17130 cat >>confdefs.h <<_ACEOF
17131 #define HAVE_STRUCT_TM_TM_ZONE 1
17132 _ACEOF
17137 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17139 cat >>confdefs.h <<\_ACEOF
17140 #define HAVE_TM_ZONE 1
17141 _ACEOF
17143 else
17144 echo "$as_me:$LINENO: checking for tzname" >&5
17145 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
17146 if test "${ac_cv_var_tzname+set}" = set; then
17147 echo $ECHO_N "(cached) $ECHO_C" >&6
17148 else
17149 cat >conftest.$ac_ext <<_ACEOF
17150 /* confdefs.h. */
17151 _ACEOF
17152 cat confdefs.h >>conftest.$ac_ext
17153 cat >>conftest.$ac_ext <<_ACEOF
17154 /* end confdefs.h. */
17155 #include <time.h>
17156 #ifndef tzname /* For SGI. */
17157 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17158 #endif
17161 main ()
17163 atoi(*tzname);
17165 return 0;
17167 _ACEOF
17168 rm -f conftest.$ac_objext conftest$ac_exeext
17169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17170 (eval $ac_link) 2>conftest.er1
17171 ac_status=$?
17172 grep -v '^ *+' conftest.er1 >conftest.err
17173 rm -f conftest.er1
17174 cat conftest.err >&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); } &&
17177 { ac_try='test -z "$ac_c_werror_flag"
17178 || test ! -s conftest.err'
17179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17180 (eval $ac_try) 2>&5
17181 ac_status=$?
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); }; } &&
17184 { ac_try='test -s conftest$ac_exeext'
17185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17186 (eval $ac_try) 2>&5
17187 ac_status=$?
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; }; then
17190 ac_cv_var_tzname=yes
17191 else
17192 echo "$as_me: failed program was:" >&5
17193 sed 's/^/| /' conftest.$ac_ext >&5
17195 ac_cv_var_tzname=no
17197 rm -f conftest.err conftest.$ac_objext \
17198 conftest$ac_exeext conftest.$ac_ext
17200 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17201 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17202 if test $ac_cv_var_tzname = yes; then
17204 cat >>confdefs.h <<\_ACEOF
17205 #define HAVE_TZNAME 1
17206 _ACEOF
17211 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17212 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17213 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17214 echo $ECHO_N "(cached) $ECHO_C" >&6
17215 else
17216 cat >conftest.$ac_ext <<_ACEOF
17217 /* confdefs.h. */
17218 _ACEOF
17219 cat confdefs.h >>conftest.$ac_ext
17220 cat >>conftest.$ac_ext <<_ACEOF
17221 /* end confdefs.h. */
17222 $ac_includes_default
17224 main ()
17226 static struct stat ac_aggr;
17227 if (ac_aggr.st_rdev)
17228 return 0;
17230 return 0;
17232 _ACEOF
17233 rm -f conftest.$ac_objext
17234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17235 (eval $ac_compile) 2>conftest.er1
17236 ac_status=$?
17237 grep -v '^ *+' conftest.er1 >conftest.err
17238 rm -f conftest.er1
17239 cat conftest.err >&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); } &&
17242 { ac_try='test -z "$ac_c_werror_flag"
17243 || test ! -s conftest.err'
17244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17245 (eval $ac_try) 2>&5
17246 ac_status=$?
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); }; } &&
17249 { ac_try='test -s conftest.$ac_objext'
17250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17251 (eval $ac_try) 2>&5
17252 ac_status=$?
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); }; }; then
17255 ac_cv_member_struct_stat_st_rdev=yes
17256 else
17257 echo "$as_me: failed program was:" >&5
17258 sed 's/^/| /' conftest.$ac_ext >&5
17260 cat >conftest.$ac_ext <<_ACEOF
17261 /* confdefs.h. */
17262 _ACEOF
17263 cat confdefs.h >>conftest.$ac_ext
17264 cat >>conftest.$ac_ext <<_ACEOF
17265 /* end confdefs.h. */
17266 $ac_includes_default
17268 main ()
17270 static struct stat ac_aggr;
17271 if (sizeof ac_aggr.st_rdev)
17272 return 0;
17274 return 0;
17276 _ACEOF
17277 rm -f conftest.$ac_objext
17278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17279 (eval $ac_compile) 2>conftest.er1
17280 ac_status=$?
17281 grep -v '^ *+' conftest.er1 >conftest.err
17282 rm -f conftest.er1
17283 cat conftest.err >&5
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); } &&
17286 { ac_try='test -z "$ac_c_werror_flag"
17287 || test ! -s conftest.err'
17288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17289 (eval $ac_try) 2>&5
17290 ac_status=$?
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); }; } &&
17293 { ac_try='test -s conftest.$ac_objext'
17294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295 (eval $ac_try) 2>&5
17296 ac_status=$?
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; }; then
17299 ac_cv_member_struct_stat_st_rdev=yes
17300 else
17301 echo "$as_me: failed program was:" >&5
17302 sed 's/^/| /' conftest.$ac_ext >&5
17304 ac_cv_member_struct_stat_st_rdev=no
17306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17310 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17311 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17312 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17314 cat >>confdefs.h <<_ACEOF
17315 #define HAVE_STRUCT_STAT_ST_RDEV 1
17316 _ACEOF
17321 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17322 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17323 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17324 echo $ECHO_N "(cached) $ECHO_C" >&6
17325 else
17326 cat >conftest.$ac_ext <<_ACEOF
17327 /* confdefs.h. */
17328 _ACEOF
17329 cat confdefs.h >>conftest.$ac_ext
17330 cat >>conftest.$ac_ext <<_ACEOF
17331 /* end confdefs.h. */
17332 $ac_includes_default
17334 main ()
17336 static struct stat ac_aggr;
17337 if (ac_aggr.st_blksize)
17338 return 0;
17340 return 0;
17342 _ACEOF
17343 rm -f conftest.$ac_objext
17344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17345 (eval $ac_compile) 2>conftest.er1
17346 ac_status=$?
17347 grep -v '^ *+' conftest.er1 >conftest.err
17348 rm -f conftest.er1
17349 cat conftest.err >&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); } &&
17352 { ac_try='test -z "$ac_c_werror_flag"
17353 || test ! -s conftest.err'
17354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17355 (eval $ac_try) 2>&5
17356 ac_status=$?
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); }; } &&
17359 { ac_try='test -s conftest.$ac_objext'
17360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17361 (eval $ac_try) 2>&5
17362 ac_status=$?
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); }; }; then
17365 ac_cv_member_struct_stat_st_blksize=yes
17366 else
17367 echo "$as_me: failed program was:" >&5
17368 sed 's/^/| /' conftest.$ac_ext >&5
17370 cat >conftest.$ac_ext <<_ACEOF
17371 /* confdefs.h. */
17372 _ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17376 $ac_includes_default
17378 main ()
17380 static struct stat ac_aggr;
17381 if (sizeof ac_aggr.st_blksize)
17382 return 0;
17384 return 0;
17386 _ACEOF
17387 rm -f conftest.$ac_objext
17388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17389 (eval $ac_compile) 2>conftest.er1
17390 ac_status=$?
17391 grep -v '^ *+' conftest.er1 >conftest.err
17392 rm -f conftest.er1
17393 cat conftest.err >&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); } &&
17396 { ac_try='test -z "$ac_c_werror_flag"
17397 || test ! -s conftest.err'
17398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17399 (eval $ac_try) 2>&5
17400 ac_status=$?
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); }; } &&
17403 { ac_try='test -s conftest.$ac_objext'
17404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17405 (eval $ac_try) 2>&5
17406 ac_status=$?
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; }; then
17409 ac_cv_member_struct_stat_st_blksize=yes
17410 else
17411 echo "$as_me: failed program was:" >&5
17412 sed 's/^/| /' conftest.$ac_ext >&5
17414 ac_cv_member_struct_stat_st_blksize=no
17416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17420 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17421 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17422 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17424 cat >>confdefs.h <<_ACEOF
17425 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17426 _ACEOF
17431 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17432 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17433 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17434 echo $ECHO_N "(cached) $ECHO_C" >&6
17435 else
17436 cat >conftest.$ac_ext <<_ACEOF
17437 /* confdefs.h. */
17438 _ACEOF
17439 cat confdefs.h >>conftest.$ac_ext
17440 cat >>conftest.$ac_ext <<_ACEOF
17441 /* end confdefs.h. */
17442 $ac_includes_default
17444 main ()
17446 static struct stat ac_aggr;
17447 if (ac_aggr.st_flags)
17448 return 0;
17450 return 0;
17452 _ACEOF
17453 rm -f conftest.$ac_objext
17454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17455 (eval $ac_compile) 2>conftest.er1
17456 ac_status=$?
17457 grep -v '^ *+' conftest.er1 >conftest.err
17458 rm -f conftest.er1
17459 cat conftest.err >&5
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); } &&
17462 { ac_try='test -z "$ac_c_werror_flag"
17463 || test ! -s conftest.err'
17464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17465 (eval $ac_try) 2>&5
17466 ac_status=$?
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); }; } &&
17469 { ac_try='test -s conftest.$ac_objext'
17470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17471 (eval $ac_try) 2>&5
17472 ac_status=$?
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); }; }; then
17475 ac_cv_member_struct_stat_st_flags=yes
17476 else
17477 echo "$as_me: failed program was:" >&5
17478 sed 's/^/| /' conftest.$ac_ext >&5
17480 cat >conftest.$ac_ext <<_ACEOF
17481 /* confdefs.h. */
17482 _ACEOF
17483 cat confdefs.h >>conftest.$ac_ext
17484 cat >>conftest.$ac_ext <<_ACEOF
17485 /* end confdefs.h. */
17486 $ac_includes_default
17488 main ()
17490 static struct stat ac_aggr;
17491 if (sizeof ac_aggr.st_flags)
17492 return 0;
17494 return 0;
17496 _ACEOF
17497 rm -f conftest.$ac_objext
17498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17499 (eval $ac_compile) 2>conftest.er1
17500 ac_status=$?
17501 grep -v '^ *+' conftest.er1 >conftest.err
17502 rm -f conftest.er1
17503 cat conftest.err >&5
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); } &&
17506 { ac_try='test -z "$ac_c_werror_flag"
17507 || test ! -s conftest.err'
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17510 ac_status=$?
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; } &&
17513 { ac_try='test -s conftest.$ac_objext'
17514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17515 (eval $ac_try) 2>&5
17516 ac_status=$?
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); }; }; then
17519 ac_cv_member_struct_stat_st_flags=yes
17520 else
17521 echo "$as_me: failed program was:" >&5
17522 sed 's/^/| /' conftest.$ac_ext >&5
17524 ac_cv_member_struct_stat_st_flags=no
17526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17530 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
17531 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
17532 if test $ac_cv_member_struct_stat_st_flags = yes; then
17534 cat >>confdefs.h <<_ACEOF
17535 #define HAVE_STRUCT_STAT_ST_FLAGS 1
17536 _ACEOF
17541 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
17542 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
17543 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
17544 echo $ECHO_N "(cached) $ECHO_C" >&6
17545 else
17546 cat >conftest.$ac_ext <<_ACEOF
17547 /* confdefs.h. */
17548 _ACEOF
17549 cat confdefs.h >>conftest.$ac_ext
17550 cat >>conftest.$ac_ext <<_ACEOF
17551 /* end confdefs.h. */
17552 $ac_includes_default
17554 main ()
17556 static struct stat ac_aggr;
17557 if (ac_aggr.st_gen)
17558 return 0;
17560 return 0;
17562 _ACEOF
17563 rm -f conftest.$ac_objext
17564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17565 (eval $ac_compile) 2>conftest.er1
17566 ac_status=$?
17567 grep -v '^ *+' conftest.er1 >conftest.err
17568 rm -f conftest.er1
17569 cat conftest.err >&5
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); } &&
17572 { ac_try='test -z "$ac_c_werror_flag"
17573 || test ! -s conftest.err'
17574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17575 (eval $ac_try) 2>&5
17576 ac_status=$?
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); }; } &&
17579 { ac_try='test -s conftest.$ac_objext'
17580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17581 (eval $ac_try) 2>&5
17582 ac_status=$?
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); }; }; then
17585 ac_cv_member_struct_stat_st_gen=yes
17586 else
17587 echo "$as_me: failed program was:" >&5
17588 sed 's/^/| /' conftest.$ac_ext >&5
17590 cat >conftest.$ac_ext <<_ACEOF
17591 /* confdefs.h. */
17592 _ACEOF
17593 cat confdefs.h >>conftest.$ac_ext
17594 cat >>conftest.$ac_ext <<_ACEOF
17595 /* end confdefs.h. */
17596 $ac_includes_default
17598 main ()
17600 static struct stat ac_aggr;
17601 if (sizeof ac_aggr.st_gen)
17602 return 0;
17604 return 0;
17606 _ACEOF
17607 rm -f conftest.$ac_objext
17608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17609 (eval $ac_compile) 2>conftest.er1
17610 ac_status=$?
17611 grep -v '^ *+' conftest.er1 >conftest.err
17612 rm -f conftest.er1
17613 cat conftest.err >&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); } &&
17616 { ac_try='test -z "$ac_c_werror_flag"
17617 || test ! -s conftest.err'
17618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17619 (eval $ac_try) 2>&5
17620 ac_status=$?
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); }; } &&
17623 { ac_try='test -s conftest.$ac_objext'
17624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17625 (eval $ac_try) 2>&5
17626 ac_status=$?
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); }; }; then
17629 ac_cv_member_struct_stat_st_gen=yes
17630 else
17631 echo "$as_me: failed program was:" >&5
17632 sed 's/^/| /' conftest.$ac_ext >&5
17634 ac_cv_member_struct_stat_st_gen=no
17636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17640 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
17641 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
17642 if test $ac_cv_member_struct_stat_st_gen = yes; then
17644 cat >>confdefs.h <<_ACEOF
17645 #define HAVE_STRUCT_STAT_ST_GEN 1
17646 _ACEOF
17651 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
17652 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
17653 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
17654 echo $ECHO_N "(cached) $ECHO_C" >&6
17655 else
17656 cat >conftest.$ac_ext <<_ACEOF
17657 /* confdefs.h. */
17658 _ACEOF
17659 cat confdefs.h >>conftest.$ac_ext
17660 cat >>conftest.$ac_ext <<_ACEOF
17661 /* end confdefs.h. */
17662 $ac_includes_default
17664 main ()
17666 static struct stat ac_aggr;
17667 if (ac_aggr.st_birthtime)
17668 return 0;
17670 return 0;
17672 _ACEOF
17673 rm -f conftest.$ac_objext
17674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17675 (eval $ac_compile) 2>conftest.er1
17676 ac_status=$?
17677 grep -v '^ *+' conftest.er1 >conftest.err
17678 rm -f conftest.er1
17679 cat conftest.err >&5
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); } &&
17682 { ac_try='test -z "$ac_c_werror_flag"
17683 || test ! -s conftest.err'
17684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17685 (eval $ac_try) 2>&5
17686 ac_status=$?
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); }; } &&
17689 { ac_try='test -s conftest.$ac_objext'
17690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17691 (eval $ac_try) 2>&5
17692 ac_status=$?
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; }; then
17695 ac_cv_member_struct_stat_st_birthtime=yes
17696 else
17697 echo "$as_me: failed program was:" >&5
17698 sed 's/^/| /' conftest.$ac_ext >&5
17700 cat >conftest.$ac_ext <<_ACEOF
17701 /* confdefs.h. */
17702 _ACEOF
17703 cat confdefs.h >>conftest.$ac_ext
17704 cat >>conftest.$ac_ext <<_ACEOF
17705 /* end confdefs.h. */
17706 $ac_includes_default
17708 main ()
17710 static struct stat ac_aggr;
17711 if (sizeof ac_aggr.st_birthtime)
17712 return 0;
17714 return 0;
17716 _ACEOF
17717 rm -f conftest.$ac_objext
17718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17719 (eval $ac_compile) 2>conftest.er1
17720 ac_status=$?
17721 grep -v '^ *+' conftest.er1 >conftest.err
17722 rm -f conftest.er1
17723 cat conftest.err >&5
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); } &&
17726 { ac_try='test -z "$ac_c_werror_flag"
17727 || test ! -s conftest.err'
17728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729 (eval $ac_try) 2>&5
17730 ac_status=$?
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); }; } &&
17733 { ac_try='test -s conftest.$ac_objext'
17734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17735 (eval $ac_try) 2>&5
17736 ac_status=$?
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); }; }; then
17739 ac_cv_member_struct_stat_st_birthtime=yes
17740 else
17741 echo "$as_me: failed program was:" >&5
17742 sed 's/^/| /' conftest.$ac_ext >&5
17744 ac_cv_member_struct_stat_st_birthtime=no
17746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17750 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
17751 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
17752 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
17754 cat >>confdefs.h <<_ACEOF
17755 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
17756 _ACEOF
17761 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17762 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17763 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
17765 else
17766 cat >conftest.$ac_ext <<_ACEOF
17767 /* confdefs.h. */
17768 _ACEOF
17769 cat confdefs.h >>conftest.$ac_ext
17770 cat >>conftest.$ac_ext <<_ACEOF
17771 /* end confdefs.h. */
17772 $ac_includes_default
17774 main ()
17776 static struct stat ac_aggr;
17777 if (ac_aggr.st_blocks)
17778 return 0;
17780 return 0;
17782 _ACEOF
17783 rm -f conftest.$ac_objext
17784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17785 (eval $ac_compile) 2>conftest.er1
17786 ac_status=$?
17787 grep -v '^ *+' conftest.er1 >conftest.err
17788 rm -f conftest.er1
17789 cat conftest.err >&5
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); } &&
17792 { ac_try='test -z "$ac_c_werror_flag"
17793 || test ! -s conftest.err'
17794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17795 (eval $ac_try) 2>&5
17796 ac_status=$?
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); }; } &&
17799 { ac_try='test -s conftest.$ac_objext'
17800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17801 (eval $ac_try) 2>&5
17802 ac_status=$?
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); }; }; then
17805 ac_cv_member_struct_stat_st_blocks=yes
17806 else
17807 echo "$as_me: failed program was:" >&5
17808 sed 's/^/| /' conftest.$ac_ext >&5
17810 cat >conftest.$ac_ext <<_ACEOF
17811 /* confdefs.h. */
17812 _ACEOF
17813 cat confdefs.h >>conftest.$ac_ext
17814 cat >>conftest.$ac_ext <<_ACEOF
17815 /* end confdefs.h. */
17816 $ac_includes_default
17818 main ()
17820 static struct stat ac_aggr;
17821 if (sizeof ac_aggr.st_blocks)
17822 return 0;
17824 return 0;
17826 _ACEOF
17827 rm -f conftest.$ac_objext
17828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17829 (eval $ac_compile) 2>conftest.er1
17830 ac_status=$?
17831 grep -v '^ *+' conftest.er1 >conftest.err
17832 rm -f conftest.er1
17833 cat conftest.err >&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); } &&
17836 { ac_try='test -z "$ac_c_werror_flag"
17837 || test ! -s conftest.err'
17838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17839 (eval $ac_try) 2>&5
17840 ac_status=$?
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); }; } &&
17843 { ac_try='test -s conftest.$ac_objext'
17844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845 (eval $ac_try) 2>&5
17846 ac_status=$?
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); }; }; then
17849 ac_cv_member_struct_stat_st_blocks=yes
17850 else
17851 echo "$as_me: failed program was:" >&5
17852 sed 's/^/| /' conftest.$ac_ext >&5
17854 ac_cv_member_struct_stat_st_blocks=no
17856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17860 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17861 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17862 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17864 cat >>confdefs.h <<_ACEOF
17865 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17866 _ACEOF
17869 cat >>confdefs.h <<\_ACEOF
17870 #define HAVE_ST_BLOCKS 1
17871 _ACEOF
17873 else
17874 case $LIBOBJS in
17875 "fileblocks.$ac_objext" | \
17876 *" fileblocks.$ac_objext" | \
17877 "fileblocks.$ac_objext "* | \
17878 *" fileblocks.$ac_objext "* ) ;;
17879 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
17880 esac
17886 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
17887 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
17888 if test "${ac_cv_header_time_altzone+set}" = set; then
17889 echo $ECHO_N "(cached) $ECHO_C" >&6
17890 else
17891 cat >conftest.$ac_ext <<_ACEOF
17892 /* confdefs.h. */
17893 _ACEOF
17894 cat confdefs.h >>conftest.$ac_ext
17895 cat >>conftest.$ac_ext <<_ACEOF
17896 /* end confdefs.h. */
17897 #include <time.h>
17899 main ()
17901 return altzone;
17903 return 0;
17905 _ACEOF
17906 rm -f conftest.$ac_objext
17907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17908 (eval $ac_compile) 2>conftest.er1
17909 ac_status=$?
17910 grep -v '^ *+' conftest.er1 >conftest.err
17911 rm -f conftest.er1
17912 cat conftest.err >&5
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); } &&
17915 { ac_try='test -z "$ac_c_werror_flag"
17916 || test ! -s conftest.err'
17917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17918 (eval $ac_try) 2>&5
17919 ac_status=$?
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); }; } &&
17922 { ac_try='test -s conftest.$ac_objext'
17923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17924 (eval $ac_try) 2>&5
17925 ac_status=$?
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); }; }; then
17928 ac_cv_header_time_altzone=yes
17929 else
17930 echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17933 ac_cv_header_time_altzone=no
17935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17938 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
17939 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
17940 if test $ac_cv_header_time_altzone = yes; then
17942 cat >>confdefs.h <<\_ACEOF
17943 #define HAVE_ALTZONE 1
17944 _ACEOF
17948 was_it_defined=no
17949 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
17950 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
17951 cat >conftest.$ac_ext <<_ACEOF
17952 /* confdefs.h. */
17953 _ACEOF
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h. */
17958 #include <sys/types.h>
17959 #include <sys/select.h>
17960 #include <sys/time.h>
17963 main ()
17967 return 0;
17969 _ACEOF
17970 rm -f conftest.$ac_objext
17971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17972 (eval $ac_compile) 2>conftest.er1
17973 ac_status=$?
17974 grep -v '^ *+' conftest.er1 >conftest.err
17975 rm -f conftest.er1
17976 cat conftest.err >&5
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); } &&
17979 { ac_try='test -z "$ac_c_werror_flag"
17980 || test ! -s conftest.err'
17981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17982 (eval $ac_try) 2>&5
17983 ac_status=$?
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); }; } &&
17986 { ac_try='test -s conftest.$ac_objext'
17987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17988 (eval $ac_try) 2>&5
17989 ac_status=$?
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); }; }; then
17994 cat >>confdefs.h <<\_ACEOF
17995 #define SYS_SELECT_WITH_SYS_TIME 1
17996 _ACEOF
17998 was_it_defined=yes
18000 else
18001 echo "$as_me: failed program was:" >&5
18002 sed 's/^/| /' conftest.$ac_ext >&5
18005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18006 echo "$as_me:$LINENO: result: $was_it_defined" >&5
18007 echo "${ECHO_T}$was_it_defined" >&6
18009 echo "$as_me:$LINENO: checking for addrinfo" >&5
18010 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
18011 if test "${ac_cv_struct_addrinfo+set}" = set; then
18012 echo $ECHO_N "(cached) $ECHO_C" >&6
18013 else
18014 cat >conftest.$ac_ext <<_ACEOF
18015 /* confdefs.h. */
18016 _ACEOF
18017 cat confdefs.h >>conftest.$ac_ext
18018 cat >>conftest.$ac_ext <<_ACEOF
18019 /* end confdefs.h. */
18021 # include <netdb.h>
18023 main ()
18025 struct addrinfo a
18027 return 0;
18029 _ACEOF
18030 rm -f conftest.$ac_objext
18031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18032 (eval $ac_compile) 2>conftest.er1
18033 ac_status=$?
18034 grep -v '^ *+' conftest.er1 >conftest.err
18035 rm -f conftest.er1
18036 cat conftest.err >&5
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); } &&
18039 { ac_try='test -z "$ac_c_werror_flag"
18040 || test ! -s conftest.err'
18041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18042 (eval $ac_try) 2>&5
18043 ac_status=$?
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); }; } &&
18046 { ac_try='test -s conftest.$ac_objext'
18047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18048 (eval $ac_try) 2>&5
18049 ac_status=$?
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); }; }; then
18052 ac_cv_struct_addrinfo=yes
18053 else
18054 echo "$as_me: failed program was:" >&5
18055 sed 's/^/| /' conftest.$ac_ext >&5
18057 ac_cv_struct_addrinfo=no
18059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18062 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
18063 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
18064 if test $ac_cv_struct_addrinfo = yes; then
18066 cat >>confdefs.h <<\_ACEOF
18067 #define HAVE_ADDRINFO 1
18068 _ACEOF
18072 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
18073 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
18074 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
18075 echo $ECHO_N "(cached) $ECHO_C" >&6
18076 else
18077 cat >conftest.$ac_ext <<_ACEOF
18078 /* confdefs.h. */
18079 _ACEOF
18080 cat confdefs.h >>conftest.$ac_ext
18081 cat >>conftest.$ac_ext <<_ACEOF
18082 /* end confdefs.h. */
18084 # include <sys/types.h>
18085 # include <sys/socket.h>
18087 main ()
18089 struct sockaddr_storage s
18091 return 0;
18093 _ACEOF
18094 rm -f conftest.$ac_objext
18095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18096 (eval $ac_compile) 2>conftest.er1
18097 ac_status=$?
18098 grep -v '^ *+' conftest.er1 >conftest.err
18099 rm -f conftest.er1
18100 cat conftest.err >&5
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); } &&
18103 { ac_try='test -z "$ac_c_werror_flag"
18104 || test ! -s conftest.err'
18105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18106 (eval $ac_try) 2>&5
18107 ac_status=$?
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); }; } &&
18110 { ac_try='test -s conftest.$ac_objext'
18111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18112 (eval $ac_try) 2>&5
18113 ac_status=$?
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); }; }; then
18116 ac_cv_struct_sockaddr_storage=yes
18117 else
18118 echo "$as_me: failed program was:" >&5
18119 sed 's/^/| /' conftest.$ac_ext >&5
18121 ac_cv_struct_sockaddr_storage=no
18123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18126 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
18127 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
18128 if test $ac_cv_struct_sockaddr_storage = yes; then
18130 cat >>confdefs.h <<\_ACEOF
18131 #define HAVE_SOCKADDR_STORAGE 1
18132 _ACEOF
18136 # checks for compiler characteristics
18139 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
18140 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
18141 if test "${ac_cv_c_char_unsigned+set}" = set; then
18142 echo $ECHO_N "(cached) $ECHO_C" >&6
18143 else
18144 cat >conftest.$ac_ext <<_ACEOF
18145 /* confdefs.h. */
18146 _ACEOF
18147 cat confdefs.h >>conftest.$ac_ext
18148 cat >>conftest.$ac_ext <<_ACEOF
18149 /* end confdefs.h. */
18150 $ac_includes_default
18152 main ()
18154 static int test_array [1 - 2 * !(((char) -1) < 0)];
18155 test_array [0] = 0
18158 return 0;
18160 _ACEOF
18161 rm -f conftest.$ac_objext
18162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18163 (eval $ac_compile) 2>conftest.er1
18164 ac_status=$?
18165 grep -v '^ *+' conftest.er1 >conftest.err
18166 rm -f conftest.er1
18167 cat conftest.err >&5
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); } &&
18170 { ac_try='test -z "$ac_c_werror_flag"
18171 || test ! -s conftest.err'
18172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18173 (eval $ac_try) 2>&5
18174 ac_status=$?
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); }; } &&
18177 { ac_try='test -s conftest.$ac_objext'
18178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18179 (eval $ac_try) 2>&5
18180 ac_status=$?
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); }; }; then
18183 ac_cv_c_char_unsigned=no
18184 else
18185 echo "$as_me: failed program was:" >&5
18186 sed 's/^/| /' conftest.$ac_ext >&5
18188 ac_cv_c_char_unsigned=yes
18190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18192 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18193 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18194 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18195 cat >>confdefs.h <<\_ACEOF
18196 #define __CHAR_UNSIGNED__ 1
18197 _ACEOF
18201 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18202 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18203 if test "${ac_cv_c_const+set}" = set; then
18204 echo $ECHO_N "(cached) $ECHO_C" >&6
18205 else
18206 cat >conftest.$ac_ext <<_ACEOF
18207 /* confdefs.h. */
18208 _ACEOF
18209 cat confdefs.h >>conftest.$ac_ext
18210 cat >>conftest.$ac_ext <<_ACEOF
18211 /* end confdefs.h. */
18214 main ()
18216 /* FIXME: Include the comments suggested by Paul. */
18217 #ifndef __cplusplus
18218 /* Ultrix mips cc rejects this. */
18219 typedef int charset[2];
18220 const charset x;
18221 /* SunOS 4.1.1 cc rejects this. */
18222 char const *const *ccp;
18223 char **p;
18224 /* NEC SVR4.0.2 mips cc rejects this. */
18225 struct point {int x, y;};
18226 static struct point const zero = {0,0};
18227 /* AIX XL C 1.02.0.0 rejects this.
18228 It does not let you subtract one const X* pointer from another in
18229 an arm of an if-expression whose if-part is not a constant
18230 expression */
18231 const char *g = "string";
18232 ccp = &g + (g ? g-g : 0);
18233 /* HPUX 7.0 cc rejects these. */
18234 ++ccp;
18235 p = (char**) ccp;
18236 ccp = (char const *const *) p;
18237 { /* SCO 3.2v4 cc rejects this. */
18238 char *t;
18239 char const *s = 0 ? (char *) 0 : (char const *) 0;
18241 *t++ = 0;
18243 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18244 int x[] = {25, 17};
18245 const int *foo = &x[0];
18246 ++foo;
18248 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18249 typedef const int *iptr;
18250 iptr p = 0;
18251 ++p;
18253 { /* AIX XL C 1.02.0.0 rejects this saying
18254 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18255 struct s { int j; const int *ap[3]; };
18256 struct s *b; b->j = 5;
18258 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18259 const int foo = 10;
18261 #endif
18264 return 0;
18266 _ACEOF
18267 rm -f conftest.$ac_objext
18268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18269 (eval $ac_compile) 2>conftest.er1
18270 ac_status=$?
18271 grep -v '^ *+' conftest.er1 >conftest.err
18272 rm -f conftest.er1
18273 cat conftest.err >&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); } &&
18276 { ac_try='test -z "$ac_c_werror_flag"
18277 || test ! -s conftest.err'
18278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279 (eval $ac_try) 2>&5
18280 ac_status=$?
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; } &&
18283 { ac_try='test -s conftest.$ac_objext'
18284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18286 ac_status=$?
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; }; then
18289 ac_cv_c_const=yes
18290 else
18291 echo "$as_me: failed program was:" >&5
18292 sed 's/^/| /' conftest.$ac_ext >&5
18294 ac_cv_c_const=no
18296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18298 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18299 echo "${ECHO_T}$ac_cv_c_const" >&6
18300 if test $ac_cv_c_const = no; then
18302 cat >>confdefs.h <<\_ACEOF
18303 #define const
18304 _ACEOF
18309 works=no
18310 echo "$as_me:$LINENO: checking for working volatile" >&5
18311 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18312 cat >conftest.$ac_ext <<_ACEOF
18313 /* confdefs.h. */
18314 _ACEOF
18315 cat confdefs.h >>conftest.$ac_ext
18316 cat >>conftest.$ac_ext <<_ACEOF
18317 /* end confdefs.h. */
18320 main ()
18322 volatile int x; x = 0;
18324 return 0;
18326 _ACEOF
18327 rm -f conftest.$ac_objext
18328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18329 (eval $ac_compile) 2>conftest.er1
18330 ac_status=$?
18331 grep -v '^ *+' conftest.er1 >conftest.err
18332 rm -f conftest.er1
18333 cat conftest.err >&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } &&
18336 { ac_try='test -z "$ac_c_werror_flag"
18337 || test ! -s conftest.err'
18338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339 (eval $ac_try) 2>&5
18340 ac_status=$?
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; } &&
18343 { ac_try='test -s conftest.$ac_objext'
18344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345 (eval $ac_try) 2>&5
18346 ac_status=$?
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; }; then
18349 works=yes
18350 else
18351 echo "$as_me: failed program was:" >&5
18352 sed 's/^/| /' conftest.$ac_ext >&5
18355 cat >>confdefs.h <<\_ACEOF
18356 #define volatile
18357 _ACEOF
18361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18362 echo "$as_me:$LINENO: result: $works" >&5
18363 echo "${ECHO_T}$works" >&6
18365 works=no
18366 echo "$as_me:$LINENO: checking for working signed char" >&5
18367 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18368 cat >conftest.$ac_ext <<_ACEOF
18369 /* confdefs.h. */
18370 _ACEOF
18371 cat confdefs.h >>conftest.$ac_ext
18372 cat >>conftest.$ac_ext <<_ACEOF
18373 /* end confdefs.h. */
18376 main ()
18378 signed char c;
18380 return 0;
18382 _ACEOF
18383 rm -f conftest.$ac_objext
18384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18385 (eval $ac_compile) 2>conftest.er1
18386 ac_status=$?
18387 grep -v '^ *+' conftest.er1 >conftest.err
18388 rm -f conftest.er1
18389 cat conftest.err >&5
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); } &&
18392 { ac_try='test -z "$ac_c_werror_flag"
18393 || test ! -s conftest.err'
18394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395 (eval $ac_try) 2>&5
18396 ac_status=$?
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; } &&
18399 { ac_try='test -s conftest.$ac_objext'
18400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401 (eval $ac_try) 2>&5
18402 ac_status=$?
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); }; }; then
18405 works=yes
18406 else
18407 echo "$as_me: failed program was:" >&5
18408 sed 's/^/| /' conftest.$ac_ext >&5
18411 cat >>confdefs.h <<\_ACEOF
18412 #define signed
18413 _ACEOF
18417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18418 echo "$as_me:$LINENO: result: $works" >&5
18419 echo "${ECHO_T}$works" >&6
18421 have_prototypes=no
18422 echo "$as_me:$LINENO: checking for prototypes" >&5
18423 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18424 cat >conftest.$ac_ext <<_ACEOF
18425 /* confdefs.h. */
18426 _ACEOF
18427 cat confdefs.h >>conftest.$ac_ext
18428 cat >>conftest.$ac_ext <<_ACEOF
18429 /* end confdefs.h. */
18430 int foo(int x) { return 0; }
18432 main ()
18434 return foo(10);
18436 return 0;
18438 _ACEOF
18439 rm -f conftest.$ac_objext
18440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18441 (eval $ac_compile) 2>conftest.er1
18442 ac_status=$?
18443 grep -v '^ *+' conftest.er1 >conftest.err
18444 rm -f conftest.er1
18445 cat conftest.err >&5
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); } &&
18448 { ac_try='test -z "$ac_c_werror_flag"
18449 || test ! -s conftest.err'
18450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18451 (eval $ac_try) 2>&5
18452 ac_status=$?
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); }; } &&
18455 { ac_try='test -s conftest.$ac_objext'
18456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18457 (eval $ac_try) 2>&5
18458 ac_status=$?
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); }; }; then
18463 cat >>confdefs.h <<\_ACEOF
18464 #define HAVE_PROTOTYPES 1
18465 _ACEOF
18467 have_prototypes=yes
18469 else
18470 echo "$as_me: failed program was:" >&5
18471 sed 's/^/| /' conftest.$ac_ext >&5
18474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18475 echo "$as_me:$LINENO: result: $have_prototypes" >&5
18476 echo "${ECHO_T}$have_prototypes" >&6
18478 works=no
18479 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
18480 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
18481 cat >conftest.$ac_ext <<_ACEOF
18482 /* confdefs.h. */
18483 _ACEOF
18484 cat confdefs.h >>conftest.$ac_ext
18485 cat >>conftest.$ac_ext <<_ACEOF
18486 /* end confdefs.h. */
18488 #include <stdarg.h>
18489 int foo(int x, ...) {
18490 va_list va;
18491 va_start(va, x);
18492 va_arg(va, int);
18493 va_arg(va, char *);
18494 va_arg(va, double);
18495 return 0;
18499 main ()
18501 return foo(10, "", 3.14);
18503 return 0;
18505 _ACEOF
18506 rm -f conftest.$ac_objext
18507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18508 (eval $ac_compile) 2>conftest.er1
18509 ac_status=$?
18510 grep -v '^ *+' conftest.er1 >conftest.err
18511 rm -f conftest.er1
18512 cat conftest.err >&5
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); } &&
18515 { ac_try='test -z "$ac_c_werror_flag"
18516 || test ! -s conftest.err'
18517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18518 (eval $ac_try) 2>&5
18519 ac_status=$?
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); }; } &&
18522 { ac_try='test -s conftest.$ac_objext'
18523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18524 (eval $ac_try) 2>&5
18525 ac_status=$?
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; }; then
18530 cat >>confdefs.h <<\_ACEOF
18531 #define HAVE_STDARG_PROTOTYPES 1
18532 _ACEOF
18534 works=yes
18536 else
18537 echo "$as_me: failed program was:" >&5
18538 sed 's/^/| /' conftest.$ac_ext >&5
18541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18542 echo "$as_me:$LINENO: result: $works" >&5
18543 echo "${ECHO_T}$works" >&6
18545 # check for socketpair
18546 echo "$as_me:$LINENO: checking for socketpair" >&5
18547 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
18548 cat >conftest.$ac_ext <<_ACEOF
18549 /* confdefs.h. */
18550 _ACEOF
18551 cat confdefs.h >>conftest.$ac_ext
18552 cat >>conftest.$ac_ext <<_ACEOF
18553 /* end confdefs.h. */
18555 #include <sys/types.h>
18556 #include <sys/socket.h>
18559 main ()
18561 void *x=socketpair
18563 return 0;
18565 _ACEOF
18566 rm -f conftest.$ac_objext
18567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18568 (eval $ac_compile) 2>conftest.er1
18569 ac_status=$?
18570 grep -v '^ *+' conftest.er1 >conftest.err
18571 rm -f conftest.er1
18572 cat conftest.err >&5
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); } &&
18575 { ac_try='test -z "$ac_c_werror_flag"
18576 || test ! -s conftest.err'
18577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18578 (eval $ac_try) 2>&5
18579 ac_status=$?
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; } &&
18582 { ac_try='test -s conftest.$ac_objext'
18583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18584 (eval $ac_try) 2>&5
18585 ac_status=$?
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); }; }; then
18589 cat >>confdefs.h <<\_ACEOF
18590 #define HAVE_SOCKETPAIR 1
18591 _ACEOF
18593 echo "$as_me:$LINENO: result: yes" >&5
18594 echo "${ECHO_T}yes" >&6
18595 else
18596 echo "$as_me: failed program was:" >&5
18597 sed 's/^/| /' conftest.$ac_ext >&5
18599 echo "$as_me:$LINENO: result: no" >&5
18600 echo "${ECHO_T}no" >&6
18603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18605 # check if sockaddr has sa_len member
18606 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
18607 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
18608 cat >conftest.$ac_ext <<_ACEOF
18609 /* confdefs.h. */
18610 _ACEOF
18611 cat confdefs.h >>conftest.$ac_ext
18612 cat >>conftest.$ac_ext <<_ACEOF
18613 /* end confdefs.h. */
18614 #include <sys/types.h>
18615 #include <sys/socket.h>
18617 main ()
18619 struct sockaddr x;
18620 x.sa_len = 0;
18622 return 0;
18624 _ACEOF
18625 rm -f conftest.$ac_objext
18626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18627 (eval $ac_compile) 2>conftest.er1
18628 ac_status=$?
18629 grep -v '^ *+' conftest.er1 >conftest.err
18630 rm -f conftest.er1
18631 cat conftest.err >&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } &&
18634 { ac_try='test -z "$ac_c_werror_flag"
18635 || test ! -s conftest.err'
18636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637 (eval $ac_try) 2>&5
18638 ac_status=$?
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; } &&
18641 { ac_try='test -s conftest.$ac_objext'
18642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18643 (eval $ac_try) 2>&5
18644 ac_status=$?
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); }; }; then
18647 echo "$as_me:$LINENO: result: yes" >&5
18648 echo "${ECHO_T}yes" >&6
18650 cat >>confdefs.h <<\_ACEOF
18651 #define HAVE_SOCKADDR_SA_LEN 1
18652 _ACEOF
18654 else
18655 echo "$as_me: failed program was:" >&5
18656 sed 's/^/| /' conftest.$ac_ext >&5
18658 echo "$as_me:$LINENO: result: no" >&5
18659 echo "${ECHO_T}no" >&6
18661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18663 va_list_is_array=no
18664 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
18665 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
18666 cat >conftest.$ac_ext <<_ACEOF
18667 /* confdefs.h. */
18668 _ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h. */
18673 #ifdef HAVE_STDARG_PROTOTYPES
18674 #include <stdarg.h>
18675 #else
18676 #include <varargs.h>
18677 #endif
18680 main ()
18682 va_list list1, list2; list1 = list2;
18684 return 0;
18686 _ACEOF
18687 rm -f conftest.$ac_objext
18688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18689 (eval $ac_compile) 2>conftest.er1
18690 ac_status=$?
18691 grep -v '^ *+' conftest.er1 >conftest.err
18692 rm -f conftest.er1
18693 cat conftest.err >&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); } &&
18696 { ac_try='test -z "$ac_c_werror_flag"
18697 || test ! -s conftest.err'
18698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18699 (eval $ac_try) 2>&5
18700 ac_status=$?
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); }; } &&
18703 { ac_try='test -s conftest.$ac_objext'
18704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18705 (eval $ac_try) 2>&5
18706 ac_status=$?
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); }; }; then
18710 else
18711 echo "$as_me: failed program was:" >&5
18712 sed 's/^/| /' conftest.$ac_ext >&5
18716 cat >>confdefs.h <<\_ACEOF
18717 #define VA_LIST_IS_ARRAY 1
18718 _ACEOF
18720 va_list_is_array=yes
18723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18724 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
18725 echo "${ECHO_T}$va_list_is_array" >&6
18727 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
18731 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18732 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18733 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18734 echo $ECHO_N "(cached) $ECHO_C" >&6
18735 else
18736 cat >conftest.$ac_ext <<_ACEOF
18737 /* confdefs.h. */
18738 _ACEOF
18739 cat confdefs.h >>conftest.$ac_ext
18740 cat >>conftest.$ac_ext <<_ACEOF
18741 /* end confdefs.h. */
18742 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18744 #define gethostbyname_r innocuous_gethostbyname_r
18746 /* System header to define __stub macros and hopefully few prototypes,
18747 which can conflict with char gethostbyname_r (); below.
18748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18749 <limits.h> exists even on freestanding compilers. */
18751 #ifdef __STDC__
18752 # include <limits.h>
18753 #else
18754 # include <assert.h>
18755 #endif
18757 #undef gethostbyname_r
18759 /* Override any gcc2 internal prototype to avoid an error. */
18760 #ifdef __cplusplus
18761 extern "C"
18763 #endif
18764 /* We use char because int might match the return type of a gcc2
18765 builtin and then its argument prototype would still apply. */
18766 char gethostbyname_r ();
18767 /* The GNU C library defines this for functions which it implements
18768 to always fail with ENOSYS. Some functions are actually named
18769 something starting with __ and the normal name is an alias. */
18770 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18771 choke me
18772 #else
18773 char (*f) () = gethostbyname_r;
18774 #endif
18775 #ifdef __cplusplus
18777 #endif
18780 main ()
18782 return f != gethostbyname_r;
18784 return 0;
18786 _ACEOF
18787 rm -f conftest.$ac_objext conftest$ac_exeext
18788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18789 (eval $ac_link) 2>conftest.er1
18790 ac_status=$?
18791 grep -v '^ *+' conftest.er1 >conftest.err
18792 rm -f conftest.er1
18793 cat conftest.err >&5
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); } &&
18796 { ac_try='test -z "$ac_c_werror_flag"
18797 || test ! -s conftest.err'
18798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18799 (eval $ac_try) 2>&5
18800 ac_status=$?
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); }; } &&
18803 { ac_try='test -s conftest$ac_exeext'
18804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805 (eval $ac_try) 2>&5
18806 ac_status=$?
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); }; }; then
18809 ac_cv_func_gethostbyname_r=yes
18810 else
18811 echo "$as_me: failed program was:" >&5
18812 sed 's/^/| /' conftest.$ac_ext >&5
18814 ac_cv_func_gethostbyname_r=no
18816 rm -f conftest.err conftest.$ac_objext \
18817 conftest$ac_exeext conftest.$ac_ext
18819 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18820 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18821 if test $ac_cv_func_gethostbyname_r = yes; then
18823 cat >>confdefs.h <<\_ACEOF
18824 #define HAVE_GETHOSTBYNAME_R 1
18825 _ACEOF
18827 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
18828 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
18829 OLD_CFLAGS=$CFLAGS
18830 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
18831 cat >conftest.$ac_ext <<_ACEOF
18832 /* confdefs.h. */
18833 _ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h. */
18838 # include <netdb.h>
18841 main ()
18844 char *name;
18845 struct hostent *he, *res;
18846 char buffer[2048];
18847 int buflen = 2048;
18848 int h_errnop;
18850 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
18853 return 0;
18855 _ACEOF
18856 rm -f conftest.$ac_objext
18857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18858 (eval $ac_compile) 2>conftest.er1
18859 ac_status=$?
18860 grep -v '^ *+' conftest.er1 >conftest.err
18861 rm -f conftest.er1
18862 cat conftest.err >&5
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); } &&
18865 { ac_try='test -z "$ac_c_werror_flag"
18866 || test ! -s conftest.err'
18867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18868 (eval $ac_try) 2>&5
18869 ac_status=$?
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); }; } &&
18872 { ac_try='test -s conftest.$ac_objext'
18873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18874 (eval $ac_try) 2>&5
18875 ac_status=$?
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); }; }; then
18879 cat >>confdefs.h <<\_ACEOF
18880 #define HAVE_GETHOSTBYNAME_R 1
18881 _ACEOF
18884 cat >>confdefs.h <<\_ACEOF
18885 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
18886 _ACEOF
18888 echo "$as_me:$LINENO: result: yes" >&5
18889 echo "${ECHO_T}yes" >&6
18891 else
18892 echo "$as_me: failed program was:" >&5
18893 sed 's/^/| /' conftest.$ac_ext >&5
18896 echo "$as_me:$LINENO: result: no" >&5
18897 echo "${ECHO_T}no" >&6
18898 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
18899 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
18900 cat >conftest.$ac_ext <<_ACEOF
18901 /* confdefs.h. */
18902 _ACEOF
18903 cat confdefs.h >>conftest.$ac_ext
18904 cat >>conftest.$ac_ext <<_ACEOF
18905 /* end confdefs.h. */
18907 # include <netdb.h>
18910 main ()
18913 char *name;
18914 struct hostent *he;
18915 char buffer[2048];
18916 int buflen = 2048;
18917 int h_errnop;
18919 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
18922 return 0;
18924 _ACEOF
18925 rm -f conftest.$ac_objext
18926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18927 (eval $ac_compile) 2>conftest.er1
18928 ac_status=$?
18929 grep -v '^ *+' conftest.er1 >conftest.err
18930 rm -f conftest.er1
18931 cat conftest.err >&5
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); } &&
18934 { ac_try='test -z "$ac_c_werror_flag"
18935 || test ! -s conftest.err'
18936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18937 (eval $ac_try) 2>&5
18938 ac_status=$?
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); }; } &&
18941 { ac_try='test -s conftest.$ac_objext'
18942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943 (eval $ac_try) 2>&5
18944 ac_status=$?
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; }; then
18948 cat >>confdefs.h <<\_ACEOF
18949 #define HAVE_GETHOSTBYNAME_R 1
18950 _ACEOF
18953 cat >>confdefs.h <<\_ACEOF
18954 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
18955 _ACEOF
18957 echo "$as_me:$LINENO: result: yes" >&5
18958 echo "${ECHO_T}yes" >&6
18960 else
18961 echo "$as_me: failed program was:" >&5
18962 sed 's/^/| /' conftest.$ac_ext >&5
18965 echo "$as_me:$LINENO: result: no" >&5
18966 echo "${ECHO_T}no" >&6
18967 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
18968 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
18969 cat >conftest.$ac_ext <<_ACEOF
18970 /* confdefs.h. */
18971 _ACEOF
18972 cat confdefs.h >>conftest.$ac_ext
18973 cat >>conftest.$ac_ext <<_ACEOF
18974 /* end confdefs.h. */
18976 # include <netdb.h>
18979 main ()
18982 char *name;
18983 struct hostent *he;
18984 struct hostent_data data;
18986 (void) gethostbyname_r(name, he, &data);
18989 return 0;
18991 _ACEOF
18992 rm -f conftest.$ac_objext
18993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18994 (eval $ac_compile) 2>conftest.er1
18995 ac_status=$?
18996 grep -v '^ *+' conftest.er1 >conftest.err
18997 rm -f conftest.er1
18998 cat conftest.err >&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); } &&
19001 { ac_try='test -z "$ac_c_werror_flag"
19002 || test ! -s conftest.err'
19003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19004 (eval $ac_try) 2>&5
19005 ac_status=$?
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); }; } &&
19008 { ac_try='test -s conftest.$ac_objext'
19009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19010 (eval $ac_try) 2>&5
19011 ac_status=$?
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); }; }; then
19015 cat >>confdefs.h <<\_ACEOF
19016 #define HAVE_GETHOSTBYNAME_R 1
19017 _ACEOF
19020 cat >>confdefs.h <<\_ACEOF
19021 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
19022 _ACEOF
19024 echo "$as_me:$LINENO: result: yes" >&5
19025 echo "${ECHO_T}yes" >&6
19027 else
19028 echo "$as_me: failed program was:" >&5
19029 sed 's/^/| /' conftest.$ac_ext >&5
19032 echo "$as_me:$LINENO: result: no" >&5
19033 echo "${ECHO_T}no" >&6
19036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19043 CFLAGS=$OLD_CFLAGS
19045 else
19048 for ac_func in gethostbyname
19050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19051 echo "$as_me:$LINENO: checking for $ac_func" >&5
19052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19053 if eval "test \"\${$as_ac_var+set}\" = set"; then
19054 echo $ECHO_N "(cached) $ECHO_C" >&6
19055 else
19056 cat >conftest.$ac_ext <<_ACEOF
19057 /* confdefs.h. */
19058 _ACEOF
19059 cat confdefs.h >>conftest.$ac_ext
19060 cat >>conftest.$ac_ext <<_ACEOF
19061 /* end confdefs.h. */
19062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19064 #define $ac_func innocuous_$ac_func
19066 /* System header to define __stub macros and hopefully few prototypes,
19067 which can conflict with char $ac_func (); below.
19068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19069 <limits.h> exists even on freestanding compilers. */
19071 #ifdef __STDC__
19072 # include <limits.h>
19073 #else
19074 # include <assert.h>
19075 #endif
19077 #undef $ac_func
19079 /* Override any gcc2 internal prototype to avoid an error. */
19080 #ifdef __cplusplus
19081 extern "C"
19083 #endif
19084 /* We use char because int might match the return type of a gcc2
19085 builtin and then its argument prototype would still apply. */
19086 char $ac_func ();
19087 /* The GNU C library defines this for functions which it implements
19088 to always fail with ENOSYS. Some functions are actually named
19089 something starting with __ and the normal name is an alias. */
19090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19091 choke me
19092 #else
19093 char (*f) () = $ac_func;
19094 #endif
19095 #ifdef __cplusplus
19097 #endif
19100 main ()
19102 return f != $ac_func;
19104 return 0;
19106 _ACEOF
19107 rm -f conftest.$ac_objext conftest$ac_exeext
19108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19109 (eval $ac_link) 2>conftest.er1
19110 ac_status=$?
19111 grep -v '^ *+' conftest.er1 >conftest.err
19112 rm -f conftest.er1
19113 cat conftest.err >&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); } &&
19116 { ac_try='test -z "$ac_c_werror_flag"
19117 || test ! -s conftest.err'
19118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19119 (eval $ac_try) 2>&5
19120 ac_status=$?
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); }; } &&
19123 { ac_try='test -s conftest$ac_exeext'
19124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19125 (eval $ac_try) 2>&5
19126 ac_status=$?
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); }; }; then
19129 eval "$as_ac_var=yes"
19130 else
19131 echo "$as_me: failed program was:" >&5
19132 sed 's/^/| /' conftest.$ac_ext >&5
19134 eval "$as_ac_var=no"
19136 rm -f conftest.err conftest.$ac_objext \
19137 conftest$ac_exeext conftest.$ac_ext
19139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19141 if test `eval echo '${'$as_ac_var'}'` = yes; then
19142 cat >>confdefs.h <<_ACEOF
19143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19144 _ACEOF
19147 done
19158 # checks for system services
19159 # (none yet)
19161 # Linux requires this for correct f.p. operations
19162 echo "$as_me:$LINENO: checking for __fpu_control" >&5
19163 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
19164 if test "${ac_cv_func___fpu_control+set}" = set; then
19165 echo $ECHO_N "(cached) $ECHO_C" >&6
19166 else
19167 cat >conftest.$ac_ext <<_ACEOF
19168 /* confdefs.h. */
19169 _ACEOF
19170 cat confdefs.h >>conftest.$ac_ext
19171 cat >>conftest.$ac_ext <<_ACEOF
19172 /* end confdefs.h. */
19173 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
19174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19175 #define __fpu_control innocuous___fpu_control
19177 /* System header to define __stub macros and hopefully few prototypes,
19178 which can conflict with char __fpu_control (); below.
19179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19180 <limits.h> exists even on freestanding compilers. */
19182 #ifdef __STDC__
19183 # include <limits.h>
19184 #else
19185 # include <assert.h>
19186 #endif
19188 #undef __fpu_control
19190 /* Override any gcc2 internal prototype to avoid an error. */
19191 #ifdef __cplusplus
19192 extern "C"
19194 #endif
19195 /* We use char because int might match the return type of a gcc2
19196 builtin and then its argument prototype would still apply. */
19197 char __fpu_control ();
19198 /* The GNU C library defines this for functions which it implements
19199 to always fail with ENOSYS. Some functions are actually named
19200 something starting with __ and the normal name is an alias. */
19201 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19202 choke me
19203 #else
19204 char (*f) () = __fpu_control;
19205 #endif
19206 #ifdef __cplusplus
19208 #endif
19211 main ()
19213 return f != __fpu_control;
19215 return 0;
19217 _ACEOF
19218 rm -f conftest.$ac_objext conftest$ac_exeext
19219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19220 (eval $ac_link) 2>conftest.er1
19221 ac_status=$?
19222 grep -v '^ *+' conftest.er1 >conftest.err
19223 rm -f conftest.er1
19224 cat conftest.err >&5
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); } &&
19227 { ac_try='test -z "$ac_c_werror_flag"
19228 || test ! -s conftest.err'
19229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19230 (eval $ac_try) 2>&5
19231 ac_status=$?
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); }; } &&
19234 { ac_try='test -s conftest$ac_exeext'
19235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19236 (eval $ac_try) 2>&5
19237 ac_status=$?
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); }; }; then
19240 ac_cv_func___fpu_control=yes
19241 else
19242 echo "$as_me: failed program was:" >&5
19243 sed 's/^/| /' conftest.$ac_ext >&5
19245 ac_cv_func___fpu_control=no
19247 rm -f conftest.err conftest.$ac_objext \
19248 conftest$ac_exeext conftest.$ac_ext
19250 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19251 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19252 if test $ac_cv_func___fpu_control = yes; then
19254 else
19256 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19257 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19258 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19259 echo $ECHO_N "(cached) $ECHO_C" >&6
19260 else
19261 ac_check_lib_save_LIBS=$LIBS
19262 LIBS="-lieee $LIBS"
19263 cat >conftest.$ac_ext <<_ACEOF
19264 /* confdefs.h. */
19265 _ACEOF
19266 cat confdefs.h >>conftest.$ac_ext
19267 cat >>conftest.$ac_ext <<_ACEOF
19268 /* end confdefs.h. */
19270 /* Override any gcc2 internal prototype to avoid an error. */
19271 #ifdef __cplusplus
19272 extern "C"
19273 #endif
19274 /* We use char because int might match the return type of a gcc2
19275 builtin and then its argument prototype would still apply. */
19276 char __fpu_control ();
19278 main ()
19280 __fpu_control ();
19282 return 0;
19284 _ACEOF
19285 rm -f conftest.$ac_objext conftest$ac_exeext
19286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19287 (eval $ac_link) 2>conftest.er1
19288 ac_status=$?
19289 grep -v '^ *+' conftest.er1 >conftest.err
19290 rm -f conftest.er1
19291 cat conftest.err >&5
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); } &&
19294 { ac_try='test -z "$ac_c_werror_flag"
19295 || test ! -s conftest.err'
19296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19297 (eval $ac_try) 2>&5
19298 ac_status=$?
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); }; } &&
19301 { ac_try='test -s conftest$ac_exeext'
19302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19303 (eval $ac_try) 2>&5
19304 ac_status=$?
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); }; }; then
19307 ac_cv_lib_ieee___fpu_control=yes
19308 else
19309 echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.$ac_ext >&5
19312 ac_cv_lib_ieee___fpu_control=no
19314 rm -f conftest.err conftest.$ac_objext \
19315 conftest$ac_exeext conftest.$ac_ext
19316 LIBS=$ac_check_lib_save_LIBS
19318 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19319 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19320 if test $ac_cv_lib_ieee___fpu_control = yes; then
19321 cat >>confdefs.h <<_ACEOF
19322 #define HAVE_LIBIEEE 1
19323 _ACEOF
19325 LIBS="-lieee $LIBS"
19333 # Check for --with-fpectl
19334 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19335 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19337 # Check whether --with-fpectl or --without-fpectl was given.
19338 if test "${with_fpectl+set}" = set; then
19339 withval="$with_fpectl"
19341 if test "$withval" != no
19342 then
19344 cat >>confdefs.h <<\_ACEOF
19345 #define WANT_SIGFPE_HANDLER 1
19346 _ACEOF
19348 echo "$as_me:$LINENO: result: yes" >&5
19349 echo "${ECHO_T}yes" >&6
19350 else echo "$as_me:$LINENO: result: no" >&5
19351 echo "${ECHO_T}no" >&6
19353 else
19354 echo "$as_me:$LINENO: result: no" >&5
19355 echo "${ECHO_T}no" >&6
19358 # check for --with-libm=...
19360 case $ac_sys_system in
19361 Darwin) ;;
19362 BeOS) ;;
19363 *) LIBM=-lm
19364 esac
19365 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19366 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19368 # Check whether --with-libm or --without-libm was given.
19369 if test "${with_libm+set}" = set; then
19370 withval="$with_libm"
19372 if test "$withval" = no
19373 then LIBM=
19374 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19375 echo "${ECHO_T}force LIBM empty" >&6
19376 elif test "$withval" != yes
19377 then LIBM=$withval
19378 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19379 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19380 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19381 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19382 { (exit 1); exit 1; }; }
19384 else
19385 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19386 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19389 # check for --with-libc=...
19391 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19392 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19394 # Check whether --with-libc or --without-libc was given.
19395 if test "${with_libc+set}" = set; then
19396 withval="$with_libc"
19398 if test "$withval" = no
19399 then LIBC=
19400 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19401 echo "${ECHO_T}force LIBC empty" >&6
19402 elif test "$withval" != yes
19403 then LIBC=$withval
19404 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19405 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19406 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19407 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19408 { (exit 1); exit 1; }; }
19410 else
19411 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19412 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19415 # check for hypot() in math library
19416 LIBS_SAVE=$LIBS
19417 LIBS="$LIBS $LIBM"
19419 for ac_func in hypot
19421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19422 echo "$as_me:$LINENO: checking for $ac_func" >&5
19423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19424 if eval "test \"\${$as_ac_var+set}\" = set"; then
19425 echo $ECHO_N "(cached) $ECHO_C" >&6
19426 else
19427 cat >conftest.$ac_ext <<_ACEOF
19428 /* confdefs.h. */
19429 _ACEOF
19430 cat confdefs.h >>conftest.$ac_ext
19431 cat >>conftest.$ac_ext <<_ACEOF
19432 /* end confdefs.h. */
19433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19435 #define $ac_func innocuous_$ac_func
19437 /* System header to define __stub macros and hopefully few prototypes,
19438 which can conflict with char $ac_func (); below.
19439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19440 <limits.h> exists even on freestanding compilers. */
19442 #ifdef __STDC__
19443 # include <limits.h>
19444 #else
19445 # include <assert.h>
19446 #endif
19448 #undef $ac_func
19450 /* Override any gcc2 internal prototype to avoid an error. */
19451 #ifdef __cplusplus
19452 extern "C"
19454 #endif
19455 /* We use char because int might match the return type of a gcc2
19456 builtin and then its argument prototype would still apply. */
19457 char $ac_func ();
19458 /* The GNU C library defines this for functions which it implements
19459 to always fail with ENOSYS. Some functions are actually named
19460 something starting with __ and the normal name is an alias. */
19461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19462 choke me
19463 #else
19464 char (*f) () = $ac_func;
19465 #endif
19466 #ifdef __cplusplus
19468 #endif
19471 main ()
19473 return f != $ac_func;
19475 return 0;
19477 _ACEOF
19478 rm -f conftest.$ac_objext conftest$ac_exeext
19479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19480 (eval $ac_link) 2>conftest.er1
19481 ac_status=$?
19482 grep -v '^ *+' conftest.er1 >conftest.err
19483 rm -f conftest.er1
19484 cat conftest.err >&5
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); } &&
19487 { ac_try='test -z "$ac_c_werror_flag"
19488 || test ! -s conftest.err'
19489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490 (eval $ac_try) 2>&5
19491 ac_status=$?
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; } &&
19494 { ac_try='test -s conftest$ac_exeext'
19495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19496 (eval $ac_try) 2>&5
19497 ac_status=$?
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; }; then
19500 eval "$as_ac_var=yes"
19501 else
19502 echo "$as_me: failed program was:" >&5
19503 sed 's/^/| /' conftest.$ac_ext >&5
19505 eval "$as_ac_var=no"
19507 rm -f conftest.err conftest.$ac_objext \
19508 conftest$ac_exeext conftest.$ac_ext
19510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19511 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19512 if test `eval echo '${'$as_ac_var'}'` = yes; then
19513 cat >>confdefs.h <<_ACEOF
19514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19515 _ACEOF
19517 else
19518 case $LIBOBJS in
19519 "$ac_func.$ac_objext" | \
19520 *" $ac_func.$ac_objext" | \
19521 "$ac_func.$ac_objext "* | \
19522 *" $ac_func.$ac_objext "* ) ;;
19523 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
19524 esac
19527 done
19530 LIBS=$LIBS_SAVE
19532 # check for wchar.h
19533 if test "${ac_cv_header_wchar_h+set}" = set; then
19534 echo "$as_me:$LINENO: checking for wchar.h" >&5
19535 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19536 if test "${ac_cv_header_wchar_h+set}" = set; then
19537 echo $ECHO_N "(cached) $ECHO_C" >&6
19539 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19540 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19541 else
19542 # Is the header compilable?
19543 echo "$as_me:$LINENO: checking wchar.h usability" >&5
19544 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
19545 cat >conftest.$ac_ext <<_ACEOF
19546 /* confdefs.h. */
19547 _ACEOF
19548 cat confdefs.h >>conftest.$ac_ext
19549 cat >>conftest.$ac_ext <<_ACEOF
19550 /* end confdefs.h. */
19551 $ac_includes_default
19552 #include <wchar.h>
19553 _ACEOF
19554 rm -f conftest.$ac_objext
19555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19556 (eval $ac_compile) 2>conftest.er1
19557 ac_status=$?
19558 grep -v '^ *+' conftest.er1 >conftest.err
19559 rm -f conftest.er1
19560 cat conftest.err >&5
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); } &&
19563 { ac_try='test -z "$ac_c_werror_flag"
19564 || test ! -s conftest.err'
19565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566 (eval $ac_try) 2>&5
19567 ac_status=$?
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; } &&
19570 { ac_try='test -s conftest.$ac_objext'
19571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572 (eval $ac_try) 2>&5
19573 ac_status=$?
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); }; }; then
19576 ac_header_compiler=yes
19577 else
19578 echo "$as_me: failed program was:" >&5
19579 sed 's/^/| /' conftest.$ac_ext >&5
19581 ac_header_compiler=no
19583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19584 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19585 echo "${ECHO_T}$ac_header_compiler" >&6
19587 # Is the header present?
19588 echo "$as_me:$LINENO: checking wchar.h presence" >&5
19589 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
19590 cat >conftest.$ac_ext <<_ACEOF
19591 /* confdefs.h. */
19592 _ACEOF
19593 cat confdefs.h >>conftest.$ac_ext
19594 cat >>conftest.$ac_ext <<_ACEOF
19595 /* end confdefs.h. */
19596 #include <wchar.h>
19597 _ACEOF
19598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19600 ac_status=$?
19601 grep -v '^ *+' conftest.er1 >conftest.err
19602 rm -f conftest.er1
19603 cat conftest.err >&5
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); } >/dev/null; then
19606 if test -s conftest.err; then
19607 ac_cpp_err=$ac_c_preproc_warn_flag
19608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19609 else
19610 ac_cpp_err=
19612 else
19613 ac_cpp_err=yes
19615 if test -z "$ac_cpp_err"; then
19616 ac_header_preproc=yes
19617 else
19618 echo "$as_me: failed program was:" >&5
19619 sed 's/^/| /' conftest.$ac_ext >&5
19621 ac_header_preproc=no
19623 rm -f conftest.err conftest.$ac_ext
19624 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19625 echo "${ECHO_T}$ac_header_preproc" >&6
19627 # So? What about this header?
19628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19629 yes:no: )
19630 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
19631 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19632 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
19633 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
19634 ac_header_preproc=yes
19636 no:yes:* )
19637 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
19638 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
19639 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
19640 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
19641 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
19642 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
19643 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
19644 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
19645 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
19646 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
19647 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
19648 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
19650 cat <<\_ASBOX
19651 ## ------------------------------------------------ ##
19652 ## Report this to http://www.python.org/python-bugs ##
19653 ## ------------------------------------------------ ##
19654 _ASBOX
19656 sed "s/^/$as_me: WARNING: /" >&2
19658 esac
19659 echo "$as_me:$LINENO: checking for wchar.h" >&5
19660 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19661 if test "${ac_cv_header_wchar_h+set}" = set; then
19662 echo $ECHO_N "(cached) $ECHO_C" >&6
19663 else
19664 ac_cv_header_wchar_h=$ac_header_preproc
19666 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19667 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19670 if test $ac_cv_header_wchar_h = yes; then
19673 cat >>confdefs.h <<\_ACEOF
19674 #define HAVE_WCHAR_H 1
19675 _ACEOF
19677 wchar_h="yes"
19679 else
19680 wchar_h="no"
19686 # determine wchar_t size
19687 if test "$wchar_h" = yes
19688 then
19689 echo "$as_me:$LINENO: checking for wchar_t" >&5
19690 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19691 if test "${ac_cv_type_wchar_t+set}" = set; then
19692 echo $ECHO_N "(cached) $ECHO_C" >&6
19693 else
19694 cat >conftest.$ac_ext <<_ACEOF
19695 /* confdefs.h. */
19696 _ACEOF
19697 cat confdefs.h >>conftest.$ac_ext
19698 cat >>conftest.$ac_ext <<_ACEOF
19699 /* end confdefs.h. */
19700 #include <wchar.h>
19703 main ()
19705 if ((wchar_t *) 0)
19706 return 0;
19707 if (sizeof (wchar_t))
19708 return 0;
19710 return 0;
19712 _ACEOF
19713 rm -f conftest.$ac_objext
19714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19715 (eval $ac_compile) 2>conftest.er1
19716 ac_status=$?
19717 grep -v '^ *+' conftest.er1 >conftest.err
19718 rm -f conftest.er1
19719 cat conftest.err >&5
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); } &&
19722 { ac_try='test -z "$ac_c_werror_flag"
19723 || test ! -s conftest.err'
19724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19725 (eval $ac_try) 2>&5
19726 ac_status=$?
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }; } &&
19729 { ac_try='test -s conftest.$ac_objext'
19730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19731 (eval $ac_try) 2>&5
19732 ac_status=$?
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); }; }; then
19735 ac_cv_type_wchar_t=yes
19736 else
19737 echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19740 ac_cv_type_wchar_t=no
19742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19744 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19745 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19747 echo "$as_me:$LINENO: checking size of wchar_t" >&5
19748 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19749 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19750 echo $ECHO_N "(cached) $ECHO_C" >&6
19751 else
19752 if test "$ac_cv_type_wchar_t" = yes; then
19753 # The cast to unsigned long works around a bug in the HP C Compiler
19754 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19755 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19756 # This bug is HP SR number 8606223364.
19757 if test "$cross_compiling" = yes; then
19758 # Depending upon the size, compute the lo and hi bounds.
19759 cat >conftest.$ac_ext <<_ACEOF
19760 /* confdefs.h. */
19761 _ACEOF
19762 cat confdefs.h >>conftest.$ac_ext
19763 cat >>conftest.$ac_ext <<_ACEOF
19764 /* end confdefs.h. */
19765 #include <wchar.h>
19768 main ()
19770 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19771 test_array [0] = 0
19774 return 0;
19776 _ACEOF
19777 rm -f conftest.$ac_objext
19778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19779 (eval $ac_compile) 2>conftest.er1
19780 ac_status=$?
19781 grep -v '^ *+' conftest.er1 >conftest.err
19782 rm -f conftest.er1
19783 cat conftest.err >&5
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); } &&
19786 { ac_try='test -z "$ac_c_werror_flag"
19787 || test ! -s conftest.err'
19788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19789 (eval $ac_try) 2>&5
19790 ac_status=$?
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); }; } &&
19793 { ac_try='test -s conftest.$ac_objext'
19794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795 (eval $ac_try) 2>&5
19796 ac_status=$?
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); }; }; then
19799 ac_lo=0 ac_mid=0
19800 while :; do
19801 cat >conftest.$ac_ext <<_ACEOF
19802 /* confdefs.h. */
19803 _ACEOF
19804 cat confdefs.h >>conftest.$ac_ext
19805 cat >>conftest.$ac_ext <<_ACEOF
19806 /* end confdefs.h. */
19807 #include <wchar.h>
19810 main ()
19812 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19813 test_array [0] = 0
19816 return 0;
19818 _ACEOF
19819 rm -f conftest.$ac_objext
19820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19821 (eval $ac_compile) 2>conftest.er1
19822 ac_status=$?
19823 grep -v '^ *+' conftest.er1 >conftest.err
19824 rm -f conftest.er1
19825 cat conftest.err >&5
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); } &&
19828 { ac_try='test -z "$ac_c_werror_flag"
19829 || test ! -s conftest.err'
19830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19831 (eval $ac_try) 2>&5
19832 ac_status=$?
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); }; } &&
19835 { ac_try='test -s conftest.$ac_objext'
19836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19837 (eval $ac_try) 2>&5
19838 ac_status=$?
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); }; }; then
19841 ac_hi=$ac_mid; break
19842 else
19843 echo "$as_me: failed program was:" >&5
19844 sed 's/^/| /' conftest.$ac_ext >&5
19846 ac_lo=`expr $ac_mid + 1`
19847 if test $ac_lo -le $ac_mid; then
19848 ac_lo= ac_hi=
19849 break
19851 ac_mid=`expr 2 '*' $ac_mid + 1`
19853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19854 done
19855 else
19856 echo "$as_me: failed program was:" >&5
19857 sed 's/^/| /' conftest.$ac_ext >&5
19859 cat >conftest.$ac_ext <<_ACEOF
19860 /* confdefs.h. */
19861 _ACEOF
19862 cat confdefs.h >>conftest.$ac_ext
19863 cat >>conftest.$ac_ext <<_ACEOF
19864 /* end confdefs.h. */
19865 #include <wchar.h>
19868 main ()
19870 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19871 test_array [0] = 0
19874 return 0;
19876 _ACEOF
19877 rm -f conftest.$ac_objext
19878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19879 (eval $ac_compile) 2>conftest.er1
19880 ac_status=$?
19881 grep -v '^ *+' conftest.er1 >conftest.err
19882 rm -f conftest.er1
19883 cat conftest.err >&5
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); } &&
19886 { ac_try='test -z "$ac_c_werror_flag"
19887 || test ! -s conftest.err'
19888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19889 (eval $ac_try) 2>&5
19890 ac_status=$?
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); }; } &&
19893 { ac_try='test -s conftest.$ac_objext'
19894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19895 (eval $ac_try) 2>&5
19896 ac_status=$?
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); }; }; then
19899 ac_hi=-1 ac_mid=-1
19900 while :; do
19901 cat >conftest.$ac_ext <<_ACEOF
19902 /* confdefs.h. */
19903 _ACEOF
19904 cat confdefs.h >>conftest.$ac_ext
19905 cat >>conftest.$ac_ext <<_ACEOF
19906 /* end confdefs.h. */
19907 #include <wchar.h>
19910 main ()
19912 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19913 test_array [0] = 0
19916 return 0;
19918 _ACEOF
19919 rm -f conftest.$ac_objext
19920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19921 (eval $ac_compile) 2>conftest.er1
19922 ac_status=$?
19923 grep -v '^ *+' conftest.er1 >conftest.err
19924 rm -f conftest.er1
19925 cat conftest.err >&5
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); } &&
19928 { ac_try='test -z "$ac_c_werror_flag"
19929 || test ! -s conftest.err'
19930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19931 (eval $ac_try) 2>&5
19932 ac_status=$?
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); }; } &&
19935 { ac_try='test -s conftest.$ac_objext'
19936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19937 (eval $ac_try) 2>&5
19938 ac_status=$?
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); }; }; then
19941 ac_lo=$ac_mid; break
19942 else
19943 echo "$as_me: failed program was:" >&5
19944 sed 's/^/| /' conftest.$ac_ext >&5
19946 ac_hi=`expr '(' $ac_mid ')' - 1`
19947 if test $ac_mid -le $ac_hi; then
19948 ac_lo= ac_hi=
19949 break
19951 ac_mid=`expr 2 '*' $ac_mid`
19953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19954 done
19955 else
19956 echo "$as_me: failed program was:" >&5
19957 sed 's/^/| /' conftest.$ac_ext >&5
19959 ac_lo= ac_hi=
19961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19964 # Binary search between lo and hi bounds.
19965 while test "x$ac_lo" != "x$ac_hi"; do
19966 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19967 cat >conftest.$ac_ext <<_ACEOF
19968 /* confdefs.h. */
19969 _ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h. */
19973 #include <wchar.h>
19976 main ()
19978 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19979 test_array [0] = 0
19982 return 0;
19984 _ACEOF
19985 rm -f conftest.$ac_objext
19986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19987 (eval $ac_compile) 2>conftest.er1
19988 ac_status=$?
19989 grep -v '^ *+' conftest.er1 >conftest.err
19990 rm -f conftest.er1
19991 cat conftest.err >&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); } &&
19994 { ac_try='test -z "$ac_c_werror_flag"
19995 || test ! -s conftest.err'
19996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19997 (eval $ac_try) 2>&5
19998 ac_status=$?
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; } &&
20001 { ac_try='test -s conftest.$ac_objext'
20002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003 (eval $ac_try) 2>&5
20004 ac_status=$?
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); }; }; then
20007 ac_hi=$ac_mid
20008 else
20009 echo "$as_me: failed program was:" >&5
20010 sed 's/^/| /' conftest.$ac_ext >&5
20012 ac_lo=`expr '(' $ac_mid ')' + 1`
20014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20015 done
20016 case $ac_lo in
20017 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
20018 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20019 See \`config.log' for more details." >&5
20020 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20021 See \`config.log' for more details." >&2;}
20022 { (exit 1); exit 1; }; } ;;
20023 esac
20024 else
20025 if test "$cross_compiling" = yes; then
20026 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20027 See \`config.log' for more details." >&5
20028 echo "$as_me: error: cannot run test program while cross compiling
20029 See \`config.log' for more details." >&2;}
20030 { (exit 1); exit 1; }; }
20031 else
20032 cat >conftest.$ac_ext <<_ACEOF
20033 /* confdefs.h. */
20034 _ACEOF
20035 cat confdefs.h >>conftest.$ac_ext
20036 cat >>conftest.$ac_ext <<_ACEOF
20037 /* end confdefs.h. */
20038 #include <wchar.h>
20040 long longval () { return (long) (sizeof (wchar_t)); }
20041 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
20042 #include <stdio.h>
20043 #include <stdlib.h>
20045 main ()
20048 FILE *f = fopen ("conftest.val", "w");
20049 if (! f)
20050 exit (1);
20051 if (((long) (sizeof (wchar_t))) < 0)
20053 long i = longval ();
20054 if (i != ((long) (sizeof (wchar_t))))
20055 exit (1);
20056 fprintf (f, "%ld\n", i);
20058 else
20060 unsigned long i = ulongval ();
20061 if (i != ((long) (sizeof (wchar_t))))
20062 exit (1);
20063 fprintf (f, "%lu\n", i);
20065 exit (ferror (f) || fclose (f) != 0);
20068 return 0;
20070 _ACEOF
20071 rm -f conftest$ac_exeext
20072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20073 (eval $ac_link) 2>&5
20074 ac_status=$?
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20078 (eval $ac_try) 2>&5
20079 ac_status=$?
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); }; }; then
20082 ac_cv_sizeof_wchar_t=`cat conftest.val`
20083 else
20084 echo "$as_me: program exited with status $ac_status" >&5
20085 echo "$as_me: failed program was:" >&5
20086 sed 's/^/| /' conftest.$ac_ext >&5
20088 ( exit $ac_status )
20089 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20090 See \`config.log' for more details." >&5
20091 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20092 See \`config.log' for more details." >&2;}
20093 { (exit 1); exit 1; }; }
20095 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20098 rm -f conftest.val
20099 else
20100 ac_cv_sizeof_wchar_t=0
20103 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20104 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
20105 cat >>confdefs.h <<_ACEOF
20106 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
20107 _ACEOF
20112 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
20113 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
20114 have_ucs4_tcl=no
20115 cat >conftest.$ac_ext <<_ACEOF
20116 /* confdefs.h. */
20117 _ACEOF
20118 cat confdefs.h >>conftest.$ac_ext
20119 cat >>conftest.$ac_ext <<_ACEOF
20120 /* end confdefs.h. */
20122 #include <tcl.h>
20123 #if TCL_UTF_MAX != 6
20124 # error "NOT UCS4_TCL"
20125 #endif
20127 main ()
20131 return 0;
20133 _ACEOF
20134 rm -f conftest.$ac_objext
20135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20136 (eval $ac_compile) 2>conftest.er1
20137 ac_status=$?
20138 grep -v '^ *+' conftest.er1 >conftest.err
20139 rm -f conftest.er1
20140 cat conftest.err >&5
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); } &&
20143 { ac_try='test -z "$ac_c_werror_flag"
20144 || test ! -s conftest.err'
20145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20146 (eval $ac_try) 2>&5
20147 ac_status=$?
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); }; } &&
20150 { ac_try='test -s conftest.$ac_objext'
20151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20152 (eval $ac_try) 2>&5
20153 ac_status=$?
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); }; }; then
20158 cat >>confdefs.h <<\_ACEOF
20159 #define HAVE_UCS4_TCL 1
20160 _ACEOF
20162 have_ucs4_tcl=yes
20164 else
20165 echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20170 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
20171 echo "${ECHO_T}$have_ucs4_tcl" >&6
20173 # check whether wchar_t is signed or not
20174 if test "$wchar_h" = yes
20175 then
20176 # check whether wchar_t is signed or not
20177 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20178 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
20179 if test "${ac_cv_wchar_t_signed+set}" = set; then
20180 echo $ECHO_N "(cached) $ECHO_C" >&6
20181 else
20183 if test "$cross_compiling" = yes; then
20184 ac_cv_wchar_t_signed=yes
20185 else
20186 cat >conftest.$ac_ext <<_ACEOF
20187 /* confdefs.h. */
20188 _ACEOF
20189 cat confdefs.h >>conftest.$ac_ext
20190 cat >>conftest.$ac_ext <<_ACEOF
20191 /* end confdefs.h. */
20193 #include <wchar.h>
20194 int main()
20196 /* Success: exit code 0 */
20197 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
20200 _ACEOF
20201 rm -f conftest$ac_exeext
20202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20203 (eval $ac_link) 2>&5
20204 ac_status=$?
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20208 (eval $ac_try) 2>&5
20209 ac_status=$?
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); }; }; then
20212 ac_cv_wchar_t_signed=yes
20213 else
20214 echo "$as_me: program exited with status $ac_status" >&5
20215 echo "$as_me: failed program was:" >&5
20216 sed 's/^/| /' conftest.$ac_ext >&5
20218 ( exit $ac_status )
20219 ac_cv_wchar_t_signed=no
20221 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20225 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20226 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20229 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20230 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20231 # Check whether --enable-unicode or --disable-unicode was given.
20232 if test "${enable_unicode+set}" = set; then
20233 enableval="$enable_unicode"
20235 else
20236 enable_unicode=yes
20239 if test $enable_unicode = yes
20240 then
20241 # Without any arguments, Py_UNICODE defaults to two-byte mode
20242 case "$have_ucs4_tcl" in
20243 yes) enable_unicode="ucs4"
20245 *) enable_unicode="ucs2"
20247 esac
20252 case "$enable_unicode" in
20253 ucs2) unicode_size="2"
20254 cat >>confdefs.h <<\_ACEOF
20255 #define Py_UNICODE_SIZE 2
20256 _ACEOF
20259 ucs4) unicode_size="4"
20260 cat >>confdefs.h <<\_ACEOF
20261 #define Py_UNICODE_SIZE 4
20262 _ACEOF
20265 esac
20271 if test "$enable_unicode" = "no"
20272 then
20273 UNICODE_OBJS=""
20274 echo "$as_me:$LINENO: result: not used" >&5
20275 echo "${ECHO_T}not used" >&6
20276 else
20277 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
20279 cat >>confdefs.h <<\_ACEOF
20280 #define Py_USING_UNICODE 1
20281 _ACEOF
20284 # wchar_t is only usable if it maps to an unsigned type
20285 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20286 -a "$ac_cv_wchar_t_signed" = "no"
20287 then
20288 PY_UNICODE_TYPE="wchar_t"
20290 cat >>confdefs.h <<\_ACEOF
20291 #define HAVE_USABLE_WCHAR_T 1
20292 _ACEOF
20294 cat >>confdefs.h <<\_ACEOF
20295 #define PY_UNICODE_TYPE wchar_t
20296 _ACEOF
20298 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20299 then
20300 PY_UNICODE_TYPE="unsigned short"
20301 cat >>confdefs.h <<\_ACEOF
20302 #define PY_UNICODE_TYPE unsigned short
20303 _ACEOF
20305 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20306 then
20307 PY_UNICODE_TYPE="unsigned long"
20308 cat >>confdefs.h <<\_ACEOF
20309 #define PY_UNICODE_TYPE unsigned long
20310 _ACEOF
20312 else
20313 PY_UNICODE_TYPE="no type found"
20315 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20316 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20319 # check for endianness
20320 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20321 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20322 if test "${ac_cv_c_bigendian+set}" = set; then
20323 echo $ECHO_N "(cached) $ECHO_C" >&6
20324 else
20325 # See if sys/param.h defines the BYTE_ORDER macro.
20326 cat >conftest.$ac_ext <<_ACEOF
20327 /* confdefs.h. */
20328 _ACEOF
20329 cat confdefs.h >>conftest.$ac_ext
20330 cat >>conftest.$ac_ext <<_ACEOF
20331 /* end confdefs.h. */
20332 #include <sys/types.h>
20333 #include <sys/param.h>
20336 main ()
20338 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20339 bogus endian macros
20340 #endif
20343 return 0;
20345 _ACEOF
20346 rm -f conftest.$ac_objext
20347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20348 (eval $ac_compile) 2>conftest.er1
20349 ac_status=$?
20350 grep -v '^ *+' conftest.er1 >conftest.err
20351 rm -f conftest.er1
20352 cat conftest.err >&5
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); } &&
20355 { ac_try='test -z "$ac_c_werror_flag"
20356 || test ! -s conftest.err'
20357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20358 (eval $ac_try) 2>&5
20359 ac_status=$?
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); }; } &&
20362 { ac_try='test -s conftest.$ac_objext'
20363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20364 (eval $ac_try) 2>&5
20365 ac_status=$?
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); }; }; then
20368 # It does; now see whether it defined to BIG_ENDIAN or not.
20369 cat >conftest.$ac_ext <<_ACEOF
20370 /* confdefs.h. */
20371 _ACEOF
20372 cat confdefs.h >>conftest.$ac_ext
20373 cat >>conftest.$ac_ext <<_ACEOF
20374 /* end confdefs.h. */
20375 #include <sys/types.h>
20376 #include <sys/param.h>
20379 main ()
20381 #if BYTE_ORDER != BIG_ENDIAN
20382 not big endian
20383 #endif
20386 return 0;
20388 _ACEOF
20389 rm -f conftest.$ac_objext
20390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20391 (eval $ac_compile) 2>conftest.er1
20392 ac_status=$?
20393 grep -v '^ *+' conftest.er1 >conftest.err
20394 rm -f conftest.er1
20395 cat conftest.err >&5
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); } &&
20398 { ac_try='test -z "$ac_c_werror_flag"
20399 || test ! -s conftest.err'
20400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20401 (eval $ac_try) 2>&5
20402 ac_status=$?
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); }; } &&
20405 { ac_try='test -s conftest.$ac_objext'
20406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407 (eval $ac_try) 2>&5
20408 ac_status=$?
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); }; }; then
20411 ac_cv_c_bigendian=yes
20412 else
20413 echo "$as_me: failed program was:" >&5
20414 sed 's/^/| /' conftest.$ac_ext >&5
20416 ac_cv_c_bigendian=no
20418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20419 else
20420 echo "$as_me: failed program was:" >&5
20421 sed 's/^/| /' conftest.$ac_ext >&5
20423 # It does not; compile a test program.
20424 if test "$cross_compiling" = yes; then
20425 # try to guess the endianness by grepping values into an object file
20426 ac_cv_c_bigendian=unknown
20427 cat >conftest.$ac_ext <<_ACEOF
20428 /* confdefs.h. */
20429 _ACEOF
20430 cat confdefs.h >>conftest.$ac_ext
20431 cat >>conftest.$ac_ext <<_ACEOF
20432 /* end confdefs.h. */
20433 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20434 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20435 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20436 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20437 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20438 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20440 main ()
20442 _ascii (); _ebcdic ();
20444 return 0;
20446 _ACEOF
20447 rm -f conftest.$ac_objext
20448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20449 (eval $ac_compile) 2>conftest.er1
20450 ac_status=$?
20451 grep -v '^ *+' conftest.er1 >conftest.err
20452 rm -f conftest.er1
20453 cat conftest.err >&5
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); } &&
20456 { ac_try='test -z "$ac_c_werror_flag"
20457 || test ! -s conftest.err'
20458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20459 (eval $ac_try) 2>&5
20460 ac_status=$?
20461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462 (exit $ac_status); }; } &&
20463 { ac_try='test -s conftest.$ac_objext'
20464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20465 (eval $ac_try) 2>&5
20466 ac_status=$?
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); }; }; then
20469 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20470 ac_cv_c_bigendian=yes
20472 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20473 if test "$ac_cv_c_bigendian" = unknown; then
20474 ac_cv_c_bigendian=no
20475 else
20476 # finding both strings is unlikely to happen, but who knows?
20477 ac_cv_c_bigendian=unknown
20480 else
20481 echo "$as_me: failed program was:" >&5
20482 sed 's/^/| /' conftest.$ac_ext >&5
20485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20486 else
20487 cat >conftest.$ac_ext <<_ACEOF
20488 /* confdefs.h. */
20489 _ACEOF
20490 cat confdefs.h >>conftest.$ac_ext
20491 cat >>conftest.$ac_ext <<_ACEOF
20492 /* end confdefs.h. */
20494 main ()
20496 /* Are we little or big endian? From Harbison&Steele. */
20497 union
20499 long l;
20500 char c[sizeof (long)];
20501 } u;
20502 u.l = 1;
20503 exit (u.c[sizeof (long) - 1] == 1);
20505 _ACEOF
20506 rm -f conftest$ac_exeext
20507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20508 (eval $ac_link) 2>&5
20509 ac_status=$?
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20513 (eval $ac_try) 2>&5
20514 ac_status=$?
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); }; }; then
20517 ac_cv_c_bigendian=no
20518 else
20519 echo "$as_me: program exited with status $ac_status" >&5
20520 echo "$as_me: failed program was:" >&5
20521 sed 's/^/| /' conftest.$ac_ext >&5
20523 ( exit $ac_status )
20524 ac_cv_c_bigendian=yes
20526 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20531 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20532 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20533 case $ac_cv_c_bigendian in
20534 yes)
20536 cat >>confdefs.h <<\_ACEOF
20537 #define WORDS_BIGENDIAN 1
20538 _ACEOF
20543 { { echo "$as_me:$LINENO: error: unknown endianness
20544 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20545 echo "$as_me: error: unknown endianness
20546 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20547 { (exit 1); exit 1; }; } ;;
20548 esac
20553 # Check whether right shifting a negative integer extends the sign bit
20554 # or fills with zeros (like the Cray J90, according to Tim Peters).
20555 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
20556 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
20557 if test "${ac_cv_rshift_extends_sign+set}" = set; then
20558 echo $ECHO_N "(cached) $ECHO_C" >&6
20559 else
20561 if test "$cross_compiling" = yes; then
20562 ac_cv_rshift_extends_sign=yes
20563 else
20564 cat >conftest.$ac_ext <<_ACEOF
20565 /* confdefs.h. */
20566 _ACEOF
20567 cat confdefs.h >>conftest.$ac_ext
20568 cat >>conftest.$ac_ext <<_ACEOF
20569 /* end confdefs.h. */
20571 int main()
20573 exit(((-1)>>3 == -1) ? 0 : 1);
20576 _ACEOF
20577 rm -f conftest$ac_exeext
20578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20579 (eval $ac_link) 2>&5
20580 ac_status=$?
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584 (eval $ac_try) 2>&5
20585 ac_status=$?
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; }; then
20588 ac_cv_rshift_extends_sign=yes
20589 else
20590 echo "$as_me: program exited with status $ac_status" >&5
20591 echo "$as_me: failed program was:" >&5
20592 sed 's/^/| /' conftest.$ac_ext >&5
20594 ( exit $ac_status )
20595 ac_cv_rshift_extends_sign=no
20597 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20601 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
20602 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
20603 if test "$ac_cv_rshift_extends_sign" = no
20604 then
20606 cat >>confdefs.h <<\_ACEOF
20607 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
20608 _ACEOF
20612 # check for getc_unlocked and related locking functions
20613 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
20614 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
20615 if test "${ac_cv_have_getc_unlocked+set}" = set; then
20616 echo $ECHO_N "(cached) $ECHO_C" >&6
20617 else
20619 cat >conftest.$ac_ext <<_ACEOF
20620 /* confdefs.h. */
20621 _ACEOF
20622 cat confdefs.h >>conftest.$ac_ext
20623 cat >>conftest.$ac_ext <<_ACEOF
20624 /* end confdefs.h. */
20625 #include <stdio.h>
20627 main ()
20630 FILE *f = fopen("/dev/null", "r");
20631 flockfile(f);
20632 getc_unlocked(f);
20633 funlockfile(f);
20636 return 0;
20638 _ACEOF
20639 rm -f conftest.$ac_objext conftest$ac_exeext
20640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20641 (eval $ac_link) 2>conftest.er1
20642 ac_status=$?
20643 grep -v '^ *+' conftest.er1 >conftest.err
20644 rm -f conftest.er1
20645 cat conftest.err >&5
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); } &&
20648 { ac_try='test -z "$ac_c_werror_flag"
20649 || test ! -s conftest.err'
20650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20651 (eval $ac_try) 2>&5
20652 ac_status=$?
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); }; } &&
20655 { ac_try='test -s conftest$ac_exeext'
20656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20657 (eval $ac_try) 2>&5
20658 ac_status=$?
20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); }; }; then
20661 ac_cv_have_getc_unlocked=yes
20662 else
20663 echo "$as_me: failed program was:" >&5
20664 sed 's/^/| /' conftest.$ac_ext >&5
20666 ac_cv_have_getc_unlocked=no
20668 rm -f conftest.err conftest.$ac_objext \
20669 conftest$ac_exeext conftest.$ac_ext
20672 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
20673 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
20674 if test "$ac_cv_have_getc_unlocked" = yes
20675 then
20677 cat >>confdefs.h <<\_ACEOF
20678 #define HAVE_GETC_UNLOCKED 1
20679 _ACEOF
20683 # check where readline lives
20684 # save the value of LIBS so we don't actually link Python with readline
20685 LIBS_no_readline=$LIBS
20687 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20688 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20689 if test "${ac_cv_lib_readline_readline+set}" = set; then
20690 echo $ECHO_N "(cached) $ECHO_C" >&6
20691 else
20692 ac_check_lib_save_LIBS=$LIBS
20693 LIBS="-lreadline $LIBS"
20694 cat >conftest.$ac_ext <<_ACEOF
20695 /* confdefs.h. */
20696 _ACEOF
20697 cat confdefs.h >>conftest.$ac_ext
20698 cat >>conftest.$ac_ext <<_ACEOF
20699 /* end confdefs.h. */
20701 /* Override any gcc2 internal prototype to avoid an error. */
20702 #ifdef __cplusplus
20703 extern "C"
20704 #endif
20705 /* We use char because int might match the return type of a gcc2
20706 builtin and then its argument prototype would still apply. */
20707 char readline ();
20709 main ()
20711 readline ();
20713 return 0;
20715 _ACEOF
20716 rm -f conftest.$ac_objext conftest$ac_exeext
20717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20718 (eval $ac_link) 2>conftest.er1
20719 ac_status=$?
20720 grep -v '^ *+' conftest.er1 >conftest.err
20721 rm -f conftest.er1
20722 cat conftest.err >&5
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); } &&
20725 { ac_try='test -z "$ac_c_werror_flag"
20726 || test ! -s conftest.err'
20727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20728 (eval $ac_try) 2>&5
20729 ac_status=$?
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); }; } &&
20732 { ac_try='test -s conftest$ac_exeext'
20733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20734 (eval $ac_try) 2>&5
20735 ac_status=$?
20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); }; }; then
20738 ac_cv_lib_readline_readline=yes
20739 else
20740 echo "$as_me: failed program was:" >&5
20741 sed 's/^/| /' conftest.$ac_ext >&5
20743 ac_cv_lib_readline_readline=no
20745 rm -f conftest.err conftest.$ac_objext \
20746 conftest$ac_exeext conftest.$ac_ext
20747 LIBS=$ac_check_lib_save_LIBS
20749 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20750 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20751 if test $ac_cv_lib_readline_readline = yes; then
20752 cat >>confdefs.h <<_ACEOF
20753 #define HAVE_LIBREADLINE 1
20754 _ACEOF
20756 LIBS="-lreadline $LIBS"
20760 if test "$ac_cv_have_readline_readline" = no
20761 then
20763 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
20764 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
20765 if test "${ac_cv_lib_termcap_readline+set}" = set; then
20766 echo $ECHO_N "(cached) $ECHO_C" >&6
20767 else
20768 ac_check_lib_save_LIBS=$LIBS
20769 LIBS="-ltermcap $LIBS"
20770 cat >conftest.$ac_ext <<_ACEOF
20771 /* confdefs.h. */
20772 _ACEOF
20773 cat confdefs.h >>conftest.$ac_ext
20774 cat >>conftest.$ac_ext <<_ACEOF
20775 /* end confdefs.h. */
20777 /* Override any gcc2 internal prototype to avoid an error. */
20778 #ifdef __cplusplus
20779 extern "C"
20780 #endif
20781 /* We use char because int might match the return type of a gcc2
20782 builtin and then its argument prototype would still apply. */
20783 char readline ();
20785 main ()
20787 readline ();
20789 return 0;
20791 _ACEOF
20792 rm -f conftest.$ac_objext conftest$ac_exeext
20793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20794 (eval $ac_link) 2>conftest.er1
20795 ac_status=$?
20796 grep -v '^ *+' conftest.er1 >conftest.err
20797 rm -f conftest.er1
20798 cat conftest.err >&5
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); } &&
20801 { ac_try='test -z "$ac_c_werror_flag"
20802 || test ! -s conftest.err'
20803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20804 (eval $ac_try) 2>&5
20805 ac_status=$?
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); }; } &&
20808 { ac_try='test -s conftest$ac_exeext'
20809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810 (eval $ac_try) 2>&5
20811 ac_status=$?
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); }; }; then
20814 ac_cv_lib_termcap_readline=yes
20815 else
20816 echo "$as_me: failed program was:" >&5
20817 sed 's/^/| /' conftest.$ac_ext >&5
20819 ac_cv_lib_termcap_readline=no
20821 rm -f conftest.err conftest.$ac_objext \
20822 conftest$ac_exeext conftest.$ac_ext
20823 LIBS=$ac_check_lib_save_LIBS
20825 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
20826 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
20827 if test $ac_cv_lib_termcap_readline = yes; then
20828 cat >>confdefs.h <<_ACEOF
20829 #define HAVE_LIBTERMCAP 1
20830 _ACEOF
20832 LIBS="-ltermcap $LIBS"
20838 # check for readline 2.1
20839 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
20840 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
20841 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
20842 echo $ECHO_N "(cached) $ECHO_C" >&6
20843 else
20844 ac_check_lib_save_LIBS=$LIBS
20845 LIBS="-lreadline $LIBS"
20846 cat >conftest.$ac_ext <<_ACEOF
20847 /* confdefs.h. */
20848 _ACEOF
20849 cat confdefs.h >>conftest.$ac_ext
20850 cat >>conftest.$ac_ext <<_ACEOF
20851 /* end confdefs.h. */
20853 /* Override any gcc2 internal prototype to avoid an error. */
20854 #ifdef __cplusplus
20855 extern "C"
20856 #endif
20857 /* We use char because int might match the return type of a gcc2
20858 builtin and then its argument prototype would still apply. */
20859 char rl_callback_handler_install ();
20861 main ()
20863 rl_callback_handler_install ();
20865 return 0;
20867 _ACEOF
20868 rm -f conftest.$ac_objext conftest$ac_exeext
20869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20870 (eval $ac_link) 2>conftest.er1
20871 ac_status=$?
20872 grep -v '^ *+' conftest.er1 >conftest.err
20873 rm -f conftest.er1
20874 cat conftest.err >&5
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); } &&
20877 { ac_try='test -z "$ac_c_werror_flag"
20878 || test ! -s conftest.err'
20879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20880 (eval $ac_try) 2>&5
20881 ac_status=$?
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); }; } &&
20884 { ac_try='test -s conftest$ac_exeext'
20885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20886 (eval $ac_try) 2>&5
20887 ac_status=$?
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); }; }; then
20890 ac_cv_lib_readline_rl_callback_handler_install=yes
20891 else
20892 echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20895 ac_cv_lib_readline_rl_callback_handler_install=no
20897 rm -f conftest.err conftest.$ac_objext \
20898 conftest$ac_exeext conftest.$ac_ext
20899 LIBS=$ac_check_lib_save_LIBS
20901 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
20902 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
20903 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
20905 cat >>confdefs.h <<\_ACEOF
20906 #define HAVE_RL_CALLBACK 1
20907 _ACEOF
20912 # check for readline 2.2
20913 cat >conftest.$ac_ext <<_ACEOF
20914 /* confdefs.h. */
20915 _ACEOF
20916 cat confdefs.h >>conftest.$ac_ext
20917 cat >>conftest.$ac_ext <<_ACEOF
20918 /* end confdefs.h. */
20919 #include <readline/readline.h>
20920 _ACEOF
20921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20923 ac_status=$?
20924 grep -v '^ *+' conftest.er1 >conftest.err
20925 rm -f conftest.er1
20926 cat conftest.err >&5
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); } >/dev/null; then
20929 if test -s conftest.err; then
20930 ac_cpp_err=$ac_c_preproc_warn_flag
20931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20932 else
20933 ac_cpp_err=
20935 else
20936 ac_cpp_err=yes
20938 if test -z "$ac_cpp_err"; then
20939 have_readline=yes
20940 else
20941 echo "$as_me: failed program was:" >&5
20942 sed 's/^/| /' conftest.$ac_ext >&5
20944 have_readline=no
20946 rm -f conftest.err conftest.$ac_ext
20947 if test $have_readline = yes
20948 then
20949 cat >conftest.$ac_ext <<_ACEOF
20950 /* confdefs.h. */
20951 _ACEOF
20952 cat confdefs.h >>conftest.$ac_ext
20953 cat >>conftest.$ac_ext <<_ACEOF
20954 /* end confdefs.h. */
20955 #include <readline/readline.h>
20957 _ACEOF
20958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20959 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
20961 cat >>confdefs.h <<\_ACEOF
20962 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20963 _ACEOF
20966 rm -f conftest*
20970 # check for readline 4.0
20971 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
20972 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
20973 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
20974 echo $ECHO_N "(cached) $ECHO_C" >&6
20975 else
20976 ac_check_lib_save_LIBS=$LIBS
20977 LIBS="-lreadline $LIBS"
20978 cat >conftest.$ac_ext <<_ACEOF
20979 /* confdefs.h. */
20980 _ACEOF
20981 cat confdefs.h >>conftest.$ac_ext
20982 cat >>conftest.$ac_ext <<_ACEOF
20983 /* end confdefs.h. */
20985 /* Override any gcc2 internal prototype to avoid an error. */
20986 #ifdef __cplusplus
20987 extern "C"
20988 #endif
20989 /* We use char because int might match the return type of a gcc2
20990 builtin and then its argument prototype would still apply. */
20991 char rl_pre_input_hook ();
20993 main ()
20995 rl_pre_input_hook ();
20997 return 0;
20999 _ACEOF
21000 rm -f conftest.$ac_objext conftest$ac_exeext
21001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21002 (eval $ac_link) 2>conftest.er1
21003 ac_status=$?
21004 grep -v '^ *+' conftest.er1 >conftest.err
21005 rm -f conftest.er1
21006 cat conftest.err >&5
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); } &&
21009 { ac_try='test -z "$ac_c_werror_flag"
21010 || test ! -s conftest.err'
21011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21012 (eval $ac_try) 2>&5
21013 ac_status=$?
21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); }; } &&
21016 { ac_try='test -s conftest$ac_exeext'
21017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21018 (eval $ac_try) 2>&5
21019 ac_status=$?
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); }; }; then
21022 ac_cv_lib_readline_rl_pre_input_hook=yes
21023 else
21024 echo "$as_me: failed program was:" >&5
21025 sed 's/^/| /' conftest.$ac_ext >&5
21027 ac_cv_lib_readline_rl_pre_input_hook=no
21029 rm -f conftest.err conftest.$ac_objext \
21030 conftest$ac_exeext conftest.$ac_ext
21031 LIBS=$ac_check_lib_save_LIBS
21033 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
21034 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
21035 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
21037 cat >>confdefs.h <<\_ACEOF
21038 #define HAVE_RL_PRE_INPUT_HOOK 1
21039 _ACEOF
21044 # check for readline 4.2
21045 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
21046 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
21047 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
21048 echo $ECHO_N "(cached) $ECHO_C" >&6
21049 else
21050 ac_check_lib_save_LIBS=$LIBS
21051 LIBS="-lreadline $LIBS"
21052 cat >conftest.$ac_ext <<_ACEOF
21053 /* confdefs.h. */
21054 _ACEOF
21055 cat confdefs.h >>conftest.$ac_ext
21056 cat >>conftest.$ac_ext <<_ACEOF
21057 /* end confdefs.h. */
21059 /* Override any gcc2 internal prototype to avoid an error. */
21060 #ifdef __cplusplus
21061 extern "C"
21062 #endif
21063 /* We use char because int might match the return type of a gcc2
21064 builtin and then its argument prototype would still apply. */
21065 char rl_completion_matches ();
21067 main ()
21069 rl_completion_matches ();
21071 return 0;
21073 _ACEOF
21074 rm -f conftest.$ac_objext conftest$ac_exeext
21075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21076 (eval $ac_link) 2>conftest.er1
21077 ac_status=$?
21078 grep -v '^ *+' conftest.er1 >conftest.err
21079 rm -f conftest.er1
21080 cat conftest.err >&5
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); } &&
21083 { ac_try='test -z "$ac_c_werror_flag"
21084 || test ! -s conftest.err'
21085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21086 (eval $ac_try) 2>&5
21087 ac_status=$?
21088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089 (exit $ac_status); }; } &&
21090 { ac_try='test -s conftest$ac_exeext'
21091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21092 (eval $ac_try) 2>&5
21093 ac_status=$?
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); }; }; then
21096 ac_cv_lib_readline_rl_completion_matches=yes
21097 else
21098 echo "$as_me: failed program was:" >&5
21099 sed 's/^/| /' conftest.$ac_ext >&5
21101 ac_cv_lib_readline_rl_completion_matches=no
21103 rm -f conftest.err conftest.$ac_objext \
21104 conftest$ac_exeext conftest.$ac_ext
21105 LIBS=$ac_check_lib_save_LIBS
21107 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
21108 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
21109 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
21111 cat >>confdefs.h <<\_ACEOF
21112 #define HAVE_RL_COMPLETION_MATCHES 1
21113 _ACEOF
21118 # also in readline 4.2
21119 cat >conftest.$ac_ext <<_ACEOF
21120 /* confdefs.h. */
21121 _ACEOF
21122 cat confdefs.h >>conftest.$ac_ext
21123 cat >>conftest.$ac_ext <<_ACEOF
21124 /* end confdefs.h. */
21125 #include <readline/readline.h>
21126 _ACEOF
21127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21129 ac_status=$?
21130 grep -v '^ *+' conftest.er1 >conftest.err
21131 rm -f conftest.er1
21132 cat conftest.err >&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); } >/dev/null; then
21135 if test -s conftest.err; then
21136 ac_cpp_err=$ac_c_preproc_warn_flag
21137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21138 else
21139 ac_cpp_err=
21141 else
21142 ac_cpp_err=yes
21144 if test -z "$ac_cpp_err"; then
21145 have_readline=yes
21146 else
21147 echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21150 have_readline=no
21152 rm -f conftest.err conftest.$ac_ext
21153 if test $have_readline = yes
21154 then
21155 cat >conftest.$ac_ext <<_ACEOF
21156 /* confdefs.h. */
21157 _ACEOF
21158 cat confdefs.h >>conftest.$ac_ext
21159 cat >>conftest.$ac_ext <<_ACEOF
21160 /* end confdefs.h. */
21161 #include <readline/readline.h>
21163 _ACEOF
21164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21165 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
21167 cat >>confdefs.h <<\_ACEOF
21168 #define HAVE_RL_CATCH_SIGNAL 1
21169 _ACEOF
21172 rm -f conftest*
21176 # End of readline checks: restore LIBS
21177 LIBS=$LIBS_no_readline
21179 echo "$as_me:$LINENO: checking for broken nice()" >&5
21180 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
21181 if test "${ac_cv_broken_nice+set}" = set; then
21182 echo $ECHO_N "(cached) $ECHO_C" >&6
21183 else
21185 if test "$cross_compiling" = yes; then
21186 ac_cv_broken_nice=no
21187 else
21188 cat >conftest.$ac_ext <<_ACEOF
21189 /* confdefs.h. */
21190 _ACEOF
21191 cat confdefs.h >>conftest.$ac_ext
21192 cat >>conftest.$ac_ext <<_ACEOF
21193 /* end confdefs.h. */
21195 int main()
21197 int val1 = nice(1);
21198 if (val1 != -1 && val1 == nice(2))
21199 exit(0);
21200 exit(1);
21203 _ACEOF
21204 rm -f conftest$ac_exeext
21205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21206 (eval $ac_link) 2>&5
21207 ac_status=$?
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211 (eval $ac_try) 2>&5
21212 ac_status=$?
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); }; }; then
21215 ac_cv_broken_nice=yes
21216 else
21217 echo "$as_me: program exited with status $ac_status" >&5
21218 echo "$as_me: failed program was:" >&5
21219 sed 's/^/| /' conftest.$ac_ext >&5
21221 ( exit $ac_status )
21222 ac_cv_broken_nice=no
21224 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21228 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21229 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21230 if test "$ac_cv_broken_nice" = yes
21231 then
21233 cat >>confdefs.h <<\_ACEOF
21234 #define HAVE_BROKEN_NICE 1
21235 _ACEOF
21239 echo "$as_me:$LINENO: checking for broken poll()" >&5
21240 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21241 if test "$cross_compiling" = yes; then
21242 ac_cv_broken_poll=no
21243 else
21244 cat >conftest.$ac_ext <<_ACEOF
21245 /* confdefs.h. */
21246 _ACEOF
21247 cat confdefs.h >>conftest.$ac_ext
21248 cat >>conftest.$ac_ext <<_ACEOF
21249 /* end confdefs.h. */
21251 #include <poll.h>
21253 int main (void)
21255 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21257 close (42);
21259 int poll_test = poll (&poll_struct, 1, 0);
21261 if (poll_test < 0)
21263 exit(0);
21265 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21267 exit(0);
21269 else
21271 exit(1);
21275 _ACEOF
21276 rm -f conftest$ac_exeext
21277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21278 (eval $ac_link) 2>&5
21279 ac_status=$?
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21283 (eval $ac_try) 2>&5
21284 ac_status=$?
21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286 (exit $ac_status); }; }; then
21287 ac_cv_broken_poll=yes
21288 else
21289 echo "$as_me: program exited with status $ac_status" >&5
21290 echo "$as_me: failed program was:" >&5
21291 sed 's/^/| /' conftest.$ac_ext >&5
21293 ( exit $ac_status )
21294 ac_cv_broken_poll=no
21296 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21298 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21299 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21300 if test "$ac_cv_broken_poll" = yes
21301 then
21303 cat >>confdefs.h <<\_ACEOF
21304 #define HAVE_BROKEN_POLL 1
21305 _ACEOF
21309 # Before we can test tzset, we need to check if struct tm has a tm_zone
21310 # (which is not required by ISO C or UNIX spec) and/or if we support
21311 # tzname[]
21312 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21313 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21314 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21315 echo $ECHO_N "(cached) $ECHO_C" >&6
21316 else
21317 cat >conftest.$ac_ext <<_ACEOF
21318 /* confdefs.h. */
21319 _ACEOF
21320 cat confdefs.h >>conftest.$ac_ext
21321 cat >>conftest.$ac_ext <<_ACEOF
21322 /* end confdefs.h. */
21323 #include <sys/types.h>
21324 #include <$ac_cv_struct_tm>
21328 main ()
21330 static struct tm ac_aggr;
21331 if (ac_aggr.tm_zone)
21332 return 0;
21334 return 0;
21336 _ACEOF
21337 rm -f conftest.$ac_objext
21338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21339 (eval $ac_compile) 2>conftest.er1
21340 ac_status=$?
21341 grep -v '^ *+' conftest.er1 >conftest.err
21342 rm -f conftest.er1
21343 cat conftest.err >&5
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); } &&
21346 { ac_try='test -z "$ac_c_werror_flag"
21347 || test ! -s conftest.err'
21348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21349 (eval $ac_try) 2>&5
21350 ac_status=$?
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); }; } &&
21353 { ac_try='test -s conftest.$ac_objext'
21354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21355 (eval $ac_try) 2>&5
21356 ac_status=$?
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); }; }; then
21359 ac_cv_member_struct_tm_tm_zone=yes
21360 else
21361 echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21364 cat >conftest.$ac_ext <<_ACEOF
21365 /* confdefs.h. */
21366 _ACEOF
21367 cat confdefs.h >>conftest.$ac_ext
21368 cat >>conftest.$ac_ext <<_ACEOF
21369 /* end confdefs.h. */
21370 #include <sys/types.h>
21371 #include <$ac_cv_struct_tm>
21375 main ()
21377 static struct tm ac_aggr;
21378 if (sizeof ac_aggr.tm_zone)
21379 return 0;
21381 return 0;
21383 _ACEOF
21384 rm -f conftest.$ac_objext
21385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21386 (eval $ac_compile) 2>conftest.er1
21387 ac_status=$?
21388 grep -v '^ *+' conftest.er1 >conftest.err
21389 rm -f conftest.er1
21390 cat conftest.err >&5
21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392 (exit $ac_status); } &&
21393 { ac_try='test -z "$ac_c_werror_flag"
21394 || test ! -s conftest.err'
21395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21396 (eval $ac_try) 2>&5
21397 ac_status=$?
21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); }; } &&
21400 { ac_try='test -s conftest.$ac_objext'
21401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21402 (eval $ac_try) 2>&5
21403 ac_status=$?
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); }; }; then
21406 ac_cv_member_struct_tm_tm_zone=yes
21407 else
21408 echo "$as_me: failed program was:" >&5
21409 sed 's/^/| /' conftest.$ac_ext >&5
21411 ac_cv_member_struct_tm_tm_zone=no
21413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21417 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21418 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21419 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21421 cat >>confdefs.h <<_ACEOF
21422 #define HAVE_STRUCT_TM_TM_ZONE 1
21423 _ACEOF
21428 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21430 cat >>confdefs.h <<\_ACEOF
21431 #define HAVE_TM_ZONE 1
21432 _ACEOF
21434 else
21435 echo "$as_me:$LINENO: checking for tzname" >&5
21436 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21437 if test "${ac_cv_var_tzname+set}" = set; then
21438 echo $ECHO_N "(cached) $ECHO_C" >&6
21439 else
21440 cat >conftest.$ac_ext <<_ACEOF
21441 /* confdefs.h. */
21442 _ACEOF
21443 cat confdefs.h >>conftest.$ac_ext
21444 cat >>conftest.$ac_ext <<_ACEOF
21445 /* end confdefs.h. */
21446 #include <time.h>
21447 #ifndef tzname /* For SGI. */
21448 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21449 #endif
21452 main ()
21454 atoi(*tzname);
21456 return 0;
21458 _ACEOF
21459 rm -f conftest.$ac_objext conftest$ac_exeext
21460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21461 (eval $ac_link) 2>conftest.er1
21462 ac_status=$?
21463 grep -v '^ *+' conftest.er1 >conftest.err
21464 rm -f conftest.er1
21465 cat conftest.err >&5
21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); } &&
21468 { ac_try='test -z "$ac_c_werror_flag"
21469 || test ! -s conftest.err'
21470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21471 (eval $ac_try) 2>&5
21472 ac_status=$?
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); }; } &&
21475 { ac_try='test -s conftest$ac_exeext'
21476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21477 (eval $ac_try) 2>&5
21478 ac_status=$?
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); }; }; then
21481 ac_cv_var_tzname=yes
21482 else
21483 echo "$as_me: failed program was:" >&5
21484 sed 's/^/| /' conftest.$ac_ext >&5
21486 ac_cv_var_tzname=no
21488 rm -f conftest.err conftest.$ac_objext \
21489 conftest$ac_exeext conftest.$ac_ext
21491 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21492 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21493 if test $ac_cv_var_tzname = yes; then
21495 cat >>confdefs.h <<\_ACEOF
21496 #define HAVE_TZNAME 1
21497 _ACEOF
21503 # check tzset(3) exists and works like we expect it to
21504 echo "$as_me:$LINENO: checking for working tzset()" >&5
21505 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
21506 if test "${ac_cv_working_tzset+set}" = set; then
21507 echo $ECHO_N "(cached) $ECHO_C" >&6
21508 else
21510 if test "$cross_compiling" = yes; then
21511 ac_cv_working_tzset=no
21512 else
21513 cat >conftest.$ac_ext <<_ACEOF
21514 /* confdefs.h. */
21515 _ACEOF
21516 cat confdefs.h >>conftest.$ac_ext
21517 cat >>conftest.$ac_ext <<_ACEOF
21518 /* end confdefs.h. */
21520 #include <stdlib.h>
21521 #include <time.h>
21522 #include <string.h>
21524 #if HAVE_TZNAME
21525 extern char *tzname[];
21526 #endif
21528 int main()
21530 /* Note that we need to ensure that not only does tzset(3)
21531 do 'something' with localtime, but it works as documented
21532 in the library reference and as expected by the test suite.
21533 This includes making sure that tzname is set properly if
21534 tm->tm_zone does not exist since it is the alternative way
21535 of getting timezone info.
21537 Red Hat 6.2 doesn't understand the southern hemisphere
21538 after New Year's Day.
21541 time_t groundhogday = 1044144000; /* GMT-based */
21542 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
21544 putenv("TZ=UTC+0");
21545 tzset();
21546 if (localtime(&groundhogday)->tm_hour != 0)
21547 exit(1);
21548 #if HAVE_TZNAME
21549 /* For UTC, tzname[1] is sometimes "", sometimes " " */
21550 if (strcmp(tzname[0], "UTC") ||
21551 (tzname[1][0] != 0 && tzname[1][0] != ' '))
21552 exit(1);
21553 #endif
21555 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
21556 tzset();
21557 if (localtime(&groundhogday)->tm_hour != 19)
21558 exit(1);
21559 #if HAVE_TZNAME
21560 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
21561 exit(1);
21562 #endif
21564 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
21565 tzset();
21566 if (localtime(&groundhogday)->tm_hour != 11)
21567 exit(1);
21568 #if HAVE_TZNAME
21569 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
21570 exit(1);
21571 #endif
21573 #if HAVE_STRUCT_TM_TM_ZONE
21574 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
21575 exit(1);
21576 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
21577 exit(1);
21578 #endif
21580 exit(0);
21583 _ACEOF
21584 rm -f conftest$ac_exeext
21585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21586 (eval $ac_link) 2>&5
21587 ac_status=$?
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21591 (eval $ac_try) 2>&5
21592 ac_status=$?
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); }; }; then
21595 ac_cv_working_tzset=yes
21596 else
21597 echo "$as_me: program exited with status $ac_status" >&5
21598 echo "$as_me: failed program was:" >&5
21599 sed 's/^/| /' conftest.$ac_ext >&5
21601 ( exit $ac_status )
21602 ac_cv_working_tzset=no
21604 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21608 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
21609 echo "${ECHO_T}$ac_cv_working_tzset" >&6
21610 if test "$ac_cv_working_tzset" = yes
21611 then
21613 cat >>confdefs.h <<\_ACEOF
21614 #define HAVE_WORKING_TZSET 1
21615 _ACEOF
21619 # Look for subsecond timestamps in struct stat
21620 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
21621 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
21622 if test "${ac_cv_stat_tv_nsec+set}" = set; then
21623 echo $ECHO_N "(cached) $ECHO_C" >&6
21624 else
21625 cat >conftest.$ac_ext <<_ACEOF
21626 /* confdefs.h. */
21627 _ACEOF
21628 cat confdefs.h >>conftest.$ac_ext
21629 cat >>conftest.$ac_ext <<_ACEOF
21630 /* end confdefs.h. */
21631 #include <sys/stat.h>
21633 main ()
21636 struct stat st;
21637 st.st_mtim.tv_nsec = 1;
21640 return 0;
21642 _ACEOF
21643 rm -f conftest.$ac_objext
21644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21645 (eval $ac_compile) 2>conftest.er1
21646 ac_status=$?
21647 grep -v '^ *+' conftest.er1 >conftest.err
21648 rm -f conftest.er1
21649 cat conftest.err >&5
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); } &&
21652 { ac_try='test -z "$ac_c_werror_flag"
21653 || test ! -s conftest.err'
21654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21655 (eval $ac_try) 2>&5
21656 ac_status=$?
21657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658 (exit $ac_status); }; } &&
21659 { ac_try='test -s conftest.$ac_objext'
21660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21661 (eval $ac_try) 2>&5
21662 ac_status=$?
21663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664 (exit $ac_status); }; }; then
21665 ac_cv_stat_tv_nsec=yes
21666 else
21667 echo "$as_me: failed program was:" >&5
21668 sed 's/^/| /' conftest.$ac_ext >&5
21670 ac_cv_stat_tv_nsec=no
21672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21675 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
21676 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
21677 if test "$ac_cv_stat_tv_nsec" = yes
21678 then
21680 cat >>confdefs.h <<\_ACEOF
21681 #define HAVE_STAT_TV_NSEC 1
21682 _ACEOF
21686 # Look for BSD style subsecond timestamps in struct stat
21687 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
21688 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
21689 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
21690 echo $ECHO_N "(cached) $ECHO_C" >&6
21691 else
21692 cat >conftest.$ac_ext <<_ACEOF
21693 /* confdefs.h. */
21694 _ACEOF
21695 cat confdefs.h >>conftest.$ac_ext
21696 cat >>conftest.$ac_ext <<_ACEOF
21697 /* end confdefs.h. */
21698 #include <sys/stat.h>
21700 main ()
21703 struct stat st;
21704 st.st_mtimespec.tv_nsec = 1;
21707 return 0;
21709 _ACEOF
21710 rm -f conftest.$ac_objext
21711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21712 (eval $ac_compile) 2>conftest.er1
21713 ac_status=$?
21714 grep -v '^ *+' conftest.er1 >conftest.err
21715 rm -f conftest.er1
21716 cat conftest.err >&5
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); } &&
21719 { ac_try='test -z "$ac_c_werror_flag"
21720 || test ! -s conftest.err'
21721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21722 (eval $ac_try) 2>&5
21723 ac_status=$?
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); }; } &&
21726 { ac_try='test -s conftest.$ac_objext'
21727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21728 (eval $ac_try) 2>&5
21729 ac_status=$?
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); }; }; then
21732 ac_cv_stat_tv_nsec2=yes
21733 else
21734 echo "$as_me: failed program was:" >&5
21735 sed 's/^/| /' conftest.$ac_ext >&5
21737 ac_cv_stat_tv_nsec2=no
21739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21742 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
21743 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
21744 if test "$ac_cv_stat_tv_nsec2" = yes
21745 then
21747 cat >>confdefs.h <<\_ACEOF
21748 #define HAVE_STAT_TV_NSEC2 1
21749 _ACEOF
21753 # On HP/UX 11.0, mvwdelch is a block with a return statement
21754 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
21755 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
21756 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
21757 echo $ECHO_N "(cached) $ECHO_C" >&6
21758 else
21759 cat >conftest.$ac_ext <<_ACEOF
21760 /* confdefs.h. */
21761 _ACEOF
21762 cat confdefs.h >>conftest.$ac_ext
21763 cat >>conftest.$ac_ext <<_ACEOF
21764 /* end confdefs.h. */
21765 #include <curses.h>
21767 main ()
21770 int rtn;
21771 rtn = mvwdelch(0,0,0);
21774 return 0;
21776 _ACEOF
21777 rm -f conftest.$ac_objext
21778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21779 (eval $ac_compile) 2>conftest.er1
21780 ac_status=$?
21781 grep -v '^ *+' conftest.er1 >conftest.err
21782 rm -f conftest.er1
21783 cat conftest.err >&5
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); } &&
21786 { ac_try='test -z "$ac_c_werror_flag"
21787 || test ! -s conftest.err'
21788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21789 (eval $ac_try) 2>&5
21790 ac_status=$?
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); }; } &&
21793 { ac_try='test -s conftest.$ac_objext'
21794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21795 (eval $ac_try) 2>&5
21796 ac_status=$?
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); }; }; then
21799 ac_cv_mvwdelch_is_expression=yes
21800 else
21801 echo "$as_me: failed program was:" >&5
21802 sed 's/^/| /' conftest.$ac_ext >&5
21804 ac_cv_mvwdelch_is_expression=no
21806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21809 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
21810 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
21812 if test "$ac_cv_mvwdelch_is_expression" = yes
21813 then
21815 cat >>confdefs.h <<\_ACEOF
21816 #define MVWDELCH_IS_EXPRESSION 1
21817 _ACEOF
21821 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
21822 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
21823 if test "${ac_cv_window_has_flags+set}" = set; then
21824 echo $ECHO_N "(cached) $ECHO_C" >&6
21825 else
21826 cat >conftest.$ac_ext <<_ACEOF
21827 /* confdefs.h. */
21828 _ACEOF
21829 cat confdefs.h >>conftest.$ac_ext
21830 cat >>conftest.$ac_ext <<_ACEOF
21831 /* end confdefs.h. */
21832 #include <curses.h>
21834 main ()
21837 WINDOW *w;
21838 w->_flags = 0;
21841 return 0;
21843 _ACEOF
21844 rm -f conftest.$ac_objext
21845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21846 (eval $ac_compile) 2>conftest.er1
21847 ac_status=$?
21848 grep -v '^ *+' conftest.er1 >conftest.err
21849 rm -f conftest.er1
21850 cat conftest.err >&5
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); } &&
21853 { ac_try='test -z "$ac_c_werror_flag"
21854 || test ! -s conftest.err'
21855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21856 (eval $ac_try) 2>&5
21857 ac_status=$?
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); }; } &&
21860 { ac_try='test -s conftest.$ac_objext'
21861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21862 (eval $ac_try) 2>&5
21863 ac_status=$?
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); }; }; then
21866 ac_cv_window_has_flags=yes
21867 else
21868 echo "$as_me: failed program was:" >&5
21869 sed 's/^/| /' conftest.$ac_ext >&5
21871 ac_cv_window_has_flags=no
21873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21876 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
21877 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
21880 if test "$ac_cv_window_has_flags" = yes
21881 then
21883 cat >>confdefs.h <<\_ACEOF
21884 #define WINDOW_HAS_FLAGS 1
21885 _ACEOF
21889 echo "$as_me:$LINENO: checking for is_term_resized" >&5
21890 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6
21891 cat >conftest.$ac_ext <<_ACEOF
21892 /* confdefs.h. */
21893 _ACEOF
21894 cat confdefs.h >>conftest.$ac_ext
21895 cat >>conftest.$ac_ext <<_ACEOF
21896 /* end confdefs.h. */
21897 #include <curses.h>
21899 main ()
21901 void *x=is_term_resized
21903 return 0;
21905 _ACEOF
21906 rm -f conftest.$ac_objext
21907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21908 (eval $ac_compile) 2>conftest.er1
21909 ac_status=$?
21910 grep -v '^ *+' conftest.er1 >conftest.err
21911 rm -f conftest.er1
21912 cat conftest.err >&5
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); } &&
21915 { ac_try='test -z "$ac_c_werror_flag"
21916 || test ! -s conftest.err'
21917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21918 (eval $ac_try) 2>&5
21919 ac_status=$?
21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); }; } &&
21922 { ac_try='test -s conftest.$ac_objext'
21923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21924 (eval $ac_try) 2>&5
21925 ac_status=$?
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); }; }; then
21929 cat >>confdefs.h <<\_ACEOF
21930 #define HAVE_CURSES_IS_TERM_RESIZED 1
21931 _ACEOF
21933 echo "$as_me:$LINENO: result: yes" >&5
21934 echo "${ECHO_T}yes" >&6
21935 else
21936 echo "$as_me: failed program was:" >&5
21937 sed 's/^/| /' conftest.$ac_ext >&5
21939 echo "$as_me:$LINENO: result: no" >&5
21940 echo "${ECHO_T}no" >&6
21943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21945 echo "$as_me:$LINENO: checking for resize_term" >&5
21946 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6
21947 cat >conftest.$ac_ext <<_ACEOF
21948 /* confdefs.h. */
21949 _ACEOF
21950 cat confdefs.h >>conftest.$ac_ext
21951 cat >>conftest.$ac_ext <<_ACEOF
21952 /* end confdefs.h. */
21953 #include <curses.h>
21955 main ()
21957 void *x=resize_term
21959 return 0;
21961 _ACEOF
21962 rm -f conftest.$ac_objext
21963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21964 (eval $ac_compile) 2>conftest.er1
21965 ac_status=$?
21966 grep -v '^ *+' conftest.er1 >conftest.err
21967 rm -f conftest.er1
21968 cat conftest.err >&5
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); } &&
21971 { ac_try='test -z "$ac_c_werror_flag"
21972 || test ! -s conftest.err'
21973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21974 (eval $ac_try) 2>&5
21975 ac_status=$?
21976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977 (exit $ac_status); }; } &&
21978 { ac_try='test -s conftest.$ac_objext'
21979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21980 (eval $ac_try) 2>&5
21981 ac_status=$?
21982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983 (exit $ac_status); }; }; then
21985 cat >>confdefs.h <<\_ACEOF
21986 #define HAVE_CURSES_RESIZE_TERM 1
21987 _ACEOF
21989 echo "$as_me:$LINENO: result: yes" >&5
21990 echo "${ECHO_T}yes" >&6
21991 else
21992 echo "$as_me: failed program was:" >&5
21993 sed 's/^/| /' conftest.$ac_ext >&5
21995 echo "$as_me:$LINENO: result: no" >&5
21996 echo "${ECHO_T}no" >&6
21999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22001 echo "$as_me:$LINENO: checking for resizeterm" >&5
22002 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6
22003 cat >conftest.$ac_ext <<_ACEOF
22004 /* confdefs.h. */
22005 _ACEOF
22006 cat confdefs.h >>conftest.$ac_ext
22007 cat >>conftest.$ac_ext <<_ACEOF
22008 /* end confdefs.h. */
22009 #include <curses.h>
22011 main ()
22013 void *x=resizeterm
22015 return 0;
22017 _ACEOF
22018 rm -f conftest.$ac_objext
22019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22020 (eval $ac_compile) 2>conftest.er1
22021 ac_status=$?
22022 grep -v '^ *+' conftest.er1 >conftest.err
22023 rm -f conftest.er1
22024 cat conftest.err >&5
22025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026 (exit $ac_status); } &&
22027 { ac_try='test -z "$ac_c_werror_flag"
22028 || test ! -s conftest.err'
22029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22030 (eval $ac_try) 2>&5
22031 ac_status=$?
22032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); }; } &&
22034 { ac_try='test -s conftest.$ac_objext'
22035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22036 (eval $ac_try) 2>&5
22037 ac_status=$?
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); }; }; then
22041 cat >>confdefs.h <<\_ACEOF
22042 #define HAVE_CURSES_RESIZETERM 1
22043 _ACEOF
22045 echo "$as_me:$LINENO: result: yes" >&5
22046 echo "${ECHO_T}yes" >&6
22047 else
22048 echo "$as_me: failed program was:" >&5
22049 sed 's/^/| /' conftest.$ac_ext >&5
22051 echo "$as_me:$LINENO: result: no" >&5
22052 echo "${ECHO_T}no" >&6
22055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22057 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
22058 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
22060 if test -r /dev/ptmx
22061 then
22062 echo "$as_me:$LINENO: result: yes" >&5
22063 echo "${ECHO_T}yes" >&6
22065 cat >>confdefs.h <<\_ACEOF
22066 #define HAVE_DEV_PTMX 1
22067 _ACEOF
22069 else
22070 echo "$as_me:$LINENO: result: no" >&5
22071 echo "${ECHO_T}no" >&6
22074 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
22075 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
22077 if test -r /dev/ptc
22078 then
22079 echo "$as_me:$LINENO: result: yes" >&5
22080 echo "${ECHO_T}yes" >&6
22082 cat >>confdefs.h <<\_ACEOF
22083 #define HAVE_DEV_PTC 1
22084 _ACEOF
22086 else
22087 echo "$as_me:$LINENO: result: no" >&5
22088 echo "${ECHO_T}no" >&6
22091 echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
22092 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6
22093 if test "$cross_compiling" = yes; then
22094 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22095 See \`config.log' for more details." >&5
22096 echo "$as_me: error: cannot run test program while cross compiling
22097 See \`config.log' for more details." >&2;}
22098 { (exit 1); exit 1; }; }
22099 else
22100 cat >conftest.$ac_ext <<_ACEOF
22101 /* confdefs.h. */
22102 _ACEOF
22103 cat confdefs.h >>conftest.$ac_ext
22104 cat >>conftest.$ac_ext <<_ACEOF
22105 /* end confdefs.h. */
22106 #include <stdio.h>
22107 #include <stddef.h>
22108 #include <string.h>
22110 int main()
22112 char buffer[256];
22114 #ifdef HAVE_SSIZE_T
22115 typedef ssize_t Py_ssize_t;
22116 #elif SIZEOF_VOID_P == SIZEOF_LONG
22117 typedef long Py_ssize_t;
22118 #else
22119 typedef int Py_ssize_t;
22120 #endif
22122 if(sprintf(buffer, "%zd", (size_t)123) < 0)
22123 return 1;
22125 if (strcmp(buffer, "123"))
22126 return 1;
22128 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
22129 return 1;
22131 if (strcmp(buffer, "-123"))
22132 return 1;
22134 return 0;
22136 _ACEOF
22137 rm -f conftest$ac_exeext
22138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22139 (eval $ac_link) 2>&5
22140 ac_status=$?
22141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22144 (eval $ac_try) 2>&5
22145 ac_status=$?
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); }; }; then
22148 echo "$as_me:$LINENO: result: yes" >&5
22149 echo "${ECHO_T}yes" >&6
22151 cat >>confdefs.h <<\_ACEOF
22152 #define PY_FORMAT_SIZE_T "z"
22153 _ACEOF
22155 else
22156 echo "$as_me: program exited with status $ac_status" >&5
22157 echo "$as_me: failed program was:" >&5
22158 sed 's/^/| /' conftest.$ac_ext >&5
22160 ( exit $ac_status )
22161 echo "$as_me:$LINENO: result: no" >&5
22162 echo "${ECHO_T}no" >&6
22164 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22167 echo "$as_me:$LINENO: checking for socklen_t" >&5
22168 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
22169 if test "${ac_cv_type_socklen_t+set}" = set; then
22170 echo $ECHO_N "(cached) $ECHO_C" >&6
22171 else
22172 cat >conftest.$ac_ext <<_ACEOF
22173 /* confdefs.h. */
22174 _ACEOF
22175 cat confdefs.h >>conftest.$ac_ext
22176 cat >>conftest.$ac_ext <<_ACEOF
22177 /* end confdefs.h. */
22179 #ifdef HAVE_SYS_TYPES_H
22180 #include <sys/types.h>
22181 #endif
22182 #ifdef HAVE_SYS_SOCKET_H
22183 #include <sys/socket.h>
22184 #endif
22188 main ()
22190 if ((socklen_t *) 0)
22191 return 0;
22192 if (sizeof (socklen_t))
22193 return 0;
22195 return 0;
22197 _ACEOF
22198 rm -f conftest.$ac_objext
22199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22200 (eval $ac_compile) 2>conftest.er1
22201 ac_status=$?
22202 grep -v '^ *+' conftest.er1 >conftest.err
22203 rm -f conftest.er1
22204 cat conftest.err >&5
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); } &&
22207 { ac_try='test -z "$ac_c_werror_flag"
22208 || test ! -s conftest.err'
22209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22210 (eval $ac_try) 2>&5
22211 ac_status=$?
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); }; } &&
22214 { ac_try='test -s conftest.$ac_objext'
22215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22216 (eval $ac_try) 2>&5
22217 ac_status=$?
22218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219 (exit $ac_status); }; }; then
22220 ac_cv_type_socklen_t=yes
22221 else
22222 echo "$as_me: failed program was:" >&5
22223 sed 's/^/| /' conftest.$ac_ext >&5
22225 ac_cv_type_socklen_t=no
22227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22229 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22230 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
22231 if test $ac_cv_type_socklen_t = yes; then
22233 else
22235 cat >>confdefs.h <<\_ACEOF
22236 #define socklen_t int
22237 _ACEOF
22244 for h in `(cd $srcdir;echo Python/thread_*.h)`
22246 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
22247 done
22250 SRCDIRS="Parser Grammar Objects Python Modules Mac"
22251 echo "$as_me:$LINENO: checking for build directories" >&5
22252 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
22253 for dir in $SRCDIRS; do
22254 if test ! -d $dir; then
22255 mkdir $dir
22257 done
22258 echo "$as_me:$LINENO: result: done" >&5
22259 echo "${ECHO_T}done" >&6
22261 # generate output files
22262 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
22264 cat >confcache <<\_ACEOF
22265 # This file is a shell script that caches the results of configure
22266 # tests run on this system so they can be shared between configure
22267 # scripts and configure runs, see configure's option --config-cache.
22268 # It is not useful on other systems. If it contains results you don't
22269 # want to keep, you may remove or edit it.
22271 # config.status only pays attention to the cache file if you give it
22272 # the --recheck option to rerun configure.
22274 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22275 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22276 # following values.
22278 _ACEOF
22280 # The following way of writing the cache mishandles newlines in values,
22281 # but we know of no workaround that is simple, portable, and efficient.
22282 # So, don't put newlines in cache variables' values.
22283 # Ultrix sh set writes to stderr and can't be redirected directly,
22284 # and sets the high bit in the cache file unless we assign to the vars.
22286 (set) 2>&1 |
22287 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22288 *ac_space=\ *)
22289 # `set' does not quote correctly, so add quotes (double-quote
22290 # substitution turns \\\\ into \\, and sed turns \\ into \).
22291 sed -n \
22292 "s/'/'\\\\''/g;
22293 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22296 # `set' quotes correctly as required by POSIX, so do not add quotes.
22297 sed -n \
22298 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22300 esac;
22302 sed '
22303 t clear
22304 : clear
22305 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22306 t end
22307 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22308 : end' >>confcache
22309 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22310 if test -w $cache_file; then
22311 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22312 cat confcache >$cache_file
22313 else
22314 echo "not updating unwritable cache $cache_file"
22317 rm -f confcache
22319 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22320 # Let make expand exec_prefix.
22321 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22323 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22324 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22325 # trailing colons and then remove the whole line if VPATH becomes empty
22326 # (actually we leave an empty line to preserve line numbers).
22327 if test "x$srcdir" = x.; then
22328 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22329 s/:*\$(srcdir):*/:/;
22330 s/:*\${srcdir}:*/:/;
22331 s/:*@srcdir@:*/:/;
22332 s/^\([^=]*=[ ]*\):*/\1/;
22333 s/:*$//;
22334 s/^[^=]*=[ ]*$//;
22338 DEFS=-DHAVE_CONFIG_H
22340 ac_libobjs=
22341 ac_ltlibobjs=
22342 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22343 # 1. Remove the extension, and $U if already installed.
22344 ac_i=`echo "$ac_i" |
22345 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22346 # 2. Add them.
22347 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22348 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22349 done
22350 LIBOBJS=$ac_libobjs
22352 LTLIBOBJS=$ac_ltlibobjs
22356 : ${CONFIG_STATUS=./config.status}
22357 ac_clean_files_save=$ac_clean_files
22358 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22359 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22360 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22361 cat >$CONFIG_STATUS <<_ACEOF
22362 #! $SHELL
22363 # Generated by $as_me.
22364 # Run this file to recreate the current configuration.
22365 # Compiler output produced by configure, useful for debugging
22366 # configure, is in config.log if it exists.
22368 debug=false
22369 ac_cs_recheck=false
22370 ac_cs_silent=false
22371 SHELL=\${CONFIG_SHELL-$SHELL}
22372 _ACEOF
22374 cat >>$CONFIG_STATUS <<\_ACEOF
22375 ## --------------------- ##
22376 ## M4sh Initialization. ##
22377 ## --------------------- ##
22379 # Be Bourne compatible
22380 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22381 emulate sh
22382 NULLCMD=:
22383 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22384 # is contrary to our usage. Disable this feature.
22385 alias -g '${1+"$@"}'='"$@"'
22386 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22387 set -o posix
22389 DUALCASE=1; export DUALCASE # for MKS sh
22391 # Support unset when possible.
22392 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22393 as_unset=unset
22394 else
22395 as_unset=false
22399 # Work around bugs in pre-3.0 UWIN ksh.
22400 $as_unset ENV MAIL MAILPATH
22401 PS1='$ '
22402 PS2='> '
22403 PS4='+ '
22405 # NLS nuisances.
22406 for as_var in \
22407 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22408 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22409 LC_TELEPHONE LC_TIME
22411 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22412 eval $as_var=C; export $as_var
22413 else
22414 $as_unset $as_var
22416 done
22418 # Required to use basename.
22419 if expr a : '\(a\)' >/dev/null 2>&1; then
22420 as_expr=expr
22421 else
22422 as_expr=false
22425 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22426 as_basename=basename
22427 else
22428 as_basename=false
22432 # Name of the executable.
22433 as_me=`$as_basename "$0" ||
22434 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22435 X"$0" : 'X\(//\)$' \| \
22436 X"$0" : 'X\(/\)$' \| \
22437 . : '\(.\)' 2>/dev/null ||
22438 echo X/"$0" |
22439 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22440 /^X\/\(\/\/\)$/{ s//\1/; q; }
22441 /^X\/\(\/\).*/{ s//\1/; q; }
22442 s/.*/./; q'`
22445 # PATH needs CR, and LINENO needs CR and PATH.
22446 # Avoid depending upon Character Ranges.
22447 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22448 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22449 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22450 as_cr_digits='0123456789'
22451 as_cr_alnum=$as_cr_Letters$as_cr_digits
22453 # The user is always right.
22454 if test "${PATH_SEPARATOR+set}" != set; then
22455 echo "#! /bin/sh" >conf$$.sh
22456 echo "exit 0" >>conf$$.sh
22457 chmod +x conf$$.sh
22458 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22459 PATH_SEPARATOR=';'
22460 else
22461 PATH_SEPARATOR=:
22463 rm -f conf$$.sh
22467 as_lineno_1=$LINENO
22468 as_lineno_2=$LINENO
22469 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22470 test "x$as_lineno_1" != "x$as_lineno_2" &&
22471 test "x$as_lineno_3" = "x$as_lineno_2" || {
22472 # Find who we are. Look in the path if we contain no path at all
22473 # relative or not.
22474 case $0 in
22475 *[\\/]* ) as_myself=$0 ;;
22476 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22477 for as_dir in $PATH
22479 IFS=$as_save_IFS
22480 test -z "$as_dir" && as_dir=.
22481 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22482 done
22485 esac
22486 # We did not find ourselves, most probably we were run as `sh COMMAND'
22487 # in which case we are not to be found in the path.
22488 if test "x$as_myself" = x; then
22489 as_myself=$0
22491 if test ! -f "$as_myself"; then
22492 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22493 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22494 { (exit 1); exit 1; }; }
22496 case $CONFIG_SHELL in
22498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22499 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22501 IFS=$as_save_IFS
22502 test -z "$as_dir" && as_dir=.
22503 for as_base in sh bash ksh sh5; do
22504 case $as_dir in
22506 if ("$as_dir/$as_base" -c '
22507 as_lineno_1=$LINENO
22508 as_lineno_2=$LINENO
22509 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22510 test "x$as_lineno_1" != "x$as_lineno_2" &&
22511 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22512 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22513 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22514 CONFIG_SHELL=$as_dir/$as_base
22515 export CONFIG_SHELL
22516 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22517 fi;;
22518 esac
22519 done
22520 done
22522 esac
22524 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22525 # uniformly replaced by the line number. The first 'sed' inserts a
22526 # line-number line before each line; the second 'sed' does the real
22527 # work. The second script uses 'N' to pair each line-number line
22528 # with the numbered line, and appends trailing '-' during
22529 # substitution so that $LINENO is not a special case at line end.
22530 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22531 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22532 sed '=' <$as_myself |
22533 sed '
22535 s,$,-,
22536 : loop
22537 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22538 t loop
22539 s,-$,,
22540 s,^['$as_cr_digits']*\n,,
22541 ' >$as_me.lineno &&
22542 chmod +x $as_me.lineno ||
22543 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22544 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22545 { (exit 1); exit 1; }; }
22547 # Don't try to exec as it changes $[0], causing all sort of problems
22548 # (the dirname of $[0] is not the place where we might find the
22549 # original and so on. Autoconf is especially sensible to this).
22550 . ./$as_me.lineno
22551 # Exit status is that of the last command.
22552 exit
22556 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22557 *c*,-n*) ECHO_N= ECHO_C='
22558 ' ECHO_T=' ' ;;
22559 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22560 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22561 esac
22563 if expr a : '\(a\)' >/dev/null 2>&1; then
22564 as_expr=expr
22565 else
22566 as_expr=false
22569 rm -f conf$$ conf$$.exe conf$$.file
22570 echo >conf$$.file
22571 if ln -s conf$$.file conf$$ 2>/dev/null; then
22572 # We could just check for DJGPP; but this test a) works b) is more generic
22573 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22574 if test -f conf$$.exe; then
22575 # Don't use ln at all; we don't have any links
22576 as_ln_s='cp -p'
22577 else
22578 as_ln_s='ln -s'
22580 elif ln conf$$.file conf$$ 2>/dev/null; then
22581 as_ln_s=ln
22582 else
22583 as_ln_s='cp -p'
22585 rm -f conf$$ conf$$.exe conf$$.file
22587 if mkdir -p . 2>/dev/null; then
22588 as_mkdir_p=:
22589 else
22590 test -d ./-p && rmdir ./-p
22591 as_mkdir_p=false
22594 as_executable_p="test -f"
22596 # Sed expression to map a string onto a valid CPP name.
22597 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22599 # Sed expression to map a string onto a valid variable name.
22600 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22603 # IFS
22604 # We need space, tab and new line, in precisely that order.
22605 as_nl='
22607 IFS=" $as_nl"
22609 # CDPATH.
22610 $as_unset CDPATH
22612 exec 6>&1
22614 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22615 # report actual input values of CONFIG_FILES etc. instead of their
22616 # values after options handling. Logging --version etc. is OK.
22617 exec 5>>config.log
22619 echo
22620 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22621 ## Running $as_me. ##
22622 _ASBOX
22623 } >&5
22624 cat >&5 <<_CSEOF
22626 This file was extended by python $as_me 2.5, which was
22627 generated by GNU Autoconf 2.59. Invocation command line was
22629 CONFIG_FILES = $CONFIG_FILES
22630 CONFIG_HEADERS = $CONFIG_HEADERS
22631 CONFIG_LINKS = $CONFIG_LINKS
22632 CONFIG_COMMANDS = $CONFIG_COMMANDS
22633 $ $0 $@
22635 _CSEOF
22636 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22637 echo >&5
22638 _ACEOF
22640 # Files that config.status was made for.
22641 if test -n "$ac_config_files"; then
22642 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22645 if test -n "$ac_config_headers"; then
22646 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22649 if test -n "$ac_config_links"; then
22650 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22653 if test -n "$ac_config_commands"; then
22654 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22657 cat >>$CONFIG_STATUS <<\_ACEOF
22659 ac_cs_usage="\
22660 \`$as_me' instantiates files from templates according to the
22661 current configuration.
22663 Usage: $0 [OPTIONS] [FILE]...
22665 -h, --help print this help, then exit
22666 -V, --version print version number, then exit
22667 -q, --quiet do not print progress messages
22668 -d, --debug don't remove temporary files
22669 --recheck update $as_me by reconfiguring in the same conditions
22670 --file=FILE[:TEMPLATE]
22671 instantiate the configuration file FILE
22672 --header=FILE[:TEMPLATE]
22673 instantiate the configuration header FILE
22675 Configuration files:
22676 $config_files
22678 Configuration headers:
22679 $config_headers
22681 Report bugs to <bug-autoconf@gnu.org>."
22682 _ACEOF
22684 cat >>$CONFIG_STATUS <<_ACEOF
22685 ac_cs_version="\\
22686 python config.status 2.5
22687 configured by $0, generated by GNU Autoconf 2.59,
22688 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22690 Copyright (C) 2003 Free Software Foundation, Inc.
22691 This config.status script is free software; the Free Software Foundation
22692 gives unlimited permission to copy, distribute and modify it."
22693 srcdir=$srcdir
22694 INSTALL="$INSTALL"
22695 _ACEOF
22697 cat >>$CONFIG_STATUS <<\_ACEOF
22698 # If no file are specified by the user, then we need to provide default
22699 # value. By we need to know if files were specified by the user.
22700 ac_need_defaults=:
22701 while test $# != 0
22703 case $1 in
22704 --*=*)
22705 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22706 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22707 ac_shift=:
22710 ac_option=$1
22711 ac_optarg=$2
22712 ac_shift=shift
22714 *) # This is not an option, so the user has probably given explicit
22715 # arguments.
22716 ac_option=$1
22717 ac_need_defaults=false;;
22718 esac
22720 case $ac_option in
22721 # Handling of the options.
22722 _ACEOF
22723 cat >>$CONFIG_STATUS <<\_ACEOF
22724 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22725 ac_cs_recheck=: ;;
22726 --version | --vers* | -V )
22727 echo "$ac_cs_version"; exit 0 ;;
22728 --he | --h)
22729 # Conflict between --help and --header
22730 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22731 Try \`$0 --help' for more information." >&5
22732 echo "$as_me: error: ambiguous option: $1
22733 Try \`$0 --help' for more information." >&2;}
22734 { (exit 1); exit 1; }; };;
22735 --help | --hel | -h )
22736 echo "$ac_cs_usage"; exit 0 ;;
22737 --debug | --d* | -d )
22738 debug=: ;;
22739 --file | --fil | --fi | --f )
22740 $ac_shift
22741 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22742 ac_need_defaults=false;;
22743 --header | --heade | --head | --hea )
22744 $ac_shift
22745 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22746 ac_need_defaults=false;;
22747 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22748 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22749 ac_cs_silent=: ;;
22751 # This is an error.
22752 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22753 Try \`$0 --help' for more information." >&5
22754 echo "$as_me: error: unrecognized option: $1
22755 Try \`$0 --help' for more information." >&2;}
22756 { (exit 1); exit 1; }; } ;;
22758 *) ac_config_targets="$ac_config_targets $1" ;;
22760 esac
22761 shift
22762 done
22764 ac_configure_extra_args=
22766 if $ac_cs_silent; then
22767 exec 6>/dev/null
22768 ac_configure_extra_args="$ac_configure_extra_args --silent"
22771 _ACEOF
22772 cat >>$CONFIG_STATUS <<_ACEOF
22773 if \$ac_cs_recheck; then
22774 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22775 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22778 _ACEOF
22784 cat >>$CONFIG_STATUS <<\_ACEOF
22785 for ac_config_target in $ac_config_targets
22787 case "$ac_config_target" in
22788 # Handling of arguments.
22789 "Mac/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
22790 "Mac/PythonLauncher/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
22791 "Mac/IDLE/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
22792 "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
22793 "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
22794 "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
22795 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22796 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22797 { (exit 1); exit 1; }; };;
22798 esac
22799 done
22801 # If the user did not use the arguments to specify the items to instantiate,
22802 # then the envvar interface is used. Set only those that are not.
22803 # We use the long form for the default assignment because of an extremely
22804 # bizarre bug on SunOS 4.1.3.
22805 if $ac_need_defaults; then
22806 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22807 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22810 # Have a temporary directory for convenience. Make it in the build tree
22811 # simply because there is no reason to put it here, and in addition,
22812 # creating and moving files from /tmp can sometimes cause problems.
22813 # Create a temporary directory, and hook for its removal unless debugging.
22814 $debug ||
22816 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22817 trap '{ (exit 1); exit 1; }' 1 2 13 15
22820 # Create a (secure) tmp directory for tmp files.
22823 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22824 test -n "$tmp" && test -d "$tmp"
22825 } ||
22827 tmp=./confstat$$-$RANDOM
22828 (umask 077 && mkdir $tmp)
22829 } ||
22831 echo "$me: cannot create a temporary directory in ." >&2
22832 { (exit 1); exit 1; }
22835 _ACEOF
22837 cat >>$CONFIG_STATUS <<_ACEOF
22840 # CONFIG_FILES section.
22843 # No need to generate the scripts if there are no CONFIG_FILES.
22844 # This happens for instance when ./config.status config.h
22845 if test -n "\$CONFIG_FILES"; then
22846 # Protect against being on the right side of a sed subst in config.status.
22847 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22848 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22849 s,@SHELL@,$SHELL,;t t
22850 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22851 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22852 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22853 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22854 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22855 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22856 s,@exec_prefix@,$exec_prefix,;t t
22857 s,@prefix@,$prefix,;t t
22858 s,@program_transform_name@,$program_transform_name,;t t
22859 s,@bindir@,$bindir,;t t
22860 s,@sbindir@,$sbindir,;t t
22861 s,@libexecdir@,$libexecdir,;t t
22862 s,@datadir@,$datadir,;t t
22863 s,@sysconfdir@,$sysconfdir,;t t
22864 s,@sharedstatedir@,$sharedstatedir,;t t
22865 s,@localstatedir@,$localstatedir,;t t
22866 s,@libdir@,$libdir,;t t
22867 s,@includedir@,$includedir,;t t
22868 s,@oldincludedir@,$oldincludedir,;t t
22869 s,@infodir@,$infodir,;t t
22870 s,@mandir@,$mandir,;t t
22871 s,@build_alias@,$build_alias,;t t
22872 s,@host_alias@,$host_alias,;t t
22873 s,@target_alias@,$target_alias,;t t
22874 s,@DEFS@,$DEFS,;t t
22875 s,@ECHO_C@,$ECHO_C,;t t
22876 s,@ECHO_N@,$ECHO_N,;t t
22877 s,@ECHO_T@,$ECHO_T,;t t
22878 s,@LIBS@,$LIBS,;t t
22879 s,@VERSION@,$VERSION,;t t
22880 s,@SOVERSION@,$SOVERSION,;t t
22881 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
22882 s,@UNIVERSALSDK@,$UNIVERSALSDK,;t t
22883 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
22884 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
22885 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
22886 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
22887 s,@FRAMEWORKINSTALLFIRST@,$FRAMEWORKINSTALLFIRST,;t t
22888 s,@FRAMEWORKINSTALLLAST@,$FRAMEWORKINSTALLLAST,;t t
22889 s,@FRAMEWORKALTINSTALLFIRST@,$FRAMEWORKALTINSTALLFIRST,;t t
22890 s,@FRAMEWORKALTINSTALLLAST@,$FRAMEWORKALTINSTALLLAST,;t t
22891 s,@FRAMEWORKUNIXTOOLSPREFIX@,$FRAMEWORKUNIXTOOLSPREFIX,;t t
22892 s,@MACHDEP@,$MACHDEP,;t t
22893 s,@SGI_ABI@,$SGI_ABI,;t t
22894 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
22895 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
22896 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
22897 s,@EXPORT_MACOSX_DEPLOYMENT_TARGET@,$EXPORT_MACOSX_DEPLOYMENT_TARGET,;t t
22898 s,@CC@,$CC,;t t
22899 s,@CFLAGS@,$CFLAGS,;t t
22900 s,@LDFLAGS@,$LDFLAGS,;t t
22901 s,@CPPFLAGS@,$CPPFLAGS,;t t
22902 s,@ac_ct_CC@,$ac_ct_CC,;t t
22903 s,@EXEEXT@,$EXEEXT,;t t
22904 s,@OBJEXT@,$OBJEXT,;t t
22905 s,@CXX@,$CXX,;t t
22906 s,@MAINCC@,$MAINCC,;t t
22907 s,@CPP@,$CPP,;t t
22908 s,@EGREP@,$EGREP,;t t
22909 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
22910 s,@LIBRARY@,$LIBRARY,;t t
22911 s,@LDLIBRARY@,$LDLIBRARY,;t t
22912 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
22913 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
22914 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
22915 s,@INSTSONAME@,$INSTSONAME,;t t
22916 s,@RUNSHARED@,$RUNSHARED,;t t
22917 s,@LINKCC@,$LINKCC,;t t
22918 s,@RANLIB@,$RANLIB,;t t
22919 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22920 s,@AR@,$AR,;t t
22921 s,@SVNVERSION@,$SVNVERSION,;t t
22922 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22923 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22924 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22925 s,@LN@,$LN,;t t
22926 s,@OPT@,$OPT,;t t
22927 s,@BASECFLAGS@,$BASECFLAGS,;t t
22928 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
22929 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
22930 s,@SO@,$SO,;t t
22931 s,@LDSHARED@,$LDSHARED,;t t
22932 s,@BLDSHARED@,$BLDSHARED,;t t
22933 s,@CCSHARED@,$CCSHARED,;t t
22934 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
22935 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
22936 s,@SHLIBS@,$SHLIBS,;t t
22937 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
22938 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
22939 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
22940 s,@LDLAST@,$LDLAST,;t t
22941 s,@THREADOBJ@,$THREADOBJ,;t t
22942 s,@DLINCLDIR@,$DLINCLDIR,;t t
22943 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
22944 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
22945 s,@TRUE@,$TRUE,;t t
22946 s,@LIBOBJS@,$LIBOBJS,;t t
22947 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
22948 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
22949 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
22950 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
22951 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
22952 s,@LIBM@,$LIBM,;t t
22953 s,@LIBC@,$LIBC,;t t
22954 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
22955 s,@THREADHEADERS@,$THREADHEADERS,;t t
22956 s,@SRCDIRS@,$SRCDIRS,;t t
22957 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22958 CEOF
22960 _ACEOF
22962 cat >>$CONFIG_STATUS <<\_ACEOF
22963 # Split the substitutions into bite-sized pieces for seds with
22964 # small command number limits, like on Digital OSF/1 and HP-UX.
22965 ac_max_sed_lines=48
22966 ac_sed_frag=1 # Number of current file.
22967 ac_beg=1 # First line for current file.
22968 ac_end=$ac_max_sed_lines # Line after last line for current file.
22969 ac_more_lines=:
22970 ac_sed_cmds=
22971 while $ac_more_lines; do
22972 if test $ac_beg -gt 1; then
22973 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22974 else
22975 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22977 if test ! -s $tmp/subs.frag; then
22978 ac_more_lines=false
22979 else
22980 # The purpose of the label and of the branching condition is to
22981 # speed up the sed processing (if there are no `@' at all, there
22982 # is no need to browse any of the substitutions).
22983 # These are the two extra sed commands mentioned above.
22984 (echo ':t
22985 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22986 if test -z "$ac_sed_cmds"; then
22987 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22988 else
22989 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22991 ac_sed_frag=`expr $ac_sed_frag + 1`
22992 ac_beg=$ac_end
22993 ac_end=`expr $ac_end + $ac_max_sed_lines`
22995 done
22996 if test -z "$ac_sed_cmds"; then
22997 ac_sed_cmds=cat
22999 fi # test -n "$CONFIG_FILES"
23001 _ACEOF
23002 cat >>$CONFIG_STATUS <<\_ACEOF
23003 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23004 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23005 case $ac_file in
23006 - | *:- | *:-:* ) # input from stdin
23007 cat >$tmp/stdin
23008 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23009 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23010 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23011 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23012 * ) ac_file_in=$ac_file.in ;;
23013 esac
23015 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23016 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23017 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23018 X"$ac_file" : 'X\(//\)[^/]' \| \
23019 X"$ac_file" : 'X\(//\)$' \| \
23020 X"$ac_file" : 'X\(/\)' \| \
23021 . : '\(.\)' 2>/dev/null ||
23022 echo X"$ac_file" |
23023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23024 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23025 /^X\(\/\/\)$/{ s//\1/; q; }
23026 /^X\(\/\).*/{ s//\1/; q; }
23027 s/.*/./; q'`
23028 { if $as_mkdir_p; then
23029 mkdir -p "$ac_dir"
23030 else
23031 as_dir="$ac_dir"
23032 as_dirs=
23033 while test ! -d "$as_dir"; do
23034 as_dirs="$as_dir $as_dirs"
23035 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23036 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23037 X"$as_dir" : 'X\(//\)[^/]' \| \
23038 X"$as_dir" : 'X\(//\)$' \| \
23039 X"$as_dir" : 'X\(/\)' \| \
23040 . : '\(.\)' 2>/dev/null ||
23041 echo X"$as_dir" |
23042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23043 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23044 /^X\(\/\/\)$/{ s//\1/; q; }
23045 /^X\(\/\).*/{ s//\1/; q; }
23046 s/.*/./; q'`
23047 done
23048 test ! -n "$as_dirs" || mkdir $as_dirs
23049 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23050 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23051 { (exit 1); exit 1; }; }; }
23053 ac_builddir=.
23055 if test "$ac_dir" != .; then
23056 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23057 # A "../" for each directory in $ac_dir_suffix.
23058 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23059 else
23060 ac_dir_suffix= ac_top_builddir=
23063 case $srcdir in
23064 .) # No --srcdir option. We are building in place.
23065 ac_srcdir=.
23066 if test -z "$ac_top_builddir"; then
23067 ac_top_srcdir=.
23068 else
23069 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23070 fi ;;
23071 [\\/]* | ?:[\\/]* ) # Absolute path.
23072 ac_srcdir=$srcdir$ac_dir_suffix;
23073 ac_top_srcdir=$srcdir ;;
23074 *) # Relative path.
23075 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23076 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23077 esac
23079 # Do not use `cd foo && pwd` to compute absolute paths, because
23080 # the directories may not exist.
23081 case `pwd` in
23082 .) ac_abs_builddir="$ac_dir";;
23084 case "$ac_dir" in
23085 .) ac_abs_builddir=`pwd`;;
23086 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23087 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23088 esac;;
23089 esac
23090 case $ac_abs_builddir in
23091 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23093 case ${ac_top_builddir}. in
23094 .) ac_abs_top_builddir=$ac_abs_builddir;;
23095 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23096 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23097 esac;;
23098 esac
23099 case $ac_abs_builddir in
23100 .) ac_abs_srcdir=$ac_srcdir;;
23102 case $ac_srcdir in
23103 .) ac_abs_srcdir=$ac_abs_builddir;;
23104 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23105 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23106 esac;;
23107 esac
23108 case $ac_abs_builddir in
23109 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23111 case $ac_top_srcdir in
23112 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23113 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23114 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23115 esac;;
23116 esac
23119 case $INSTALL in
23120 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23121 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23122 esac
23124 if test x"$ac_file" != x-; then
23125 { echo "$as_me:$LINENO: creating $ac_file" >&5
23126 echo "$as_me: creating $ac_file" >&6;}
23127 rm -f "$ac_file"
23129 # Let's still pretend it is `configure' which instantiates (i.e., don't
23130 # use $as_me), people would be surprised to read:
23131 # /* config.h. Generated by config.status. */
23132 if test x"$ac_file" = x-; then
23133 configure_input=
23134 else
23135 configure_input="$ac_file. "
23137 configure_input=$configure_input"Generated from `echo $ac_file_in |
23138 sed 's,.*/,,'` by configure."
23140 # First look for the input files in the build tree, otherwise in the
23141 # src tree.
23142 ac_file_inputs=`IFS=:
23143 for f in $ac_file_in; do
23144 case $f in
23145 -) echo $tmp/stdin ;;
23146 [\\/$]*)
23147 # Absolute (can't be DOS-style, as IFS=:)
23148 test -f "$f" || { { 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 echo "$f";;
23152 *) # Relative
23153 if test -f "$f"; then
23154 # Build tree
23155 echo "$f"
23156 elif test -f "$srcdir/$f"; then
23157 # Source tree
23158 echo "$srcdir/$f"
23159 else
23160 # /dev/null tree
23161 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23162 echo "$as_me: error: cannot find input file: $f" >&2;}
23163 { (exit 1); exit 1; }; }
23164 fi;;
23165 esac
23166 done` || { (exit 1); exit 1; }
23167 _ACEOF
23168 cat >>$CONFIG_STATUS <<_ACEOF
23169 sed "$ac_vpsub
23170 $extrasub
23171 _ACEOF
23172 cat >>$CONFIG_STATUS <<\_ACEOF
23174 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23175 s,@configure_input@,$configure_input,;t t
23176 s,@srcdir@,$ac_srcdir,;t t
23177 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23178 s,@top_srcdir@,$ac_top_srcdir,;t t
23179 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23180 s,@builddir@,$ac_builddir,;t t
23181 s,@abs_builddir@,$ac_abs_builddir,;t t
23182 s,@top_builddir@,$ac_top_builddir,;t t
23183 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23184 s,@INSTALL@,$ac_INSTALL,;t t
23185 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23186 rm -f $tmp/stdin
23187 if test x"$ac_file" != x-; then
23188 mv $tmp/out $ac_file
23189 else
23190 cat $tmp/out
23191 rm -f $tmp/out
23194 done
23195 _ACEOF
23196 cat >>$CONFIG_STATUS <<\_ACEOF
23199 # CONFIG_HEADER section.
23202 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23203 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23205 # ac_d sets the value in "#define NAME VALUE" lines.
23206 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23207 ac_dB='[ ].*$,\1#\2'
23208 ac_dC=' '
23209 ac_dD=',;t'
23210 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23211 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23212 ac_uB='$,\1#\2define\3'
23213 ac_uC=' '
23214 ac_uD=',;t'
23216 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23217 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23218 case $ac_file in
23219 - | *:- | *:-:* ) # input from stdin
23220 cat >$tmp/stdin
23221 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23222 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23223 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23224 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23225 * ) ac_file_in=$ac_file.in ;;
23226 esac
23228 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23229 echo "$as_me: creating $ac_file" >&6;}
23231 # First look for the input files in the build tree, otherwise in the
23232 # src tree.
23233 ac_file_inputs=`IFS=:
23234 for f in $ac_file_in; do
23235 case $f in
23236 -) echo $tmp/stdin ;;
23237 [\\/$]*)
23238 # Absolute (can't be DOS-style, as IFS=:)
23239 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23240 echo "$as_me: error: cannot find input file: $f" >&2;}
23241 { (exit 1); exit 1; }; }
23242 # Do quote $f, to prevent DOS paths from being IFS'd.
23243 echo "$f";;
23244 *) # Relative
23245 if test -f "$f"; then
23246 # Build tree
23247 echo "$f"
23248 elif test -f "$srcdir/$f"; then
23249 # Source tree
23250 echo "$srcdir/$f"
23251 else
23252 # /dev/null tree
23253 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23254 echo "$as_me: error: cannot find input file: $f" >&2;}
23255 { (exit 1); exit 1; }; }
23256 fi;;
23257 esac
23258 done` || { (exit 1); exit 1; }
23259 # Remove the trailing spaces.
23260 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23262 _ACEOF
23264 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23265 # `conftest.undefs', that substitutes the proper values into
23266 # config.h.in to produce config.h. The first handles `#define'
23267 # templates, and the second `#undef' templates.
23268 # And first: Protect against being on the right side of a sed subst in
23269 # config.status. Protect against being in an unquoted here document
23270 # in config.status.
23271 rm -f conftest.defines conftest.undefs
23272 # Using a here document instead of a string reduces the quoting nightmare.
23273 # Putting comments in sed scripts is not portable.
23275 # `end' is used to avoid that the second main sed command (meant for
23276 # 0-ary CPP macros) applies to n-ary macro definitions.
23277 # See the Autoconf documentation for `clear'.
23278 cat >confdef2sed.sed <<\_ACEOF
23279 s/[\\&,]/\\&/g
23280 s,[\\$`],\\&,g
23281 t clear
23282 : clear
23283 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23284 t end
23285 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23286 : end
23287 _ACEOF
23288 # If some macros were called several times there might be several times
23289 # the same #defines, which is useless. Nevertheless, we may not want to
23290 # sort them, since we want the *last* AC-DEFINE to be honored.
23291 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23292 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23293 rm -f confdef2sed.sed
23295 # This sed command replaces #undef with comments. This is necessary, for
23296 # example, in the case of _POSIX_SOURCE, which is predefined and required
23297 # on some systems where configure will not decide to define it.
23298 cat >>conftest.undefs <<\_ACEOF
23299 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23300 _ACEOF
23302 # Break up conftest.defines because some shells have a limit on the size
23303 # of here documents, and old seds have small limits too (100 cmds).
23304 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23305 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23306 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23307 echo ' :' >>$CONFIG_STATUS
23308 rm -f conftest.tail
23309 while grep . conftest.defines >/dev/null
23311 # Write a limited-size here document to $tmp/defines.sed.
23312 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23313 # Speed up: don't consider the non `#define' lines.
23314 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23315 # Work around the forget-to-reset-the-flag bug.
23316 echo 't clr' >>$CONFIG_STATUS
23317 echo ': clr' >>$CONFIG_STATUS
23318 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23319 echo 'CEOF
23320 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23321 rm -f $tmp/in
23322 mv $tmp/out $tmp/in
23323 ' >>$CONFIG_STATUS
23324 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23325 rm -f conftest.defines
23326 mv conftest.tail conftest.defines
23327 done
23328 rm -f conftest.defines
23329 echo ' fi # grep' >>$CONFIG_STATUS
23330 echo >>$CONFIG_STATUS
23332 # Break up conftest.undefs because some shells have a limit on the size
23333 # of here documents, and old seds have small limits too (100 cmds).
23334 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23335 rm -f conftest.tail
23336 while grep . conftest.undefs >/dev/null
23338 # Write a limited-size here document to $tmp/undefs.sed.
23339 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23340 # Speed up: don't consider the non `#undef'
23341 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23342 # Work around the forget-to-reset-the-flag bug.
23343 echo 't clr' >>$CONFIG_STATUS
23344 echo ': clr' >>$CONFIG_STATUS
23345 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23346 echo 'CEOF
23347 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23348 rm -f $tmp/in
23349 mv $tmp/out $tmp/in
23350 ' >>$CONFIG_STATUS
23351 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23352 rm -f conftest.undefs
23353 mv conftest.tail conftest.undefs
23354 done
23355 rm -f conftest.undefs
23357 cat >>$CONFIG_STATUS <<\_ACEOF
23358 # Let's still pretend it is `configure' which instantiates (i.e., don't
23359 # use $as_me), people would be surprised to read:
23360 # /* config.h. Generated by config.status. */
23361 if test x"$ac_file" = x-; then
23362 echo "/* Generated by configure. */" >$tmp/config.h
23363 else
23364 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23366 cat $tmp/in >>$tmp/config.h
23367 rm -f $tmp/in
23368 if test x"$ac_file" != x-; then
23369 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23370 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23371 echo "$as_me: $ac_file is unchanged" >&6;}
23372 else
23373 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23374 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23375 X"$ac_file" : 'X\(//\)[^/]' \| \
23376 X"$ac_file" : 'X\(//\)$' \| \
23377 X"$ac_file" : 'X\(/\)' \| \
23378 . : '\(.\)' 2>/dev/null ||
23379 echo X"$ac_file" |
23380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23381 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23382 /^X\(\/\/\)$/{ s//\1/; q; }
23383 /^X\(\/\).*/{ s//\1/; q; }
23384 s/.*/./; q'`
23385 { if $as_mkdir_p; then
23386 mkdir -p "$ac_dir"
23387 else
23388 as_dir="$ac_dir"
23389 as_dirs=
23390 while test ! -d "$as_dir"; do
23391 as_dirs="$as_dir $as_dirs"
23392 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23393 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23394 X"$as_dir" : 'X\(//\)[^/]' \| \
23395 X"$as_dir" : 'X\(//\)$' \| \
23396 X"$as_dir" : 'X\(/\)' \| \
23397 . : '\(.\)' 2>/dev/null ||
23398 echo X"$as_dir" |
23399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23400 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23401 /^X\(\/\/\)$/{ s//\1/; q; }
23402 /^X\(\/\).*/{ s//\1/; q; }
23403 s/.*/./; q'`
23404 done
23405 test ! -n "$as_dirs" || mkdir $as_dirs
23406 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23407 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23408 { (exit 1); exit 1; }; }; }
23410 rm -f $ac_file
23411 mv $tmp/config.h $ac_file
23413 else
23414 cat $tmp/config.h
23415 rm -f $tmp/config.h
23417 done
23418 _ACEOF
23420 cat >>$CONFIG_STATUS <<\_ACEOF
23422 { (exit 0); exit 0; }
23423 _ACEOF
23424 chmod +x $CONFIG_STATUS
23425 ac_clean_files=$ac_clean_files_save
23428 # configure is writing to config.log, and then calls config.status.
23429 # config.status does its own redirection, appending to config.log.
23430 # Unfortunately, on DOS this fails, as config.log is still kept open
23431 # by configure, so config.status won't be able to write to it; its
23432 # output is simply discarded. So we exec the FD to /dev/null,
23433 # effectively closing config.log, so it can be properly (re)opened and
23434 # appended to by config.status. When coming back to configure, we
23435 # need to make the FD available again.
23436 if test "$no_create" != yes; then
23437 ac_cs_success=:
23438 ac_config_status_args=
23439 test "$silent" = yes &&
23440 ac_config_status_args="$ac_config_status_args --quiet"
23441 exec 5>/dev/null
23442 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23443 exec 5>>config.log
23444 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23445 # would make configure fail if this is the last instruction.
23446 $ac_cs_success || { (exit 1); exit 1; }
23450 echo "creating Modules/Setup"
23451 if test ! -f Modules/Setup
23452 then
23453 cp $srcdir/Modules/Setup.dist Modules/Setup
23456 echo "creating Modules/Setup.local"
23457 if test ! -f Modules/Setup.local
23458 then
23459 echo "# Edit this file for local setup changes" >Modules/Setup.local
23462 echo "creating Makefile"
23463 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
23464 -s Modules Modules/Setup.config \
23465 Modules/Setup.local Modules/Setup
23466 mv config.c Modules