Instead of doing a make test, run the regression tests out of the installed
[python.git] / configure
blob7098f5f5ec43b4e6b2d121c1c66fc229461b2c2c
1 #! /bin/sh
2 # From configure.in Revision: .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for python 2.5.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
25 DUALCASE=1; export DUALCASE # for MKS sh
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29 as_unset=unset
30 else
31 as_unset=false
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
41 # NLS nuisances.
42 for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
52 done
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57 else
58 as_expr=false
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63 else
64 as_basename=false
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
99 rm -f conf$$.sh
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155 done
157 esac
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199 else
200 as_expr=false
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216 else
217 as_ln_s='cp -p'
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223 else
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
228 as_executable_p="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
241 IFS=" $as_nl"
243 # CDPATH.
244 $as_unset CDPATH
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252 exec 6>&1
255 # Initializations.
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
270 # Identity of this package.
271 PACKAGE_NAME='python'
272 PACKAGE_TARNAME='python'
273 PACKAGE_VERSION='2.5'
274 PACKAGE_STRING='python 2.5'
275 PACKAGE_BUGREPORT='http://www.python.org/python-bugs'
277 ac_unique_file="Include/object.h"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 # include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 # include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 # include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
315 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION SOVERSION CONFIG_ARGS UNIVERSALSDK PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR FRAMEWORKINSTALLFIRST FRAMEWORKINSTALLLAST FRAMEWORKALTINSTALLFIRST FRAMEWORKALTINSTALLLAST FRAMEWORKUNIXTOOLSPREFIX MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET EXPORT_MACOSX_DEPLOYMENT_TARGET CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX MAINCC CPP EGREP BUILDEXEEXT LIBRARY LDLIBRARY DLLLIBRARY BLDLIBRARY LDLIBRARYDIR INSTSONAME RUNSHARED LINKCC RANLIB ac_ct_RANLIB AR SVNVERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN OPT BASECFLAGS OTHER_LIBTOOL_OPT LIBTOOL_CRUFT SO LDSHARED BLDSHARED CCSHARED LINKFORSHARED CFLAGSFORSHARED SHLIBS USE_SIGNAL_MODULE SIGNAL_OBJS USE_THREAD_MODULE LDLAST THREADOBJ DLINCLDIR DYNLOADFILE MACHDEP_OBJS TRUE LIBOBJS HAVE_GETHOSTBYNAME_R_6_ARG HAVE_GETHOSTBYNAME_R_5_ARG HAVE_GETHOSTBYNAME_R_3_ARG HAVE_GETHOSTBYNAME_R HAVE_GETHOSTBYNAME LIBM LIBC UNICODE_OBJS THREADHEADERS SRCDIRS LTLIBOBJS'
316 ac_subst_files=''
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
356 ac_prev=
357 for ac_option
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
370 case $ac_option in
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
389 --config-cache | -C)
390 cache_file=config.cache ;;
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 esac
653 done
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670 done
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682 done
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705 test "$silent" = yes && exec 6>/dev/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r "$srcdir/$ac_unique_file"; then
726 srcdir=..
728 else
729 ac_srcdir_defaulted=no
731 if test ! -r "$srcdir/$ac_unique_file"; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r "./$ac_unique_file") 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
778 # Report the --help message.
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
783 cat <<_ACEOF
784 \`configure' configures python 2.5 to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
793 Configuration:
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 _ACEOF
806 cat <<_ACEOF
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
809 [$ac_default_prefix]
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 [PREFIX]
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
833 _ACEOF
835 cat <<\_ACEOF
836 _ACEOF
839 if test -n "$ac_init_help"; then
840 case $ac_init_help in
841 short | recursive ) echo "Configuration of python 2.5:";;
842 esac
843 cat <<\_ACEOF
845 Optional Features:
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --enable-universalsdk[SDKDIR]
849 Build agains Mac OS X 10.4u SDK (ppc/i386)
850 --enable-framework[=INSTALLDIR]
851 Build (MacOSX|Darwin) framework
852 --enable-shared disable/enable building shared python library
853 --enable-profiling enable C-level code profiling
854 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
855 --enable-ipv6 Enable ipv6 (with ipv4) support
856 --disable-ipv6 Disable ipv6 support
857 --enable-unicode[=ucs[24]]
858 Enable Unicode strings (default is yes)
860 Optional Packages:
861 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
862 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
863 --without-gcc never use gcc
864 --with-cxx-main=<compiler>
865 compile main() and link python executable with C++
866 compiler
867 --with-suffix=.exe set executable suffix
868 --with-pydebug build with Py_DEBUG defined
869 --with-libs='lib1 ...' link against additional libs
870 --with-system-ffi build _ctypes module using an installed ffi library
871 --with-signal-module disable/enable signal module
872 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
873 --with(out)-threads[=DIRECTORY]
874 disable/enable thread support
875 --with(out)-thread[=DIRECTORY]
876 deprecated; use --with(out)-threads
877 --with-pth use GNU pth threading libraries
878 --with(out)-doc-strings disable/enable documentation strings
879 --with(out)-tsc enable/disable timestamp counter profile
880 --with(out)-pymalloc disable/enable specialized mallocs
881 --with-wctype-functions use wctype.h functions
882 --with-fpectl enable SIGFPE catching
883 --with-libm=STRING math library
884 --with-libc=STRING C library
886 Some influential environment variables:
887 CC C compiler command
888 CFLAGS C compiler flags
889 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
890 nonstandard directory <lib dir>
891 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
892 headers in a nonstandard directory <include dir>
893 CPP C preprocessor
895 Use these variables to override the choices made by `configure' or to help
896 it to find libraries and programs with nonstandard names/locations.
898 Report bugs to <http://www.python.org/python-bugs>.
899 _ACEOF
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
904 ac_popdir=`pwd`
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
907 ac_builddir=.
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
913 else
914 ac_dir_suffix= ac_top_builddir=
917 case $srcdir in
918 .) # No --srcdir option. We are building in place.
919 ac_srcdir=.
920 if test -z "$ac_top_builddir"; then
921 ac_top_srcdir=.
922 else
923 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
924 fi ;;
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
928 *) # Relative path.
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
931 esac
933 # Do not use `cd foo && pwd` to compute absolute paths, because
934 # the directories may not exist.
935 case `pwd` in
936 .) ac_abs_builddir="$ac_dir";;
938 case "$ac_dir" in
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
942 esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
951 esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
956 case $ac_srcdir in
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
960 esac;;
961 esac
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 esac;;
970 esac
972 cd $ac_dir
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
975 echo
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
978 echo
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
982 echo
983 $ac_configure --help
984 else
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987 cd $ac_popdir
988 done
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
993 cat <<\_ACEOF
994 python configure 2.5
995 generated by GNU Autoconf 2.59
997 Copyright (C) 2003 Free Software Foundation, Inc.
998 This configure script is free software; the Free Software Foundation
999 gives unlimited permission to copy, distribute and modify it.
1000 _ACEOF
1001 exit 0
1003 exec 5>config.log
1004 cat >&5 <<_ACEOF
1005 This file contains any messages produced by compilers while
1006 running configure, to aid debugging if configure makes a mistake.
1008 It was created by python $as_me 2.5, which was
1009 generated by GNU Autoconf 2.59. Invocation command line was
1011 $ $0 $@
1013 _ACEOF
1015 cat <<_ASUNAME
1016 ## --------- ##
1017 ## Platform. ##
1018 ## --------- ##
1020 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1021 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1022 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1023 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1024 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1026 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1027 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1029 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1030 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1031 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1032 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1033 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1034 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1035 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1037 _ASUNAME
1039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040 for as_dir in $PATH
1042 IFS=$as_save_IFS
1043 test -z "$as_dir" && as_dir=.
1044 echo "PATH: $as_dir"
1045 done
1047 } >&5
1049 cat >&5 <<_ACEOF
1052 ## ----------- ##
1053 ## Core tests. ##
1054 ## ----------- ##
1056 _ACEOF
1059 # Keep a trace of the command line.
1060 # Strip out --no-create and --no-recursion so they do not pile up.
1061 # Strip out --silent because we don't want to record it for future runs.
1062 # Also quote any args containing shell meta-characters.
1063 # Make two passes to allow for proper duplicate-argument suppression.
1064 ac_configure_args=
1065 ac_configure_args0=
1066 ac_configure_args1=
1067 ac_sep=
1068 ac_must_keep_next=false
1069 for ac_pass in 1 2
1071 for ac_arg
1073 case $ac_arg in
1074 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1077 continue ;;
1078 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1080 esac
1081 case $ac_pass in
1082 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1084 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085 if test $ac_must_keep_next = true; then
1086 ac_must_keep_next=false # Got value, back to normal.
1087 else
1088 case $ac_arg in
1089 *=* | --config-cache | -C | -disable-* | --disable-* \
1090 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092 | -with-* | --with-* | -without-* | --without-* | --x)
1093 case "$ac_configure_args0 " in
1094 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095 esac
1097 -* ) ac_must_keep_next=true ;;
1098 esac
1100 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101 # Get rid of the leading space.
1102 ac_sep=" "
1104 esac
1105 done
1106 done
1107 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1110 # When interrupted or exit'd, cleanup temporary files, and complete
1111 # config.log. We remove comments because anyway the quotes in there
1112 # would cause problems or look ugly.
1113 # WARNING: Be sure not to use single quotes in there, as some shells,
1114 # such as our DU 5.0 friend, will then `close' the trap.
1115 trap 'exit_status=$?
1116 # Save into config.log some information that might help in debugging.
1118 echo
1120 cat <<\_ASBOX
1121 ## ---------------- ##
1122 ## Cache variables. ##
1123 ## ---------------- ##
1124 _ASBOX
1125 echo
1126 # The following way of writing the cache mishandles newlines in values,
1128 (set) 2>&1 |
1129 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130 *ac_space=\ *)
1131 sed -n \
1132 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136 sed -n \
1137 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139 esac;
1141 echo
1143 cat <<\_ASBOX
1144 ## ----------------- ##
1145 ## Output variables. ##
1146 ## ----------------- ##
1147 _ASBOX
1148 echo
1149 for ac_var in $ac_subst_vars
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1153 done | sort
1154 echo
1156 if test -n "$ac_subst_files"; then
1157 cat <<\_ASBOX
1158 ## ------------- ##
1159 ## Output files. ##
1160 ## ------------- ##
1161 _ASBOX
1162 echo
1163 for ac_var in $ac_subst_files
1165 eval ac_val=$`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1167 done | sort
1168 echo
1171 if test -s confdefs.h; then
1172 cat <<\_ASBOX
1173 ## ----------- ##
1174 ## confdefs.h. ##
1175 ## ----------- ##
1176 _ASBOX
1177 echo
1178 sed "/^$/d" confdefs.h | sort
1179 echo
1181 test "$ac_signal" != 0 &&
1182 echo "$as_me: caught signal $ac_signal"
1183 echo "$as_me: exit $exit_status"
1184 } >&5
1185 rm -f core *.core &&
1186 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1187 exit $exit_status
1189 for ac_signal in 1 2 13 15; do
1190 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191 done
1192 ac_signal=0
1194 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1195 rm -rf conftest* confdefs.h
1196 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1197 echo >confdefs.h
1199 # Predefined preprocessor variables.
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_NAME "$PACKAGE_NAME"
1203 _ACEOF
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208 _ACEOF
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1213 _ACEOF
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_STRING "$PACKAGE_STRING"
1218 _ACEOF
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223 _ACEOF
1226 # Let the site file select an alternate cache file if it wants to.
1227 # Prefer explicitly selected file to automatically selected ones.
1228 if test -z "$CONFIG_SITE"; then
1229 if test "x$prefix" != xNONE; then
1230 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1231 else
1232 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235 for ac_site_file in $CONFIG_SITE; do
1236 if test -r "$ac_site_file"; then
1237 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238 echo "$as_me: loading site script $ac_site_file" >&6;}
1239 sed 's/^/| /' "$ac_site_file" >&5
1240 . "$ac_site_file"
1242 done
1244 if test -r "$cache_file"; then
1245 # Some versions of bash will fail to source /dev/null (special
1246 # files actually), so we avoid doing that.
1247 if test -f "$cache_file"; then
1248 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249 echo "$as_me: loading cache $cache_file" >&6;}
1250 case $cache_file in
1251 [\\/]* | ?:[\\/]* ) . $cache_file;;
1252 *) . ./$cache_file;;
1253 esac
1255 else
1256 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257 echo "$as_me: creating cache $cache_file" >&6;}
1258 >$cache_file
1261 # Check that the precious variables saved in the cache have kept the same
1262 # value.
1263 ac_cache_corrupted=false
1264 for ac_var in `(set) 2>&1 |
1265 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1266 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267 eval ac_new_set=\$ac_env_${ac_var}_set
1268 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269 eval ac_new_val="\$ac_env_${ac_var}_value"
1270 case $ac_old_set,$ac_new_set in
1271 set,)
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1274 ac_cache_corrupted=: ;;
1275 ,set)
1276 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1277 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278 ac_cache_corrupted=: ;;
1279 ,);;
1281 if test "x$ac_old_val" != "x$ac_new_val"; then
1282 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1283 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1284 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1285 echo "$as_me: former value: $ac_old_val" >&2;}
1286 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1287 echo "$as_me: current value: $ac_new_val" >&2;}
1288 ac_cache_corrupted=:
1289 fi;;
1290 esac
1291 # Pass precious variables to config.status.
1292 if test "$ac_new_set" = set; then
1293 case $ac_new_val in
1294 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1296 *) ac_arg=$ac_var=$ac_new_val ;;
1297 esac
1298 case " $ac_configure_args " in
1299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1300 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1301 esac
1303 done
1304 if $ac_cache_corrupted; then
1305 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1308 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309 { (exit 1); exit 1; }; }
1312 ac_ext=c
1313 ac_cpp='$CPP $CPPFLAGS'
1314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1345 ac_config_headers="$ac_config_headers pyconfig.h"
1353 # We don't use PACKAGE_ variables, and they cause conflicts
1354 # with other autoconf-based packages that include Python.h
1355 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1356 rm confdefs.h
1357 mv confdefs.h.new confdefs.h
1360 VERSION=2.5
1363 SOVERSION=1.0
1365 # The later defininition of _XOPEN_SOURCE disables certain features
1366 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1368 cat >>confdefs.h <<\_ACEOF
1369 #define _GNU_SOURCE 1
1370 _ACEOF
1373 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1374 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1375 # them.
1377 cat >>confdefs.h <<\_ACEOF
1378 #define _NETBSD_SOURCE 1
1379 _ACEOF
1382 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1383 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1384 # them.
1386 cat >>confdefs.h <<\_ACEOF
1387 #define __BSD_VISIBLE 1
1388 _ACEOF
1391 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1392 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1394 cat >>confdefs.h <<\_ACEOF
1395 #define _BSD_TYPES 1
1396 _ACEOF
1399 define_xopen_source=yes
1401 # Arguments passed to configure.
1403 CONFIG_ARGS="$ac_configure_args"
1405 # Check whether --enable-universalsdk or --disable-universalsdk was given.
1406 if test "${enable_universalsdk+set}" = set; then
1407 enableval="$enable_universalsdk"
1409 case $enableval in
1410 yes)
1411 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1413 esac
1414 case $enableval in
1416 UNIVERSALSDK=
1417 enable_universalsdk=
1420 UNIVERSALSDK=$enableval
1422 esac
1424 else
1426 UNIVERSALSDK=
1427 enable_universalsdk=
1432 # Check whether --enable-framework or --disable-framework was given.
1433 if test "${enable_framework+set}" = set; then
1434 enableval="$enable_framework"
1436 case $enableval in
1437 yes)
1438 enableval=/Library/Frameworks
1439 esac
1440 case $enableval in
1442 PYTHONFRAMEWORK=
1443 PYTHONFRAMEWORKDIR=no-framework
1444 PYTHONFRAMEWORKPREFIX=
1445 PYTHONFRAMEWORKINSTALLDIR=
1446 FRAMEWORKINSTALLFIRST=
1447 FRAMEWORKINSTALLLAST=
1448 FRAMEWORKALTINSTALLFIRST=
1449 FRAMEWORKALTINSTALLLAST=
1450 if test "x${prefix}" = "xNONE"; then
1451 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1452 else
1453 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1455 enable_framework=
1458 PYTHONFRAMEWORK=Python
1459 PYTHONFRAMEWORKDIR=Python.framework
1460 PYTHONFRAMEWORKPREFIX=$enableval
1461 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1462 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1463 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1464 FRAMEWORKALTINSTALLFIRST="${FRAMEWORKINSTALLFIRST} bininstall maninstall"
1465 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1466 if test "x${prefix}" = "xNONE" ; then
1467 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1468 else
1469 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1471 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1473 # Add makefiles for Mac specific code to the list of output
1474 # files:
1475 ac_config_files="$ac_config_files Mac/Makefile"
1477 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1479 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
1481 esac
1483 else
1485 PYTHONFRAMEWORK=
1486 PYTHONFRAMEWORKDIR=no-framework
1487 PYTHONFRAMEWORKPREFIX=
1488 PYTHONFRAMEWORKINSTALLDIR=
1489 FRAMEWORKINSTALLFIRST=
1490 FRAMEWORKINSTALLLAST=
1491 FRAMEWORKALTINSTALLFIRST=
1492 FRAMEWORKALTINSTALLLAST=
1493 if test "x${prefix}" = "xNONE" ; then
1494 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1495 else
1496 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1498 enable_framework=
1511 ##AC_ARG_WITH(dyld,
1512 ## AC_HELP_STRING(--with-dyld,
1513 ## Use (OpenStep|Rhapsody) dynamic linker))
1515 # Set name for machine-dependent library files
1517 echo "$as_me:$LINENO: checking MACHDEP" >&5
1518 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1519 if test -z "$MACHDEP"
1520 then
1521 ac_sys_system=`uname -s`
1522 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1523 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1524 ac_sys_release=`uname -v`
1525 else
1526 ac_sys_release=`uname -r`
1528 ac_md_system=`echo $ac_sys_system |
1529 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1530 ac_md_release=`echo $ac_sys_release |
1531 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1532 MACHDEP="$ac_md_system$ac_md_release"
1534 case $MACHDEP in
1535 cygwin*) MACHDEP="cygwin";;
1536 darwin*) MACHDEP="darwin";;
1537 atheos*) MACHDEP="atheos";;
1538 irix646) MACHDEP="irix6";;
1539 '') MACHDEP="unknown";;
1540 esac
1543 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1544 # disable features if it is defined, without any means to access these
1545 # features as extensions. For these systems, we skip the definition of
1546 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1547 # some feature, make sure there is no alternative way to access this
1548 # feature. Also, when using wildcards, make sure you have verified the
1549 # need for not defining _XOPEN_SOURCE on all systems matching the
1550 # wildcard, and that the wildcard does not include future systems
1551 # (which may remove their limitations).
1552 case $ac_sys_system/$ac_sys_release in
1553 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1554 # even though select is a POSIX function. Reported by J. Ribbens.
1555 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1556 OpenBSD/2.* | OpenBSD/3.[0123456789])
1557 define_xopen_source=no;;
1558 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1559 # of union __?sigval. Reported by Stuart Bishop.
1560 SunOS/5.6)
1561 define_xopen_source=no;;
1562 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1563 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1564 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1565 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
1566 define_xopen_source=no;;
1567 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1568 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1569 SCO_SV/3.2)
1570 define_xopen_source=no;;
1571 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1572 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1573 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1574 # This should hopefully be fixed in FreeBSD 4.9
1575 FreeBSD/4.8* | Darwin/6* )
1576 define_xopen_source=no;;
1577 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1578 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1579 # or has another value. By not (re)defining it, the defaults come in place.
1580 AIX/4)
1581 define_xopen_source=no;;
1582 AIX/5)
1583 if test `uname -r` -eq 1; then
1584 define_xopen_source=no
1587 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1588 # disables platform specific features beyond repair.
1589 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1590 # has no effect, don't bother defining them
1591 Darwin/[78].*)
1592 define_xopen_source=no
1595 esac
1597 if test $define_xopen_source = yes
1598 then
1599 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1600 # defined precisely as g++ defines it
1601 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1602 # compiler
1603 case $ac_sys_system/$ac_sys_release in
1604 SunOS/5.8|SunOS/5.9|SunOS/5.10)
1606 cat >>confdefs.h <<\_ACEOF
1607 #define _XOPEN_SOURCE 500
1608 _ACEOF
1613 cat >>confdefs.h <<\_ACEOF
1614 #define _XOPEN_SOURCE 600
1615 _ACEOF
1618 esac
1620 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1621 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1622 # several APIs are not declared. Since this is also needed in some
1623 # cases for HP-UX, we define it globally.
1624 # except for Solaris 10, where it must not be defined,
1625 # as it implies XPG4.2
1626 case $ac_sys_system/$ac_sys_release in
1627 SunOS/5.10)
1631 cat >>confdefs.h <<\_ACEOF
1632 #define _XOPEN_SOURCE_EXTENDED 1
1633 _ACEOF
1636 esac
1639 cat >>confdefs.h <<\_ACEOF
1640 #define _POSIX_C_SOURCE 200112L
1641 _ACEOF
1647 # SGI compilers allow the specification of the both the ABI and the
1648 # ISA on the command line. Depending on the values of these switches,
1649 # different and often incompatable code will be generated.
1651 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1652 # thus supply support for various ABI/ISA combinations. The MACHDEP
1653 # variable is also adjusted.
1656 if test ! -z "$SGI_ABI"
1657 then
1658 CC="cc $SGI_ABI"
1659 LDFLAGS="$SGI_ABI $LDFLAGS"
1660 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1662 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1663 echo "${ECHO_T}$MACHDEP" >&6
1665 # And add extra plat-mac for darwin
1668 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1669 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1670 if test -z "$EXTRAPLATDIR"
1671 then
1672 case $MACHDEP in
1673 darwin)
1674 EXTRAPLATDIR="\$(PLATMACDIRS)"
1675 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
1678 EXTRAPLATDIR=""
1679 EXTRAMACHDEPPATH=""
1681 esac
1683 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1684 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1686 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1687 # it may influence the way we can build extensions, so distutils
1688 # needs to check it
1691 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
1692 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
1694 # checks for alternative programs
1696 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1697 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1698 # just to get things to compile and link. Users are free to override OPT
1699 # when running configure or make. The build should not break if they do.
1700 # BASECFLAGS should generally not be messed with, however.
1702 # XXX shouldn't some/most/all of this code be merged with the stuff later
1703 # on that fiddles with OPT and BASECFLAGS?
1704 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1705 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1707 # Check whether --with-gcc or --without-gcc was given.
1708 if test "${with_gcc+set}" = set; then
1709 withval="$with_gcc"
1711 case $withval in
1712 no) CC=cc
1713 without_gcc=yes;;
1714 yes) CC=gcc
1715 without_gcc=no;;
1716 *) CC=$withval
1717 without_gcc=$withval;;
1718 esac
1719 else
1721 case $ac_sys_system in
1722 AIX*) CC=cc_r
1723 without_gcc=;;
1724 BeOS*)
1725 case $BE_HOST_CPU in
1726 ppc)
1727 CC=mwcc
1728 without_gcc=yes
1729 BASECFLAGS="$BASECFLAGS -export pragma"
1730 OPT="$OPT -O"
1731 LDFLAGS="$LDFLAGS -nodup"
1733 x86)
1734 CC=gcc
1735 without_gcc=no
1736 OPT="$OPT -O"
1739 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1740 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1741 { (exit 1); exit 1; }; }
1743 esac
1744 AR="\$(srcdir)/Modules/ar_beos"
1745 RANLIB=:
1747 Monterey*)
1748 RANLIB=:
1749 without_gcc=;;
1750 *) without_gcc=no;;
1751 esac
1753 echo "$as_me:$LINENO: result: $without_gcc" >&5
1754 echo "${ECHO_T}$without_gcc" >&6
1756 # If the user switches compilers, we can't believe the cache
1757 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1758 then
1759 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1760 (it is also a good idea to do 'make clean' before compiling)" >&5
1761 echo "$as_me: error: cached CC is different -- throw away $cache_file
1762 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1763 { (exit 1); exit 1; }; }
1766 ac_ext=c
1767 ac_cpp='$CPP $CPPFLAGS'
1768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1771 if test -n "$ac_tool_prefix"; then
1772 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1773 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1774 echo "$as_me:$LINENO: checking for $ac_word" >&5
1775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1776 if test "${ac_cv_prog_CC+set}" = set; then
1777 echo $ECHO_N "(cached) $ECHO_C" >&6
1778 else
1779 if test -n "$CC"; then
1780 ac_cv_prog_CC="$CC" # Let the user override the test.
1781 else
1782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1783 for as_dir in $PATH
1785 IFS=$as_save_IFS
1786 test -z "$as_dir" && as_dir=.
1787 for ac_exec_ext in '' $ac_executable_extensions; do
1788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1791 break 2
1793 done
1794 done
1798 CC=$ac_cv_prog_CC
1799 if test -n "$CC"; then
1800 echo "$as_me:$LINENO: result: $CC" >&5
1801 echo "${ECHO_T}$CC" >&6
1802 else
1803 echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1808 if test -z "$ac_cv_prog_CC"; then
1809 ac_ct_CC=$CC
1810 # Extract the first word of "gcc", so it can be a program name with args.
1811 set dummy gcc; ac_word=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1816 else
1817 if test -n "$ac_ct_CC"; then
1818 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1819 else
1820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 for as_dir in $PATH
1823 IFS=$as_save_IFS
1824 test -z "$as_dir" && as_dir=.
1825 for ac_exec_ext in '' $ac_executable_extensions; do
1826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827 ac_cv_prog_ac_ct_CC="gcc"
1828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1829 break 2
1831 done
1832 done
1836 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1837 if test -n "$ac_ct_CC"; then
1838 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1839 echo "${ECHO_T}$ac_ct_CC" >&6
1840 else
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1845 CC=$ac_ct_CC
1846 else
1847 CC="$ac_cv_prog_CC"
1850 if test -z "$CC"; then
1851 if test -n "$ac_tool_prefix"; then
1852 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1853 set dummy ${ac_tool_prefix}cc; ac_word=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_CC+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859 if test -n "$CC"; then
1860 ac_cv_prog_CC="$CC" # Let the user override the test.
1861 else
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 for as_dir in $PATH
1865 IFS=$as_save_IFS
1866 test -z "$as_dir" && as_dir=.
1867 for ac_exec_ext in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 ac_cv_prog_CC="${ac_tool_prefix}cc"
1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871 break 2
1873 done
1874 done
1878 CC=$ac_cv_prog_CC
1879 if test -n "$CC"; then
1880 echo "$as_me:$LINENO: result: $CC" >&5
1881 echo "${ECHO_T}$CC" >&6
1882 else
1883 echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1888 if test -z "$ac_cv_prog_CC"; then
1889 ac_ct_CC=$CC
1890 # Extract the first word of "cc", so it can be a program name with args.
1891 set dummy cc; ac_word=$2
1892 echo "$as_me:$LINENO: checking for $ac_word" >&5
1893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1896 else
1897 if test -n "$ac_ct_CC"; then
1898 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1899 else
1900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901 for as_dir in $PATH
1903 IFS=$as_save_IFS
1904 test -z "$as_dir" && as_dir=.
1905 for ac_exec_ext in '' $ac_executable_extensions; do
1906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1907 ac_cv_prog_ac_ct_CC="cc"
1908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909 break 2
1911 done
1912 done
1916 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1917 if test -n "$ac_ct_CC"; then
1918 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1919 echo "${ECHO_T}$ac_ct_CC" >&6
1920 else
1921 echo "$as_me:$LINENO: result: no" >&5
1922 echo "${ECHO_T}no" >&6
1925 CC=$ac_ct_CC
1926 else
1927 CC="$ac_cv_prog_CC"
1931 if test -z "$CC"; then
1932 # Extract the first word of "cc", so it can be a program name with args.
1933 set dummy cc; ac_word=$2
1934 echo "$as_me:$LINENO: checking for $ac_word" >&5
1935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936 if test "${ac_cv_prog_CC+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1938 else
1939 if test -n "$CC"; then
1940 ac_cv_prog_CC="$CC" # Let the user override the test.
1941 else
1942 ac_prog_rejected=no
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 for as_dir in $PATH
1946 IFS=$as_save_IFS
1947 test -z "$as_dir" && as_dir=.
1948 for ac_exec_ext in '' $ac_executable_extensions; do
1949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1951 ac_prog_rejected=yes
1952 continue
1954 ac_cv_prog_CC="cc"
1955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1956 break 2
1958 done
1959 done
1961 if test $ac_prog_rejected = yes; then
1962 # We found a bogon in the path, so make sure we never use it.
1963 set dummy $ac_cv_prog_CC
1964 shift
1965 if test $# != 0; then
1966 # We chose a different compiler from the bogus one.
1967 # However, it has the same basename, so the bogon will be chosen
1968 # first if we set CC to just the basename; use the full file name.
1969 shift
1970 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1975 CC=$ac_cv_prog_CC
1976 if test -n "$CC"; then
1977 echo "$as_me:$LINENO: result: $CC" >&5
1978 echo "${ECHO_T}$CC" >&6
1979 else
1980 echo "$as_me:$LINENO: result: no" >&5
1981 echo "${ECHO_T}no" >&6
1985 if test -z "$CC"; then
1986 if test -n "$ac_tool_prefix"; then
1987 for ac_prog in cl
1989 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1990 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1991 echo "$as_me:$LINENO: checking for $ac_word" >&5
1992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1993 if test "${ac_cv_prog_CC+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1995 else
1996 if test -n "$CC"; then
1997 ac_cv_prog_CC="$CC" # Let the user override the test.
1998 else
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 for as_dir in $PATH
2002 IFS=$as_save_IFS
2003 test -z "$as_dir" && as_dir=.
2004 for ac_exec_ext in '' $ac_executable_extensions; do
2005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2008 break 2
2010 done
2011 done
2015 CC=$ac_cv_prog_CC
2016 if test -n "$CC"; then
2017 echo "$as_me:$LINENO: result: $CC" >&5
2018 echo "${ECHO_T}$CC" >&6
2019 else
2020 echo "$as_me:$LINENO: result: no" >&5
2021 echo "${ECHO_T}no" >&6
2024 test -n "$CC" && break
2025 done
2027 if test -z "$CC"; then
2028 ac_ct_CC=$CC
2029 for ac_prog in cl
2031 # Extract the first word of "$ac_prog", so it can be a program name with args.
2032 set dummy $ac_prog; ac_word=$2
2033 echo "$as_me:$LINENO: checking for $ac_word" >&5
2034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2035 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 else
2038 if test -n "$ac_ct_CC"; then
2039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2040 else
2041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 for as_dir in $PATH
2044 IFS=$as_save_IFS
2045 test -z "$as_dir" && as_dir=.
2046 for ac_exec_ext in '' $ac_executable_extensions; do
2047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2048 ac_cv_prog_ac_ct_CC="$ac_prog"
2049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050 break 2
2052 done
2053 done
2057 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2058 if test -n "$ac_ct_CC"; then
2059 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2060 echo "${ECHO_T}$ac_ct_CC" >&6
2061 else
2062 echo "$as_me:$LINENO: result: no" >&5
2063 echo "${ECHO_T}no" >&6
2066 test -n "$ac_ct_CC" && break
2067 done
2069 CC=$ac_ct_CC
2075 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2076 See \`config.log' for more details." >&5
2077 echo "$as_me: error: no acceptable C compiler found in \$PATH
2078 See \`config.log' for more details." >&2;}
2079 { (exit 1); exit 1; }; }
2081 # Provide some information about the compiler.
2082 echo "$as_me:$LINENO:" \
2083 "checking for C compiler version" >&5
2084 ac_compiler=`set X $ac_compile; echo $2`
2085 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2086 (eval $ac_compiler --version </dev/null >&5) 2>&5
2087 ac_status=$?
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }
2090 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2091 (eval $ac_compiler -v </dev/null >&5) 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }
2095 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2096 (eval $ac_compiler -V </dev/null >&5) 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
2101 cat >conftest.$ac_ext <<_ACEOF
2102 /* confdefs.h. */
2103 _ACEOF
2104 cat confdefs.h >>conftest.$ac_ext
2105 cat >>conftest.$ac_ext <<_ACEOF
2106 /* end confdefs.h. */
2109 main ()
2113 return 0;
2115 _ACEOF
2116 ac_clean_files_save=$ac_clean_files
2117 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2118 # Try to create an executable without -o first, disregard a.out.
2119 # It will help us diagnose broken compilers, and finding out an intuition
2120 # of exeext.
2121 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2122 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2123 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2124 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2125 (eval $ac_link_default) 2>&5
2126 ac_status=$?
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; then
2129 # Find the output, starting from the most likely. This scheme is
2130 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2131 # resort.
2133 # Be careful to initialize this variable, since it used to be cached.
2134 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2135 ac_cv_exeext=
2136 # b.out is created by i960 compilers.
2137 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2139 test -f "$ac_file" || continue
2140 case $ac_file in
2141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2143 conftest.$ac_ext )
2144 # This is the source file.
2146 [ab].out )
2147 # We found the default executable, but exeext='' is most
2148 # certainly right.
2149 break;;
2150 *.* )
2151 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2152 # FIXME: I believe we export ac_cv_exeext for Libtool,
2153 # but it would be cool to find out if it's true. Does anybody
2154 # maintain Libtool? --akim.
2155 export ac_cv_exeext
2156 break;;
2158 break;;
2159 esac
2160 done
2161 else
2162 echo "$as_me: failed program was:" >&5
2163 sed 's/^/| /' conftest.$ac_ext >&5
2165 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2166 See \`config.log' for more details." >&5
2167 echo "$as_me: error: C compiler cannot create executables
2168 See \`config.log' for more details." >&2;}
2169 { (exit 77); exit 77; }; }
2172 ac_exeext=$ac_cv_exeext
2173 echo "$as_me:$LINENO: result: $ac_file" >&5
2174 echo "${ECHO_T}$ac_file" >&6
2176 # Check the compiler produces executables we can run. If not, either
2177 # the compiler is broken, or we cross compile.
2178 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2179 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2180 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2181 # If not cross compiling, check that we can run a simple program.
2182 if test "$cross_compiling" != yes; then
2183 if { ac_try='./$ac_file'
2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 (eval $ac_try) 2>&5
2186 ac_status=$?
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; }; then
2189 cross_compiling=no
2190 else
2191 if test "$cross_compiling" = maybe; then
2192 cross_compiling=yes
2193 else
2194 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2195 If you meant to cross compile, use \`--host'.
2196 See \`config.log' for more details." >&5
2197 echo "$as_me: error: cannot run C compiled programs.
2198 If you meant to cross compile, use \`--host'.
2199 See \`config.log' for more details." >&2;}
2200 { (exit 1); exit 1; }; }
2204 echo "$as_me:$LINENO: result: yes" >&5
2205 echo "${ECHO_T}yes" >&6
2207 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2208 ac_clean_files=$ac_clean_files_save
2209 # Check the compiler produces executables we can run. If not, either
2210 # the compiler is broken, or we cross compile.
2211 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2212 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2213 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2214 echo "${ECHO_T}$cross_compiling" >&6
2216 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2217 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2219 (eval $ac_link) 2>&5
2220 ac_status=$?
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; then
2223 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2224 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2225 # work properly (i.e., refer to `conftest.exe'), while it won't with
2226 # `rm'.
2227 for ac_file in conftest.exe conftest conftest.*; do
2228 test -f "$ac_file" || continue
2229 case $ac_file in
2230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2231 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2232 export ac_cv_exeext
2233 break;;
2234 * ) break;;
2235 esac
2236 done
2237 else
2238 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2239 See \`config.log' for more details." >&5
2240 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2241 See \`config.log' for more details." >&2;}
2242 { (exit 1); exit 1; }; }
2245 rm -f conftest$ac_cv_exeext
2246 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2247 echo "${ECHO_T}$ac_cv_exeext" >&6
2249 rm -f conftest.$ac_ext
2250 EXEEXT=$ac_cv_exeext
2251 ac_exeext=$EXEEXT
2252 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2253 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2254 if test "${ac_cv_objext+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 else
2257 cat >conftest.$ac_ext <<_ACEOF
2258 /* confdefs.h. */
2259 _ACEOF
2260 cat confdefs.h >>conftest.$ac_ext
2261 cat >>conftest.$ac_ext <<_ACEOF
2262 /* end confdefs.h. */
2265 main ()
2269 return 0;
2271 _ACEOF
2272 rm -f conftest.o conftest.obj
2273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>&5
2275 ac_status=$?
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; then
2278 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2279 case $ac_file in
2280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2281 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2282 break;;
2283 esac
2284 done
2285 else
2286 echo "$as_me: failed program was:" >&5
2287 sed 's/^/| /' conftest.$ac_ext >&5
2289 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2290 See \`config.log' for more details." >&5
2291 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2292 See \`config.log' for more details." >&2;}
2293 { (exit 1); exit 1; }; }
2296 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2298 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2299 echo "${ECHO_T}$ac_cv_objext" >&6
2300 OBJEXT=$ac_cv_objext
2301 ac_objext=$OBJEXT
2302 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2303 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2304 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307 cat >conftest.$ac_ext <<_ACEOF
2308 /* confdefs.h. */
2309 _ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h. */
2315 main ()
2317 #ifndef __GNUC__
2318 choke me
2319 #endif
2322 return 0;
2324 _ACEOF
2325 rm -f conftest.$ac_objext
2326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2327 (eval $ac_compile) 2>conftest.er1
2328 ac_status=$?
2329 grep -v '^ *+' conftest.er1 >conftest.err
2330 rm -f conftest.er1
2331 cat conftest.err >&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); } &&
2334 { ac_try='test -z "$ac_c_werror_flag"
2335 || test ! -s conftest.err'
2336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337 (eval $ac_try) 2>&5
2338 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; } &&
2341 { ac_try='test -s conftest.$ac_objext'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343 (eval $ac_try) 2>&5
2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; }; then
2347 ac_compiler_gnu=yes
2348 else
2349 echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2352 ac_compiler_gnu=no
2354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2355 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2358 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2359 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2360 GCC=`test $ac_compiler_gnu = yes && echo yes`
2361 ac_test_CFLAGS=${CFLAGS+set}
2362 ac_save_CFLAGS=$CFLAGS
2363 CFLAGS="-g"
2364 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2365 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2366 if test "${ac_cv_prog_cc_g+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369 cat >conftest.$ac_ext <<_ACEOF
2370 /* confdefs.h. */
2371 _ACEOF
2372 cat confdefs.h >>conftest.$ac_ext
2373 cat >>conftest.$ac_ext <<_ACEOF
2374 /* end confdefs.h. */
2377 main ()
2381 return 0;
2383 _ACEOF
2384 rm -f conftest.$ac_objext
2385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2386 (eval $ac_compile) 2>conftest.er1
2387 ac_status=$?
2388 grep -v '^ *+' conftest.er1 >conftest.err
2389 rm -f conftest.er1
2390 cat conftest.err >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } &&
2393 { ac_try='test -z "$ac_c_werror_flag"
2394 || test ! -s conftest.err'
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 (eval $ac_try) 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; } &&
2400 { ac_try='test -s conftest.$ac_objext'
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 (eval $ac_try) 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; }; then
2406 ac_cv_prog_cc_g=yes
2407 else
2408 echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.$ac_ext >&5
2411 ac_cv_prog_cc_g=no
2413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2415 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2416 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2417 if test "$ac_test_CFLAGS" = set; then
2418 CFLAGS=$ac_save_CFLAGS
2419 elif test $ac_cv_prog_cc_g = yes; then
2420 if test "$GCC" = yes; then
2421 CFLAGS="-g -O2"
2422 else
2423 CFLAGS="-g"
2425 else
2426 if test "$GCC" = yes; then
2427 CFLAGS="-O2"
2428 else
2429 CFLAGS=
2432 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2433 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2434 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437 ac_cv_prog_cc_stdc=no
2438 ac_save_CC=$CC
2439 cat >conftest.$ac_ext <<_ACEOF
2440 /* confdefs.h. */
2441 _ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2445 #include <stdarg.h>
2446 #include <stdio.h>
2447 #include <sys/types.h>
2448 #include <sys/stat.h>
2449 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2450 struct buf { int x; };
2451 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2452 static char *e (p, i)
2453 char **p;
2454 int i;
2456 return p[i];
2458 static char *f (char * (*g) (char **, int), char **p, ...)
2460 char *s;
2461 va_list v;
2462 va_start (v,p);
2463 s = g (p, va_arg (v,int));
2464 va_end (v);
2465 return s;
2468 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2469 function prototypes and stuff, but not '\xHH' hex character constants.
2470 These don't provoke an error unfortunately, instead are silently treated
2471 as 'x'. The following induces an error, until -std1 is added to get
2472 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2473 array size at least. It's necessary to write '\x00'==0 to get something
2474 that's true only with -std1. */
2475 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2477 int test (int i, double x);
2478 struct s1 {int (*f) (int a);};
2479 struct s2 {int (*f) (double a);};
2480 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2481 int argc;
2482 char **argv;
2484 main ()
2486 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2488 return 0;
2490 _ACEOF
2491 # Don't try gcc -ansi; that turns off useful extensions and
2492 # breaks some systems' header files.
2493 # AIX -qlanglvl=ansi
2494 # Ultrix and OSF/1 -std1
2495 # HP-UX 10.20 and later -Ae
2496 # HP-UX older versions -Aa -D_HPUX_SOURCE
2497 # SVR4 -Xc -D__EXTENSIONS__
2498 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2500 CC="$ac_save_CC $ac_arg"
2501 rm -f conftest.$ac_objext
2502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2503 (eval $ac_compile) 2>conftest.er1
2504 ac_status=$?
2505 grep -v '^ *+' conftest.er1 >conftest.err
2506 rm -f conftest.er1
2507 cat conftest.err >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } &&
2510 { ac_try='test -z "$ac_c_werror_flag"
2511 || test ! -s conftest.err'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513 (eval $ac_try) 2>&5
2514 ac_status=$?
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; } &&
2517 { ac_try='test -s conftest.$ac_objext'
2518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519 (eval $ac_try) 2>&5
2520 ac_status=$?
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; }; then
2523 ac_cv_prog_cc_stdc=$ac_arg
2524 break
2525 else
2526 echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2530 rm -f conftest.err conftest.$ac_objext
2531 done
2532 rm -f conftest.$ac_ext conftest.$ac_objext
2533 CC=$ac_save_CC
2537 case "x$ac_cv_prog_cc_stdc" in
2538 x|xno)
2539 echo "$as_me:$LINENO: result: none needed" >&5
2540 echo "${ECHO_T}none needed" >&6 ;;
2542 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2543 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2544 CC="$CC $ac_cv_prog_cc_stdc" ;;
2545 esac
2547 # Some people use a C++ compiler to compile C. Since we use `exit',
2548 # in C++ we need to declare it. In case someone uses the same compiler
2549 # for both compiling C and C++ we need to have the C++ compiler decide
2550 # the declaration of exit, since it's the most demanding environment.
2551 cat >conftest.$ac_ext <<_ACEOF
2552 #ifndef __cplusplus
2553 choke me
2554 #endif
2555 _ACEOF
2556 rm -f conftest.$ac_objext
2557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558 (eval $ac_compile) 2>conftest.er1
2559 ac_status=$?
2560 grep -v '^ *+' conftest.er1 >conftest.err
2561 rm -f conftest.er1
2562 cat conftest.err >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } &&
2565 { ac_try='test -z "$ac_c_werror_flag"
2566 || test ! -s conftest.err'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 (eval $ac_try) 2>&5
2569 ac_status=$?
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; } &&
2572 { ac_try='test -s conftest.$ac_objext'
2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574 (eval $ac_try) 2>&5
2575 ac_status=$?
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; }; then
2578 for ac_declaration in \
2579 '' \
2580 'extern "C" void std::exit (int) throw (); using std::exit;' \
2581 'extern "C" void std::exit (int); using std::exit;' \
2582 'extern "C" void exit (int) throw ();' \
2583 'extern "C" void exit (int);' \
2584 'void exit (int);'
2586 cat >conftest.$ac_ext <<_ACEOF
2587 /* confdefs.h. */
2588 _ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2592 $ac_declaration
2593 #include <stdlib.h>
2595 main ()
2597 exit (42);
2599 return 0;
2601 _ACEOF
2602 rm -f conftest.$ac_objext
2603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604 (eval $ac_compile) 2>conftest.er1
2605 ac_status=$?
2606 grep -v '^ *+' conftest.er1 >conftest.err
2607 rm -f conftest.er1
2608 cat conftest.err >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } &&
2611 { ac_try='test -z "$ac_c_werror_flag"
2612 || test ! -s conftest.err'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 (eval $ac_try) 2>&5
2615 ac_status=$?
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; } &&
2618 { ac_try='test -s conftest.$ac_objext'
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 (eval $ac_try) 2>&5
2621 ac_status=$?
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; }; then
2625 else
2626 echo "$as_me: failed program was:" >&5
2627 sed 's/^/| /' conftest.$ac_ext >&5
2629 continue
2631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2632 cat >conftest.$ac_ext <<_ACEOF
2633 /* confdefs.h. */
2634 _ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2638 $ac_declaration
2640 main ()
2642 exit (42);
2644 return 0;
2646 _ACEOF
2647 rm -f conftest.$ac_objext
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649 (eval $ac_compile) 2>conftest.er1
2650 ac_status=$?
2651 grep -v '^ *+' conftest.er1 >conftest.err
2652 rm -f conftest.er1
2653 cat conftest.err >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } &&
2656 { ac_try='test -z "$ac_c_werror_flag"
2657 || test ! -s conftest.err'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 (eval $ac_try) 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; } &&
2663 { ac_try='test -s conftest.$ac_objext'
2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665 (eval $ac_try) 2>&5
2666 ac_status=$?
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; }; then
2669 break
2670 else
2671 echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2676 done
2677 rm -f conftest*
2678 if test -n "$ac_declaration"; then
2679 echo '#ifdef __cplusplus' >>confdefs.h
2680 echo $ac_declaration >>confdefs.h
2681 echo '#endif' >>confdefs.h
2684 else
2685 echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.$ac_ext >&5
2689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2690 ac_ext=c
2691 ac_cpp='$CPP $CPPFLAGS'
2692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2699 echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
2700 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6
2702 # Check whether --with-cxx_main or --without-cxx_main was given.
2703 if test "${with_cxx_main+set}" = set; then
2704 withval="$with_cxx_main"
2707 case $withval in
2708 no) with_cxx_main=no
2709 MAINCC='$(CC)';;
2710 yes) with_cxx_main=yes
2711 MAINCC='$(CXX)';;
2712 *) with_cxx_main=yes
2713 MAINCC=$withval
2714 if test -z "$CXX"
2715 then
2716 CXX=$withval
2717 fi;;
2718 esac
2719 else
2721 with_cxx_main=no
2722 MAINCC='$(CC)'
2725 echo "$as_me:$LINENO: result: $with_cxx_main" >&5
2726 echo "${ECHO_T}$with_cxx_main" >&6
2728 preset_cxx="$CXX"
2729 if test -z "$CXX"
2730 then
2731 case "$CC" in
2732 gcc) # Extract the first word of "g++", so it can be a program name with args.
2733 set dummy g++; ac_word=$2
2734 echo "$as_me:$LINENO: checking for $ac_word" >&5
2735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2736 if test "${ac_cv_path_CXX+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 else
2739 case $CXX in
2740 [\\/]* | ?:[\\/]*)
2741 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 for as_dir in notfound
2747 IFS=$as_save_IFS
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
2752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 break 2
2755 done
2756 done
2758 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
2760 esac
2762 CXX=$ac_cv_path_CXX
2764 if test -n "$CXX"; then
2765 echo "$as_me:$LINENO: result: $CXX" >&5
2766 echo "${ECHO_T}$CXX" >&6
2767 else
2768 echo "$as_me:$LINENO: result: no" >&5
2769 echo "${ECHO_T}no" >&6
2772 cc) # Extract the first word of "c++", so it can be a program name with args.
2773 set dummy c++; ac_word=$2
2774 echo "$as_me:$LINENO: checking for $ac_word" >&5
2775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2776 if test "${ac_cv_path_CXX+set}" = set; then
2777 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 else
2779 case $CXX in
2780 [\\/]* | ?:[\\/]*)
2781 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in notfound
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
2792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 break 2
2795 done
2796 done
2798 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
2800 esac
2802 CXX=$ac_cv_path_CXX
2804 if test -n "$CXX"; then
2805 echo "$as_me:$LINENO: result: $CXX" >&5
2806 echo "${ECHO_T}$CXX" >&6
2807 else
2808 echo "$as_me:$LINENO: result: no" >&5
2809 echo "${ECHO_T}no" >&6
2812 esac
2813 if test "$CXX" = "notfound"
2814 then
2815 CXX=""
2818 if test -z "$CXX"
2819 then
2820 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2822 # Extract the first word of "$ac_prog", so it can be a program name with args.
2823 set dummy $ac_prog; ac_word=$2
2824 echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2826 if test "${ac_cv_prog_CXX+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2828 else
2829 if test -n "$CXX"; then
2830 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2839 ac_cv_prog_CXX="$ac_prog"
2840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 break 2
2843 done
2844 done
2848 CXX=$ac_cv_prog_CXX
2849 if test -n "$CXX"; then
2850 echo "$as_me:$LINENO: result: $CXX" >&5
2851 echo "${ECHO_T}$CXX" >&6
2852 else
2853 echo "$as_me:$LINENO: result: no" >&5
2854 echo "${ECHO_T}no" >&6
2857 test -n "$CXX" && break
2858 done
2859 test -n "$CXX" || CXX="notfound"
2861 if test "$CXX" = "notfound"
2862 then
2863 CXX=""
2866 if test "$preset_cxx" != "$CXX"
2867 then
2868 { echo "$as_me:$LINENO: WARNING:
2870 By default, distutils will build C++ extension modules with \"$CXX\".
2871 If this is not intended, then set CXX on the configure command line.
2872 " >&5
2873 echo "$as_me: WARNING:
2875 By default, distutils will build C++ extension modules with \"$CXX\".
2876 If this is not intended, then set CXX on the configure command line.
2877 " >&2;}
2881 # checks for UNIX variants that set C preprocessor variables
2883 ac_ext=c
2884 ac_cpp='$CPP $CPPFLAGS'
2885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2888 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2889 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2890 # On Suns, sometimes $CPP names a directory.
2891 if test -n "$CPP" && test -d "$CPP"; then
2892 CPP=
2894 if test -z "$CPP"; then
2895 if test "${ac_cv_prog_CPP+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2897 else
2898 # Double quotes because CPP needs to be expanded
2899 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2901 ac_preproc_ok=false
2902 for ac_c_preproc_warn_flag in '' yes
2904 # Use a header file that comes with gcc, so configuring glibc
2905 # with a fresh cross-compiler works.
2906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2907 # <limits.h> exists even on freestanding compilers.
2908 # On the NeXT, cc -E runs the code through the compiler's parser,
2909 # not just through cpp. "Syntax error" is here to catch this case.
2910 cat >conftest.$ac_ext <<_ACEOF
2911 /* confdefs.h. */
2912 _ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2916 #ifdef __STDC__
2917 # include <limits.h>
2918 #else
2919 # include <assert.h>
2920 #endif
2921 Syntax error
2922 _ACEOF
2923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2925 ac_status=$?
2926 grep -v '^ *+' conftest.er1 >conftest.err
2927 rm -f conftest.er1
2928 cat conftest.err >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } >/dev/null; then
2931 if test -s conftest.err; then
2932 ac_cpp_err=$ac_c_preproc_warn_flag
2933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2934 else
2935 ac_cpp_err=
2937 else
2938 ac_cpp_err=yes
2940 if test -z "$ac_cpp_err"; then
2942 else
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2946 # Broken: fails on valid input.
2947 continue
2949 rm -f conftest.err conftest.$ac_ext
2951 # OK, works on sane cases. Now check whether non-existent headers
2952 # can be detected and how.
2953 cat >conftest.$ac_ext <<_ACEOF
2954 /* confdefs.h. */
2955 _ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2959 #include <ac_nonexistent.h>
2960 _ACEOF
2961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2963 ac_status=$?
2964 grep -v '^ *+' conftest.er1 >conftest.err
2965 rm -f conftest.er1
2966 cat conftest.err >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } >/dev/null; then
2969 if test -s conftest.err; then
2970 ac_cpp_err=$ac_c_preproc_warn_flag
2971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2972 else
2973 ac_cpp_err=
2975 else
2976 ac_cpp_err=yes
2978 if test -z "$ac_cpp_err"; then
2979 # Broken: success on invalid input.
2980 continue
2981 else
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2985 # Passes both tests.
2986 ac_preproc_ok=:
2987 break
2989 rm -f conftest.err conftest.$ac_ext
2991 done
2992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2993 rm -f conftest.err conftest.$ac_ext
2994 if $ac_preproc_ok; then
2995 break
2998 done
2999 ac_cv_prog_CPP=$CPP
3002 CPP=$ac_cv_prog_CPP
3003 else
3004 ac_cv_prog_CPP=$CPP
3006 echo "$as_me:$LINENO: result: $CPP" >&5
3007 echo "${ECHO_T}$CPP" >&6
3008 ac_preproc_ok=false
3009 for ac_c_preproc_warn_flag in '' yes
3011 # Use a header file that comes with gcc, so configuring glibc
3012 # with a fresh cross-compiler works.
3013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3014 # <limits.h> exists even on freestanding compilers.
3015 # On the NeXT, cc -E runs the code through the compiler's parser,
3016 # not just through cpp. "Syntax error" is here to catch this case.
3017 cat >conftest.$ac_ext <<_ACEOF
3018 /* confdefs.h. */
3019 _ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3023 #ifdef __STDC__
3024 # include <limits.h>
3025 #else
3026 # include <assert.h>
3027 #endif
3028 Syntax error
3029 _ACEOF
3030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3032 ac_status=$?
3033 grep -v '^ *+' conftest.er1 >conftest.err
3034 rm -f conftest.er1
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } >/dev/null; then
3038 if test -s conftest.err; then
3039 ac_cpp_err=$ac_c_preproc_warn_flag
3040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3041 else
3042 ac_cpp_err=
3044 else
3045 ac_cpp_err=yes
3047 if test -z "$ac_cpp_err"; then
3049 else
3050 echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3053 # Broken: fails on valid input.
3054 continue
3056 rm -f conftest.err conftest.$ac_ext
3058 # OK, works on sane cases. Now check whether non-existent headers
3059 # can be detected and how.
3060 cat >conftest.$ac_ext <<_ACEOF
3061 /* confdefs.h. */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3066 #include <ac_nonexistent.h>
3067 _ACEOF
3068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3070 ac_status=$?
3071 grep -v '^ *+' conftest.er1 >conftest.err
3072 rm -f conftest.er1
3073 cat conftest.err >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } >/dev/null; then
3076 if test -s conftest.err; then
3077 ac_cpp_err=$ac_c_preproc_warn_flag
3078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3079 else
3080 ac_cpp_err=
3082 else
3083 ac_cpp_err=yes
3085 if test -z "$ac_cpp_err"; then
3086 # Broken: success on invalid input.
3087 continue
3088 else
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3092 # Passes both tests.
3093 ac_preproc_ok=:
3094 break
3096 rm -f conftest.err conftest.$ac_ext
3098 done
3099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3100 rm -f conftest.err conftest.$ac_ext
3101 if $ac_preproc_ok; then
3103 else
3104 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3105 See \`config.log' for more details." >&5
3106 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3107 See \`config.log' for more details." >&2;}
3108 { (exit 1); exit 1; }; }
3111 ac_ext=c
3112 ac_cpp='$CPP $CPPFLAGS'
3113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3118 echo "$as_me:$LINENO: checking for egrep" >&5
3119 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3120 if test "${ac_cv_prog_egrep+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3124 then ac_cv_prog_egrep='grep -E'
3125 else ac_cv_prog_egrep='egrep'
3128 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3129 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3130 EGREP=$ac_cv_prog_egrep
3134 echo "$as_me:$LINENO: checking for AIX" >&5
3135 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3136 cat >conftest.$ac_ext <<_ACEOF
3137 /* confdefs.h. */
3138 _ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3142 #ifdef _AIX
3144 #endif
3146 _ACEOF
3147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3148 $EGREP "yes" >/dev/null 2>&1; then
3149 echo "$as_me:$LINENO: result: yes" >&5
3150 echo "${ECHO_T}yes" >&6
3151 cat >>confdefs.h <<\_ACEOF
3152 #define _ALL_SOURCE 1
3153 _ACEOF
3155 else
3156 echo "$as_me:$LINENO: result: no" >&5
3157 echo "${ECHO_T}no" >&6
3159 rm -f conftest*
3163 # Check for unsupported systems
3164 case $ac_sys_system/$ac_sys_release in
3165 Linux*/1*)
3166 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3167 echo See README for details.
3168 exit 1;;
3169 esac
3172 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3173 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3175 # Check whether --with-suffix or --without-suffix was given.
3176 if test "${with_suffix+set}" = set; then
3177 withval="$with_suffix"
3179 case $withval in
3180 no) EXEEXT=;;
3181 yes) EXEEXT=.exe;;
3182 *) EXEEXT=$withval;;
3183 esac
3185 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3186 echo "${ECHO_T}$EXEEXT" >&6
3188 # Test whether we're running on a non-case-sensitive system, in which
3189 # case we give a warning if no ext is given
3191 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3192 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3193 if test ! -d CaseSensitiveTestDir; then
3194 mkdir CaseSensitiveTestDir
3197 if test -d casesensitivetestdir
3198 then
3199 echo "$as_me:$LINENO: result: yes" >&5
3200 echo "${ECHO_T}yes" >&6
3201 BUILDEXEEXT=.exe
3202 else
3203 echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6
3205 BUILDEXEEXT=$EXEEXT
3207 rmdir CaseSensitiveTestDir
3209 case $MACHDEP in
3210 bsdos*)
3211 case $CC in
3212 gcc) CC="$CC -D_HAVE_BSDI";;
3213 esac;;
3214 esac
3216 case $ac_sys_system in
3217 hp*|HP*)
3218 case $CC in
3219 cc|*/cc) CC="$CC -Ae";;
3220 esac;;
3221 Monterey*)
3222 case $CC in
3223 cc) CC="$CC -Wl,-Bexport";;
3224 esac;;
3225 SunOS*)
3226 # Some functions have a prototype only with that define, e.g. confstr
3228 cat >>confdefs.h <<\_ACEOF
3229 #define __EXTENSIONS__ 1
3230 _ACEOF
3233 esac
3237 echo "$as_me:$LINENO: checking LIBRARY" >&5
3238 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3239 if test -z "$LIBRARY"
3240 then
3241 LIBRARY='libpython$(VERSION).a'
3243 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3244 echo "${ECHO_T}$LIBRARY" >&6
3246 # LDLIBRARY is the name of the library to link against (as opposed to the
3247 # name of the library into which to insert object files). BLDLIBRARY is also
3248 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3249 # is blank as the main program is not linked directly against LDLIBRARY.
3250 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3251 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3252 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3253 # DLLLIBRARY is the shared (i.e., DLL) library.
3255 # RUNSHARED is used to run shared python without installed libraries
3257 # INSTSONAME is the name of the shared library that will be use to install
3258 # on the system - some systems like version suffix, others don't
3265 LDLIBRARY="$LIBRARY"
3266 BLDLIBRARY='$(LDLIBRARY)'
3267 INSTSONAME='$(LDLIBRARY)'
3268 DLLLIBRARY=''
3269 LDLIBRARYDIR=''
3270 RUNSHARED=''
3272 # LINKCC is the command that links the python executable -- default is $(CC).
3273 # If CXX is set, and if it is needed to link a main function that was
3274 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3275 # python might then depend on the C++ runtime
3276 # This is altered for AIX in order to build the export list before
3277 # linking.
3279 echo "$as_me:$LINENO: checking LINKCC" >&5
3280 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3281 if test -z "$LINKCC"
3282 then
3283 LINKCC='$(PURIFY) $(MAINCC)'
3284 case $ac_sys_system in
3285 AIX*)
3286 exp_extra="\"\""
3287 if test $ac_sys_release -ge 5 -o \
3288 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3289 exp_extra="."
3291 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3292 Monterey64*)
3293 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3294 esac
3296 echo "$as_me:$LINENO: result: $LINKCC" >&5
3297 echo "${ECHO_T}$LINKCC" >&6
3299 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3300 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3301 # Check whether --enable-shared or --disable-shared was given.
3302 if test "${enable_shared+set}" = set; then
3303 enableval="$enable_shared"
3307 if test -z "$enable_shared"
3308 then
3309 case $ac_sys_system in
3310 CYGWIN* | atheos*)
3311 enable_shared="yes";;
3313 enable_shared="no";;
3314 esac
3316 echo "$as_me:$LINENO: result: $enable_shared" >&5
3317 echo "${ECHO_T}$enable_shared" >&6
3319 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3320 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3321 # Check whether --enable-profiling or --disable-profiling was given.
3322 if test "${enable_profiling+set}" = set; then
3323 enableval="$enable_profiling"
3324 ac_save_cc="$CC"
3325 CC="$CC -pg"
3326 if test "$cross_compiling" = yes; then
3327 ac_enable_profiling="no"
3328 else
3329 cat >conftest.$ac_ext <<_ACEOF
3330 /* confdefs.h. */
3331 _ACEOF
3332 cat confdefs.h >>conftest.$ac_ext
3333 cat >>conftest.$ac_ext <<_ACEOF
3334 /* end confdefs.h. */
3335 int main() { return 0; }
3336 _ACEOF
3337 rm -f conftest$ac_exeext
3338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3339 (eval $ac_link) 2>&5
3340 ac_status=$?
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344 (eval $ac_try) 2>&5
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; }; then
3348 ac_enable_profiling="yes"
3349 else
3350 echo "$as_me: program exited with status $ac_status" >&5
3351 echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3354 ( exit $ac_status )
3355 ac_enable_profiling="no"
3357 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3359 CC="$ac_save_cc"
3361 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3362 echo "${ECHO_T}$ac_enable_profiling" >&6
3364 case "$ac_enable_profiling" in
3365 "yes")
3366 BASECFLAGS="-pg $BASECFLAGS"
3367 LDFLAGS="-pg $LDFLAGS"
3369 esac
3371 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3372 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3374 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3375 # library that we build, but we do not want to link against it (we
3376 # will find it with a -framework option). For this reason there is an
3377 # extra variable BLDLIBRARY against which Python and the extension
3378 # modules are linked, BLDLIBRARY. This is normally the same as
3379 # LDLIBRARY, but empty for MacOSX framework builds.
3380 if test "$enable_framework"
3381 then
3382 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3383 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
3384 BLDLIBRARY=''
3385 else
3386 BLDLIBRARY='$(LDLIBRARY)'
3389 # Other platforms follow
3390 if test $enable_shared = "yes"; then
3392 cat >>confdefs.h <<\_ACEOF
3393 #define Py_ENABLE_SHARED 1
3394 _ACEOF
3396 case $ac_sys_system in
3397 BeOS*)
3398 LDLIBRARY='libpython$(VERSION).so'
3400 CYGWIN*)
3401 LDLIBRARY='libpython$(VERSION).dll.a'
3402 DLLLIBRARY='libpython$(VERSION).dll'
3404 SunOS*)
3405 LDLIBRARY='libpython$(VERSION).so'
3406 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3407 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3408 INSTSONAME="$LDLIBRARY".$SOVERSION
3410 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
3411 LDLIBRARY='libpython$(VERSION).so'
3412 BLDLIBRARY='-L. -lpython$(VERSION)'
3413 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3414 case $ac_sys_system in
3415 FreeBSD*)
3416 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
3418 esac
3419 INSTSONAME="$LDLIBRARY".$SOVERSION
3421 hp*|HP*)
3422 case `uname -m` in
3423 ia64)
3424 LDLIBRARY='libpython$(VERSION).so'
3427 LDLIBRARY='libpython$(VERSION).sl'
3429 esac
3430 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3431 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
3433 OSF*)
3434 LDLIBRARY='libpython$(VERSION).so'
3435 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3436 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3438 atheos*)
3439 LDLIBRARY='libpython$(VERSION).so'
3440 BLDLIBRARY='-L. -lpython$(VERSION)'
3441 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3443 esac
3444 else # shared is disabled
3445 case $ac_sys_system in
3446 CYGWIN*)
3447 BLDLIBRARY='$(LIBRARY)'
3448 LDLIBRARY='libpython$(VERSION).dll.a'
3450 esac
3453 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3454 echo "${ECHO_T}$LDLIBRARY" >&6
3456 if test -n "$ac_tool_prefix"; then
3457 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3458 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3459 echo "$as_me:$LINENO: checking for $ac_word" >&5
3460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3461 if test "${ac_cv_prog_RANLIB+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 else
3464 if test -n "$RANLIB"; then
3465 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3466 else
3467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468 for as_dir in $PATH
3470 IFS=$as_save_IFS
3471 test -z "$as_dir" && as_dir=.
3472 for ac_exec_ext in '' $ac_executable_extensions; do
3473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3474 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3476 break 2
3478 done
3479 done
3483 RANLIB=$ac_cv_prog_RANLIB
3484 if test -n "$RANLIB"; then
3485 echo "$as_me:$LINENO: result: $RANLIB" >&5
3486 echo "${ECHO_T}$RANLIB" >&6
3487 else
3488 echo "$as_me:$LINENO: result: no" >&5
3489 echo "${ECHO_T}no" >&6
3493 if test -z "$ac_cv_prog_RANLIB"; then
3494 ac_ct_RANLIB=$RANLIB
3495 # Extract the first word of "ranlib", so it can be a program name with args.
3496 set dummy ranlib; ac_word=$2
3497 echo "$as_me:$LINENO: checking for $ac_word" >&5
3498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3499 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 else
3502 if test -n "$ac_ct_RANLIB"; then
3503 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512 ac_cv_prog_ac_ct_RANLIB="ranlib"
3513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 break 2
3516 done
3517 done
3519 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3522 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3523 if test -n "$ac_ct_RANLIB"; then
3524 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3525 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3526 else
3527 echo "$as_me:$LINENO: result: no" >&5
3528 echo "${ECHO_T}no" >&6
3531 RANLIB=$ac_ct_RANLIB
3532 else
3533 RANLIB="$ac_cv_prog_RANLIB"
3537 for ac_prog in ar aal
3539 # Extract the first word of "$ac_prog", so it can be a program name with args.
3540 set dummy $ac_prog; ac_word=$2
3541 echo "$as_me:$LINENO: checking for $ac_word" >&5
3542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3543 if test "${ac_cv_prog_AR+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546 if test -n "$AR"; then
3547 ac_cv_prog_AR="$AR" # Let the user override the test.
3548 else
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3552 IFS=$as_save_IFS
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_prog_AR="$ac_prog"
3557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 break 2
3560 done
3561 done
3565 AR=$ac_cv_prog_AR
3566 if test -n "$AR"; then
3567 echo "$as_me:$LINENO: result: $AR" >&5
3568 echo "${ECHO_T}$AR" >&6
3569 else
3570 echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3574 test -n "$AR" && break
3575 done
3576 test -n "$AR" || AR="ar"
3580 # Extract the first word of "svnversion", so it can be a program name with args.
3581 set dummy svnversion; ac_word=$2
3582 echo "$as_me:$LINENO: checking for $ac_word" >&5
3583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3584 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 else
3587 if test -n "$SVNVERSION"; then
3588 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
3589 else
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3593 IFS=$as_save_IFS
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597 ac_cv_prog_SVNVERSION="found"
3598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599 break 2
3601 done
3602 done
3604 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
3607 SVNVERSION=$ac_cv_prog_SVNVERSION
3608 if test -n "$SVNVERSION"; then
3609 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3610 echo "${ECHO_T}$SVNVERSION" >&6
3611 else
3612 echo "$as_me:$LINENO: result: no" >&5
3613 echo "${ECHO_T}no" >&6
3616 if test $SVNVERSION = found
3617 then
3618 SVNVERSION="svnversion \$(srcdir)"
3619 else
3620 SVNVERSION="echo exported"
3623 case $MACHDEP in
3624 bsdos*|hp*|HP*)
3625 # install -d does not work on BSDI or HP-UX
3626 if test -z "$INSTALL"
3627 then
3628 INSTALL="${srcdir}/install-sh -c"
3630 esac
3631 ac_aux_dir=
3632 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3633 if test -f $ac_dir/install-sh; then
3634 ac_aux_dir=$ac_dir
3635 ac_install_sh="$ac_aux_dir/install-sh -c"
3636 break
3637 elif test -f $ac_dir/install.sh; then
3638 ac_aux_dir=$ac_dir
3639 ac_install_sh="$ac_aux_dir/install.sh -c"
3640 break
3641 elif test -f $ac_dir/shtool; then
3642 ac_aux_dir=$ac_dir
3643 ac_install_sh="$ac_aux_dir/shtool install -c"
3644 break
3646 done
3647 if test -z "$ac_aux_dir"; then
3648 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3649 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3650 { (exit 1); exit 1; }; }
3652 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3653 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3654 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3656 # Find a good install program. We prefer a C program (faster),
3657 # so one script is as good as another. But avoid the broken or
3658 # incompatible versions:
3659 # SysV /etc/install, /usr/sbin/install
3660 # SunOS /usr/etc/install
3661 # IRIX /sbin/install
3662 # AIX /bin/install
3663 # AmigaOS /C/install, which installs bootblocks on floppy discs
3664 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3665 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3666 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3667 # OS/2's system install, which has a completely different semantic
3668 # ./install, which can be erroneously created by make from ./install.sh.
3669 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3670 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3671 if test -z "$INSTALL"; then
3672 if test "${ac_cv_path_install+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 for as_dir in $PATH
3678 IFS=$as_save_IFS
3679 test -z "$as_dir" && as_dir=.
3680 # Account for people who put trailing slashes in PATH elements.
3681 case $as_dir/ in
3682 ./ | .// | /cC/* | \
3683 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3684 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3685 /usr/ucb/* ) ;;
3687 # OSF1 and SCO ODT 3.0 have their own names for install.
3688 # Don't use installbsd from OSF since it installs stuff as root
3689 # by default.
3690 for ac_prog in ginstall scoinst install; do
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3693 if test $ac_prog = install &&
3694 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3695 # AIX install. It has an incompatible calling convention.
3697 elif test $ac_prog = install &&
3698 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3699 # program-specific install script used by HP pwplus--don't use.
3701 else
3702 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3703 break 3
3706 done
3707 done
3709 esac
3710 done
3714 if test "${ac_cv_path_install+set}" = set; then
3715 INSTALL=$ac_cv_path_install
3716 else
3717 # As a last resort, use the slow shell script. We don't cache a
3718 # path for INSTALL within a source directory, because that will
3719 # break other packages using the cache if that directory is
3720 # removed, or if the path is relative.
3721 INSTALL=$ac_install_sh
3724 echo "$as_me:$LINENO: result: $INSTALL" >&5
3725 echo "${ECHO_T}$INSTALL" >&6
3727 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3728 # It thinks the first close brace ends the variable substitution.
3729 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3731 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3733 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3736 # Not every filesystem supports hard links
3738 if test -z "$LN" ; then
3739 case $ac_sys_system in
3740 BeOS*) LN="ln -s";;
3741 CYGWIN*) LN="ln -s";;
3742 atheos*) LN="ln -s";;
3743 *) LN=ln;;
3744 esac
3747 # Check for --with-pydebug
3748 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3749 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3751 # Check whether --with-pydebug or --without-pydebug was given.
3752 if test "${with_pydebug+set}" = set; then
3753 withval="$with_pydebug"
3755 if test "$withval" != no
3756 then
3758 cat >>confdefs.h <<\_ACEOF
3759 #define Py_DEBUG 1
3760 _ACEOF
3762 echo "$as_me:$LINENO: result: yes" >&5
3763 echo "${ECHO_T}yes" >&6;
3764 Py_DEBUG='true'
3765 else echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6; Py_DEBUG='false'
3768 else
3769 echo "$as_me:$LINENO: result: no" >&5
3770 echo "${ECHO_T}no" >&6
3773 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3774 # merged with this chunk of code?
3776 # Optimizer/debugger flags
3777 # ------------------------
3778 # (The following bit of code is complicated enough - please keep things
3779 # indented properly. Just pretend you're editing Python code. ;-)
3781 # There are two parallel sets of case statements below, one that checks to
3782 # see if OPT was set and one that does BASECFLAGS setting based upon
3783 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3784 # user set OPT.
3786 # tweak OPT based on compiler and platform, only if the user didn't set
3787 # it on the command line
3789 if test -z "$OPT"
3790 then
3791 case $GCC in
3792 yes)
3793 if test "$CC" != 'g++' ; then
3794 STRICT_PROTO="-Wstrict-prototypes"
3796 case $ac_cv_prog_cc_g in
3797 yes)
3798 if test "$Py_DEBUG" = 'true' ; then
3799 # Optimization messes up debuggers, so turn it off for
3800 # debug builds.
3801 OPT="-g -Wall $STRICT_PROTO"
3802 else
3803 OPT="-g -O3 -Wall $STRICT_PROTO"
3807 OPT="-O3 -Wall $STRICT_PROTO"
3809 esac
3810 case $ac_sys_system in
3811 SCO_SV*) OPT="$OPT -m486 -DSCO5"
3813 esac
3817 OPT="-O"
3819 esac
3821 # The current (beta) Monterey compiler dies with optimizations
3822 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3823 case $ac_sys_system in
3824 Monterey*)
3825 OPT=""
3827 esac
3832 # tweak BASECFLAGS based on compiler and platform
3833 case $GCC in
3834 yes)
3835 # Python violates C99 rules, by casting between incompatible
3836 # pointer types. GCC may generate bad code as a result of that,
3837 # so use -fno-strict-aliasing if supported.
3838 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3839 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3840 ac_save_cc="$CC"
3841 CC="$CC -fno-strict-aliasing"
3842 if test "$cross_compiling" = yes; then
3843 ac_cv_no_strict_aliasing_ok=no
3844 else
3845 cat >conftest.$ac_ext <<_ACEOF
3846 /* confdefs.h. */
3847 _ACEOF
3848 cat confdefs.h >>conftest.$ac_ext
3849 cat >>conftest.$ac_ext <<_ACEOF
3850 /* end confdefs.h. */
3851 int main() { return 0; }
3852 _ACEOF
3853 rm -f conftest$ac_exeext
3854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3855 (eval $ac_link) 2>&5
3856 ac_status=$?
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860 (eval $ac_try) 2>&5
3861 ac_status=$?
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); }; }; then
3864 ac_cv_no_strict_aliasing_ok=yes
3865 else
3866 echo "$as_me: program exited with status $ac_status" >&5
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870 ( exit $ac_status )
3871 ac_cv_no_strict_aliasing_ok=no
3873 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3875 CC="$ac_save_cc"
3876 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3877 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3878 if test $ac_cv_no_strict_aliasing_ok = yes
3879 then
3880 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
3882 case $ac_sys_system in
3883 SCO_SV*)
3884 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
3886 # is there any other compiler on Darwin besides gcc?
3887 Darwin*)
3888 BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3889 if test "${enable_universalsdk}"; then
3890 BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
3894 OSF*)
3895 BASECFLAGS="$BASECFLAGS -mieee"
3897 esac
3901 case $ac_sys_system in
3902 OpenUNIX*|UnixWare*)
3903 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3905 OSF*)
3906 BASECFLAGS="$BASECFLAGS -ieee -std"
3908 SCO_SV*)
3909 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
3911 esac
3913 esac
3915 if test "$Py_DEBUG" = 'true'; then
3917 else
3918 OPT="-DNDEBUG $OPT"
3921 if test "$ac_arch_flags"
3922 then
3923 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
3926 # disable check for icc since it seems to pass, but generates a warning
3927 if test "$CC" = icc
3928 then
3929 ac_cv_opt_olimit_ok=no
3932 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3933 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3934 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 else
3937 ac_save_cc="$CC"
3938 CC="$CC -OPT:Olimit=0"
3939 if test "$cross_compiling" = yes; then
3940 ac_cv_opt_olimit_ok=no
3941 else
3942 cat >conftest.$ac_ext <<_ACEOF
3943 /* confdefs.h. */
3944 _ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3948 int main() { return 0; }
3949 _ACEOF
3950 rm -f conftest$ac_exeext
3951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3952 (eval $ac_link) 2>&5
3953 ac_status=$?
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957 (eval $ac_try) 2>&5
3958 ac_status=$?
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }; }; then
3961 ac_cv_opt_olimit_ok=yes
3962 else
3963 echo "$as_me: program exited with status $ac_status" >&5
3964 echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.$ac_ext >&5
3967 ( exit $ac_status )
3968 ac_cv_opt_olimit_ok=no
3970 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3972 CC="$ac_save_cc"
3975 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3976 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3977 if test $ac_cv_opt_olimit_ok = yes; then
3978 case $ac_sys_system in
3979 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3980 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3981 # environment?
3982 Darwin*)
3985 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
3987 esac
3988 else
3989 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3990 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3991 if test "${ac_cv_olimit_ok+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 else
3994 ac_save_cc="$CC"
3995 CC="$CC -Olimit 1500"
3996 if test "$cross_compiling" = yes; then
3997 ac_cv_olimit_ok=no
3998 else
3999 cat >conftest.$ac_ext <<_ACEOF
4000 /* confdefs.h. */
4001 _ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4005 int main() { return 0; }
4006 _ACEOF
4007 rm -f conftest$ac_exeext
4008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4009 (eval $ac_link) 2>&5
4010 ac_status=$?
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4014 (eval $ac_try) 2>&5
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; }; then
4018 ac_cv_olimit_ok=yes
4019 else
4020 echo "$as_me: program exited with status $ac_status" >&5
4021 echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4024 ( exit $ac_status )
4025 ac_cv_olimit_ok=no
4027 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4029 CC="$ac_save_cc"
4032 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4033 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4034 if test $ac_cv_olimit_ok = yes; then
4035 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4039 # On some compilers, pthreads are available without further options
4040 # (e.g. MacOS X). On some of these systems, the compiler will not
4041 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4042 # So we have to see first whether pthreads are available without
4043 # options before we can check whether -Kpthread improves anything.
4044 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4045 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4046 if test "${ac_cv_pthread_is_default+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049 if test "$cross_compiling" = yes; then
4050 ac_cv_pthread_is_default=no
4051 else
4052 cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h. */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4059 #include <pthread.h>
4061 void* routine(void* p){return NULL;}
4063 int main(){
4064 pthread_t p;
4065 if(pthread_create(&p,NULL,routine,NULL)!=0)
4066 return 1;
4067 (void)pthread_detach(p);
4068 return 0;
4071 _ACEOF
4072 rm -f conftest$ac_exeext
4073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4074 (eval $ac_link) 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 (eval $ac_try) 2>&5
4080 ac_status=$?
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4084 ac_cv_pthread_is_default=yes
4085 ac_cv_kthread=no
4086 ac_cv_pthread=no
4088 else
4089 echo "$as_me: program exited with status $ac_status" >&5
4090 echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4093 ( exit $ac_status )
4094 ac_cv_pthread_is_default=no
4096 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4101 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4102 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4105 if test $ac_cv_pthread_is_default = yes
4106 then
4107 ac_cv_kpthread=no
4108 else
4109 # -Kpthread, if available, provides the right #defines
4110 # and linker options to make pthread_create available
4111 # Some compilers won't report that they do not support -Kpthread,
4112 # so we need to run a program to see whether it really made the
4113 # function available.
4114 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4115 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4116 if test "${ac_cv_kpthread+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 else
4119 ac_save_cc="$CC"
4120 CC="$CC -Kpthread"
4121 if test "$cross_compiling" = yes; then
4122 ac_cv_kpthread=no
4123 else
4124 cat >conftest.$ac_ext <<_ACEOF
4125 /* confdefs.h. */
4126 _ACEOF
4127 cat confdefs.h >>conftest.$ac_ext
4128 cat >>conftest.$ac_ext <<_ACEOF
4129 /* end confdefs.h. */
4131 #include <pthread.h>
4133 void* routine(void* p){return NULL;}
4135 int main(){
4136 pthread_t p;
4137 if(pthread_create(&p,NULL,routine,NULL)!=0)
4138 return 1;
4139 (void)pthread_detach(p);
4140 return 0;
4143 _ACEOF
4144 rm -f conftest$ac_exeext
4145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4146 (eval $ac_link) 2>&5
4147 ac_status=$?
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151 (eval $ac_try) 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
4155 ac_cv_kpthread=yes
4156 else
4157 echo "$as_me: program exited with status $ac_status" >&5
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4161 ( exit $ac_status )
4162 ac_cv_kpthread=no
4164 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4166 CC="$ac_save_cc"
4169 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4170 echo "${ECHO_T}$ac_cv_kpthread" >&6
4173 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4174 then
4175 # -Kthread, if available, provides the right #defines
4176 # and linker options to make pthread_create available
4177 # Some compilers won't report that they do not support -Kthread,
4178 # so we need to run a program to see whether it really made the
4179 # function available.
4180 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4181 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4182 if test "${ac_cv_kthread+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 else
4185 ac_save_cc="$CC"
4186 CC="$CC -Kthread"
4187 if test "$cross_compiling" = yes; then
4188 ac_cv_kthread=no
4189 else
4190 cat >conftest.$ac_ext <<_ACEOF
4191 /* confdefs.h. */
4192 _ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4197 #include <pthread.h>
4199 void* routine(void* p){return NULL;}
4201 int main(){
4202 pthread_t p;
4203 if(pthread_create(&p,NULL,routine,NULL)!=0)
4204 return 1;
4205 (void)pthread_detach(p);
4206 return 0;
4209 _ACEOF
4210 rm -f conftest$ac_exeext
4211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4212 (eval $ac_link) 2>&5
4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217 (eval $ac_try) 2>&5
4218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
4221 ac_cv_kthread=yes
4222 else
4223 echo "$as_me: program exited with status $ac_status" >&5
4224 echo "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.$ac_ext >&5
4227 ( exit $ac_status )
4228 ac_cv_kthread=no
4230 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4232 CC="$ac_save_cc"
4235 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4236 echo "${ECHO_T}$ac_cv_kthread" >&6
4239 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
4240 then
4241 # -pthread, if available, provides the right #defines
4242 # and linker options to make pthread_create available
4243 # Some compilers won't report that they do not support -pthread,
4244 # so we need to run a program to see whether it really made the
4245 # function available.
4246 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4247 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4248 if test "${ac_cv_thread+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251 ac_save_cc="$CC"
4252 CC="$CC -pthread"
4253 if test "$cross_compiling" = yes; then
4254 ac_cv_pthread=no
4255 else
4256 cat >conftest.$ac_ext <<_ACEOF
4257 /* confdefs.h. */
4258 _ACEOF
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h. */
4263 #include <pthread.h>
4265 void* routine(void* p){return NULL;}
4267 int main(){
4268 pthread_t p;
4269 if(pthread_create(&p,NULL,routine,NULL)!=0)
4270 return 1;
4271 (void)pthread_detach(p);
4272 return 0;
4275 _ACEOF
4276 rm -f conftest$ac_exeext
4277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4278 (eval $ac_link) 2>&5
4279 ac_status=$?
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283 (eval $ac_try) 2>&5
4284 ac_status=$?
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; }; then
4287 ac_cv_pthread=yes
4288 else
4289 echo "$as_me: program exited with status $ac_status" >&5
4290 echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4293 ( exit $ac_status )
4294 ac_cv_pthread=no
4296 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4298 CC="$ac_save_cc"
4301 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4302 echo "${ECHO_T}$ac_cv_pthread" >&6
4305 # If we have set a CC compiler flag for thread support then
4306 # check if it works for CXX, too.
4307 ac_cv_cxx_thread=no
4308 if test ! -z "$CXX"
4309 then
4310 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4311 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4312 ac_save_cxx="$CXX"
4314 if test "$ac_cv_kpthread" = "yes"
4315 then
4316 CXX="$CXX -Kpthread"
4317 ac_cv_cxx_thread=yes
4318 elif test "$ac_cv_kthread" = "yes"
4319 then
4320 CXX="$CXX -Kthread"
4321 ac_cv_cxx_thread=yes
4322 elif test "$ac_cv_pthread" = "yes"
4323 then
4324 CXX="$CXX -pthread"
4325 ac_cv_cxx_thread=yes
4328 if test $ac_cv_cxx_thread = yes
4329 then
4330 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
4331 $CXX -c conftest.$ac_ext 2>&5
4332 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
4333 && test -s conftest$ac_exeext && ./conftest$ac_exeext
4334 then
4335 ac_cv_cxx_thread=yes
4336 else
4337 ac_cv_cxx_thread=no
4339 rm -fr conftest*
4341 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4342 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4344 CXX="$ac_save_cxx"
4347 # checks for header files
4348 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4349 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4350 if test "${ac_cv_header_stdc+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353 cat >conftest.$ac_ext <<_ACEOF
4354 /* confdefs.h. */
4355 _ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4359 #include <stdlib.h>
4360 #include <stdarg.h>
4361 #include <string.h>
4362 #include <float.h>
4365 main ()
4369 return 0;
4371 _ACEOF
4372 rm -f conftest.$ac_objext
4373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4374 (eval $ac_compile) 2>conftest.er1
4375 ac_status=$?
4376 grep -v '^ *+' conftest.er1 >conftest.err
4377 rm -f conftest.er1
4378 cat conftest.err >&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); } &&
4381 { ac_try='test -z "$ac_c_werror_flag"
4382 || test ! -s conftest.err'
4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384 (eval $ac_try) 2>&5
4385 ac_status=$?
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; } &&
4388 { ac_try='test -s conftest.$ac_objext'
4389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390 (eval $ac_try) 2>&5
4391 ac_status=$?
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; }; then
4394 ac_cv_header_stdc=yes
4395 else
4396 echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.$ac_ext >&5
4399 ac_cv_header_stdc=no
4401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4403 if test $ac_cv_header_stdc = yes; then
4404 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4405 cat >conftest.$ac_ext <<_ACEOF
4406 /* confdefs.h. */
4407 _ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4411 #include <string.h>
4413 _ACEOF
4414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4415 $EGREP "memchr" >/dev/null 2>&1; then
4417 else
4418 ac_cv_header_stdc=no
4420 rm -f conftest*
4424 if test $ac_cv_header_stdc = yes; then
4425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4426 cat >conftest.$ac_ext <<_ACEOF
4427 /* confdefs.h. */
4428 _ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4432 #include <stdlib.h>
4434 _ACEOF
4435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4436 $EGREP "free" >/dev/null 2>&1; then
4438 else
4439 ac_cv_header_stdc=no
4441 rm -f conftest*
4445 if test $ac_cv_header_stdc = yes; then
4446 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4447 if test "$cross_compiling" = yes; then
4449 else
4450 cat >conftest.$ac_ext <<_ACEOF
4451 /* confdefs.h. */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4456 #include <ctype.h>
4457 #if ((' ' & 0x0FF) == 0x020)
4458 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4459 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4460 #else
4461 # define ISLOWER(c) \
4462 (('a' <= (c) && (c) <= 'i') \
4463 || ('j' <= (c) && (c) <= 'r') \
4464 || ('s' <= (c) && (c) <= 'z'))
4465 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4466 #endif
4468 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4470 main ()
4472 int i;
4473 for (i = 0; i < 256; i++)
4474 if (XOR (islower (i), ISLOWER (i))
4475 || toupper (i) != TOUPPER (i))
4476 exit(2);
4477 exit (0);
4479 _ACEOF
4480 rm -f conftest$ac_exeext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4482 (eval $ac_link) 2>&5
4483 ac_status=$?
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 (eval $ac_try) 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4492 else
4493 echo "$as_me: program exited with status $ac_status" >&5
4494 echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.$ac_ext >&5
4497 ( exit $ac_status )
4498 ac_cv_header_stdc=no
4500 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4504 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4505 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4506 if test $ac_cv_header_stdc = yes; then
4508 cat >>confdefs.h <<\_ACEOF
4509 #define STDC_HEADERS 1
4510 _ACEOF
4514 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4524 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4525 inttypes.h stdint.h unistd.h
4527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4528 echo "$as_me:$LINENO: checking for $ac_header" >&5
4529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533 cat >conftest.$ac_ext <<_ACEOF
4534 /* confdefs.h. */
4535 _ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4539 $ac_includes_default
4541 #include <$ac_header>
4542 _ACEOF
4543 rm -f conftest.$ac_objext
4544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4545 (eval $ac_compile) 2>conftest.er1
4546 ac_status=$?
4547 grep -v '^ *+' conftest.er1 >conftest.err
4548 rm -f conftest.er1
4549 cat conftest.err >&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
4552 { ac_try='test -z "$ac_c_werror_flag"
4553 || test ! -s conftest.err'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 (eval $ac_try) 2>&5
4556 ac_status=$?
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; } &&
4559 { ac_try='test -s conftest.$ac_objext'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561 (eval $ac_try) 2>&5
4562 ac_status=$?
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4565 eval "$as_ac_Header=yes"
4566 else
4567 echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4570 eval "$as_ac_Header=no"
4572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4577 cat >>confdefs.h <<_ACEOF
4578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4579 _ACEOF
4583 done
4634 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
4635 fcntl.h grp.h \
4636 shadow.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
4637 signal.h stropts.h termios.h thread.h \
4638 unistd.h utime.h \
4639 sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
4640 sys/modem.h \
4641 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
4642 sys/time.h \
4643 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
4644 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
4645 bluetooth/bluetooth.h
4647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4649 echo "$as_me:$LINENO: checking for $ac_header" >&5
4650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4656 else
4657 # Is the header compilable?
4658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4660 cat >conftest.$ac_ext <<_ACEOF
4661 /* confdefs.h. */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4666 $ac_includes_default
4667 #include <$ac_header>
4668 _ACEOF
4669 rm -f conftest.$ac_objext
4670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4671 (eval $ac_compile) 2>conftest.er1
4672 ac_status=$?
4673 grep -v '^ *+' conftest.er1 >conftest.err
4674 rm -f conftest.er1
4675 cat conftest.err >&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } &&
4678 { ac_try='test -z "$ac_c_werror_flag"
4679 || test ! -s conftest.err'
4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681 (eval $ac_try) 2>&5
4682 ac_status=$?
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }; } &&
4685 { ac_try='test -s conftest.$ac_objext'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687 (eval $ac_try) 2>&5
4688 ac_status=$?
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4691 ac_header_compiler=yes
4692 else
4693 echo "$as_me: failed program was:" >&5
4694 sed 's/^/| /' conftest.$ac_ext >&5
4696 ac_header_compiler=no
4698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4700 echo "${ECHO_T}$ac_header_compiler" >&6
4702 # Is the header present?
4703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4705 cat >conftest.$ac_ext <<_ACEOF
4706 /* confdefs.h. */
4707 _ACEOF
4708 cat confdefs.h >>conftest.$ac_ext
4709 cat >>conftest.$ac_ext <<_ACEOF
4710 /* end confdefs.h. */
4711 #include <$ac_header>
4712 _ACEOF
4713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4715 ac_status=$?
4716 grep -v '^ *+' conftest.er1 >conftest.err
4717 rm -f conftest.er1
4718 cat conftest.err >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } >/dev/null; then
4721 if test -s conftest.err; then
4722 ac_cpp_err=$ac_c_preproc_warn_flag
4723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4724 else
4725 ac_cpp_err=
4727 else
4728 ac_cpp_err=yes
4730 if test -z "$ac_cpp_err"; then
4731 ac_header_preproc=yes
4732 else
4733 echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.$ac_ext >&5
4736 ac_header_preproc=no
4738 rm -f conftest.err conftest.$ac_ext
4739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4740 echo "${ECHO_T}$ac_header_preproc" >&6
4742 # So? What about this header?
4743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4744 yes:no: )
4745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4749 ac_header_preproc=yes
4751 no:yes:* )
4752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4755 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4759 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4765 cat <<\_ASBOX
4766 ## ------------------------------------------------ ##
4767 ## Report this to http://www.python.org/python-bugs ##
4768 ## ------------------------------------------------ ##
4769 _ASBOX
4771 sed "s/^/$as_me: WARNING: /" >&2
4773 esac
4774 echo "$as_me:$LINENO: checking for $ac_header" >&5
4775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 else
4779 eval "$as_ac_Header=\$ac_header_preproc"
4781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4786 cat >>confdefs.h <<_ACEOF
4787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4788 _ACEOF
4792 done
4799 ac_header_dirent=no
4800 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4801 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4802 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4803 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 else
4807 cat >conftest.$ac_ext <<_ACEOF
4808 /* confdefs.h. */
4809 _ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h. */
4813 #include <sys/types.h>
4814 #include <$ac_hdr>
4817 main ()
4819 if ((DIR *) 0)
4820 return 0;
4822 return 0;
4824 _ACEOF
4825 rm -f conftest.$ac_objext
4826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4827 (eval $ac_compile) 2>conftest.er1
4828 ac_status=$?
4829 grep -v '^ *+' conftest.er1 >conftest.err
4830 rm -f conftest.er1
4831 cat conftest.err >&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); } &&
4834 { ac_try='test -z "$ac_c_werror_flag"
4835 || test ! -s conftest.err'
4836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4837 (eval $ac_try) 2>&5
4838 ac_status=$?
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }; } &&
4841 { ac_try='test -s conftest.$ac_objext'
4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843 (eval $ac_try) 2>&5
4844 ac_status=$?
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; }; then
4847 eval "$as_ac_Header=yes"
4848 else
4849 echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4852 eval "$as_ac_Header=no"
4854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4859 cat >>confdefs.h <<_ACEOF
4860 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4861 _ACEOF
4863 ac_header_dirent=$ac_hdr; break
4866 done
4867 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4868 if test $ac_header_dirent = dirent.h; then
4869 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4870 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4871 if test "${ac_cv_search_opendir+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4873 else
4874 ac_func_search_save_LIBS=$LIBS
4875 ac_cv_search_opendir=no
4876 cat >conftest.$ac_ext <<_ACEOF
4877 /* confdefs.h. */
4878 _ACEOF
4879 cat confdefs.h >>conftest.$ac_ext
4880 cat >>conftest.$ac_ext <<_ACEOF
4881 /* end confdefs.h. */
4883 /* Override any gcc2 internal prototype to avoid an error. */
4884 #ifdef __cplusplus
4885 extern "C"
4886 #endif
4887 /* We use char because int might match the return type of a gcc2
4888 builtin and then its argument prototype would still apply. */
4889 char opendir ();
4891 main ()
4893 opendir ();
4895 return 0;
4897 _ACEOF
4898 rm -f conftest.$ac_objext conftest$ac_exeext
4899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4900 (eval $ac_link) 2>conftest.er1
4901 ac_status=$?
4902 grep -v '^ *+' conftest.er1 >conftest.err
4903 rm -f conftest.er1
4904 cat conftest.err >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } &&
4907 { ac_try='test -z "$ac_c_werror_flag"
4908 || test ! -s conftest.err'
4909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910 (eval $ac_try) 2>&5
4911 ac_status=$?
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }; } &&
4914 { ac_try='test -s conftest$ac_exeext'
4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 (eval $ac_try) 2>&5
4917 ac_status=$?
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; }; then
4920 ac_cv_search_opendir="none required"
4921 else
4922 echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4926 rm -f conftest.err conftest.$ac_objext \
4927 conftest$ac_exeext conftest.$ac_ext
4928 if test "$ac_cv_search_opendir" = no; then
4929 for ac_lib in dir; do
4930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4931 cat >conftest.$ac_ext <<_ACEOF
4932 /* confdefs.h. */
4933 _ACEOF
4934 cat confdefs.h >>conftest.$ac_ext
4935 cat >>conftest.$ac_ext <<_ACEOF
4936 /* end confdefs.h. */
4938 /* Override any gcc2 internal prototype to avoid an error. */
4939 #ifdef __cplusplus
4940 extern "C"
4941 #endif
4942 /* We use char because int might match the return type of a gcc2
4943 builtin and then its argument prototype would still apply. */
4944 char opendir ();
4946 main ()
4948 opendir ();
4950 return 0;
4952 _ACEOF
4953 rm -f conftest.$ac_objext conftest$ac_exeext
4954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4955 (eval $ac_link) 2>conftest.er1
4956 ac_status=$?
4957 grep -v '^ *+' conftest.er1 >conftest.err
4958 rm -f conftest.er1
4959 cat conftest.err >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } &&
4962 { ac_try='test -z "$ac_c_werror_flag"
4963 || test ! -s conftest.err'
4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965 (eval $ac_try) 2>&5
4966 ac_status=$?
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; } &&
4969 { ac_try='test -s conftest$ac_exeext'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971 (eval $ac_try) 2>&5
4972 ac_status=$?
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; }; then
4975 ac_cv_search_opendir="-l$ac_lib"
4976 break
4977 else
4978 echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4982 rm -f conftest.err conftest.$ac_objext \
4983 conftest$ac_exeext conftest.$ac_ext
4984 done
4986 LIBS=$ac_func_search_save_LIBS
4988 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4989 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4990 if test "$ac_cv_search_opendir" != no; then
4991 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4995 else
4996 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4997 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4998 if test "${ac_cv_search_opendir+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5000 else
5001 ac_func_search_save_LIBS=$LIBS
5002 ac_cv_search_opendir=no
5003 cat >conftest.$ac_ext <<_ACEOF
5004 /* confdefs.h. */
5005 _ACEOF
5006 cat confdefs.h >>conftest.$ac_ext
5007 cat >>conftest.$ac_ext <<_ACEOF
5008 /* end confdefs.h. */
5010 /* Override any gcc2 internal prototype to avoid an error. */
5011 #ifdef __cplusplus
5012 extern "C"
5013 #endif
5014 /* We use char because int might match the return type of a gcc2
5015 builtin and then its argument prototype would still apply. */
5016 char opendir ();
5018 main ()
5020 opendir ();
5022 return 0;
5024 _ACEOF
5025 rm -f conftest.$ac_objext conftest$ac_exeext
5026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5027 (eval $ac_link) 2>conftest.er1
5028 ac_status=$?
5029 grep -v '^ *+' conftest.er1 >conftest.err
5030 rm -f conftest.er1
5031 cat conftest.err >&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); } &&
5034 { ac_try='test -z "$ac_c_werror_flag"
5035 || test ! -s conftest.err'
5036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037 (eval $ac_try) 2>&5
5038 ac_status=$?
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; } &&
5041 { ac_try='test -s conftest$ac_exeext'
5042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5043 (eval $ac_try) 2>&5
5044 ac_status=$?
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); }; }; then
5047 ac_cv_search_opendir="none required"
5048 else
5049 echo "$as_me: failed program was:" >&5
5050 sed 's/^/| /' conftest.$ac_ext >&5
5053 rm -f conftest.err conftest.$ac_objext \
5054 conftest$ac_exeext conftest.$ac_ext
5055 if test "$ac_cv_search_opendir" = no; then
5056 for ac_lib in x; do
5057 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5058 cat >conftest.$ac_ext <<_ACEOF
5059 /* confdefs.h. */
5060 _ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h. */
5065 /* Override any gcc2 internal prototype to avoid an error. */
5066 #ifdef __cplusplus
5067 extern "C"
5068 #endif
5069 /* We use char because int might match the return type of a gcc2
5070 builtin and then its argument prototype would still apply. */
5071 char opendir ();
5073 main ()
5075 opendir ();
5077 return 0;
5079 _ACEOF
5080 rm -f conftest.$ac_objext conftest$ac_exeext
5081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5082 (eval $ac_link) 2>conftest.er1
5083 ac_status=$?
5084 grep -v '^ *+' conftest.er1 >conftest.err
5085 rm -f conftest.er1
5086 cat conftest.err >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); } &&
5089 { ac_try='test -z "$ac_c_werror_flag"
5090 || test ! -s conftest.err'
5091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092 (eval $ac_try) 2>&5
5093 ac_status=$?
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); }; } &&
5096 { ac_try='test -s conftest$ac_exeext'
5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098 (eval $ac_try) 2>&5
5099 ac_status=$?
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; }; then
5102 ac_cv_search_opendir="-l$ac_lib"
5103 break
5104 else
5105 echo "$as_me: failed program was:" >&5
5106 sed 's/^/| /' conftest.$ac_ext >&5
5109 rm -f conftest.err conftest.$ac_objext \
5110 conftest$ac_exeext conftest.$ac_ext
5111 done
5113 LIBS=$ac_func_search_save_LIBS
5115 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5116 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5117 if test "$ac_cv_search_opendir" != no; then
5118 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5124 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5125 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5126 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5128 else
5129 cat >conftest.$ac_ext <<_ACEOF
5130 /* confdefs.h. */
5131 _ACEOF
5132 cat confdefs.h >>conftest.$ac_ext
5133 cat >>conftest.$ac_ext <<_ACEOF
5134 /* end confdefs.h. */
5135 #include <sys/types.h>
5137 main ()
5139 return makedev(0, 0);
5141 return 0;
5143 _ACEOF
5144 rm -f conftest.$ac_objext conftest$ac_exeext
5145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5146 (eval $ac_link) 2>conftest.er1
5147 ac_status=$?
5148 grep -v '^ *+' conftest.er1 >conftest.err
5149 rm -f conftest.er1
5150 cat conftest.err >&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); } &&
5153 { ac_try='test -z "$ac_c_werror_flag"
5154 || test ! -s conftest.err'
5155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5156 (eval $ac_try) 2>&5
5157 ac_status=$?
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); }; } &&
5160 { ac_try='test -s conftest$ac_exeext'
5161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5162 (eval $ac_try) 2>&5
5163 ac_status=$?
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); }; }; then
5166 ac_cv_header_sys_types_h_makedev=yes
5167 else
5168 echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.$ac_ext >&5
5171 ac_cv_header_sys_types_h_makedev=no
5173 rm -f conftest.err conftest.$ac_objext \
5174 conftest$ac_exeext conftest.$ac_ext
5177 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5178 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5180 if test $ac_cv_header_sys_types_h_makedev = no; then
5181 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5182 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5183 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5184 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5188 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5189 else
5190 # Is the header compilable?
5191 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5192 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5193 cat >conftest.$ac_ext <<_ACEOF
5194 /* confdefs.h. */
5195 _ACEOF
5196 cat confdefs.h >>conftest.$ac_ext
5197 cat >>conftest.$ac_ext <<_ACEOF
5198 /* end confdefs.h. */
5199 $ac_includes_default
5200 #include <sys/mkdev.h>
5201 _ACEOF
5202 rm -f conftest.$ac_objext
5203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5204 (eval $ac_compile) 2>conftest.er1
5205 ac_status=$?
5206 grep -v '^ *+' conftest.er1 >conftest.err
5207 rm -f conftest.er1
5208 cat conftest.err >&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); } &&
5211 { ac_try='test -z "$ac_c_werror_flag"
5212 || test ! -s conftest.err'
5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214 (eval $ac_try) 2>&5
5215 ac_status=$?
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; } &&
5218 { ac_try='test -s conftest.$ac_objext'
5219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220 (eval $ac_try) 2>&5
5221 ac_status=$?
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }; }; then
5224 ac_header_compiler=yes
5225 else
5226 echo "$as_me: failed program was:" >&5
5227 sed 's/^/| /' conftest.$ac_ext >&5
5229 ac_header_compiler=no
5231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5233 echo "${ECHO_T}$ac_header_compiler" >&6
5235 # Is the header present?
5236 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5237 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5238 cat >conftest.$ac_ext <<_ACEOF
5239 /* confdefs.h. */
5240 _ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5244 #include <sys/mkdev.h>
5245 _ACEOF
5246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5248 ac_status=$?
5249 grep -v '^ *+' conftest.er1 >conftest.err
5250 rm -f conftest.er1
5251 cat conftest.err >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); } >/dev/null; then
5254 if test -s conftest.err; then
5255 ac_cpp_err=$ac_c_preproc_warn_flag
5256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5257 else
5258 ac_cpp_err=
5260 else
5261 ac_cpp_err=yes
5263 if test -z "$ac_cpp_err"; then
5264 ac_header_preproc=yes
5265 else
5266 echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5269 ac_header_preproc=no
5271 rm -f conftest.err conftest.$ac_ext
5272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5273 echo "${ECHO_T}$ac_header_preproc" >&6
5275 # So? What about this header?
5276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5277 yes:no: )
5278 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5279 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5280 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5281 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5282 ac_header_preproc=yes
5284 no:yes:* )
5285 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5286 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5287 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5288 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5289 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5290 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5291 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5292 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5293 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5294 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5295 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5296 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5298 cat <<\_ASBOX
5299 ## ------------------------------------------------ ##
5300 ## Report this to http://www.python.org/python-bugs ##
5301 ## ------------------------------------------------ ##
5302 _ASBOX
5304 sed "s/^/$as_me: WARNING: /" >&2
5306 esac
5307 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5308 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5309 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 else
5312 ac_cv_header_sys_mkdev_h=$ac_header_preproc
5314 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5315 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5318 if test $ac_cv_header_sys_mkdev_h = yes; then
5320 cat >>confdefs.h <<\_ACEOF
5321 #define MAJOR_IN_MKDEV 1
5322 _ACEOF
5328 if test $ac_cv_header_sys_mkdev_h = no; then
5329 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5330 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5331 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5332 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5336 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5337 else
5338 # Is the header compilable?
5339 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5340 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5341 cat >conftest.$ac_ext <<_ACEOF
5342 /* confdefs.h. */
5343 _ACEOF
5344 cat confdefs.h >>conftest.$ac_ext
5345 cat >>conftest.$ac_ext <<_ACEOF
5346 /* end confdefs.h. */
5347 $ac_includes_default
5348 #include <sys/sysmacros.h>
5349 _ACEOF
5350 rm -f conftest.$ac_objext
5351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5352 (eval $ac_compile) 2>conftest.er1
5353 ac_status=$?
5354 grep -v '^ *+' conftest.er1 >conftest.err
5355 rm -f conftest.er1
5356 cat conftest.err >&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); } &&
5359 { ac_try='test -z "$ac_c_werror_flag"
5360 || test ! -s conftest.err'
5361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5362 (eval $ac_try) 2>&5
5363 ac_status=$?
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); }; } &&
5366 { ac_try='test -s conftest.$ac_objext'
5367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 (eval $ac_try) 2>&5
5369 ac_status=$?
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; }; then
5372 ac_header_compiler=yes
5373 else
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5377 ac_header_compiler=no
5379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5380 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5381 echo "${ECHO_T}$ac_header_compiler" >&6
5383 # Is the header present?
5384 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5385 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5386 cat >conftest.$ac_ext <<_ACEOF
5387 /* confdefs.h. */
5388 _ACEOF
5389 cat confdefs.h >>conftest.$ac_ext
5390 cat >>conftest.$ac_ext <<_ACEOF
5391 /* end confdefs.h. */
5392 #include <sys/sysmacros.h>
5393 _ACEOF
5394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5396 ac_status=$?
5397 grep -v '^ *+' conftest.er1 >conftest.err
5398 rm -f conftest.er1
5399 cat conftest.err >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } >/dev/null; then
5402 if test -s conftest.err; then
5403 ac_cpp_err=$ac_c_preproc_warn_flag
5404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5405 else
5406 ac_cpp_err=
5408 else
5409 ac_cpp_err=yes
5411 if test -z "$ac_cpp_err"; then
5412 ac_header_preproc=yes
5413 else
5414 echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5417 ac_header_preproc=no
5419 rm -f conftest.err conftest.$ac_ext
5420 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5421 echo "${ECHO_T}$ac_header_preproc" >&6
5423 # So? What about this header?
5424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5425 yes:no: )
5426 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5427 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5428 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5429 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5430 ac_header_preproc=yes
5432 no:yes:* )
5433 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5434 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5435 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5436 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5437 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5438 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5439 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5440 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5441 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5442 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5443 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5444 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5446 cat <<\_ASBOX
5447 ## ------------------------------------------------ ##
5448 ## Report this to http://www.python.org/python-bugs ##
5449 ## ------------------------------------------------ ##
5450 _ASBOX
5452 sed "s/^/$as_me: WARNING: /" >&2
5454 esac
5455 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5456 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5457 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
5462 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5463 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5466 if test $ac_cv_header_sys_sysmacros_h = yes; then
5468 cat >>confdefs.h <<\_ACEOF
5469 #define MAJOR_IN_SYSMACROS 1
5470 _ACEOF
5479 # On Solaris, term.h requires curses.h
5481 for ac_header in term.h
5483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5484 echo "$as_me:$LINENO: checking for $ac_header" >&5
5485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 else
5489 cat >conftest.$ac_ext <<_ACEOF
5490 /* confdefs.h. */
5491 _ACEOF
5492 cat confdefs.h >>conftest.$ac_ext
5493 cat >>conftest.$ac_ext <<_ACEOF
5494 /* end confdefs.h. */
5496 #ifdef HAVE_CURSES_H
5497 #include <curses.h>
5498 #endif
5501 #include <$ac_header>
5502 _ACEOF
5503 rm -f conftest.$ac_objext
5504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5505 (eval $ac_compile) 2>conftest.er1
5506 ac_status=$?
5507 grep -v '^ *+' conftest.er1 >conftest.err
5508 rm -f conftest.er1
5509 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } &&
5512 { ac_try='test -z "$ac_c_werror_flag"
5513 || test ! -s conftest.err'
5514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515 (eval $ac_try) 2>&5
5516 ac_status=$?
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); }; } &&
5519 { ac_try='test -s conftest.$ac_objext'
5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521 (eval $ac_try) 2>&5
5522 ac_status=$?
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; }; then
5525 eval "$as_ac_Header=yes"
5526 else
5527 echo "$as_me: failed program was:" >&5
5528 sed 's/^/| /' conftest.$ac_ext >&5
5530 eval "$as_ac_Header=no"
5532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5537 cat >>confdefs.h <<_ACEOF
5538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5539 _ACEOF
5543 done
5546 # On Linux, netlink.h requires asm/types.h
5548 for ac_header in linux/netlink.h
5550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5551 echo "$as_me:$LINENO: checking for $ac_header" >&5
5552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 else
5556 cat >conftest.$ac_ext <<_ACEOF
5557 /* confdefs.h. */
5558 _ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5563 #ifdef HAVE_ASM_TYPES_H
5564 #include <asm/types.h>
5565 #endif
5566 #ifdef HAVE_SYS_SOCKET_H
5567 #include <sys/socket.h>
5568 #endif
5571 #include <$ac_header>
5572 _ACEOF
5573 rm -f conftest.$ac_objext
5574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5575 (eval $ac_compile) 2>conftest.er1
5576 ac_status=$?
5577 grep -v '^ *+' conftest.er1 >conftest.err
5578 rm -f conftest.er1
5579 cat conftest.err >&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } &&
5582 { ac_try='test -z "$ac_c_werror_flag"
5583 || test ! -s conftest.err'
5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585 (eval $ac_try) 2>&5
5586 ac_status=$?
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; } &&
5589 { ac_try='test -s conftest.$ac_objext'
5590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591 (eval $ac_try) 2>&5
5592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; }; then
5595 eval "$as_ac_Header=yes"
5596 else
5597 echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.$ac_ext >&5
5600 eval "$as_ac_Header=no"
5602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5607 cat >>confdefs.h <<_ACEOF
5608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5609 _ACEOF
5613 done
5616 # checks for typedefs
5617 was_it_defined=no
5618 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5619 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5620 cat >conftest.$ac_ext <<_ACEOF
5621 /* confdefs.h. */
5622 _ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5626 #include <time.h>
5628 _ACEOF
5629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5630 $EGREP "clock_t" >/dev/null 2>&1; then
5631 was_it_defined=yes
5632 else
5635 cat >>confdefs.h <<\_ACEOF
5636 #define clock_t long
5637 _ACEOF
5641 rm -f conftest*
5643 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5644 echo "${ECHO_T}$was_it_defined" >&6
5646 # Check whether using makedev requires defining _OSF_SOURCE
5647 echo "$as_me:$LINENO: checking for makedev" >&5
5648 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5649 cat >conftest.$ac_ext <<_ACEOF
5650 /* confdefs.h. */
5651 _ACEOF
5652 cat confdefs.h >>conftest.$ac_ext
5653 cat >>conftest.$ac_ext <<_ACEOF
5654 /* end confdefs.h. */
5655 #include <sys/types.h>
5657 main ()
5659 makedev(0, 0)
5661 return 0;
5663 _ACEOF
5664 rm -f conftest.$ac_objext conftest$ac_exeext
5665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5666 (eval $ac_link) 2>conftest.er1
5667 ac_status=$?
5668 grep -v '^ *+' conftest.er1 >conftest.err
5669 rm -f conftest.er1
5670 cat conftest.err >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } &&
5673 { ac_try='test -z "$ac_c_werror_flag"
5674 || test ! -s conftest.err'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676 (eval $ac_try) 2>&5
5677 ac_status=$?
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; } &&
5680 { ac_try='test -s conftest$ac_exeext'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 (eval $ac_try) 2>&5
5683 ac_status=$?
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; }; then
5686 ac_cv_has_makedev=yes
5687 else
5688 echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.$ac_ext >&5
5691 ac_cv_has_makedev=no
5693 rm -f conftest.err conftest.$ac_objext \
5694 conftest$ac_exeext conftest.$ac_ext
5695 if test "$ac_cv_has_makedev" = "no"; then
5696 # we didn't link, try if _OSF_SOURCE will allow us to link
5697 cat >conftest.$ac_ext <<_ACEOF
5698 /* confdefs.h. */
5699 _ACEOF
5700 cat confdefs.h >>conftest.$ac_ext
5701 cat >>conftest.$ac_ext <<_ACEOF
5702 /* end confdefs.h. */
5704 #define _OSF_SOURCE 1
5705 #include <sys/types.h>
5708 main ()
5710 makedev(0, 0)
5712 return 0;
5714 _ACEOF
5715 rm -f conftest.$ac_objext conftest$ac_exeext
5716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5717 (eval $ac_link) 2>conftest.er1
5718 ac_status=$?
5719 grep -v '^ *+' conftest.er1 >conftest.err
5720 rm -f conftest.er1
5721 cat conftest.err >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } &&
5724 { ac_try='test -z "$ac_c_werror_flag"
5725 || test ! -s conftest.err'
5726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727 (eval $ac_try) 2>&5
5728 ac_status=$?
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; } &&
5731 { ac_try='test -s conftest$ac_exeext'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733 (eval $ac_try) 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; }; then
5737 ac_cv_has_makedev=yes
5738 else
5739 echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5742 ac_cv_has_makedev=no
5744 rm -f conftest.err conftest.$ac_objext \
5745 conftest$ac_exeext conftest.$ac_ext
5746 if test "$ac_cv_has_makedev" = "yes"; then
5748 cat >>confdefs.h <<\_ACEOF
5749 #define _OSF_SOURCE 1
5750 _ACEOF
5754 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5755 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5756 if test "$ac_cv_has_makedev" = "yes"; then
5758 cat >>confdefs.h <<\_ACEOF
5759 #define HAVE_MAKEDEV 1
5760 _ACEOF
5764 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5765 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5766 # defined, but the compiler does not support pragma redefine_extname,
5767 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5768 # structures (such as rlimit64) without declaring them. As a
5769 # work-around, disable LFS on such configurations
5771 use_lfs=yes
5772 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5773 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5774 cat >conftest.$ac_ext <<_ACEOF
5775 /* confdefs.h. */
5776 _ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5781 #define _LARGEFILE_SOURCE 1
5782 #define _FILE_OFFSET_BITS 64
5783 #include <sys/resource.h>
5786 main ()
5788 struct rlimit foo;
5790 return 0;
5792 _ACEOF
5793 rm -f conftest.$ac_objext
5794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5795 (eval $ac_compile) 2>conftest.er1
5796 ac_status=$?
5797 grep -v '^ *+' conftest.er1 >conftest.err
5798 rm -f conftest.er1
5799 cat conftest.err >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } &&
5802 { ac_try='test -z "$ac_c_werror_flag"
5803 || test ! -s conftest.err'
5804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5805 (eval $ac_try) 2>&5
5806 ac_status=$?
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; } &&
5809 { ac_try='test -s conftest.$ac_objext'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 (eval $ac_try) 2>&5
5812 ac_status=$?
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; }; then
5815 sol_lfs_bug=no
5816 else
5817 echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.$ac_ext >&5
5820 sol_lfs_bug=yes
5822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5823 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5824 echo "${ECHO_T}$sol_lfs_bug" >&6
5825 if test "$sol_lfs_bug" = "yes"; then
5826 use_lfs=no
5829 if test "$use_lfs" = "yes"; then
5830 # Two defines needed to enable largefile support on various platforms
5831 # These may affect some typedefs
5833 cat >>confdefs.h <<\_ACEOF
5834 #define _LARGEFILE_SOURCE 1
5835 _ACEOF
5838 cat >>confdefs.h <<\_ACEOF
5839 #define _FILE_OFFSET_BITS 64
5840 _ACEOF
5844 # Add some code to confdefs.h so that the test for off_t works on SCO
5845 cat >> confdefs.h <<\EOF
5846 #if defined(SCO_DS)
5847 #undef _OFF_T
5848 #endif
5851 # Type availability checks
5852 echo "$as_me:$LINENO: checking for mode_t" >&5
5853 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5854 if test "${ac_cv_type_mode_t+set}" = set; then
5855 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 else
5857 cat >conftest.$ac_ext <<_ACEOF
5858 /* confdefs.h. */
5859 _ACEOF
5860 cat confdefs.h >>conftest.$ac_ext
5861 cat >>conftest.$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5863 $ac_includes_default
5865 main ()
5867 if ((mode_t *) 0)
5868 return 0;
5869 if (sizeof (mode_t))
5870 return 0;
5872 return 0;
5874 _ACEOF
5875 rm -f conftest.$ac_objext
5876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5877 (eval $ac_compile) 2>conftest.er1
5878 ac_status=$?
5879 grep -v '^ *+' conftest.er1 >conftest.err
5880 rm -f conftest.er1
5881 cat conftest.err >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } &&
5884 { ac_try='test -z "$ac_c_werror_flag"
5885 || test ! -s conftest.err'
5886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887 (eval $ac_try) 2>&5
5888 ac_status=$?
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; } &&
5891 { ac_try='test -s conftest.$ac_objext'
5892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893 (eval $ac_try) 2>&5
5894 ac_status=$?
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; }; then
5897 ac_cv_type_mode_t=yes
5898 else
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5902 ac_cv_type_mode_t=no
5904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5906 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5907 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5908 if test $ac_cv_type_mode_t = yes; then
5910 else
5912 cat >>confdefs.h <<_ACEOF
5913 #define mode_t int
5914 _ACEOF
5918 echo "$as_me:$LINENO: checking for off_t" >&5
5919 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5920 if test "${ac_cv_type_off_t+set}" = set; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 else
5923 cat >conftest.$ac_ext <<_ACEOF
5924 /* confdefs.h. */
5925 _ACEOF
5926 cat confdefs.h >>conftest.$ac_ext
5927 cat >>conftest.$ac_ext <<_ACEOF
5928 /* end confdefs.h. */
5929 $ac_includes_default
5931 main ()
5933 if ((off_t *) 0)
5934 return 0;
5935 if (sizeof (off_t))
5936 return 0;
5938 return 0;
5940 _ACEOF
5941 rm -f conftest.$ac_objext
5942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5943 (eval $ac_compile) 2>conftest.er1
5944 ac_status=$?
5945 grep -v '^ *+' conftest.er1 >conftest.err
5946 rm -f conftest.er1
5947 cat conftest.err >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } &&
5950 { ac_try='test -z "$ac_c_werror_flag"
5951 || test ! -s conftest.err'
5952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953 (eval $ac_try) 2>&5
5954 ac_status=$?
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); }; } &&
5957 { ac_try='test -s conftest.$ac_objext'
5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959 (eval $ac_try) 2>&5
5960 ac_status=$?
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; }; then
5963 ac_cv_type_off_t=yes
5964 else
5965 echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.$ac_ext >&5
5968 ac_cv_type_off_t=no
5970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5972 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5973 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5974 if test $ac_cv_type_off_t = yes; then
5976 else
5978 cat >>confdefs.h <<_ACEOF
5979 #define off_t long
5980 _ACEOF
5984 echo "$as_me:$LINENO: checking for pid_t" >&5
5985 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5986 if test "${ac_cv_type_pid_t+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5989 cat >conftest.$ac_ext <<_ACEOF
5990 /* confdefs.h. */
5991 _ACEOF
5992 cat confdefs.h >>conftest.$ac_ext
5993 cat >>conftest.$ac_ext <<_ACEOF
5994 /* end confdefs.h. */
5995 $ac_includes_default
5997 main ()
5999 if ((pid_t *) 0)
6000 return 0;
6001 if (sizeof (pid_t))
6002 return 0;
6004 return 0;
6006 _ACEOF
6007 rm -f conftest.$ac_objext
6008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6009 (eval $ac_compile) 2>conftest.er1
6010 ac_status=$?
6011 grep -v '^ *+' conftest.er1 >conftest.err
6012 rm -f conftest.er1
6013 cat conftest.err >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } &&
6016 { ac_try='test -z "$ac_c_werror_flag"
6017 || test ! -s conftest.err'
6018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019 (eval $ac_try) 2>&5
6020 ac_status=$?
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); }; } &&
6023 { ac_try='test -s conftest.$ac_objext'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 (eval $ac_try) 2>&5
6026 ac_status=$?
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; }; then
6029 ac_cv_type_pid_t=yes
6030 else
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6034 ac_cv_type_pid_t=no
6036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6038 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6039 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6040 if test $ac_cv_type_pid_t = yes; then
6042 else
6044 cat >>confdefs.h <<_ACEOF
6045 #define pid_t int
6046 _ACEOF
6050 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6051 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6052 if test "${ac_cv_type_signal+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 else
6055 cat >conftest.$ac_ext <<_ACEOF
6056 /* confdefs.h. */
6057 _ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6061 #include <sys/types.h>
6062 #include <signal.h>
6063 #ifdef signal
6064 # undef signal
6065 #endif
6066 #ifdef __cplusplus
6067 extern "C" void (*signal (int, void (*)(int)))(int);
6068 #else
6069 void (*signal ()) ();
6070 #endif
6073 main ()
6075 int i;
6077 return 0;
6079 _ACEOF
6080 rm -f conftest.$ac_objext
6081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6082 (eval $ac_compile) 2>conftest.er1
6083 ac_status=$?
6084 grep -v '^ *+' conftest.er1 >conftest.err
6085 rm -f conftest.er1
6086 cat conftest.err >&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } &&
6089 { ac_try='test -z "$ac_c_werror_flag"
6090 || test ! -s conftest.err'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 (eval $ac_try) 2>&5
6093 ac_status=$?
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; } &&
6096 { ac_try='test -s conftest.$ac_objext'
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 (eval $ac_try) 2>&5
6099 ac_status=$?
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; }; then
6102 ac_cv_type_signal=void
6103 else
6104 echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.$ac_ext >&5
6107 ac_cv_type_signal=int
6109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6111 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6112 echo "${ECHO_T}$ac_cv_type_signal" >&6
6114 cat >>confdefs.h <<_ACEOF
6115 #define RETSIGTYPE $ac_cv_type_signal
6116 _ACEOF
6119 echo "$as_me:$LINENO: checking for size_t" >&5
6120 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6121 if test "${ac_cv_type_size_t+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 else
6124 cat >conftest.$ac_ext <<_ACEOF
6125 /* confdefs.h. */
6126 _ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6130 $ac_includes_default
6132 main ()
6134 if ((size_t *) 0)
6135 return 0;
6136 if (sizeof (size_t))
6137 return 0;
6139 return 0;
6141 _ACEOF
6142 rm -f conftest.$ac_objext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6144 (eval $ac_compile) 2>conftest.er1
6145 ac_status=$?
6146 grep -v '^ *+' conftest.er1 >conftest.err
6147 rm -f conftest.er1
6148 cat conftest.err >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try='test -z "$ac_c_werror_flag"
6152 || test ! -s conftest.err'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154 (eval $ac_try) 2>&5
6155 ac_status=$?
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; } &&
6158 { ac_try='test -s conftest.$ac_objext'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 (eval $ac_try) 2>&5
6161 ac_status=$?
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; }; then
6164 ac_cv_type_size_t=yes
6165 else
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6169 ac_cv_type_size_t=no
6171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6173 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6174 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6175 if test $ac_cv_type_size_t = yes; then
6177 else
6179 cat >>confdefs.h <<_ACEOF
6180 #define size_t unsigned
6181 _ACEOF
6185 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6186 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6187 if test "${ac_cv_type_uid_t+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 else
6190 cat >conftest.$ac_ext <<_ACEOF
6191 /* confdefs.h. */
6192 _ACEOF
6193 cat confdefs.h >>conftest.$ac_ext
6194 cat >>conftest.$ac_ext <<_ACEOF
6195 /* end confdefs.h. */
6196 #include <sys/types.h>
6198 _ACEOF
6199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6200 $EGREP "uid_t" >/dev/null 2>&1; then
6201 ac_cv_type_uid_t=yes
6202 else
6203 ac_cv_type_uid_t=no
6205 rm -f conftest*
6208 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6209 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6210 if test $ac_cv_type_uid_t = no; then
6212 cat >>confdefs.h <<\_ACEOF
6213 #define uid_t int
6214 _ACEOF
6217 cat >>confdefs.h <<\_ACEOF
6218 #define gid_t int
6219 _ACEOF
6223 echo "$as_me:$LINENO: checking for ssize_t" >&5
6224 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6225 if test "${ac_cv_type_ssize_t+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6227 else
6228 cat >conftest.$ac_ext <<_ACEOF
6229 /* confdefs.h. */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6234 $ac_includes_default
6236 main ()
6238 if ((ssize_t *) 0)
6239 return 0;
6240 if (sizeof (ssize_t))
6241 return 0;
6243 return 0;
6245 _ACEOF
6246 rm -f conftest.$ac_objext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6248 (eval $ac_compile) 2>conftest.er1
6249 ac_status=$?
6250 grep -v '^ *+' conftest.er1 >conftest.err
6251 rm -f conftest.er1
6252 cat conftest.err >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } &&
6255 { ac_try='test -z "$ac_c_werror_flag"
6256 || test ! -s conftest.err'
6257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6258 (eval $ac_try) 2>&5
6259 ac_status=$?
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; } &&
6262 { ac_try='test -s conftest.$ac_objext'
6263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264 (eval $ac_try) 2>&5
6265 ac_status=$?
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; }; then
6268 ac_cv_type_ssize_t=yes
6269 else
6270 echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6273 ac_cv_type_ssize_t=no
6275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6277 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6278 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6279 if test $ac_cv_type_ssize_t = yes; then
6281 cat >>confdefs.h <<\_ACEOF
6282 #define HAVE_SSIZE_T 1
6283 _ACEOF
6288 # Sizes of various common basic types
6289 # ANSI C requires sizeof(char) == 1, so no need to check it
6290 echo "$as_me:$LINENO: checking for int" >&5
6291 echo $ECHO_N "checking for int... $ECHO_C" >&6
6292 if test "${ac_cv_type_int+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6294 else
6295 cat >conftest.$ac_ext <<_ACEOF
6296 /* confdefs.h. */
6297 _ACEOF
6298 cat confdefs.h >>conftest.$ac_ext
6299 cat >>conftest.$ac_ext <<_ACEOF
6300 /* end confdefs.h. */
6301 $ac_includes_default
6303 main ()
6305 if ((int *) 0)
6306 return 0;
6307 if (sizeof (int))
6308 return 0;
6310 return 0;
6312 _ACEOF
6313 rm -f conftest.$ac_objext
6314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6315 (eval $ac_compile) 2>conftest.er1
6316 ac_status=$?
6317 grep -v '^ *+' conftest.er1 >conftest.err
6318 rm -f conftest.er1
6319 cat conftest.err >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } &&
6322 { ac_try='test -z "$ac_c_werror_flag"
6323 || test ! -s conftest.err'
6324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325 (eval $ac_try) 2>&5
6326 ac_status=$?
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; } &&
6329 { ac_try='test -s conftest.$ac_objext'
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331 (eval $ac_try) 2>&5
6332 ac_status=$?
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; }; then
6335 ac_cv_type_int=yes
6336 else
6337 echo "$as_me: failed program was:" >&5
6338 sed 's/^/| /' conftest.$ac_ext >&5
6340 ac_cv_type_int=no
6342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6344 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6345 echo "${ECHO_T}$ac_cv_type_int" >&6
6347 echo "$as_me:$LINENO: checking size of int" >&5
6348 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6349 if test "${ac_cv_sizeof_int+set}" = set; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6351 else
6352 if test "$ac_cv_type_int" = yes; then
6353 # The cast to unsigned long works around a bug in the HP C Compiler
6354 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6355 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6356 # This bug is HP SR number 8606223364.
6357 if test "$cross_compiling" = yes; then
6358 # Depending upon the size, compute the lo and hi bounds.
6359 cat >conftest.$ac_ext <<_ACEOF
6360 /* confdefs.h. */
6361 _ACEOF
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h. */
6365 $ac_includes_default
6367 main ()
6369 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6370 test_array [0] = 0
6373 return 0;
6375 _ACEOF
6376 rm -f conftest.$ac_objext
6377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6378 (eval $ac_compile) 2>conftest.er1
6379 ac_status=$?
6380 grep -v '^ *+' conftest.er1 >conftest.err
6381 rm -f conftest.er1
6382 cat conftest.err >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } &&
6385 { ac_try='test -z "$ac_c_werror_flag"
6386 || test ! -s conftest.err'
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388 (eval $ac_try) 2>&5
6389 ac_status=$?
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; } &&
6392 { ac_try='test -s conftest.$ac_objext'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 (eval $ac_try) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; }; then
6398 ac_lo=0 ac_mid=0
6399 while :; do
6400 cat >conftest.$ac_ext <<_ACEOF
6401 /* confdefs.h. */
6402 _ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h. */
6406 $ac_includes_default
6408 main ()
6410 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6411 test_array [0] = 0
6414 return 0;
6416 _ACEOF
6417 rm -f conftest.$ac_objext
6418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6419 (eval $ac_compile) 2>conftest.er1
6420 ac_status=$?
6421 grep -v '^ *+' conftest.er1 >conftest.err
6422 rm -f conftest.er1
6423 cat conftest.err >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } &&
6426 { ac_try='test -z "$ac_c_werror_flag"
6427 || test ! -s conftest.err'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 (eval $ac_try) 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; } &&
6433 { ac_try='test -s conftest.$ac_objext'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 (eval $ac_try) 2>&5
6436 ac_status=$?
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 ac_hi=$ac_mid; break
6440 else
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6444 ac_lo=`expr $ac_mid + 1`
6445 if test $ac_lo -le $ac_mid; then
6446 ac_lo= ac_hi=
6447 break
6449 ac_mid=`expr 2 '*' $ac_mid + 1`
6451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6452 done
6453 else
6454 echo "$as_me: failed program was:" >&5
6455 sed 's/^/| /' conftest.$ac_ext >&5
6457 cat >conftest.$ac_ext <<_ACEOF
6458 /* confdefs.h. */
6459 _ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6463 $ac_includes_default
6465 main ()
6467 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6468 test_array [0] = 0
6471 return 0;
6473 _ACEOF
6474 rm -f conftest.$ac_objext
6475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6476 (eval $ac_compile) 2>conftest.er1
6477 ac_status=$?
6478 grep -v '^ *+' conftest.er1 >conftest.err
6479 rm -f conftest.er1
6480 cat conftest.err >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } &&
6483 { ac_try='test -z "$ac_c_werror_flag"
6484 || test ! -s conftest.err'
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486 (eval $ac_try) 2>&5
6487 ac_status=$?
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; } &&
6490 { ac_try='test -s conftest.$ac_objext'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 (eval $ac_try) 2>&5
6493 ac_status=$?
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; }; then
6496 ac_hi=-1 ac_mid=-1
6497 while :; do
6498 cat >conftest.$ac_ext <<_ACEOF
6499 /* confdefs.h. */
6500 _ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h. */
6504 $ac_includes_default
6506 main ()
6508 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6509 test_array [0] = 0
6512 return 0;
6514 _ACEOF
6515 rm -f conftest.$ac_objext
6516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6517 (eval $ac_compile) 2>conftest.er1
6518 ac_status=$?
6519 grep -v '^ *+' conftest.er1 >conftest.err
6520 rm -f conftest.er1
6521 cat conftest.err >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } &&
6524 { ac_try='test -z "$ac_c_werror_flag"
6525 || test ! -s conftest.err'
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527 (eval $ac_try) 2>&5
6528 ac_status=$?
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; } &&
6531 { ac_try='test -s conftest.$ac_objext'
6532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533 (eval $ac_try) 2>&5
6534 ac_status=$?
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; }; then
6537 ac_lo=$ac_mid; break
6538 else
6539 echo "$as_me: failed program was:" >&5
6540 sed 's/^/| /' conftest.$ac_ext >&5
6542 ac_hi=`expr '(' $ac_mid ')' - 1`
6543 if test $ac_mid -le $ac_hi; then
6544 ac_lo= ac_hi=
6545 break
6547 ac_mid=`expr 2 '*' $ac_mid`
6549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6550 done
6551 else
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6555 ac_lo= ac_hi=
6557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6560 # Binary search between lo and hi bounds.
6561 while test "x$ac_lo" != "x$ac_hi"; do
6562 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6563 cat >conftest.$ac_ext <<_ACEOF
6564 /* confdefs.h. */
6565 _ACEOF
6566 cat confdefs.h >>conftest.$ac_ext
6567 cat >>conftest.$ac_ext <<_ACEOF
6568 /* end confdefs.h. */
6569 $ac_includes_default
6571 main ()
6573 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6574 test_array [0] = 0
6577 return 0;
6579 _ACEOF
6580 rm -f conftest.$ac_objext
6581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6582 (eval $ac_compile) 2>conftest.er1
6583 ac_status=$?
6584 grep -v '^ *+' conftest.er1 >conftest.err
6585 rm -f conftest.er1
6586 cat conftest.err >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } &&
6589 { ac_try='test -z "$ac_c_werror_flag"
6590 || test ! -s conftest.err'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 (eval $ac_try) 2>&5
6593 ac_status=$?
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; } &&
6596 { ac_try='test -s conftest.$ac_objext'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598 (eval $ac_try) 2>&5
6599 ac_status=$?
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; }; then
6602 ac_hi=$ac_mid
6603 else
6604 echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6607 ac_lo=`expr '(' $ac_mid ')' + 1`
6609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6610 done
6611 case $ac_lo in
6612 ?*) ac_cv_sizeof_int=$ac_lo;;
6613 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6614 See \`config.log' for more details." >&5
6615 echo "$as_me: error: cannot compute sizeof (int), 77
6616 See \`config.log' for more details." >&2;}
6617 { (exit 1); exit 1; }; } ;;
6618 esac
6619 else
6620 if test "$cross_compiling" = yes; then
6621 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6622 See \`config.log' for more details." >&5
6623 echo "$as_me: error: cannot run test program while cross compiling
6624 See \`config.log' for more details." >&2;}
6625 { (exit 1); exit 1; }; }
6626 else
6627 cat >conftest.$ac_ext <<_ACEOF
6628 /* confdefs.h. */
6629 _ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h. */
6633 $ac_includes_default
6634 long longval () { return (long) (sizeof (int)); }
6635 unsigned long ulongval () { return (long) (sizeof (int)); }
6636 #include <stdio.h>
6637 #include <stdlib.h>
6639 main ()
6642 FILE *f = fopen ("conftest.val", "w");
6643 if (! f)
6644 exit (1);
6645 if (((long) (sizeof (int))) < 0)
6647 long i = longval ();
6648 if (i != ((long) (sizeof (int))))
6649 exit (1);
6650 fprintf (f, "%ld\n", i);
6652 else
6654 unsigned long i = ulongval ();
6655 if (i != ((long) (sizeof (int))))
6656 exit (1);
6657 fprintf (f, "%lu\n", i);
6659 exit (ferror (f) || fclose (f) != 0);
6662 return 0;
6664 _ACEOF
6665 rm -f conftest$ac_exeext
6666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6667 (eval $ac_link) 2>&5
6668 ac_status=$?
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6672 (eval $ac_try) 2>&5
6673 ac_status=$?
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); }; }; then
6676 ac_cv_sizeof_int=`cat conftest.val`
6677 else
6678 echo "$as_me: program exited with status $ac_status" >&5
6679 echo "$as_me: failed program was:" >&5
6680 sed 's/^/| /' conftest.$ac_ext >&5
6682 ( exit $ac_status )
6683 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6684 See \`config.log' for more details." >&5
6685 echo "$as_me: error: cannot compute sizeof (int), 77
6686 See \`config.log' for more details." >&2;}
6687 { (exit 1); exit 1; }; }
6689 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6692 rm -f conftest.val
6693 else
6694 ac_cv_sizeof_int=0
6697 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6698 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6699 cat >>confdefs.h <<_ACEOF
6700 #define SIZEOF_INT $ac_cv_sizeof_int
6701 _ACEOF
6704 echo "$as_me:$LINENO: checking for long" >&5
6705 echo $ECHO_N "checking for long... $ECHO_C" >&6
6706 if test "${ac_cv_type_long+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6708 else
6709 cat >conftest.$ac_ext <<_ACEOF
6710 /* confdefs.h. */
6711 _ACEOF
6712 cat confdefs.h >>conftest.$ac_ext
6713 cat >>conftest.$ac_ext <<_ACEOF
6714 /* end confdefs.h. */
6715 $ac_includes_default
6717 main ()
6719 if ((long *) 0)
6720 return 0;
6721 if (sizeof (long))
6722 return 0;
6724 return 0;
6726 _ACEOF
6727 rm -f conftest.$ac_objext
6728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6729 (eval $ac_compile) 2>conftest.er1
6730 ac_status=$?
6731 grep -v '^ *+' conftest.er1 >conftest.err
6732 rm -f conftest.er1
6733 cat conftest.err >&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } &&
6736 { ac_try='test -z "$ac_c_werror_flag"
6737 || test ! -s conftest.err'
6738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6739 (eval $ac_try) 2>&5
6740 ac_status=$?
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); }; } &&
6743 { ac_try='test -s conftest.$ac_objext'
6744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745 (eval $ac_try) 2>&5
6746 ac_status=$?
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); }; }; then
6749 ac_cv_type_long=yes
6750 else
6751 echo "$as_me: failed program was:" >&5
6752 sed 's/^/| /' conftest.$ac_ext >&5
6754 ac_cv_type_long=no
6756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6758 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6759 echo "${ECHO_T}$ac_cv_type_long" >&6
6761 echo "$as_me:$LINENO: checking size of long" >&5
6762 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6763 if test "${ac_cv_sizeof_long+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766 if test "$ac_cv_type_long" = yes; then
6767 # The cast to unsigned long works around a bug in the HP C Compiler
6768 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6769 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6770 # This bug is HP SR number 8606223364.
6771 if test "$cross_compiling" = yes; then
6772 # Depending upon the size, compute the lo and hi bounds.
6773 cat >conftest.$ac_ext <<_ACEOF
6774 /* confdefs.h. */
6775 _ACEOF
6776 cat confdefs.h >>conftest.$ac_ext
6777 cat >>conftest.$ac_ext <<_ACEOF
6778 /* end confdefs.h. */
6779 $ac_includes_default
6781 main ()
6783 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6784 test_array [0] = 0
6787 return 0;
6789 _ACEOF
6790 rm -f conftest.$ac_objext
6791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6792 (eval $ac_compile) 2>conftest.er1
6793 ac_status=$?
6794 grep -v '^ *+' conftest.er1 >conftest.err
6795 rm -f conftest.er1
6796 cat conftest.err >&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } &&
6799 { ac_try='test -z "$ac_c_werror_flag"
6800 || test ! -s conftest.err'
6801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802 (eval $ac_try) 2>&5
6803 ac_status=$?
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); }; } &&
6806 { ac_try='test -s conftest.$ac_objext'
6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808 (eval $ac_try) 2>&5
6809 ac_status=$?
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; }; then
6812 ac_lo=0 ac_mid=0
6813 while :; do
6814 cat >conftest.$ac_ext <<_ACEOF
6815 /* confdefs.h. */
6816 _ACEOF
6817 cat confdefs.h >>conftest.$ac_ext
6818 cat >>conftest.$ac_ext <<_ACEOF
6819 /* end confdefs.h. */
6820 $ac_includes_default
6822 main ()
6824 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6825 test_array [0] = 0
6828 return 0;
6830 _ACEOF
6831 rm -f conftest.$ac_objext
6832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6833 (eval $ac_compile) 2>conftest.er1
6834 ac_status=$?
6835 grep -v '^ *+' conftest.er1 >conftest.err
6836 rm -f conftest.er1
6837 cat conftest.err >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } &&
6840 { ac_try='test -z "$ac_c_werror_flag"
6841 || test ! -s conftest.err'
6842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6843 (eval $ac_try) 2>&5
6844 ac_status=$?
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); }; } &&
6847 { ac_try='test -s conftest.$ac_objext'
6848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6849 (eval $ac_try) 2>&5
6850 ac_status=$?
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); }; }; then
6853 ac_hi=$ac_mid; break
6854 else
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.$ac_ext >&5
6858 ac_lo=`expr $ac_mid + 1`
6859 if test $ac_lo -le $ac_mid; then
6860 ac_lo= ac_hi=
6861 break
6863 ac_mid=`expr 2 '*' $ac_mid + 1`
6865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6866 done
6867 else
6868 echo "$as_me: failed program was:" >&5
6869 sed 's/^/| /' conftest.$ac_ext >&5
6871 cat >conftest.$ac_ext <<_ACEOF
6872 /* confdefs.h. */
6873 _ACEOF
6874 cat confdefs.h >>conftest.$ac_ext
6875 cat >>conftest.$ac_ext <<_ACEOF
6876 /* end confdefs.h. */
6877 $ac_includes_default
6879 main ()
6881 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6882 test_array [0] = 0
6885 return 0;
6887 _ACEOF
6888 rm -f conftest.$ac_objext
6889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6890 (eval $ac_compile) 2>conftest.er1
6891 ac_status=$?
6892 grep -v '^ *+' conftest.er1 >conftest.err
6893 rm -f conftest.er1
6894 cat conftest.err >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } &&
6897 { ac_try='test -z "$ac_c_werror_flag"
6898 || test ! -s conftest.err'
6899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900 (eval $ac_try) 2>&5
6901 ac_status=$?
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); }; } &&
6904 { ac_try='test -s conftest.$ac_objext'
6905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906 (eval $ac_try) 2>&5
6907 ac_status=$?
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); }; }; then
6910 ac_hi=-1 ac_mid=-1
6911 while :; do
6912 cat >conftest.$ac_ext <<_ACEOF
6913 /* confdefs.h. */
6914 _ACEOF
6915 cat confdefs.h >>conftest.$ac_ext
6916 cat >>conftest.$ac_ext <<_ACEOF
6917 /* end confdefs.h. */
6918 $ac_includes_default
6920 main ()
6922 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6923 test_array [0] = 0
6926 return 0;
6928 _ACEOF
6929 rm -f conftest.$ac_objext
6930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6931 (eval $ac_compile) 2>conftest.er1
6932 ac_status=$?
6933 grep -v '^ *+' conftest.er1 >conftest.err
6934 rm -f conftest.er1
6935 cat conftest.err >&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } &&
6938 { ac_try='test -z "$ac_c_werror_flag"
6939 || test ! -s conftest.err'
6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6941 (eval $ac_try) 2>&5
6942 ac_status=$?
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; } &&
6945 { ac_try='test -s conftest.$ac_objext'
6946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947 (eval $ac_try) 2>&5
6948 ac_status=$?
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; }; then
6951 ac_lo=$ac_mid; break
6952 else
6953 echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.$ac_ext >&5
6956 ac_hi=`expr '(' $ac_mid ')' - 1`
6957 if test $ac_mid -le $ac_hi; then
6958 ac_lo= ac_hi=
6959 break
6961 ac_mid=`expr 2 '*' $ac_mid`
6963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6964 done
6965 else
6966 echo "$as_me: failed program was:" >&5
6967 sed 's/^/| /' conftest.$ac_ext >&5
6969 ac_lo= ac_hi=
6971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6974 # Binary search between lo and hi bounds.
6975 while test "x$ac_lo" != "x$ac_hi"; do
6976 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6977 cat >conftest.$ac_ext <<_ACEOF
6978 /* confdefs.h. */
6979 _ACEOF
6980 cat confdefs.h >>conftest.$ac_ext
6981 cat >>conftest.$ac_ext <<_ACEOF
6982 /* end confdefs.h. */
6983 $ac_includes_default
6985 main ()
6987 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6988 test_array [0] = 0
6991 return 0;
6993 _ACEOF
6994 rm -f conftest.$ac_objext
6995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6996 (eval $ac_compile) 2>conftest.er1
6997 ac_status=$?
6998 grep -v '^ *+' conftest.er1 >conftest.err
6999 rm -f conftest.er1
7000 cat conftest.err >&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); } &&
7003 { ac_try='test -z "$ac_c_werror_flag"
7004 || test ! -s conftest.err'
7005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006 (eval $ac_try) 2>&5
7007 ac_status=$?
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; } &&
7010 { ac_try='test -s conftest.$ac_objext'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 (eval $ac_try) 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; }; then
7016 ac_hi=$ac_mid
7017 else
7018 echo "$as_me: failed program was:" >&5
7019 sed 's/^/| /' conftest.$ac_ext >&5
7021 ac_lo=`expr '(' $ac_mid ')' + 1`
7023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7024 done
7025 case $ac_lo in
7026 ?*) ac_cv_sizeof_long=$ac_lo;;
7027 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7028 See \`config.log' for more details." >&5
7029 echo "$as_me: error: cannot compute sizeof (long), 77
7030 See \`config.log' for more details." >&2;}
7031 { (exit 1); exit 1; }; } ;;
7032 esac
7033 else
7034 if test "$cross_compiling" = yes; then
7035 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7036 See \`config.log' for more details." >&5
7037 echo "$as_me: error: cannot run test program while cross compiling
7038 See \`config.log' for more details." >&2;}
7039 { (exit 1); exit 1; }; }
7040 else
7041 cat >conftest.$ac_ext <<_ACEOF
7042 /* confdefs.h. */
7043 _ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7047 $ac_includes_default
7048 long longval () { return (long) (sizeof (long)); }
7049 unsigned long ulongval () { return (long) (sizeof (long)); }
7050 #include <stdio.h>
7051 #include <stdlib.h>
7053 main ()
7056 FILE *f = fopen ("conftest.val", "w");
7057 if (! f)
7058 exit (1);
7059 if (((long) (sizeof (long))) < 0)
7061 long i = longval ();
7062 if (i != ((long) (sizeof (long))))
7063 exit (1);
7064 fprintf (f, "%ld\n", i);
7066 else
7068 unsigned long i = ulongval ();
7069 if (i != ((long) (sizeof (long))))
7070 exit (1);
7071 fprintf (f, "%lu\n", i);
7073 exit (ferror (f) || fclose (f) != 0);
7076 return 0;
7078 _ACEOF
7079 rm -f conftest$ac_exeext
7080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7081 (eval $ac_link) 2>&5
7082 ac_status=$?
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086 (eval $ac_try) 2>&5
7087 ac_status=$?
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); }; }; then
7090 ac_cv_sizeof_long=`cat conftest.val`
7091 else
7092 echo "$as_me: program exited with status $ac_status" >&5
7093 echo "$as_me: failed program was:" >&5
7094 sed 's/^/| /' conftest.$ac_ext >&5
7096 ( exit $ac_status )
7097 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7098 See \`config.log' for more details." >&5
7099 echo "$as_me: error: cannot compute sizeof (long), 77
7100 See \`config.log' for more details." >&2;}
7101 { (exit 1); exit 1; }; }
7103 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7106 rm -f conftest.val
7107 else
7108 ac_cv_sizeof_long=0
7111 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7112 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7113 cat >>confdefs.h <<_ACEOF
7114 #define SIZEOF_LONG $ac_cv_sizeof_long
7115 _ACEOF
7118 echo "$as_me:$LINENO: checking for void *" >&5
7119 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7120 if test "${ac_cv_type_void_p+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 else
7123 cat >conftest.$ac_ext <<_ACEOF
7124 /* confdefs.h. */
7125 _ACEOF
7126 cat confdefs.h >>conftest.$ac_ext
7127 cat >>conftest.$ac_ext <<_ACEOF
7128 /* end confdefs.h. */
7129 $ac_includes_default
7131 main ()
7133 if ((void * *) 0)
7134 return 0;
7135 if (sizeof (void *))
7136 return 0;
7138 return 0;
7140 _ACEOF
7141 rm -f conftest.$ac_objext
7142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7143 (eval $ac_compile) 2>conftest.er1
7144 ac_status=$?
7145 grep -v '^ *+' conftest.er1 >conftest.err
7146 rm -f conftest.er1
7147 cat conftest.err >&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } &&
7150 { ac_try='test -z "$ac_c_werror_flag"
7151 || test ! -s conftest.err'
7152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153 (eval $ac_try) 2>&5
7154 ac_status=$?
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); }; } &&
7157 { ac_try='test -s conftest.$ac_objext'
7158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159 (eval $ac_try) 2>&5
7160 ac_status=$?
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); }; }; then
7163 ac_cv_type_void_p=yes
7164 else
7165 echo "$as_me: failed program was:" >&5
7166 sed 's/^/| /' conftest.$ac_ext >&5
7168 ac_cv_type_void_p=no
7170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7172 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7173 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7175 echo "$as_me:$LINENO: checking size of void *" >&5
7176 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7177 if test "${ac_cv_sizeof_void_p+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 else
7180 if test "$ac_cv_type_void_p" = yes; then
7181 # The cast to unsigned long works around a bug in the HP C Compiler
7182 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7183 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7184 # This bug is HP SR number 8606223364.
7185 if test "$cross_compiling" = yes; then
7186 # Depending upon the size, compute the lo and hi bounds.
7187 cat >conftest.$ac_ext <<_ACEOF
7188 /* confdefs.h. */
7189 _ACEOF
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h. */
7193 $ac_includes_default
7195 main ()
7197 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7198 test_array [0] = 0
7201 return 0;
7203 _ACEOF
7204 rm -f conftest.$ac_objext
7205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7206 (eval $ac_compile) 2>conftest.er1
7207 ac_status=$?
7208 grep -v '^ *+' conftest.er1 >conftest.err
7209 rm -f conftest.er1
7210 cat conftest.err >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } &&
7213 { ac_try='test -z "$ac_c_werror_flag"
7214 || test ! -s conftest.err'
7215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216 (eval $ac_try) 2>&5
7217 ac_status=$?
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); }; } &&
7220 { ac_try='test -s conftest.$ac_objext'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222 (eval $ac_try) 2>&5
7223 ac_status=$?
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; }; then
7226 ac_lo=0 ac_mid=0
7227 while :; do
7228 cat >conftest.$ac_ext <<_ACEOF
7229 /* confdefs.h. */
7230 _ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7234 $ac_includes_default
7236 main ()
7238 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7239 test_array [0] = 0
7242 return 0;
7244 _ACEOF
7245 rm -f conftest.$ac_objext
7246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7247 (eval $ac_compile) 2>conftest.er1
7248 ac_status=$?
7249 grep -v '^ *+' conftest.er1 >conftest.err
7250 rm -f conftest.er1
7251 cat conftest.err >&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); } &&
7254 { ac_try='test -z "$ac_c_werror_flag"
7255 || test ! -s conftest.err'
7256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257 (eval $ac_try) 2>&5
7258 ac_status=$?
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); }; } &&
7261 { ac_try='test -s conftest.$ac_objext'
7262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7263 (eval $ac_try) 2>&5
7264 ac_status=$?
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); }; }; then
7267 ac_hi=$ac_mid; break
7268 else
7269 echo "$as_me: failed program was:" >&5
7270 sed 's/^/| /' conftest.$ac_ext >&5
7272 ac_lo=`expr $ac_mid + 1`
7273 if test $ac_lo -le $ac_mid; then
7274 ac_lo= ac_hi=
7275 break
7277 ac_mid=`expr 2 '*' $ac_mid + 1`
7279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7280 done
7281 else
7282 echo "$as_me: failed program was:" >&5
7283 sed 's/^/| /' conftest.$ac_ext >&5
7285 cat >conftest.$ac_ext <<_ACEOF
7286 /* confdefs.h. */
7287 _ACEOF
7288 cat confdefs.h >>conftest.$ac_ext
7289 cat >>conftest.$ac_ext <<_ACEOF
7290 /* end confdefs.h. */
7291 $ac_includes_default
7293 main ()
7295 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7296 test_array [0] = 0
7299 return 0;
7301 _ACEOF
7302 rm -f conftest.$ac_objext
7303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7304 (eval $ac_compile) 2>conftest.er1
7305 ac_status=$?
7306 grep -v '^ *+' conftest.er1 >conftest.err
7307 rm -f conftest.er1
7308 cat conftest.err >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); } &&
7311 { ac_try='test -z "$ac_c_werror_flag"
7312 || test ! -s conftest.err'
7313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314 (eval $ac_try) 2>&5
7315 ac_status=$?
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; } &&
7318 { ac_try='test -s conftest.$ac_objext'
7319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 (eval $ac_try) 2>&5
7321 ac_status=$?
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); }; }; then
7324 ac_hi=-1 ac_mid=-1
7325 while :; do
7326 cat >conftest.$ac_ext <<_ACEOF
7327 /* confdefs.h. */
7328 _ACEOF
7329 cat confdefs.h >>conftest.$ac_ext
7330 cat >>conftest.$ac_ext <<_ACEOF
7331 /* end confdefs.h. */
7332 $ac_includes_default
7334 main ()
7336 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7337 test_array [0] = 0
7340 return 0;
7342 _ACEOF
7343 rm -f conftest.$ac_objext
7344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7345 (eval $ac_compile) 2>conftest.er1
7346 ac_status=$?
7347 grep -v '^ *+' conftest.er1 >conftest.err
7348 rm -f conftest.er1
7349 cat conftest.err >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } &&
7352 { ac_try='test -z "$ac_c_werror_flag"
7353 || test ! -s conftest.err'
7354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355 (eval $ac_try) 2>&5
7356 ac_status=$?
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); }; } &&
7359 { ac_try='test -s conftest.$ac_objext'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361 (eval $ac_try) 2>&5
7362 ac_status=$?
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; }; then
7365 ac_lo=$ac_mid; break
7366 else
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7370 ac_hi=`expr '(' $ac_mid ')' - 1`
7371 if test $ac_mid -le $ac_hi; then
7372 ac_lo= ac_hi=
7373 break
7375 ac_mid=`expr 2 '*' $ac_mid`
7377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7378 done
7379 else
7380 echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.$ac_ext >&5
7383 ac_lo= ac_hi=
7385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7388 # Binary search between lo and hi bounds.
7389 while test "x$ac_lo" != "x$ac_hi"; do
7390 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7391 cat >conftest.$ac_ext <<_ACEOF
7392 /* confdefs.h. */
7393 _ACEOF
7394 cat confdefs.h >>conftest.$ac_ext
7395 cat >>conftest.$ac_ext <<_ACEOF
7396 /* end confdefs.h. */
7397 $ac_includes_default
7399 main ()
7401 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7402 test_array [0] = 0
7405 return 0;
7407 _ACEOF
7408 rm -f conftest.$ac_objext
7409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7410 (eval $ac_compile) 2>conftest.er1
7411 ac_status=$?
7412 grep -v '^ *+' conftest.er1 >conftest.err
7413 rm -f conftest.er1
7414 cat conftest.err >&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); } &&
7417 { ac_try='test -z "$ac_c_werror_flag"
7418 || test ! -s conftest.err'
7419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7420 (eval $ac_try) 2>&5
7421 ac_status=$?
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); }; } &&
7424 { ac_try='test -s conftest.$ac_objext'
7425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7426 (eval $ac_try) 2>&5
7427 ac_status=$?
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; }; then
7430 ac_hi=$ac_mid
7431 else
7432 echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7435 ac_lo=`expr '(' $ac_mid ')' + 1`
7437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7438 done
7439 case $ac_lo in
7440 ?*) ac_cv_sizeof_void_p=$ac_lo;;
7441 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7442 See \`config.log' for more details." >&5
7443 echo "$as_me: error: cannot compute sizeof (void *), 77
7444 See \`config.log' for more details." >&2;}
7445 { (exit 1); exit 1; }; } ;;
7446 esac
7447 else
7448 if test "$cross_compiling" = yes; then
7449 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7450 See \`config.log' for more details." >&5
7451 echo "$as_me: error: cannot run test program while cross compiling
7452 See \`config.log' for more details." >&2;}
7453 { (exit 1); exit 1; }; }
7454 else
7455 cat >conftest.$ac_ext <<_ACEOF
7456 /* confdefs.h. */
7457 _ACEOF
7458 cat confdefs.h >>conftest.$ac_ext
7459 cat >>conftest.$ac_ext <<_ACEOF
7460 /* end confdefs.h. */
7461 $ac_includes_default
7462 long longval () { return (long) (sizeof (void *)); }
7463 unsigned long ulongval () { return (long) (sizeof (void *)); }
7464 #include <stdio.h>
7465 #include <stdlib.h>
7467 main ()
7470 FILE *f = fopen ("conftest.val", "w");
7471 if (! f)
7472 exit (1);
7473 if (((long) (sizeof (void *))) < 0)
7475 long i = longval ();
7476 if (i != ((long) (sizeof (void *))))
7477 exit (1);
7478 fprintf (f, "%ld\n", i);
7480 else
7482 unsigned long i = ulongval ();
7483 if (i != ((long) (sizeof (void *))))
7484 exit (1);
7485 fprintf (f, "%lu\n", i);
7487 exit (ferror (f) || fclose (f) != 0);
7490 return 0;
7492 _ACEOF
7493 rm -f conftest$ac_exeext
7494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7495 (eval $ac_link) 2>&5
7496 ac_status=$?
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7500 (eval $ac_try) 2>&5
7501 ac_status=$?
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); }; }; then
7504 ac_cv_sizeof_void_p=`cat conftest.val`
7505 else
7506 echo "$as_me: program exited with status $ac_status" >&5
7507 echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7510 ( exit $ac_status )
7511 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7512 See \`config.log' for more details." >&5
7513 echo "$as_me: error: cannot compute sizeof (void *), 77
7514 See \`config.log' for more details." >&2;}
7515 { (exit 1); exit 1; }; }
7517 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7520 rm -f conftest.val
7521 else
7522 ac_cv_sizeof_void_p=0
7525 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7526 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7527 cat >>confdefs.h <<_ACEOF
7528 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7529 _ACEOF
7532 echo "$as_me:$LINENO: checking for short" >&5
7533 echo $ECHO_N "checking for short... $ECHO_C" >&6
7534 if test "${ac_cv_type_short+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 else
7537 cat >conftest.$ac_ext <<_ACEOF
7538 /* confdefs.h. */
7539 _ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7543 $ac_includes_default
7545 main ()
7547 if ((short *) 0)
7548 return 0;
7549 if (sizeof (short))
7550 return 0;
7552 return 0;
7554 _ACEOF
7555 rm -f conftest.$ac_objext
7556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7557 (eval $ac_compile) 2>conftest.er1
7558 ac_status=$?
7559 grep -v '^ *+' conftest.er1 >conftest.err
7560 rm -f conftest.er1
7561 cat conftest.err >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } &&
7564 { ac_try='test -z "$ac_c_werror_flag"
7565 || test ! -s conftest.err'
7566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567 (eval $ac_try) 2>&5
7568 ac_status=$?
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); }; } &&
7571 { ac_try='test -s conftest.$ac_objext'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573 (eval $ac_try) 2>&5
7574 ac_status=$?
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; }; then
7577 ac_cv_type_short=yes
7578 else
7579 echo "$as_me: failed program was:" >&5
7580 sed 's/^/| /' conftest.$ac_ext >&5
7582 ac_cv_type_short=no
7584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7586 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7587 echo "${ECHO_T}$ac_cv_type_short" >&6
7589 echo "$as_me:$LINENO: checking size of short" >&5
7590 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7591 if test "${ac_cv_sizeof_short+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 else
7594 if test "$ac_cv_type_short" = yes; then
7595 # The cast to unsigned long works around a bug in the HP C Compiler
7596 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7597 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7598 # This bug is HP SR number 8606223364.
7599 if test "$cross_compiling" = yes; then
7600 # Depending upon the size, compute the lo and hi bounds.
7601 cat >conftest.$ac_ext <<_ACEOF
7602 /* confdefs.h. */
7603 _ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7607 $ac_includes_default
7609 main ()
7611 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7612 test_array [0] = 0
7615 return 0;
7617 _ACEOF
7618 rm -f conftest.$ac_objext
7619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7620 (eval $ac_compile) 2>conftest.er1
7621 ac_status=$?
7622 grep -v '^ *+' conftest.er1 >conftest.err
7623 rm -f conftest.er1
7624 cat conftest.err >&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); } &&
7627 { ac_try='test -z "$ac_c_werror_flag"
7628 || test ! -s conftest.err'
7629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630 (eval $ac_try) 2>&5
7631 ac_status=$?
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); }; } &&
7634 { ac_try='test -s conftest.$ac_objext'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636 (eval $ac_try) 2>&5
7637 ac_status=$?
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; }; then
7640 ac_lo=0 ac_mid=0
7641 while :; do
7642 cat >conftest.$ac_ext <<_ACEOF
7643 /* confdefs.h. */
7644 _ACEOF
7645 cat confdefs.h >>conftest.$ac_ext
7646 cat >>conftest.$ac_ext <<_ACEOF
7647 /* end confdefs.h. */
7648 $ac_includes_default
7650 main ()
7652 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7653 test_array [0] = 0
7656 return 0;
7658 _ACEOF
7659 rm -f conftest.$ac_objext
7660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7661 (eval $ac_compile) 2>conftest.er1
7662 ac_status=$?
7663 grep -v '^ *+' conftest.er1 >conftest.err
7664 rm -f conftest.er1
7665 cat conftest.err >&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); } &&
7668 { ac_try='test -z "$ac_c_werror_flag"
7669 || test ! -s conftest.err'
7670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671 (eval $ac_try) 2>&5
7672 ac_status=$?
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; } &&
7675 { ac_try='test -s conftest.$ac_objext'
7676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7677 (eval $ac_try) 2>&5
7678 ac_status=$?
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); }; }; then
7681 ac_hi=$ac_mid; break
7682 else
7683 echo "$as_me: failed program was:" >&5
7684 sed 's/^/| /' conftest.$ac_ext >&5
7686 ac_lo=`expr $ac_mid + 1`
7687 if test $ac_lo -le $ac_mid; then
7688 ac_lo= ac_hi=
7689 break
7691 ac_mid=`expr 2 '*' $ac_mid + 1`
7693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7694 done
7695 else
7696 echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.$ac_ext >&5
7699 cat >conftest.$ac_ext <<_ACEOF
7700 /* confdefs.h. */
7701 _ACEOF
7702 cat confdefs.h >>conftest.$ac_ext
7703 cat >>conftest.$ac_ext <<_ACEOF
7704 /* end confdefs.h. */
7705 $ac_includes_default
7707 main ()
7709 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7710 test_array [0] = 0
7713 return 0;
7715 _ACEOF
7716 rm -f conftest.$ac_objext
7717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7718 (eval $ac_compile) 2>conftest.er1
7719 ac_status=$?
7720 grep -v '^ *+' conftest.er1 >conftest.err
7721 rm -f conftest.er1
7722 cat conftest.err >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); } &&
7725 { ac_try='test -z "$ac_c_werror_flag"
7726 || test ! -s conftest.err'
7727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7728 (eval $ac_try) 2>&5
7729 ac_status=$?
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; } &&
7732 { ac_try='test -s conftest.$ac_objext'
7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734 (eval $ac_try) 2>&5
7735 ac_status=$?
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; }; then
7738 ac_hi=-1 ac_mid=-1
7739 while :; do
7740 cat >conftest.$ac_ext <<_ACEOF
7741 /* confdefs.h. */
7742 _ACEOF
7743 cat confdefs.h >>conftest.$ac_ext
7744 cat >>conftest.$ac_ext <<_ACEOF
7745 /* end confdefs.h. */
7746 $ac_includes_default
7748 main ()
7750 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7751 test_array [0] = 0
7754 return 0;
7756 _ACEOF
7757 rm -f conftest.$ac_objext
7758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7759 (eval $ac_compile) 2>conftest.er1
7760 ac_status=$?
7761 grep -v '^ *+' conftest.er1 >conftest.err
7762 rm -f conftest.er1
7763 cat conftest.err >&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); } &&
7766 { ac_try='test -z "$ac_c_werror_flag"
7767 || test ! -s conftest.err'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769 (eval $ac_try) 2>&5
7770 ac_status=$?
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; } &&
7773 { ac_try='test -s conftest.$ac_objext'
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775 (eval $ac_try) 2>&5
7776 ac_status=$?
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; }; then
7779 ac_lo=$ac_mid; break
7780 else
7781 echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.$ac_ext >&5
7784 ac_hi=`expr '(' $ac_mid ')' - 1`
7785 if test $ac_mid -le $ac_hi; then
7786 ac_lo= ac_hi=
7787 break
7789 ac_mid=`expr 2 '*' $ac_mid`
7791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7792 done
7793 else
7794 echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7797 ac_lo= ac_hi=
7799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7802 # Binary search between lo and hi bounds.
7803 while test "x$ac_lo" != "x$ac_hi"; do
7804 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7805 cat >conftest.$ac_ext <<_ACEOF
7806 /* confdefs.h. */
7807 _ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h. */
7811 $ac_includes_default
7813 main ()
7815 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7816 test_array [0] = 0
7819 return 0;
7821 _ACEOF
7822 rm -f conftest.$ac_objext
7823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7824 (eval $ac_compile) 2>conftest.er1
7825 ac_status=$?
7826 grep -v '^ *+' conftest.er1 >conftest.err
7827 rm -f conftest.er1
7828 cat conftest.err >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } &&
7831 { ac_try='test -z "$ac_c_werror_flag"
7832 || test ! -s conftest.err'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 (eval $ac_try) 2>&5
7835 ac_status=$?
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; } &&
7838 { ac_try='test -s conftest.$ac_objext'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 (eval $ac_try) 2>&5
7841 ac_status=$?
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; }; then
7844 ac_hi=$ac_mid
7845 else
7846 echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.$ac_ext >&5
7849 ac_lo=`expr '(' $ac_mid ')' + 1`
7851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7852 done
7853 case $ac_lo in
7854 ?*) ac_cv_sizeof_short=$ac_lo;;
7855 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7856 See \`config.log' for more details." >&5
7857 echo "$as_me: error: cannot compute sizeof (short), 77
7858 See \`config.log' for more details." >&2;}
7859 { (exit 1); exit 1; }; } ;;
7860 esac
7861 else
7862 if test "$cross_compiling" = yes; then
7863 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7864 See \`config.log' for more details." >&5
7865 echo "$as_me: error: cannot run test program while cross compiling
7866 See \`config.log' for more details." >&2;}
7867 { (exit 1); exit 1; }; }
7868 else
7869 cat >conftest.$ac_ext <<_ACEOF
7870 /* confdefs.h. */
7871 _ACEOF
7872 cat confdefs.h >>conftest.$ac_ext
7873 cat >>conftest.$ac_ext <<_ACEOF
7874 /* end confdefs.h. */
7875 $ac_includes_default
7876 long longval () { return (long) (sizeof (short)); }
7877 unsigned long ulongval () { return (long) (sizeof (short)); }
7878 #include <stdio.h>
7879 #include <stdlib.h>
7881 main ()
7884 FILE *f = fopen ("conftest.val", "w");
7885 if (! f)
7886 exit (1);
7887 if (((long) (sizeof (short))) < 0)
7889 long i = longval ();
7890 if (i != ((long) (sizeof (short))))
7891 exit (1);
7892 fprintf (f, "%ld\n", i);
7894 else
7896 unsigned long i = ulongval ();
7897 if (i != ((long) (sizeof (short))))
7898 exit (1);
7899 fprintf (f, "%lu\n", i);
7901 exit (ferror (f) || fclose (f) != 0);
7904 return 0;
7906 _ACEOF
7907 rm -f conftest$ac_exeext
7908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7909 (eval $ac_link) 2>&5
7910 ac_status=$?
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914 (eval $ac_try) 2>&5
7915 ac_status=$?
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }; }; then
7918 ac_cv_sizeof_short=`cat conftest.val`
7919 else
7920 echo "$as_me: program exited with status $ac_status" >&5
7921 echo "$as_me: failed program was:" >&5
7922 sed 's/^/| /' conftest.$ac_ext >&5
7924 ( exit $ac_status )
7925 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7926 See \`config.log' for more details." >&5
7927 echo "$as_me: error: cannot compute sizeof (short), 77
7928 See \`config.log' for more details." >&2;}
7929 { (exit 1); exit 1; }; }
7931 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7934 rm -f conftest.val
7935 else
7936 ac_cv_sizeof_short=0
7939 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7940 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7941 cat >>confdefs.h <<_ACEOF
7942 #define SIZEOF_SHORT $ac_cv_sizeof_short
7943 _ACEOF
7946 echo "$as_me:$LINENO: checking for float" >&5
7947 echo $ECHO_N "checking for float... $ECHO_C" >&6
7948 if test "${ac_cv_type_float+set}" = set; then
7949 echo $ECHO_N "(cached) $ECHO_C" >&6
7950 else
7951 cat >conftest.$ac_ext <<_ACEOF
7952 /* confdefs.h. */
7953 _ACEOF
7954 cat confdefs.h >>conftest.$ac_ext
7955 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h. */
7957 $ac_includes_default
7959 main ()
7961 if ((float *) 0)
7962 return 0;
7963 if (sizeof (float))
7964 return 0;
7966 return 0;
7968 _ACEOF
7969 rm -f conftest.$ac_objext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7971 (eval $ac_compile) 2>conftest.er1
7972 ac_status=$?
7973 grep -v '^ *+' conftest.er1 >conftest.err
7974 rm -f conftest.er1
7975 cat conftest.err >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } &&
7978 { ac_try='test -z "$ac_c_werror_flag"
7979 || test ! -s conftest.err'
7980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981 (eval $ac_try) 2>&5
7982 ac_status=$?
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; } &&
7985 { ac_try='test -s conftest.$ac_objext'
7986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987 (eval $ac_try) 2>&5
7988 ac_status=$?
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; }; then
7991 ac_cv_type_float=yes
7992 else
7993 echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7996 ac_cv_type_float=no
7998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8000 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8001 echo "${ECHO_T}$ac_cv_type_float" >&6
8003 echo "$as_me:$LINENO: checking size of float" >&5
8004 echo $ECHO_N "checking size of float... $ECHO_C" >&6
8005 if test "${ac_cv_sizeof_float+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8007 else
8008 if test "$ac_cv_type_float" = yes; then
8009 # The cast to unsigned long works around a bug in the HP C Compiler
8010 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8011 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8012 # This bug is HP SR number 8606223364.
8013 if test "$cross_compiling" = yes; then
8014 # Depending upon the size, compute the lo and hi bounds.
8015 cat >conftest.$ac_ext <<_ACEOF
8016 /* confdefs.h. */
8017 _ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h. */
8021 $ac_includes_default
8023 main ()
8025 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
8026 test_array [0] = 0
8029 return 0;
8031 _ACEOF
8032 rm -f conftest.$ac_objext
8033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8034 (eval $ac_compile) 2>conftest.er1
8035 ac_status=$?
8036 grep -v '^ *+' conftest.er1 >conftest.err
8037 rm -f conftest.er1
8038 cat conftest.err >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); } &&
8041 { ac_try='test -z "$ac_c_werror_flag"
8042 || test ! -s conftest.err'
8043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8044 (eval $ac_try) 2>&5
8045 ac_status=$?
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; } &&
8048 { ac_try='test -s conftest.$ac_objext'
8049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050 (eval $ac_try) 2>&5
8051 ac_status=$?
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); }; }; then
8054 ac_lo=0 ac_mid=0
8055 while :; do
8056 cat >conftest.$ac_ext <<_ACEOF
8057 /* confdefs.h. */
8058 _ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h. */
8062 $ac_includes_default
8064 main ()
8066 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8067 test_array [0] = 0
8070 return 0;
8072 _ACEOF
8073 rm -f conftest.$ac_objext
8074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8075 (eval $ac_compile) 2>conftest.er1
8076 ac_status=$?
8077 grep -v '^ *+' conftest.er1 >conftest.err
8078 rm -f conftest.er1
8079 cat conftest.err >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } &&
8082 { ac_try='test -z "$ac_c_werror_flag"
8083 || test ! -s conftest.err'
8084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085 (eval $ac_try) 2>&5
8086 ac_status=$?
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; } &&
8089 { ac_try='test -s conftest.$ac_objext'
8090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8091 (eval $ac_try) 2>&5
8092 ac_status=$?
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; }; then
8095 ac_hi=$ac_mid; break
8096 else
8097 echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.$ac_ext >&5
8100 ac_lo=`expr $ac_mid + 1`
8101 if test $ac_lo -le $ac_mid; then
8102 ac_lo= ac_hi=
8103 break
8105 ac_mid=`expr 2 '*' $ac_mid + 1`
8107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8108 done
8109 else
8110 echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8113 cat >conftest.$ac_ext <<_ACEOF
8114 /* confdefs.h. */
8115 _ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8119 $ac_includes_default
8121 main ()
8123 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8124 test_array [0] = 0
8127 return 0;
8129 _ACEOF
8130 rm -f conftest.$ac_objext
8131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8132 (eval $ac_compile) 2>conftest.er1
8133 ac_status=$?
8134 grep -v '^ *+' conftest.er1 >conftest.err
8135 rm -f conftest.er1
8136 cat conftest.err >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); } &&
8139 { ac_try='test -z "$ac_c_werror_flag"
8140 || test ! -s conftest.err'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142 (eval $ac_try) 2>&5
8143 ac_status=$?
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; } &&
8146 { ac_try='test -s conftest.$ac_objext'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148 (eval $ac_try) 2>&5
8149 ac_status=$?
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; }; then
8152 ac_hi=-1 ac_mid=-1
8153 while :; do
8154 cat >conftest.$ac_ext <<_ACEOF
8155 /* confdefs.h. */
8156 _ACEOF
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h. */
8160 $ac_includes_default
8162 main ()
8164 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8165 test_array [0] = 0
8168 return 0;
8170 _ACEOF
8171 rm -f conftest.$ac_objext
8172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8173 (eval $ac_compile) 2>conftest.er1
8174 ac_status=$?
8175 grep -v '^ *+' conftest.er1 >conftest.err
8176 rm -f conftest.er1
8177 cat conftest.err >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } &&
8180 { ac_try='test -z "$ac_c_werror_flag"
8181 || test ! -s conftest.err'
8182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183 (eval $ac_try) 2>&5
8184 ac_status=$?
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; } &&
8187 { ac_try='test -s conftest.$ac_objext'
8188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189 (eval $ac_try) 2>&5
8190 ac_status=$?
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; }; then
8193 ac_lo=$ac_mid; break
8194 else
8195 echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8198 ac_hi=`expr '(' $ac_mid ')' - 1`
8199 if test $ac_mid -le $ac_hi; then
8200 ac_lo= ac_hi=
8201 break
8203 ac_mid=`expr 2 '*' $ac_mid`
8205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8206 done
8207 else
8208 echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8211 ac_lo= ac_hi=
8213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8216 # Binary search between lo and hi bounds.
8217 while test "x$ac_lo" != "x$ac_hi"; do
8218 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8219 cat >conftest.$ac_ext <<_ACEOF
8220 /* confdefs.h. */
8221 _ACEOF
8222 cat confdefs.h >>conftest.$ac_ext
8223 cat >>conftest.$ac_ext <<_ACEOF
8224 /* end confdefs.h. */
8225 $ac_includes_default
8227 main ()
8229 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8230 test_array [0] = 0
8233 return 0;
8235 _ACEOF
8236 rm -f conftest.$ac_objext
8237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8238 (eval $ac_compile) 2>conftest.er1
8239 ac_status=$?
8240 grep -v '^ *+' conftest.er1 >conftest.err
8241 rm -f conftest.er1
8242 cat conftest.err >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } &&
8245 { ac_try='test -z "$ac_c_werror_flag"
8246 || test ! -s conftest.err'
8247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248 (eval $ac_try) 2>&5
8249 ac_status=$?
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); }; } &&
8252 { ac_try='test -s conftest.$ac_objext'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 (eval $ac_try) 2>&5
8255 ac_status=$?
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; }; then
8258 ac_hi=$ac_mid
8259 else
8260 echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8263 ac_lo=`expr '(' $ac_mid ')' + 1`
8265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8266 done
8267 case $ac_lo in
8268 ?*) ac_cv_sizeof_float=$ac_lo;;
8269 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8270 See \`config.log' for more details." >&5
8271 echo "$as_me: error: cannot compute sizeof (float), 77
8272 See \`config.log' for more details." >&2;}
8273 { (exit 1); exit 1; }; } ;;
8274 esac
8275 else
8276 if test "$cross_compiling" = yes; then
8277 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8278 See \`config.log' for more details." >&5
8279 echo "$as_me: error: cannot run test program while cross compiling
8280 See \`config.log' for more details." >&2;}
8281 { (exit 1); exit 1; }; }
8282 else
8283 cat >conftest.$ac_ext <<_ACEOF
8284 /* confdefs.h. */
8285 _ACEOF
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h. */
8289 $ac_includes_default
8290 long longval () { return (long) (sizeof (float)); }
8291 unsigned long ulongval () { return (long) (sizeof (float)); }
8292 #include <stdio.h>
8293 #include <stdlib.h>
8295 main ()
8298 FILE *f = fopen ("conftest.val", "w");
8299 if (! f)
8300 exit (1);
8301 if (((long) (sizeof (float))) < 0)
8303 long i = longval ();
8304 if (i != ((long) (sizeof (float))))
8305 exit (1);
8306 fprintf (f, "%ld\n", i);
8308 else
8310 unsigned long i = ulongval ();
8311 if (i != ((long) (sizeof (float))))
8312 exit (1);
8313 fprintf (f, "%lu\n", i);
8315 exit (ferror (f) || fclose (f) != 0);
8318 return 0;
8320 _ACEOF
8321 rm -f conftest$ac_exeext
8322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8323 (eval $ac_link) 2>&5
8324 ac_status=$?
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328 (eval $ac_try) 2>&5
8329 ac_status=$?
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; }; then
8332 ac_cv_sizeof_float=`cat conftest.val`
8333 else
8334 echo "$as_me: program exited with status $ac_status" >&5
8335 echo "$as_me: failed program was:" >&5
8336 sed 's/^/| /' conftest.$ac_ext >&5
8338 ( exit $ac_status )
8339 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8340 See \`config.log' for more details." >&5
8341 echo "$as_me: error: cannot compute sizeof (float), 77
8342 See \`config.log' for more details." >&2;}
8343 { (exit 1); exit 1; }; }
8345 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8348 rm -f conftest.val
8349 else
8350 ac_cv_sizeof_float=0
8353 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8354 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8355 cat >>confdefs.h <<_ACEOF
8356 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8357 _ACEOF
8360 echo "$as_me:$LINENO: checking for double" >&5
8361 echo $ECHO_N "checking for double... $ECHO_C" >&6
8362 if test "${ac_cv_type_double+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8364 else
8365 cat >conftest.$ac_ext <<_ACEOF
8366 /* confdefs.h. */
8367 _ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 $ac_includes_default
8373 main ()
8375 if ((double *) 0)
8376 return 0;
8377 if (sizeof (double))
8378 return 0;
8380 return 0;
8382 _ACEOF
8383 rm -f conftest.$ac_objext
8384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8385 (eval $ac_compile) 2>conftest.er1
8386 ac_status=$?
8387 grep -v '^ *+' conftest.er1 >conftest.err
8388 rm -f conftest.er1
8389 cat conftest.err >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); } &&
8392 { ac_try='test -z "$ac_c_werror_flag"
8393 || test ! -s conftest.err'
8394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395 (eval $ac_try) 2>&5
8396 ac_status=$?
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; } &&
8399 { ac_try='test -s conftest.$ac_objext'
8400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401 (eval $ac_try) 2>&5
8402 ac_status=$?
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; }; then
8405 ac_cv_type_double=yes
8406 else
8407 echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8410 ac_cv_type_double=no
8412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8414 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8415 echo "${ECHO_T}$ac_cv_type_double" >&6
8417 echo "$as_me:$LINENO: checking size of double" >&5
8418 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8419 if test "${ac_cv_sizeof_double+set}" = set; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8421 else
8422 if test "$ac_cv_type_double" = yes; then
8423 # The cast to unsigned long works around a bug in the HP C Compiler
8424 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8425 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8426 # This bug is HP SR number 8606223364.
8427 if test "$cross_compiling" = yes; then
8428 # Depending upon the size, compute the lo and hi bounds.
8429 cat >conftest.$ac_ext <<_ACEOF
8430 /* confdefs.h. */
8431 _ACEOF
8432 cat confdefs.h >>conftest.$ac_ext
8433 cat >>conftest.$ac_ext <<_ACEOF
8434 /* end confdefs.h. */
8435 $ac_includes_default
8437 main ()
8439 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8440 test_array [0] = 0
8443 return 0;
8445 _ACEOF
8446 rm -f conftest.$ac_objext
8447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8448 (eval $ac_compile) 2>conftest.er1
8449 ac_status=$?
8450 grep -v '^ *+' conftest.er1 >conftest.err
8451 rm -f conftest.er1
8452 cat conftest.err >&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } &&
8455 { ac_try='test -z "$ac_c_werror_flag"
8456 || test ! -s conftest.err'
8457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458 (eval $ac_try) 2>&5
8459 ac_status=$?
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; } &&
8462 { ac_try='test -s conftest.$ac_objext'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 (eval $ac_try) 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; }; then
8468 ac_lo=0 ac_mid=0
8469 while :; do
8470 cat >conftest.$ac_ext <<_ACEOF
8471 /* confdefs.h. */
8472 _ACEOF
8473 cat confdefs.h >>conftest.$ac_ext
8474 cat >>conftest.$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8476 $ac_includes_default
8478 main ()
8480 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8481 test_array [0] = 0
8484 return 0;
8486 _ACEOF
8487 rm -f conftest.$ac_objext
8488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8489 (eval $ac_compile) 2>conftest.er1
8490 ac_status=$?
8491 grep -v '^ *+' conftest.er1 >conftest.err
8492 rm -f conftest.er1
8493 cat conftest.err >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } &&
8496 { ac_try='test -z "$ac_c_werror_flag"
8497 || test ! -s conftest.err'
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499 (eval $ac_try) 2>&5
8500 ac_status=$?
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; } &&
8503 { ac_try='test -s conftest.$ac_objext'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505 (eval $ac_try) 2>&5
8506 ac_status=$?
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 ac_hi=$ac_mid; break
8510 else
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8514 ac_lo=`expr $ac_mid + 1`
8515 if test $ac_lo -le $ac_mid; then
8516 ac_lo= ac_hi=
8517 break
8519 ac_mid=`expr 2 '*' $ac_mid + 1`
8521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8522 done
8523 else
8524 echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8527 cat >conftest.$ac_ext <<_ACEOF
8528 /* confdefs.h. */
8529 _ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h. */
8533 $ac_includes_default
8535 main ()
8537 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8538 test_array [0] = 0
8541 return 0;
8543 _ACEOF
8544 rm -f conftest.$ac_objext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8546 (eval $ac_compile) 2>conftest.er1
8547 ac_status=$?
8548 grep -v '^ *+' conftest.er1 >conftest.err
8549 rm -f conftest.er1
8550 cat conftest.err >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } &&
8553 { ac_try='test -z "$ac_c_werror_flag"
8554 || test ! -s conftest.err'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; } &&
8560 { ac_try='test -s conftest.$ac_objext'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 (eval $ac_try) 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8566 ac_hi=-1 ac_mid=-1
8567 while :; do
8568 cat >conftest.$ac_ext <<_ACEOF
8569 /* confdefs.h. */
8570 _ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8574 $ac_includes_default
8576 main ()
8578 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8579 test_array [0] = 0
8582 return 0;
8584 _ACEOF
8585 rm -f conftest.$ac_objext
8586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8587 (eval $ac_compile) 2>conftest.er1
8588 ac_status=$?
8589 grep -v '^ *+' conftest.er1 >conftest.err
8590 rm -f conftest.er1
8591 cat conftest.err >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } &&
8594 { ac_try='test -z "$ac_c_werror_flag"
8595 || test ! -s conftest.err'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 (eval $ac_try) 2>&5
8598 ac_status=$?
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; } &&
8601 { ac_try='test -s conftest.$ac_objext'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603 (eval $ac_try) 2>&5
8604 ac_status=$?
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; }; then
8607 ac_lo=$ac_mid; break
8608 else
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8612 ac_hi=`expr '(' $ac_mid ')' - 1`
8613 if test $ac_mid -le $ac_hi; then
8614 ac_lo= ac_hi=
8615 break
8617 ac_mid=`expr 2 '*' $ac_mid`
8619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8620 done
8621 else
8622 echo "$as_me: failed program was:" >&5
8623 sed 's/^/| /' conftest.$ac_ext >&5
8625 ac_lo= ac_hi=
8627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8630 # Binary search between lo and hi bounds.
8631 while test "x$ac_lo" != "x$ac_hi"; do
8632 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8633 cat >conftest.$ac_ext <<_ACEOF
8634 /* confdefs.h. */
8635 _ACEOF
8636 cat confdefs.h >>conftest.$ac_ext
8637 cat >>conftest.$ac_ext <<_ACEOF
8638 /* end confdefs.h. */
8639 $ac_includes_default
8641 main ()
8643 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8644 test_array [0] = 0
8647 return 0;
8649 _ACEOF
8650 rm -f conftest.$ac_objext
8651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8652 (eval $ac_compile) 2>conftest.er1
8653 ac_status=$?
8654 grep -v '^ *+' conftest.er1 >conftest.err
8655 rm -f conftest.er1
8656 cat conftest.err >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } &&
8659 { ac_try='test -z "$ac_c_werror_flag"
8660 || test ! -s conftest.err'
8661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662 (eval $ac_try) 2>&5
8663 ac_status=$?
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; } &&
8666 { ac_try='test -s conftest.$ac_objext'
8667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668 (eval $ac_try) 2>&5
8669 ac_status=$?
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; }; then
8672 ac_hi=$ac_mid
8673 else
8674 echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8677 ac_lo=`expr '(' $ac_mid ')' + 1`
8679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8680 done
8681 case $ac_lo in
8682 ?*) ac_cv_sizeof_double=$ac_lo;;
8683 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8684 See \`config.log' for more details." >&5
8685 echo "$as_me: error: cannot compute sizeof (double), 77
8686 See \`config.log' for more details." >&2;}
8687 { (exit 1); exit 1; }; } ;;
8688 esac
8689 else
8690 if test "$cross_compiling" = yes; then
8691 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8692 See \`config.log' for more details." >&5
8693 echo "$as_me: error: cannot run test program while cross compiling
8694 See \`config.log' for more details." >&2;}
8695 { (exit 1); exit 1; }; }
8696 else
8697 cat >conftest.$ac_ext <<_ACEOF
8698 /* confdefs.h. */
8699 _ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h. */
8703 $ac_includes_default
8704 long longval () { return (long) (sizeof (double)); }
8705 unsigned long ulongval () { return (long) (sizeof (double)); }
8706 #include <stdio.h>
8707 #include <stdlib.h>
8709 main ()
8712 FILE *f = fopen ("conftest.val", "w");
8713 if (! f)
8714 exit (1);
8715 if (((long) (sizeof (double))) < 0)
8717 long i = longval ();
8718 if (i != ((long) (sizeof (double))))
8719 exit (1);
8720 fprintf (f, "%ld\n", i);
8722 else
8724 unsigned long i = ulongval ();
8725 if (i != ((long) (sizeof (double))))
8726 exit (1);
8727 fprintf (f, "%lu\n", i);
8729 exit (ferror (f) || fclose (f) != 0);
8732 return 0;
8734 _ACEOF
8735 rm -f conftest$ac_exeext
8736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8737 (eval $ac_link) 2>&5
8738 ac_status=$?
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8742 (eval $ac_try) 2>&5
8743 ac_status=$?
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); }; }; then
8746 ac_cv_sizeof_double=`cat conftest.val`
8747 else
8748 echo "$as_me: program exited with status $ac_status" >&5
8749 echo "$as_me: failed program was:" >&5
8750 sed 's/^/| /' conftest.$ac_ext >&5
8752 ( exit $ac_status )
8753 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8754 See \`config.log' for more details." >&5
8755 echo "$as_me: error: cannot compute sizeof (double), 77
8756 See \`config.log' for more details." >&2;}
8757 { (exit 1); exit 1; }; }
8759 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8762 rm -f conftest.val
8763 else
8764 ac_cv_sizeof_double=0
8767 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8768 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8769 cat >>confdefs.h <<_ACEOF
8770 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8771 _ACEOF
8774 echo "$as_me:$LINENO: checking for fpos_t" >&5
8775 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8776 if test "${ac_cv_type_fpos_t+set}" = set; then
8777 echo $ECHO_N "(cached) $ECHO_C" >&6
8778 else
8779 cat >conftest.$ac_ext <<_ACEOF
8780 /* confdefs.h. */
8781 _ACEOF
8782 cat confdefs.h >>conftest.$ac_ext
8783 cat >>conftest.$ac_ext <<_ACEOF
8784 /* end confdefs.h. */
8785 $ac_includes_default
8787 main ()
8789 if ((fpos_t *) 0)
8790 return 0;
8791 if (sizeof (fpos_t))
8792 return 0;
8794 return 0;
8796 _ACEOF
8797 rm -f conftest.$ac_objext
8798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8799 (eval $ac_compile) 2>conftest.er1
8800 ac_status=$?
8801 grep -v '^ *+' conftest.er1 >conftest.err
8802 rm -f conftest.er1
8803 cat conftest.err >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } &&
8806 { ac_try='test -z "$ac_c_werror_flag"
8807 || test ! -s conftest.err'
8808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809 (eval $ac_try) 2>&5
8810 ac_status=$?
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); }; } &&
8813 { ac_try='test -s conftest.$ac_objext'
8814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815 (eval $ac_try) 2>&5
8816 ac_status=$?
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); }; }; then
8819 ac_cv_type_fpos_t=yes
8820 else
8821 echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8824 ac_cv_type_fpos_t=no
8826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8828 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8829 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8831 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8832 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8833 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
8835 else
8836 if test "$ac_cv_type_fpos_t" = yes; then
8837 # The cast to unsigned long works around a bug in the HP C Compiler
8838 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8839 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8840 # This bug is HP SR number 8606223364.
8841 if test "$cross_compiling" = yes; then
8842 # Depending upon the size, compute the lo and hi bounds.
8843 cat >conftest.$ac_ext <<_ACEOF
8844 /* confdefs.h. */
8845 _ACEOF
8846 cat confdefs.h >>conftest.$ac_ext
8847 cat >>conftest.$ac_ext <<_ACEOF
8848 /* end confdefs.h. */
8849 $ac_includes_default
8851 main ()
8853 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8854 test_array [0] = 0
8857 return 0;
8859 _ACEOF
8860 rm -f conftest.$ac_objext
8861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8862 (eval $ac_compile) 2>conftest.er1
8863 ac_status=$?
8864 grep -v '^ *+' conftest.er1 >conftest.err
8865 rm -f conftest.er1
8866 cat conftest.err >&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); } &&
8869 { ac_try='test -z "$ac_c_werror_flag"
8870 || test ! -s conftest.err'
8871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8872 (eval $ac_try) 2>&5
8873 ac_status=$?
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); }; } &&
8876 { ac_try='test -s conftest.$ac_objext'
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878 (eval $ac_try) 2>&5
8879 ac_status=$?
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; }; then
8882 ac_lo=0 ac_mid=0
8883 while :; do
8884 cat >conftest.$ac_ext <<_ACEOF
8885 /* confdefs.h. */
8886 _ACEOF
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8890 $ac_includes_default
8892 main ()
8894 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8895 test_array [0] = 0
8898 return 0;
8900 _ACEOF
8901 rm -f conftest.$ac_objext
8902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8903 (eval $ac_compile) 2>conftest.er1
8904 ac_status=$?
8905 grep -v '^ *+' conftest.er1 >conftest.err
8906 rm -f conftest.er1
8907 cat conftest.err >&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); } &&
8910 { ac_try='test -z "$ac_c_werror_flag"
8911 || test ! -s conftest.err'
8912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913 (eval $ac_try) 2>&5
8914 ac_status=$?
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; } &&
8917 { ac_try='test -s conftest.$ac_objext'
8918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919 (eval $ac_try) 2>&5
8920 ac_status=$?
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); }; }; then
8923 ac_hi=$ac_mid; break
8924 else
8925 echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.$ac_ext >&5
8928 ac_lo=`expr $ac_mid + 1`
8929 if test $ac_lo -le $ac_mid; then
8930 ac_lo= ac_hi=
8931 break
8933 ac_mid=`expr 2 '*' $ac_mid + 1`
8935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8936 done
8937 else
8938 echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8941 cat >conftest.$ac_ext <<_ACEOF
8942 /* confdefs.h. */
8943 _ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8947 $ac_includes_default
8949 main ()
8951 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8952 test_array [0] = 0
8955 return 0;
8957 _ACEOF
8958 rm -f conftest.$ac_objext
8959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8960 (eval $ac_compile) 2>conftest.er1
8961 ac_status=$?
8962 grep -v '^ *+' conftest.er1 >conftest.err
8963 rm -f conftest.er1
8964 cat conftest.err >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); } &&
8967 { ac_try='test -z "$ac_c_werror_flag"
8968 || test ! -s conftest.err'
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970 (eval $ac_try) 2>&5
8971 ac_status=$?
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; } &&
8974 { ac_try='test -s conftest.$ac_objext'
8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976 (eval $ac_try) 2>&5
8977 ac_status=$?
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; }; then
8980 ac_hi=-1 ac_mid=-1
8981 while :; do
8982 cat >conftest.$ac_ext <<_ACEOF
8983 /* confdefs.h. */
8984 _ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h. */
8988 $ac_includes_default
8990 main ()
8992 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8993 test_array [0] = 0
8996 return 0;
8998 _ACEOF
8999 rm -f conftest.$ac_objext
9000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9001 (eval $ac_compile) 2>conftest.er1
9002 ac_status=$?
9003 grep -v '^ *+' conftest.er1 >conftest.err
9004 rm -f conftest.er1
9005 cat conftest.err >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } &&
9008 { ac_try='test -z "$ac_c_werror_flag"
9009 || test ! -s conftest.err'
9010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011 (eval $ac_try) 2>&5
9012 ac_status=$?
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); }; } &&
9015 { ac_try='test -s conftest.$ac_objext'
9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017 (eval $ac_try) 2>&5
9018 ac_status=$?
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; }; then
9021 ac_lo=$ac_mid; break
9022 else
9023 echo "$as_me: failed program was:" >&5
9024 sed 's/^/| /' conftest.$ac_ext >&5
9026 ac_hi=`expr '(' $ac_mid ')' - 1`
9027 if test $ac_mid -le $ac_hi; then
9028 ac_lo= ac_hi=
9029 break
9031 ac_mid=`expr 2 '*' $ac_mid`
9033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9034 done
9035 else
9036 echo "$as_me: failed program was:" >&5
9037 sed 's/^/| /' conftest.$ac_ext >&5
9039 ac_lo= ac_hi=
9041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9044 # Binary search between lo and hi bounds.
9045 while test "x$ac_lo" != "x$ac_hi"; do
9046 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9047 cat >conftest.$ac_ext <<_ACEOF
9048 /* confdefs.h. */
9049 _ACEOF
9050 cat confdefs.h >>conftest.$ac_ext
9051 cat >>conftest.$ac_ext <<_ACEOF
9052 /* end confdefs.h. */
9053 $ac_includes_default
9055 main ()
9057 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9058 test_array [0] = 0
9061 return 0;
9063 _ACEOF
9064 rm -f conftest.$ac_objext
9065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9066 (eval $ac_compile) 2>conftest.er1
9067 ac_status=$?
9068 grep -v '^ *+' conftest.er1 >conftest.err
9069 rm -f conftest.er1
9070 cat conftest.err >&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); } &&
9073 { ac_try='test -z "$ac_c_werror_flag"
9074 || test ! -s conftest.err'
9075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076 (eval $ac_try) 2>&5
9077 ac_status=$?
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); }; } &&
9080 { ac_try='test -s conftest.$ac_objext'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 (eval $ac_try) 2>&5
9083 ac_status=$?
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; }; then
9086 ac_hi=$ac_mid
9087 else
9088 echo "$as_me: failed program was:" >&5
9089 sed 's/^/| /' conftest.$ac_ext >&5
9091 ac_lo=`expr '(' $ac_mid ')' + 1`
9093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9094 done
9095 case $ac_lo in
9096 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9097 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9098 See \`config.log' for more details." >&5
9099 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9100 See \`config.log' for more details." >&2;}
9101 { (exit 1); exit 1; }; } ;;
9102 esac
9103 else
9104 if test "$cross_compiling" = yes; then
9105 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9106 See \`config.log' for more details." >&5
9107 echo "$as_me: error: cannot run test program while cross compiling
9108 See \`config.log' for more details." >&2;}
9109 { (exit 1); exit 1; }; }
9110 else
9111 cat >conftest.$ac_ext <<_ACEOF
9112 /* confdefs.h. */
9113 _ACEOF
9114 cat confdefs.h >>conftest.$ac_ext
9115 cat >>conftest.$ac_ext <<_ACEOF
9116 /* end confdefs.h. */
9117 $ac_includes_default
9118 long longval () { return (long) (sizeof (fpos_t)); }
9119 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9120 #include <stdio.h>
9121 #include <stdlib.h>
9123 main ()
9126 FILE *f = fopen ("conftest.val", "w");
9127 if (! f)
9128 exit (1);
9129 if (((long) (sizeof (fpos_t))) < 0)
9131 long i = longval ();
9132 if (i != ((long) (sizeof (fpos_t))))
9133 exit (1);
9134 fprintf (f, "%ld\n", i);
9136 else
9138 unsigned long i = ulongval ();
9139 if (i != ((long) (sizeof (fpos_t))))
9140 exit (1);
9141 fprintf (f, "%lu\n", i);
9143 exit (ferror (f) || fclose (f) != 0);
9146 return 0;
9148 _ACEOF
9149 rm -f conftest$ac_exeext
9150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9151 (eval $ac_link) 2>&5
9152 ac_status=$?
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156 (eval $ac_try) 2>&5
9157 ac_status=$?
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }; }; then
9160 ac_cv_sizeof_fpos_t=`cat conftest.val`
9161 else
9162 echo "$as_me: program exited with status $ac_status" >&5
9163 echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.$ac_ext >&5
9166 ( exit $ac_status )
9167 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9168 See \`config.log' for more details." >&5
9169 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9170 See \`config.log' for more details." >&2;}
9171 { (exit 1); exit 1; }; }
9173 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9176 rm -f conftest.val
9177 else
9178 ac_cv_sizeof_fpos_t=0
9181 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9182 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9183 cat >>confdefs.h <<_ACEOF
9184 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9185 _ACEOF
9188 echo "$as_me:$LINENO: checking for size_t" >&5
9189 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9190 if test "${ac_cv_type_size_t+set}" = set; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 else
9193 cat >conftest.$ac_ext <<_ACEOF
9194 /* confdefs.h. */
9195 _ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h. */
9199 $ac_includes_default
9201 main ()
9203 if ((size_t *) 0)
9204 return 0;
9205 if (sizeof (size_t))
9206 return 0;
9208 return 0;
9210 _ACEOF
9211 rm -f conftest.$ac_objext
9212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9213 (eval $ac_compile) 2>conftest.er1
9214 ac_status=$?
9215 grep -v '^ *+' conftest.er1 >conftest.err
9216 rm -f conftest.er1
9217 cat conftest.err >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } &&
9220 { ac_try='test -z "$ac_c_werror_flag"
9221 || test ! -s conftest.err'
9222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223 (eval $ac_try) 2>&5
9224 ac_status=$?
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; } &&
9227 { ac_try='test -s conftest.$ac_objext'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 (eval $ac_try) 2>&5
9230 ac_status=$?
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; }; then
9233 ac_cv_type_size_t=yes
9234 else
9235 echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9238 ac_cv_type_size_t=no
9240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9242 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9243 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9245 echo "$as_me:$LINENO: checking size of size_t" >&5
9246 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9247 if test "${ac_cv_sizeof_size_t+set}" = set; then
9248 echo $ECHO_N "(cached) $ECHO_C" >&6
9249 else
9250 if test "$ac_cv_type_size_t" = yes; then
9251 # The cast to unsigned long works around a bug in the HP C Compiler
9252 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9253 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9254 # This bug is HP SR number 8606223364.
9255 if test "$cross_compiling" = yes; then
9256 # Depending upon the size, compute the lo and hi bounds.
9257 cat >conftest.$ac_ext <<_ACEOF
9258 /* confdefs.h. */
9259 _ACEOF
9260 cat confdefs.h >>conftest.$ac_ext
9261 cat >>conftest.$ac_ext <<_ACEOF
9262 /* end confdefs.h. */
9263 $ac_includes_default
9265 main ()
9267 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9268 test_array [0] = 0
9271 return 0;
9273 _ACEOF
9274 rm -f conftest.$ac_objext
9275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9276 (eval $ac_compile) 2>conftest.er1
9277 ac_status=$?
9278 grep -v '^ *+' conftest.er1 >conftest.err
9279 rm -f conftest.er1
9280 cat conftest.err >&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); } &&
9283 { ac_try='test -z "$ac_c_werror_flag"
9284 || test ! -s conftest.err'
9285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286 (eval $ac_try) 2>&5
9287 ac_status=$?
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; } &&
9290 { ac_try='test -s conftest.$ac_objext'
9291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292 (eval $ac_try) 2>&5
9293 ac_status=$?
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; }; then
9296 ac_lo=0 ac_mid=0
9297 while :; do
9298 cat >conftest.$ac_ext <<_ACEOF
9299 /* confdefs.h. */
9300 _ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9304 $ac_includes_default
9306 main ()
9308 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9309 test_array [0] = 0
9312 return 0;
9314 _ACEOF
9315 rm -f conftest.$ac_objext
9316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9317 (eval $ac_compile) 2>conftest.er1
9318 ac_status=$?
9319 grep -v '^ *+' conftest.er1 >conftest.err
9320 rm -f conftest.er1
9321 cat conftest.err >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); } &&
9324 { ac_try='test -z "$ac_c_werror_flag"
9325 || test ! -s conftest.err'
9326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9327 (eval $ac_try) 2>&5
9328 ac_status=$?
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); }; } &&
9331 { ac_try='test -s conftest.$ac_objext'
9332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9333 (eval $ac_try) 2>&5
9334 ac_status=$?
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); }; }; then
9337 ac_hi=$ac_mid; break
9338 else
9339 echo "$as_me: failed program was:" >&5
9340 sed 's/^/| /' conftest.$ac_ext >&5
9342 ac_lo=`expr $ac_mid + 1`
9343 if test $ac_lo -le $ac_mid; then
9344 ac_lo= ac_hi=
9345 break
9347 ac_mid=`expr 2 '*' $ac_mid + 1`
9349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9350 done
9351 else
9352 echo "$as_me: failed program was:" >&5
9353 sed 's/^/| /' conftest.$ac_ext >&5
9355 cat >conftest.$ac_ext <<_ACEOF
9356 /* confdefs.h. */
9357 _ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9361 $ac_includes_default
9363 main ()
9365 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9366 test_array [0] = 0
9369 return 0;
9371 _ACEOF
9372 rm -f conftest.$ac_objext
9373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9374 (eval $ac_compile) 2>conftest.er1
9375 ac_status=$?
9376 grep -v '^ *+' conftest.er1 >conftest.err
9377 rm -f conftest.er1
9378 cat conftest.err >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); } &&
9381 { ac_try='test -z "$ac_c_werror_flag"
9382 || test ! -s conftest.err'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384 (eval $ac_try) 2>&5
9385 ac_status=$?
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; } &&
9388 { ac_try='test -s conftest.$ac_objext'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390 (eval $ac_try) 2>&5
9391 ac_status=$?
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; }; then
9394 ac_hi=-1 ac_mid=-1
9395 while :; do
9396 cat >conftest.$ac_ext <<_ACEOF
9397 /* confdefs.h. */
9398 _ACEOF
9399 cat confdefs.h >>conftest.$ac_ext
9400 cat >>conftest.$ac_ext <<_ACEOF
9401 /* end confdefs.h. */
9402 $ac_includes_default
9404 main ()
9406 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9407 test_array [0] = 0
9410 return 0;
9412 _ACEOF
9413 rm -f conftest.$ac_objext
9414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9415 (eval $ac_compile) 2>conftest.er1
9416 ac_status=$?
9417 grep -v '^ *+' conftest.er1 >conftest.err
9418 rm -f conftest.er1
9419 cat conftest.err >&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); } &&
9422 { ac_try='test -z "$ac_c_werror_flag"
9423 || test ! -s conftest.err'
9424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9425 (eval $ac_try) 2>&5
9426 ac_status=$?
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); }; } &&
9429 { ac_try='test -s conftest.$ac_objext'
9430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9431 (eval $ac_try) 2>&5
9432 ac_status=$?
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); }; }; then
9435 ac_lo=$ac_mid; break
9436 else
9437 echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.$ac_ext >&5
9440 ac_hi=`expr '(' $ac_mid ')' - 1`
9441 if test $ac_mid -le $ac_hi; then
9442 ac_lo= ac_hi=
9443 break
9445 ac_mid=`expr 2 '*' $ac_mid`
9447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9448 done
9449 else
9450 echo "$as_me: failed program was:" >&5
9451 sed 's/^/| /' conftest.$ac_ext >&5
9453 ac_lo= ac_hi=
9455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9458 # Binary search between lo and hi bounds.
9459 while test "x$ac_lo" != "x$ac_hi"; do
9460 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9461 cat >conftest.$ac_ext <<_ACEOF
9462 /* confdefs.h. */
9463 _ACEOF
9464 cat confdefs.h >>conftest.$ac_ext
9465 cat >>conftest.$ac_ext <<_ACEOF
9466 /* end confdefs.h. */
9467 $ac_includes_default
9469 main ()
9471 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9472 test_array [0] = 0
9475 return 0;
9477 _ACEOF
9478 rm -f conftest.$ac_objext
9479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9480 (eval $ac_compile) 2>conftest.er1
9481 ac_status=$?
9482 grep -v '^ *+' conftest.er1 >conftest.err
9483 rm -f conftest.er1
9484 cat conftest.err >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } &&
9487 { ac_try='test -z "$ac_c_werror_flag"
9488 || test ! -s conftest.err'
9489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9490 (eval $ac_try) 2>&5
9491 ac_status=$?
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); }; } &&
9494 { ac_try='test -s conftest.$ac_objext'
9495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496 (eval $ac_try) 2>&5
9497 ac_status=$?
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; }; then
9500 ac_hi=$ac_mid
9501 else
9502 echo "$as_me: failed program was:" >&5
9503 sed 's/^/| /' conftest.$ac_ext >&5
9505 ac_lo=`expr '(' $ac_mid ')' + 1`
9507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9508 done
9509 case $ac_lo in
9510 ?*) ac_cv_sizeof_size_t=$ac_lo;;
9511 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9512 See \`config.log' for more details." >&5
9513 echo "$as_me: error: cannot compute sizeof (size_t), 77
9514 See \`config.log' for more details." >&2;}
9515 { (exit 1); exit 1; }; } ;;
9516 esac
9517 else
9518 if test "$cross_compiling" = yes; then
9519 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9520 See \`config.log' for more details." >&5
9521 echo "$as_me: error: cannot run test program while cross compiling
9522 See \`config.log' for more details." >&2;}
9523 { (exit 1); exit 1; }; }
9524 else
9525 cat >conftest.$ac_ext <<_ACEOF
9526 /* confdefs.h. */
9527 _ACEOF
9528 cat confdefs.h >>conftest.$ac_ext
9529 cat >>conftest.$ac_ext <<_ACEOF
9530 /* end confdefs.h. */
9531 $ac_includes_default
9532 long longval () { return (long) (sizeof (size_t)); }
9533 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9534 #include <stdio.h>
9535 #include <stdlib.h>
9537 main ()
9540 FILE *f = fopen ("conftest.val", "w");
9541 if (! f)
9542 exit (1);
9543 if (((long) (sizeof (size_t))) < 0)
9545 long i = longval ();
9546 if (i != ((long) (sizeof (size_t))))
9547 exit (1);
9548 fprintf (f, "%ld\n", i);
9550 else
9552 unsigned long i = ulongval ();
9553 if (i != ((long) (sizeof (size_t))))
9554 exit (1);
9555 fprintf (f, "%lu\n", i);
9557 exit (ferror (f) || fclose (f) != 0);
9560 return 0;
9562 _ACEOF
9563 rm -f conftest$ac_exeext
9564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9565 (eval $ac_link) 2>&5
9566 ac_status=$?
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570 (eval $ac_try) 2>&5
9571 ac_status=$?
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); }; }; then
9574 ac_cv_sizeof_size_t=`cat conftest.val`
9575 else
9576 echo "$as_me: program exited with status $ac_status" >&5
9577 echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.$ac_ext >&5
9580 ( exit $ac_status )
9581 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9582 See \`config.log' for more details." >&5
9583 echo "$as_me: error: cannot compute sizeof (size_t), 77
9584 See \`config.log' for more details." >&2;}
9585 { (exit 1); exit 1; }; }
9587 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9590 rm -f conftest.val
9591 else
9592 ac_cv_sizeof_size_t=0
9595 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9596 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9597 cat >>confdefs.h <<_ACEOF
9598 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9599 _ACEOF
9603 echo "$as_me:$LINENO: checking for long long support" >&5
9604 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9605 have_long_long=no
9606 cat >conftest.$ac_ext <<_ACEOF
9607 /* confdefs.h. */
9608 _ACEOF
9609 cat confdefs.h >>conftest.$ac_ext
9610 cat >>conftest.$ac_ext <<_ACEOF
9611 /* end confdefs.h. */
9614 main ()
9616 long long x; x = (long long)0;
9618 return 0;
9620 _ACEOF
9621 rm -f conftest.$ac_objext
9622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9623 (eval $ac_compile) 2>conftest.er1
9624 ac_status=$?
9625 grep -v '^ *+' conftest.er1 >conftest.err
9626 rm -f conftest.er1
9627 cat conftest.err >&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); } &&
9630 { ac_try='test -z "$ac_c_werror_flag"
9631 || test ! -s conftest.err'
9632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633 (eval $ac_try) 2>&5
9634 ac_status=$?
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); }; } &&
9637 { ac_try='test -s conftest.$ac_objext'
9638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639 (eval $ac_try) 2>&5
9640 ac_status=$?
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); }; }; then
9645 cat >>confdefs.h <<\_ACEOF
9646 #define HAVE_LONG_LONG 1
9647 _ACEOF
9649 have_long_long=yes
9651 else
9652 echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.$ac_ext >&5
9656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9657 echo "$as_me:$LINENO: result: $have_long_long" >&5
9658 echo "${ECHO_T}$have_long_long" >&6
9659 if test "$have_long_long" = yes ; then
9660 echo "$as_me:$LINENO: checking for long long" >&5
9661 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9662 if test "${ac_cv_type_long_long+set}" = set; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
9664 else
9665 cat >conftest.$ac_ext <<_ACEOF
9666 /* confdefs.h. */
9667 _ACEOF
9668 cat confdefs.h >>conftest.$ac_ext
9669 cat >>conftest.$ac_ext <<_ACEOF
9670 /* end confdefs.h. */
9671 $ac_includes_default
9673 main ()
9675 if ((long long *) 0)
9676 return 0;
9677 if (sizeof (long long))
9678 return 0;
9680 return 0;
9682 _ACEOF
9683 rm -f conftest.$ac_objext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9685 (eval $ac_compile) 2>conftest.er1
9686 ac_status=$?
9687 grep -v '^ *+' conftest.er1 >conftest.err
9688 rm -f conftest.er1
9689 cat conftest.err >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); } &&
9692 { ac_try='test -z "$ac_c_werror_flag"
9693 || test ! -s conftest.err'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695 (eval $ac_try) 2>&5
9696 ac_status=$?
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; } &&
9699 { ac_try='test -s conftest.$ac_objext'
9700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701 (eval $ac_try) 2>&5
9702 ac_status=$?
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; }; then
9705 ac_cv_type_long_long=yes
9706 else
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9710 ac_cv_type_long_long=no
9712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9714 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9715 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9717 echo "$as_me:$LINENO: checking size of long long" >&5
9718 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9719 if test "${ac_cv_sizeof_long_long+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9721 else
9722 if test "$ac_cv_type_long_long" = yes; then
9723 # The cast to unsigned long works around a bug in the HP C Compiler
9724 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9725 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9726 # This bug is HP SR number 8606223364.
9727 if test "$cross_compiling" = yes; then
9728 # Depending upon the size, compute the lo and hi bounds.
9729 cat >conftest.$ac_ext <<_ACEOF
9730 /* confdefs.h. */
9731 _ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h. */
9735 $ac_includes_default
9737 main ()
9739 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9740 test_array [0] = 0
9743 return 0;
9745 _ACEOF
9746 rm -f conftest.$ac_objext
9747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9748 (eval $ac_compile) 2>conftest.er1
9749 ac_status=$?
9750 grep -v '^ *+' conftest.er1 >conftest.err
9751 rm -f conftest.er1
9752 cat conftest.err >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); } &&
9755 { ac_try='test -z "$ac_c_werror_flag"
9756 || test ! -s conftest.err'
9757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758 (eval $ac_try) 2>&5
9759 ac_status=$?
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); }; } &&
9762 { ac_try='test -s conftest.$ac_objext'
9763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9764 (eval $ac_try) 2>&5
9765 ac_status=$?
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); }; }; then
9768 ac_lo=0 ac_mid=0
9769 while :; do
9770 cat >conftest.$ac_ext <<_ACEOF
9771 /* confdefs.h. */
9772 _ACEOF
9773 cat confdefs.h >>conftest.$ac_ext
9774 cat >>conftest.$ac_ext <<_ACEOF
9775 /* end confdefs.h. */
9776 $ac_includes_default
9778 main ()
9780 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9781 test_array [0] = 0
9784 return 0;
9786 _ACEOF
9787 rm -f conftest.$ac_objext
9788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9789 (eval $ac_compile) 2>conftest.er1
9790 ac_status=$?
9791 grep -v '^ *+' conftest.er1 >conftest.err
9792 rm -f conftest.er1
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
9796 { ac_try='test -z "$ac_c_werror_flag"
9797 || test ! -s conftest.err'
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799 (eval $ac_try) 2>&5
9800 ac_status=$?
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; } &&
9803 { ac_try='test -s conftest.$ac_objext'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805 (eval $ac_try) 2>&5
9806 ac_status=$?
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809 ac_hi=$ac_mid; break
9810 else
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9814 ac_lo=`expr $ac_mid + 1`
9815 if test $ac_lo -le $ac_mid; then
9816 ac_lo= ac_hi=
9817 break
9819 ac_mid=`expr 2 '*' $ac_mid + 1`
9821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9822 done
9823 else
9824 echo "$as_me: failed program was:" >&5
9825 sed 's/^/| /' conftest.$ac_ext >&5
9827 cat >conftest.$ac_ext <<_ACEOF
9828 /* confdefs.h. */
9829 _ACEOF
9830 cat confdefs.h >>conftest.$ac_ext
9831 cat >>conftest.$ac_ext <<_ACEOF
9832 /* end confdefs.h. */
9833 $ac_includes_default
9835 main ()
9837 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9838 test_array [0] = 0
9841 return 0;
9843 _ACEOF
9844 rm -f conftest.$ac_objext
9845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9846 (eval $ac_compile) 2>conftest.er1
9847 ac_status=$?
9848 grep -v '^ *+' conftest.er1 >conftest.err
9849 rm -f conftest.er1
9850 cat conftest.err >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); } &&
9853 { ac_try='test -z "$ac_c_werror_flag"
9854 || test ! -s conftest.err'
9855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9856 (eval $ac_try) 2>&5
9857 ac_status=$?
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; } &&
9860 { ac_try='test -s conftest.$ac_objext'
9861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862 (eval $ac_try) 2>&5
9863 ac_status=$?
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; }; then
9866 ac_hi=-1 ac_mid=-1
9867 while :; do
9868 cat >conftest.$ac_ext <<_ACEOF
9869 /* confdefs.h. */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9874 $ac_includes_default
9876 main ()
9878 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9879 test_array [0] = 0
9882 return 0;
9884 _ACEOF
9885 rm -f conftest.$ac_objext
9886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9887 (eval $ac_compile) 2>conftest.er1
9888 ac_status=$?
9889 grep -v '^ *+' conftest.er1 >conftest.err
9890 rm -f conftest.er1
9891 cat conftest.err >&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); } &&
9894 { ac_try='test -z "$ac_c_werror_flag"
9895 || test ! -s conftest.err'
9896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9897 (eval $ac_try) 2>&5
9898 ac_status=$?
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); }; } &&
9901 { ac_try='test -s conftest.$ac_objext'
9902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903 (eval $ac_try) 2>&5
9904 ac_status=$?
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; }; then
9907 ac_lo=$ac_mid; break
9908 else
9909 echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.$ac_ext >&5
9912 ac_hi=`expr '(' $ac_mid ')' - 1`
9913 if test $ac_mid -le $ac_hi; then
9914 ac_lo= ac_hi=
9915 break
9917 ac_mid=`expr 2 '*' $ac_mid`
9919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9920 done
9921 else
9922 echo "$as_me: failed program was:" >&5
9923 sed 's/^/| /' conftest.$ac_ext >&5
9925 ac_lo= ac_hi=
9927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9930 # Binary search between lo and hi bounds.
9931 while test "x$ac_lo" != "x$ac_hi"; do
9932 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9933 cat >conftest.$ac_ext <<_ACEOF
9934 /* confdefs.h. */
9935 _ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h. */
9939 $ac_includes_default
9941 main ()
9943 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9944 test_array [0] = 0
9947 return 0;
9949 _ACEOF
9950 rm -f conftest.$ac_objext
9951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9952 (eval $ac_compile) 2>conftest.er1
9953 ac_status=$?
9954 grep -v '^ *+' conftest.er1 >conftest.err
9955 rm -f conftest.er1
9956 cat conftest.err >&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } &&
9959 { ac_try='test -z "$ac_c_werror_flag"
9960 || test ! -s conftest.err'
9961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962 (eval $ac_try) 2>&5
9963 ac_status=$?
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; } &&
9966 { ac_try='test -s conftest.$ac_objext'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968 (eval $ac_try) 2>&5
9969 ac_status=$?
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; }; then
9972 ac_hi=$ac_mid
9973 else
9974 echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9977 ac_lo=`expr '(' $ac_mid ')' + 1`
9979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9980 done
9981 case $ac_lo in
9982 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9983 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9984 See \`config.log' for more details." >&5
9985 echo "$as_me: error: cannot compute sizeof (long long), 77
9986 See \`config.log' for more details." >&2;}
9987 { (exit 1); exit 1; }; } ;;
9988 esac
9989 else
9990 if test "$cross_compiling" = yes; then
9991 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9992 See \`config.log' for more details." >&5
9993 echo "$as_me: error: cannot run test program while cross compiling
9994 See \`config.log' for more details." >&2;}
9995 { (exit 1); exit 1; }; }
9996 else
9997 cat >conftest.$ac_ext <<_ACEOF
9998 /* confdefs.h. */
9999 _ACEOF
10000 cat confdefs.h >>conftest.$ac_ext
10001 cat >>conftest.$ac_ext <<_ACEOF
10002 /* end confdefs.h. */
10003 $ac_includes_default
10004 long longval () { return (long) (sizeof (long long)); }
10005 unsigned long ulongval () { return (long) (sizeof (long long)); }
10006 #include <stdio.h>
10007 #include <stdlib.h>
10009 main ()
10012 FILE *f = fopen ("conftest.val", "w");
10013 if (! f)
10014 exit (1);
10015 if (((long) (sizeof (long long))) < 0)
10017 long i = longval ();
10018 if (i != ((long) (sizeof (long long))))
10019 exit (1);
10020 fprintf (f, "%ld\n", i);
10022 else
10024 unsigned long i = ulongval ();
10025 if (i != ((long) (sizeof (long long))))
10026 exit (1);
10027 fprintf (f, "%lu\n", i);
10029 exit (ferror (f) || fclose (f) != 0);
10032 return 0;
10034 _ACEOF
10035 rm -f conftest$ac_exeext
10036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10037 (eval $ac_link) 2>&5
10038 ac_status=$?
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
10046 ac_cv_sizeof_long_long=`cat conftest.val`
10047 else
10048 echo "$as_me: program exited with status $ac_status" >&5
10049 echo "$as_me: failed program was:" >&5
10050 sed 's/^/| /' conftest.$ac_ext >&5
10052 ( exit $ac_status )
10053 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10054 See \`config.log' for more details." >&5
10055 echo "$as_me: error: cannot compute sizeof (long long), 77
10056 See \`config.log' for more details." >&2;}
10057 { (exit 1); exit 1; }; }
10059 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10062 rm -f conftest.val
10063 else
10064 ac_cv_sizeof_long_long=0
10067 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10068 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10069 cat >>confdefs.h <<_ACEOF
10070 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10071 _ACEOF
10076 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
10077 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
10078 have_uintptr_t=no
10079 cat >conftest.$ac_ext <<_ACEOF
10080 /* confdefs.h. */
10081 _ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10087 main ()
10089 uintptr_t x; x = (uintptr_t)0;
10091 return 0;
10093 _ACEOF
10094 rm -f conftest.$ac_objext
10095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10096 (eval $ac_compile) 2>conftest.er1
10097 ac_status=$?
10098 grep -v '^ *+' conftest.er1 >conftest.err
10099 rm -f conftest.er1
10100 cat conftest.err >&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); } &&
10103 { ac_try='test -z "$ac_c_werror_flag"
10104 || test ! -s conftest.err'
10105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10106 (eval $ac_try) 2>&5
10107 ac_status=$?
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); }; } &&
10110 { ac_try='test -s conftest.$ac_objext'
10111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112 (eval $ac_try) 2>&5
10113 ac_status=$?
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); }; }; then
10118 cat >>confdefs.h <<\_ACEOF
10119 #define HAVE_UINTPTR_T 1
10120 _ACEOF
10122 have_uintptr_t=yes
10124 else
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10130 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
10131 echo "${ECHO_T}$have_uintptr_t" >&6
10132 if test "$have_uintptr_t" = yes ; then
10133 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10134 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10135 if test "${ac_cv_type_uintptr_t+set}" = set; then
10136 echo $ECHO_N "(cached) $ECHO_C" >&6
10137 else
10138 cat >conftest.$ac_ext <<_ACEOF
10139 /* confdefs.h. */
10140 _ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h. */
10144 $ac_includes_default
10146 main ()
10148 if ((uintptr_t *) 0)
10149 return 0;
10150 if (sizeof (uintptr_t))
10151 return 0;
10153 return 0;
10155 _ACEOF
10156 rm -f conftest.$ac_objext
10157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10158 (eval $ac_compile) 2>conftest.er1
10159 ac_status=$?
10160 grep -v '^ *+' conftest.er1 >conftest.err
10161 rm -f conftest.er1
10162 cat conftest.err >&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); } &&
10165 { ac_try='test -z "$ac_c_werror_flag"
10166 || test ! -s conftest.err'
10167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168 (eval $ac_try) 2>&5
10169 ac_status=$?
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; } &&
10172 { ac_try='test -s conftest.$ac_objext'
10173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10174 (eval $ac_try) 2>&5
10175 ac_status=$?
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); }; }; then
10178 ac_cv_type_uintptr_t=yes
10179 else
10180 echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10183 ac_cv_type_uintptr_t=no
10185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10187 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10188 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10190 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10191 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10192 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10193 echo $ECHO_N "(cached) $ECHO_C" >&6
10194 else
10195 if test "$ac_cv_type_uintptr_t" = yes; then
10196 # The cast to unsigned long works around a bug in the HP C Compiler
10197 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10198 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10199 # This bug is HP SR number 8606223364.
10200 if test "$cross_compiling" = yes; then
10201 # Depending upon the size, compute the lo and hi bounds.
10202 cat >conftest.$ac_ext <<_ACEOF
10203 /* confdefs.h. */
10204 _ACEOF
10205 cat confdefs.h >>conftest.$ac_ext
10206 cat >>conftest.$ac_ext <<_ACEOF
10207 /* end confdefs.h. */
10208 $ac_includes_default
10210 main ()
10212 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
10213 test_array [0] = 0
10216 return 0;
10218 _ACEOF
10219 rm -f conftest.$ac_objext
10220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10221 (eval $ac_compile) 2>conftest.er1
10222 ac_status=$?
10223 grep -v '^ *+' conftest.er1 >conftest.err
10224 rm -f conftest.er1
10225 cat conftest.err >&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); } &&
10228 { ac_try='test -z "$ac_c_werror_flag"
10229 || test ! -s conftest.err'
10230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10231 (eval $ac_try) 2>&5
10232 ac_status=$?
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); }; } &&
10235 { ac_try='test -s conftest.$ac_objext'
10236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237 (eval $ac_try) 2>&5
10238 ac_status=$?
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; }; then
10241 ac_lo=0 ac_mid=0
10242 while :; do
10243 cat >conftest.$ac_ext <<_ACEOF
10244 /* confdefs.h. */
10245 _ACEOF
10246 cat confdefs.h >>conftest.$ac_ext
10247 cat >>conftest.$ac_ext <<_ACEOF
10248 /* end confdefs.h. */
10249 $ac_includes_default
10251 main ()
10253 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10254 test_array [0] = 0
10257 return 0;
10259 _ACEOF
10260 rm -f conftest.$ac_objext
10261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10262 (eval $ac_compile) 2>conftest.er1
10263 ac_status=$?
10264 grep -v '^ *+' conftest.er1 >conftest.err
10265 rm -f conftest.er1
10266 cat conftest.err >&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); } &&
10269 { ac_try='test -z "$ac_c_werror_flag"
10270 || test ! -s conftest.err'
10271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272 (eval $ac_try) 2>&5
10273 ac_status=$?
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; } &&
10276 { ac_try='test -s conftest.$ac_objext'
10277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278 (eval $ac_try) 2>&5
10279 ac_status=$?
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; }; then
10282 ac_hi=$ac_mid; break
10283 else
10284 echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.$ac_ext >&5
10287 ac_lo=`expr $ac_mid + 1`
10288 if test $ac_lo -le $ac_mid; then
10289 ac_lo= ac_hi=
10290 break
10292 ac_mid=`expr 2 '*' $ac_mid + 1`
10294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10295 done
10296 else
10297 echo "$as_me: failed program was:" >&5
10298 sed 's/^/| /' conftest.$ac_ext >&5
10300 cat >conftest.$ac_ext <<_ACEOF
10301 /* confdefs.h. */
10302 _ACEOF
10303 cat confdefs.h >>conftest.$ac_ext
10304 cat >>conftest.$ac_ext <<_ACEOF
10305 /* end confdefs.h. */
10306 $ac_includes_default
10308 main ()
10310 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10311 test_array [0] = 0
10314 return 0;
10316 _ACEOF
10317 rm -f conftest.$ac_objext
10318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10319 (eval $ac_compile) 2>conftest.er1
10320 ac_status=$?
10321 grep -v '^ *+' conftest.er1 >conftest.err
10322 rm -f conftest.er1
10323 cat conftest.err >&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); } &&
10326 { ac_try='test -z "$ac_c_werror_flag"
10327 || test ! -s conftest.err'
10328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10329 (eval $ac_try) 2>&5
10330 ac_status=$?
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); }; } &&
10333 { ac_try='test -s conftest.$ac_objext'
10334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335 (eval $ac_try) 2>&5
10336 ac_status=$?
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; }; then
10339 ac_hi=-1 ac_mid=-1
10340 while :; do
10341 cat >conftest.$ac_ext <<_ACEOF
10342 /* confdefs.h. */
10343 _ACEOF
10344 cat confdefs.h >>conftest.$ac_ext
10345 cat >>conftest.$ac_ext <<_ACEOF
10346 /* end confdefs.h. */
10347 $ac_includes_default
10349 main ()
10351 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10352 test_array [0] = 0
10355 return 0;
10357 _ACEOF
10358 rm -f conftest.$ac_objext
10359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10360 (eval $ac_compile) 2>conftest.er1
10361 ac_status=$?
10362 grep -v '^ *+' conftest.er1 >conftest.err
10363 rm -f conftest.er1
10364 cat conftest.err >&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } &&
10367 { ac_try='test -z "$ac_c_werror_flag"
10368 || test ! -s conftest.err'
10369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370 (eval $ac_try) 2>&5
10371 ac_status=$?
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; } &&
10374 { ac_try='test -s conftest.$ac_objext'
10375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376 (eval $ac_try) 2>&5
10377 ac_status=$?
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }; }; then
10380 ac_lo=$ac_mid; break
10381 else
10382 echo "$as_me: failed program was:" >&5
10383 sed 's/^/| /' conftest.$ac_ext >&5
10385 ac_hi=`expr '(' $ac_mid ')' - 1`
10386 if test $ac_mid -le $ac_hi; then
10387 ac_lo= ac_hi=
10388 break
10390 ac_mid=`expr 2 '*' $ac_mid`
10392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10393 done
10394 else
10395 echo "$as_me: failed program was:" >&5
10396 sed 's/^/| /' conftest.$ac_ext >&5
10398 ac_lo= ac_hi=
10400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10403 # Binary search between lo and hi bounds.
10404 while test "x$ac_lo" != "x$ac_hi"; do
10405 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10406 cat >conftest.$ac_ext <<_ACEOF
10407 /* confdefs.h. */
10408 _ACEOF
10409 cat confdefs.h >>conftest.$ac_ext
10410 cat >>conftest.$ac_ext <<_ACEOF
10411 /* end confdefs.h. */
10412 $ac_includes_default
10414 main ()
10416 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10417 test_array [0] = 0
10420 return 0;
10422 _ACEOF
10423 rm -f conftest.$ac_objext
10424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10425 (eval $ac_compile) 2>conftest.er1
10426 ac_status=$?
10427 grep -v '^ *+' conftest.er1 >conftest.err
10428 rm -f conftest.er1
10429 cat conftest.err >&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } &&
10432 { ac_try='test -z "$ac_c_werror_flag"
10433 || test ! -s conftest.err'
10434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10435 (eval $ac_try) 2>&5
10436 ac_status=$?
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; } &&
10439 { ac_try='test -s conftest.$ac_objext'
10440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10441 (eval $ac_try) 2>&5
10442 ac_status=$?
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; }; then
10445 ac_hi=$ac_mid
10446 else
10447 echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.$ac_ext >&5
10450 ac_lo=`expr '(' $ac_mid ')' + 1`
10452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10453 done
10454 case $ac_lo in
10455 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
10456 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10457 See \`config.log' for more details." >&5
10458 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10459 See \`config.log' for more details." >&2;}
10460 { (exit 1); exit 1; }; } ;;
10461 esac
10462 else
10463 if test "$cross_compiling" = yes; then
10464 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10465 See \`config.log' for more details." >&5
10466 echo "$as_me: error: cannot run test program while cross compiling
10467 See \`config.log' for more details." >&2;}
10468 { (exit 1); exit 1; }; }
10469 else
10470 cat >conftest.$ac_ext <<_ACEOF
10471 /* confdefs.h. */
10472 _ACEOF
10473 cat confdefs.h >>conftest.$ac_ext
10474 cat >>conftest.$ac_ext <<_ACEOF
10475 /* end confdefs.h. */
10476 $ac_includes_default
10477 long longval () { return (long) (sizeof (uintptr_t)); }
10478 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
10479 #include <stdio.h>
10480 #include <stdlib.h>
10482 main ()
10485 FILE *f = fopen ("conftest.val", "w");
10486 if (! f)
10487 exit (1);
10488 if (((long) (sizeof (uintptr_t))) < 0)
10490 long i = longval ();
10491 if (i != ((long) (sizeof (uintptr_t))))
10492 exit (1);
10493 fprintf (f, "%ld\n", i);
10495 else
10497 unsigned long i = ulongval ();
10498 if (i != ((long) (sizeof (uintptr_t))))
10499 exit (1);
10500 fprintf (f, "%lu\n", i);
10502 exit (ferror (f) || fclose (f) != 0);
10505 return 0;
10507 _ACEOF
10508 rm -f conftest$ac_exeext
10509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10510 (eval $ac_link) 2>&5
10511 ac_status=$?
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10515 (eval $ac_try) 2>&5
10516 ac_status=$?
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); }; }; then
10519 ac_cv_sizeof_uintptr_t=`cat conftest.val`
10520 else
10521 echo "$as_me: program exited with status $ac_status" >&5
10522 echo "$as_me: failed program was:" >&5
10523 sed 's/^/| /' conftest.$ac_ext >&5
10525 ( exit $ac_status )
10526 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10527 See \`config.log' for more details." >&5
10528 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10529 See \`config.log' for more details." >&2;}
10530 { (exit 1); exit 1; }; }
10532 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10535 rm -f conftest.val
10536 else
10537 ac_cv_sizeof_uintptr_t=0
10540 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
10541 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
10542 cat >>confdefs.h <<_ACEOF
10543 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
10544 _ACEOF
10549 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
10550 echo "$as_me:$LINENO: checking size of off_t" >&5
10551 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
10552 if test "${ac_cv_sizeof_off_t+set}" = set; then
10553 echo $ECHO_N "(cached) $ECHO_C" >&6
10554 else
10555 if test "$cross_compiling" = yes; then
10556 ac_cv_sizeof_off_t=4
10557 else
10558 cat >conftest.$ac_ext <<_ACEOF
10559 /* confdefs.h. */
10560 _ACEOF
10561 cat confdefs.h >>conftest.$ac_ext
10562 cat >>conftest.$ac_ext <<_ACEOF
10563 /* end confdefs.h. */
10564 #include <stdio.h>
10565 #include <sys/types.h>
10566 main()
10568 FILE *f=fopen("conftestval", "w");
10569 if (!f) exit(1);
10570 fprintf(f, "%d\n", sizeof(off_t));
10571 exit(0);
10573 _ACEOF
10574 rm -f conftest$ac_exeext
10575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10576 (eval $ac_link) 2>&5
10577 ac_status=$?
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10582 ac_status=$?
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; }; then
10585 ac_cv_sizeof_off_t=`cat conftestval`
10586 else
10587 echo "$as_me: program exited with status $ac_status" >&5
10588 echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.$ac_ext >&5
10591 ( exit $ac_status )
10592 ac_cv_sizeof_off_t=0
10594 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10599 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
10600 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
10602 cat >>confdefs.h <<_ACEOF
10603 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10604 _ACEOF
10607 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
10608 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
10609 if test "$have_long_long" = yes -a \
10610 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
10611 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
10613 cat >>confdefs.h <<\_ACEOF
10614 #define HAVE_LARGEFILE_SUPPORT 1
10615 _ACEOF
10617 echo "$as_me:$LINENO: result: yes" >&5
10618 echo "${ECHO_T}yes" >&6
10619 else
10620 echo "$as_me:$LINENO: result: no" >&5
10621 echo "${ECHO_T}no" >&6
10624 # AC_CHECK_SIZEOF() doesn't include <time.h>.
10625 echo "$as_me:$LINENO: checking size of time_t" >&5
10626 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
10627 if test "${ac_cv_sizeof_time_t+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10629 else
10630 if test "$cross_compiling" = yes; then
10631 ac_cv_sizeof_time_t=4
10632 else
10633 cat >conftest.$ac_ext <<_ACEOF
10634 /* confdefs.h. */
10635 _ACEOF
10636 cat confdefs.h >>conftest.$ac_ext
10637 cat >>conftest.$ac_ext <<_ACEOF
10638 /* end confdefs.h. */
10639 #include <stdio.h>
10640 #include <time.h>
10641 main()
10643 FILE *f=fopen("conftestval", "w");
10644 if (!f) exit(1);
10645 fprintf(f, "%d\n", sizeof(time_t));
10646 exit(0);
10648 _ACEOF
10649 rm -f conftest$ac_exeext
10650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10651 (eval $ac_link) 2>&5
10652 ac_status=$?
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10656 (eval $ac_try) 2>&5
10657 ac_status=$?
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); }; }; then
10660 ac_cv_sizeof_time_t=`cat conftestval`
10661 else
10662 echo "$as_me: program exited with status $ac_status" >&5
10663 echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.$ac_ext >&5
10666 ( exit $ac_status )
10667 ac_cv_sizeof_time_t=0
10669 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10674 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10675 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10677 cat >>confdefs.h <<_ACEOF
10678 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10679 _ACEOF
10683 # if have pthread_t then define SIZEOF_PTHREAD_T
10684 ac_save_cc="$CC"
10685 if test "$ac_cv_kpthread" = "yes"
10686 then CC="$CC -Kpthread"
10687 elif test "$ac_cv_kthread" = "yes"
10688 then CC="$CC -Kthread"
10689 elif test "$ac_cv_pthread" = "yes"
10690 then CC="$CC -pthread"
10692 echo "$as_me:$LINENO: checking for pthread_t" >&5
10693 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10694 have_pthread_t=no
10695 cat >conftest.$ac_ext <<_ACEOF
10696 /* confdefs.h. */
10697 _ACEOF
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h. */
10701 #include <pthread.h>
10703 main ()
10705 pthread_t x; x = *(pthread_t*)0;
10707 return 0;
10709 _ACEOF
10710 rm -f conftest.$ac_objext
10711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10712 (eval $ac_compile) 2>conftest.er1
10713 ac_status=$?
10714 grep -v '^ *+' conftest.er1 >conftest.err
10715 rm -f conftest.er1
10716 cat conftest.err >&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } &&
10719 { ac_try='test -z "$ac_c_werror_flag"
10720 || test ! -s conftest.err'
10721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722 (eval $ac_try) 2>&5
10723 ac_status=$?
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; } &&
10726 { ac_try='test -s conftest.$ac_objext'
10727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728 (eval $ac_try) 2>&5
10729 ac_status=$?
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; }; then
10732 have_pthread_t=yes
10733 else
10734 echo "$as_me: failed program was:" >&5
10735 sed 's/^/| /' conftest.$ac_ext >&5
10738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10739 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10740 echo "${ECHO_T}$have_pthread_t" >&6
10741 if test "$have_pthread_t" = yes ; then
10742 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10743 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10744 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10745 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10746 echo $ECHO_N "(cached) $ECHO_C" >&6
10747 else
10748 if test "$cross_compiling" = yes; then
10749 ac_cv_sizeof_pthread_t=4
10750 else
10751 cat >conftest.$ac_ext <<_ACEOF
10752 /* confdefs.h. */
10753 _ACEOF
10754 cat confdefs.h >>conftest.$ac_ext
10755 cat >>conftest.$ac_ext <<_ACEOF
10756 /* end confdefs.h. */
10757 #include <stdio.h>
10758 #include <pthread.h>
10759 main()
10761 FILE *f=fopen("conftestval", "w");
10762 if (!f) exit(1);
10763 fprintf(f, "%d\n", sizeof(pthread_t));
10764 exit(0);
10766 _ACEOF
10767 rm -f conftest$ac_exeext
10768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10769 (eval $ac_link) 2>&5
10770 ac_status=$?
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774 (eval $ac_try) 2>&5
10775 ac_status=$?
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; }; then
10778 ac_cv_sizeof_pthread_t=`cat conftestval`
10779 else
10780 echo "$as_me: program exited with status $ac_status" >&5
10781 echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10784 ( exit $ac_status )
10785 ac_cv_sizeof_pthread_t=0
10787 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10792 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10793 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10795 cat >>confdefs.h <<_ACEOF
10796 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10797 _ACEOF
10800 CC="$ac_save_cc"
10802 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10803 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10804 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10805 if test "${enable_toolbox_glue+set}" = set; then
10806 enableval="$enable_toolbox_glue"
10810 if test -z "$enable_toolbox_glue"
10811 then
10812 case $ac_sys_system/$ac_sys_release in
10813 Darwin/*)
10814 enable_toolbox_glue="yes";;
10816 enable_toolbox_glue="no";;
10817 esac
10819 case "$enable_toolbox_glue" in
10820 yes)
10821 extra_machdep_objs="Python/mactoolboxglue.o"
10822 extra_undefs="-u _PyMac_Error"
10824 cat >>confdefs.h <<\_ACEOF
10825 #define USE_TOOLBOX_OBJECT_GLUE 1
10826 _ACEOF
10830 extra_machdep_objs=""
10831 extra_undefs=""
10833 esac
10834 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10835 echo "${ECHO_T}$enable_toolbox_glue" >&6
10838 case $ac_sys_system/$ac_sys_release in
10839 Darwin/[01567]\..*)
10840 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
10842 Darwin/*)
10843 OTHER_LIBTOOL_OPT=""
10845 esac
10848 case $ac_sys_system/$ac_sys_release in
10849 Darwin/[01567]\..*)
10850 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
10851 if test "${enable_universalsdk}"; then
10853 else
10854 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
10856 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10857 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10858 Darwin/*)
10859 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10860 if test ${gcc_version} '<' 4.0
10861 then
10862 LIBTOOL_CRUFT="-lcc_dynamic"
10863 else
10864 LIBTOOL_CRUFT=""
10866 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
10867 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10868 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10869 esac
10871 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10872 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10873 if test "$enable_framework"
10874 then
10875 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
10876 # -F. is needed to allow linking to the framework while
10877 # in the build location.
10879 cat >>confdefs.h <<\_ACEOF
10880 #define WITH_NEXT_FRAMEWORK 1
10881 _ACEOF
10883 echo "$as_me:$LINENO: result: yes" >&5
10884 echo "${ECHO_T}yes" >&6
10885 else
10886 echo "$as_me:$LINENO: result: no" >&5
10887 echo "${ECHO_T}no" >&6
10890 echo "$as_me:$LINENO: checking for dyld" >&5
10891 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10892 case $ac_sys_system/$ac_sys_release in
10893 Darwin/*)
10895 cat >>confdefs.h <<\_ACEOF
10896 #define WITH_DYLD 1
10897 _ACEOF
10899 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10900 echo "${ECHO_T}always on for Darwin" >&6
10903 echo "$as_me:$LINENO: result: no" >&5
10904 echo "${ECHO_T}no" >&6
10906 esac
10908 # Set info about shared libraries.
10914 # SO is the extension of shared libraries `(including the dot!)
10915 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10916 echo "$as_me:$LINENO: checking SO" >&5
10917 echo $ECHO_N "checking SO... $ECHO_C" >&6
10918 if test -z "$SO"
10919 then
10920 case $ac_sys_system in
10921 hp*|HP*)
10922 case `uname -m` in
10923 ia64) SO=.so;;
10924 *) SO=.sl;;
10925 esac
10927 CYGWIN*) SO=.dll;;
10928 *) SO=.so;;
10929 esac
10930 else
10931 # this might also be a termcap variable, see #610332
10932 echo
10933 echo '====================================================================='
10934 echo '+ +'
10935 echo '+ WARNING: You have set SO in your environment. +'
10936 echo '+ Do you really mean to change the extension for shared libraries? +'
10937 echo '+ Continuing in 10 seconds to let you to ponder. +'
10938 echo '+ +'
10939 echo '====================================================================='
10940 sleep 10
10942 echo "$as_me:$LINENO: result: $SO" >&5
10943 echo "${ECHO_T}$SO" >&6
10945 cat >>confdefs.h <<_ACEOF
10946 #define SHLIB_EXT "$SO"
10947 _ACEOF
10949 # LDSHARED is the ld *command* used to create shared library
10950 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10951 # (Shared libraries in this instance are shared modules to be loaded into
10952 # Python, as opposed to building Python itself as a shared library.)
10953 echo "$as_me:$LINENO: checking LDSHARED" >&5
10954 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10955 if test -z "$LDSHARED"
10956 then
10957 case $ac_sys_system/$ac_sys_release in
10958 AIX*)
10959 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10960 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10962 BeOS*)
10963 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10964 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10966 IRIX/5*) LDSHARED="ld -shared";;
10967 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
10968 SunOS/5*)
10969 if test "$GCC" = "yes"
10970 then LDSHARED='$(CC) -shared'
10971 else LDSHARED='$(CC) -G';
10972 fi ;;
10973 hp*|HP*) LDSHARED="ld -b";;
10974 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
10975 Darwin/1.3*)
10976 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10977 if test "$enable_framework" ; then
10978 # Link against the framework. All externals should be defined.
10979 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10980 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10981 else
10982 # No framework. Ignore undefined symbols, assuming they come from Python
10983 LDSHARED="$LDSHARED -undefined suppress"
10984 fi ;;
10985 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
10986 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10987 if test "$enable_framework" ; then
10988 # Link against the framework. All externals should be defined.
10989 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10990 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10991 else
10992 # No framework, use the Python app as bundle-loader
10993 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10994 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10995 fi ;;
10996 Darwin/*)
10997 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
10998 # This allows an extension to be used in any Python
10999 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
11000 if test ${cur_target} '>' 10.2; then
11001 cur_target=10.3
11003 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
11004 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
11005 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
11006 then
11007 if test "${enable_universalsdk}"; then
11008 LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
11010 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
11011 BLDSHARED="$LDSHARED"
11012 else
11013 LDSHARED='$(CC) $(LDFLAGS) -bundle'
11014 if test "$enable_framework" ; then
11015 # Link against the framework. All externals should be defined.
11016 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11017 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11018 else
11019 # No framework, use the Python app as bundle-loader
11020 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
11021 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
11025 Linux*|GNU*) LDSHARED='$(CC) -shared';;
11026 BSD/OS*/4*) LDSHARED="gcc -shared";;
11027 FreeBSD*)
11028 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11029 then
11030 LDSHARED="$CC -shared ${LDFLAGS}"
11031 else
11032 LDSHARED="ld -Bshareable ${LDFLAGS}"
11033 fi;;
11034 OpenBSD*)
11035 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11036 then
11037 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11038 else
11039 case `uname -r` in
11040 [01].* | 2.[0-7] | 2.[0-7].*)
11041 LDSHARED="ld -Bshareable ${LDFLAGS}"
11044 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11046 esac
11047 fi;;
11048 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
11049 OpenUNIX*|UnixWare*)
11050 if test "$GCC" = "yes"
11051 then LDSHARED='$(CC) -shared'
11052 else LDSHARED='$(CC) -G'
11053 fi;;
11054 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
11055 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11056 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
11057 atheos*) LDSHARED="gcc -shared";;
11058 *) LDSHARED="ld";;
11059 esac
11061 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11062 echo "${ECHO_T}$LDSHARED" >&6
11063 BLDSHARED=${BLDSHARED-$LDSHARED}
11064 # CCSHARED are the C *flags* used to create objects to go into a shared
11065 # library (module) -- this is only needed for a few systems
11066 echo "$as_me:$LINENO: checking CCSHARED" >&5
11067 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11068 if test -z "$CCSHARED"
11069 then
11070 case $ac_sys_system/$ac_sys_release in
11071 SunOS*) if test "$GCC" = yes;
11072 then CCSHARED="-fPIC";
11073 else CCSHARED="-xcode=pic32";
11074 fi;;
11075 hp*|HP*) if test "$GCC" = yes;
11076 then CCSHARED="-fPIC";
11077 else CCSHARED="+z";
11078 fi;;
11079 Linux*|GNU*) CCSHARED="-fPIC";;
11080 BSD/OS*/4*) CCSHARED="-fpic";;
11081 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
11082 OpenUNIX*|UnixWare*)
11083 if test "$GCC" = "yes"
11084 then CCSHARED="-fPIC"
11085 else CCSHARED="-KPIC"
11086 fi;;
11087 SCO_SV*)
11088 if test "$GCC" = "yes"
11089 then CCSHARED="-fPIC"
11090 else CCSHARED="-Kpic -belf"
11091 fi;;
11092 Monterey*) CCSHARED="-G";;
11093 IRIX*/6*) case $CC in
11094 *gcc*) CCSHARED="-shared";;
11095 *) CCSHARED="";;
11096 esac;;
11097 atheos*) CCSHARED="-fPIC";;
11098 esac
11100 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11101 echo "${ECHO_T}$CCSHARED" >&6
11102 # LINKFORSHARED are the flags passed to the $(CC) command that links
11103 # the python executable -- this is only needed for a few systems
11104 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11105 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11106 if test -z "$LINKFORSHARED"
11107 then
11108 case $ac_sys_system/$ac_sys_release in
11109 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
11110 hp*|HP*)
11111 LINKFORSHARED="-Wl,-E -Wl,+s";;
11112 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11113 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
11114 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
11115 # -u libsys_s pulls in all symbols in libsys
11116 Darwin/*)
11117 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11118 # which is
11119 # not used by the core itself but which needs to be in the core so
11120 # that dynamically loaded extension modules have access to it.
11121 # -prebind is no longer used, because it actually seems to give a
11122 # slowdown in stead of a speedup, maybe due to the large number of
11123 # dynamic loads Python does.
11125 LINKFORSHARED="$extra_undefs"
11126 if test "$enable_framework"
11127 then
11128 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11130 LINKFORSHARED="$LINKFORSHARED";;
11131 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
11132 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
11133 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
11134 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
11135 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11136 then
11137 LINKFORSHARED="-Wl,--export-dynamic"
11138 fi;;
11139 SunOS/5*) case $CC in
11140 *gcc*)
11141 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
11142 then
11143 LINKFORSHARED="-Xlinker --export-dynamic"
11144 fi;;
11145 esac;;
11146 CYGWIN*)
11147 if test $enable_shared = "no"
11148 then
11149 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
11150 fi;;
11151 esac
11153 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11154 echo "${ECHO_T}$LINKFORSHARED" >&6
11157 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11158 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11159 if test ! "$LIBRARY" = "$LDLIBRARY"
11160 then
11161 case $ac_sys_system in
11162 CYGWIN*)
11163 # Cygwin needs CCSHARED when building extension DLLs
11164 # but not when building the interpreter DLL.
11165 CFLAGSFORSHARED='';;
11167 CFLAGSFORSHARED='$(CCSHARED)'
11168 esac
11170 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11171 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11173 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11174 # library (with --enable-shared).
11175 # For platforms on which shared libraries are not allowed to have unresolved
11176 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11177 # if it is not required, since it creates a dependency of the shared library
11178 # to LIBS. This, in turn, means that applications linking the shared libpython
11179 # don't need to link LIBS explicitly. The default should be only changed
11180 # on systems where this approach causes problems.
11182 echo "$as_me:$LINENO: checking SHLIBS" >&5
11183 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11184 case "$ac_sys_system" in
11186 SHLIBS='$(LIBS)';;
11187 esac
11188 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11189 echo "${ECHO_T}$SHLIBS" >&6
11192 # checks for libraries
11194 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11195 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11196 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11198 else
11199 ac_check_lib_save_LIBS=$LIBS
11200 LIBS="-ldl $LIBS"
11201 cat >conftest.$ac_ext <<_ACEOF
11202 /* confdefs.h. */
11203 _ACEOF
11204 cat confdefs.h >>conftest.$ac_ext
11205 cat >>conftest.$ac_ext <<_ACEOF
11206 /* end confdefs.h. */
11208 /* Override any gcc2 internal prototype to avoid an error. */
11209 #ifdef __cplusplus
11210 extern "C"
11211 #endif
11212 /* We use char because int might match the return type of a gcc2
11213 builtin and then its argument prototype would still apply. */
11214 char dlopen ();
11216 main ()
11218 dlopen ();
11220 return 0;
11222 _ACEOF
11223 rm -f conftest.$ac_objext conftest$ac_exeext
11224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11225 (eval $ac_link) 2>conftest.er1
11226 ac_status=$?
11227 grep -v '^ *+' conftest.er1 >conftest.err
11228 rm -f conftest.er1
11229 cat conftest.err >&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } &&
11232 { ac_try='test -z "$ac_c_werror_flag"
11233 || test ! -s conftest.err'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; } &&
11239 { ac_try='test -s conftest$ac_exeext'
11240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241 (eval $ac_try) 2>&5
11242 ac_status=$?
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; }; then
11245 ac_cv_lib_dl_dlopen=yes
11246 else
11247 echo "$as_me: failed program was:" >&5
11248 sed 's/^/| /' conftest.$ac_ext >&5
11250 ac_cv_lib_dl_dlopen=no
11252 rm -f conftest.err conftest.$ac_objext \
11253 conftest$ac_exeext conftest.$ac_ext
11254 LIBS=$ac_check_lib_save_LIBS
11256 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11257 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11258 if test $ac_cv_lib_dl_dlopen = yes; then
11259 cat >>confdefs.h <<_ACEOF
11260 #define HAVE_LIBDL 1
11261 _ACEOF
11263 LIBS="-ldl $LIBS"
11266 # Dynamic linking for SunOS/Solaris and SYSV
11268 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11269 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11270 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11272 else
11273 ac_check_lib_save_LIBS=$LIBS
11274 LIBS="-ldld $LIBS"
11275 cat >conftest.$ac_ext <<_ACEOF
11276 /* confdefs.h. */
11277 _ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h. */
11282 /* Override any gcc2 internal prototype to avoid an error. */
11283 #ifdef __cplusplus
11284 extern "C"
11285 #endif
11286 /* We use char because int might match the return type of a gcc2
11287 builtin and then its argument prototype would still apply. */
11288 char shl_load ();
11290 main ()
11292 shl_load ();
11294 return 0;
11296 _ACEOF
11297 rm -f conftest.$ac_objext conftest$ac_exeext
11298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11299 (eval $ac_link) 2>conftest.er1
11300 ac_status=$?
11301 grep -v '^ *+' conftest.er1 >conftest.err
11302 rm -f conftest.er1
11303 cat conftest.err >&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); } &&
11306 { ac_try='test -z "$ac_c_werror_flag"
11307 || test ! -s conftest.err'
11308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309 (eval $ac_try) 2>&5
11310 ac_status=$?
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; } &&
11313 { ac_try='test -s conftest$ac_exeext'
11314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315 (eval $ac_try) 2>&5
11316 ac_status=$?
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; }; then
11319 ac_cv_lib_dld_shl_load=yes
11320 else
11321 echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11324 ac_cv_lib_dld_shl_load=no
11326 rm -f conftest.err conftest.$ac_objext \
11327 conftest$ac_exeext conftest.$ac_ext
11328 LIBS=$ac_check_lib_save_LIBS
11330 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11331 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11332 if test $ac_cv_lib_dld_shl_load = yes; then
11333 cat >>confdefs.h <<_ACEOF
11334 #define HAVE_LIBDLD 1
11335 _ACEOF
11337 LIBS="-ldld $LIBS"
11340 # Dynamic linking for HP-UX
11342 # only check for sem_ini if thread support is requested
11343 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11344 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11345 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11346 if test "${ac_cv_search_sem_init+set}" = set; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11348 else
11349 ac_func_search_save_LIBS=$LIBS
11350 ac_cv_search_sem_init=no
11351 cat >conftest.$ac_ext <<_ACEOF
11352 /* confdefs.h. */
11353 _ACEOF
11354 cat confdefs.h >>conftest.$ac_ext
11355 cat >>conftest.$ac_ext <<_ACEOF
11356 /* end confdefs.h. */
11358 /* Override any gcc2 internal prototype to avoid an error. */
11359 #ifdef __cplusplus
11360 extern "C"
11361 #endif
11362 /* We use char because int might match the return type of a gcc2
11363 builtin and then its argument prototype would still apply. */
11364 char sem_init ();
11366 main ()
11368 sem_init ();
11370 return 0;
11372 _ACEOF
11373 rm -f conftest.$ac_objext conftest$ac_exeext
11374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11375 (eval $ac_link) 2>conftest.er1
11376 ac_status=$?
11377 grep -v '^ *+' conftest.er1 >conftest.err
11378 rm -f conftest.er1
11379 cat conftest.err >&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } &&
11382 { ac_try='test -z "$ac_c_werror_flag"
11383 || test ! -s conftest.err'
11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385 (eval $ac_try) 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; } &&
11389 { ac_try='test -s conftest$ac_exeext'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
11395 ac_cv_search_sem_init="none required"
11396 else
11397 echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.$ac_ext >&5
11401 rm -f conftest.err conftest.$ac_objext \
11402 conftest$ac_exeext conftest.$ac_ext
11403 if test "$ac_cv_search_sem_init" = no; then
11404 for ac_lib in pthread rt posix4; do
11405 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11406 cat >conftest.$ac_ext <<_ACEOF
11407 /* confdefs.h. */
11408 _ACEOF
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h. */
11413 /* Override any gcc2 internal prototype to avoid an error. */
11414 #ifdef __cplusplus
11415 extern "C"
11416 #endif
11417 /* We use char because int might match the return type of a gcc2
11418 builtin and then its argument prototype would still apply. */
11419 char sem_init ();
11421 main ()
11423 sem_init ();
11425 return 0;
11427 _ACEOF
11428 rm -f conftest.$ac_objext conftest$ac_exeext
11429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11430 (eval $ac_link) 2>conftest.er1
11431 ac_status=$?
11432 grep -v '^ *+' conftest.er1 >conftest.err
11433 rm -f conftest.er1
11434 cat conftest.err >&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } &&
11437 { ac_try='test -z "$ac_c_werror_flag"
11438 || test ! -s conftest.err'
11439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440 (eval $ac_try) 2>&5
11441 ac_status=$?
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); }; } &&
11444 { ac_try='test -s conftest$ac_exeext'
11445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11446 (eval $ac_try) 2>&5
11447 ac_status=$?
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); }; }; then
11450 ac_cv_search_sem_init="-l$ac_lib"
11451 break
11452 else
11453 echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.$ac_ext >&5
11457 rm -f conftest.err conftest.$ac_objext \
11458 conftest$ac_exeext conftest.$ac_ext
11459 done
11461 LIBS=$ac_func_search_save_LIBS
11463 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
11464 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
11465 if test "$ac_cv_search_sem_init" != no; then
11466 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
11469 # 'Real Time' functions on Solaris
11470 # posix4 on Solaris 2.6
11471 # pthread (first!) on Linux
11474 # check if we need libintl for locale functions
11475 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
11476 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
11477 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
11478 echo $ECHO_N "(cached) $ECHO_C" >&6
11479 else
11480 ac_check_lib_save_LIBS=$LIBS
11481 LIBS="-lintl $LIBS"
11482 cat >conftest.$ac_ext <<_ACEOF
11483 /* confdefs.h. */
11484 _ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h. */
11489 /* Override any gcc2 internal prototype to avoid an error. */
11490 #ifdef __cplusplus
11491 extern "C"
11492 #endif
11493 /* We use char because int might match the return type of a gcc2
11494 builtin and then its argument prototype would still apply. */
11495 char textdomain ();
11497 main ()
11499 textdomain ();
11501 return 0;
11503 _ACEOF
11504 rm -f conftest.$ac_objext conftest$ac_exeext
11505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11506 (eval $ac_link) 2>conftest.er1
11507 ac_status=$?
11508 grep -v '^ *+' conftest.er1 >conftest.err
11509 rm -f conftest.er1
11510 cat conftest.err >&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } &&
11513 { ac_try='test -z "$ac_c_werror_flag"
11514 || test ! -s conftest.err'
11515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11516 (eval $ac_try) 2>&5
11517 ac_status=$?
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; } &&
11520 { ac_try='test -s conftest$ac_exeext'
11521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522 (eval $ac_try) 2>&5
11523 ac_status=$?
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; }; then
11526 ac_cv_lib_intl_textdomain=yes
11527 else
11528 echo "$as_me: failed program was:" >&5
11529 sed 's/^/| /' conftest.$ac_ext >&5
11531 ac_cv_lib_intl_textdomain=no
11533 rm -f conftest.err conftest.$ac_objext \
11534 conftest$ac_exeext conftest.$ac_ext
11535 LIBS=$ac_check_lib_save_LIBS
11537 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
11538 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
11539 if test $ac_cv_lib_intl_textdomain = yes; then
11541 cat >>confdefs.h <<\_ACEOF
11542 #define WITH_LIBINTL 1
11543 _ACEOF
11548 # checks for system dependent C++ extensions support
11549 case "$ac_sys_system" in
11550 AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
11551 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
11552 cat >conftest.$ac_ext <<_ACEOF
11553 /* confdefs.h. */
11554 _ACEOF
11555 cat confdefs.h >>conftest.$ac_ext
11556 cat >>conftest.$ac_ext <<_ACEOF
11557 /* end confdefs.h. */
11558 #include "/usr/lpp/xlC/include/load.h"
11560 main ()
11562 loadAndInit("", 0, "")
11564 return 0;
11566 _ACEOF
11567 rm -f conftest.$ac_objext conftest$ac_exeext
11568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11569 (eval $ac_link) 2>conftest.er1
11570 ac_status=$?
11571 grep -v '^ *+' conftest.er1 >conftest.err
11572 rm -f conftest.er1
11573 cat conftest.err >&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); } &&
11576 { ac_try='test -z "$ac_c_werror_flag"
11577 || test ! -s conftest.err'
11578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579 (eval $ac_try) 2>&5
11580 ac_status=$?
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; } &&
11583 { ac_try='test -s conftest$ac_exeext'
11584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11585 (eval $ac_try) 2>&5
11586 ac_status=$?
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); }; }; then
11590 cat >>confdefs.h <<\_ACEOF
11591 #define AIX_GENUINE_CPLUSPLUS 1
11592 _ACEOF
11594 echo "$as_me:$LINENO: result: yes" >&5
11595 echo "${ECHO_T}yes" >&6
11596 else
11597 echo "$as_me: failed program was:" >&5
11598 sed 's/^/| /' conftest.$ac_ext >&5
11600 echo "$as_me:$LINENO: result: no" >&5
11601 echo "${ECHO_T}no" >&6
11603 rm -f conftest.err conftest.$ac_objext \
11604 conftest$ac_exeext conftest.$ac_ext;;
11605 *) ;;
11606 esac
11608 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
11609 # BeOS' sockets are stashed in libnet.
11610 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
11611 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
11612 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11614 else
11615 ac_check_lib_save_LIBS=$LIBS
11616 LIBS="-lnsl $LIBS"
11617 cat >conftest.$ac_ext <<_ACEOF
11618 /* confdefs.h. */
11619 _ACEOF
11620 cat confdefs.h >>conftest.$ac_ext
11621 cat >>conftest.$ac_ext <<_ACEOF
11622 /* end confdefs.h. */
11624 /* Override any gcc2 internal prototype to avoid an error. */
11625 #ifdef __cplusplus
11626 extern "C"
11627 #endif
11628 /* We use char because int might match the return type of a gcc2
11629 builtin and then its argument prototype would still apply. */
11630 char t_open ();
11632 main ()
11634 t_open ();
11636 return 0;
11638 _ACEOF
11639 rm -f conftest.$ac_objext conftest$ac_exeext
11640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11641 (eval $ac_link) 2>conftest.er1
11642 ac_status=$?
11643 grep -v '^ *+' conftest.er1 >conftest.err
11644 rm -f conftest.er1
11645 cat conftest.err >&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); } &&
11648 { ac_try='test -z "$ac_c_werror_flag"
11649 || test ! -s conftest.err'
11650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11651 (eval $ac_try) 2>&5
11652 ac_status=$?
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); }; } &&
11655 { ac_try='test -s conftest$ac_exeext'
11656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657 (eval $ac_try) 2>&5
11658 ac_status=$?
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); }; }; then
11661 ac_cv_lib_nsl_t_open=yes
11662 else
11663 echo "$as_me: failed program was:" >&5
11664 sed 's/^/| /' conftest.$ac_ext >&5
11666 ac_cv_lib_nsl_t_open=no
11668 rm -f conftest.err conftest.$ac_objext \
11669 conftest$ac_exeext conftest.$ac_ext
11670 LIBS=$ac_check_lib_save_LIBS
11672 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11673 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11674 if test $ac_cv_lib_nsl_t_open = yes; then
11675 LIBS="-lnsl $LIBS"
11677 # SVR4
11678 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11679 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11680 if test "${ac_cv_lib_socket_socket+set}" = set; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11682 else
11683 ac_check_lib_save_LIBS=$LIBS
11684 LIBS="-lsocket $LIBS $LIBS"
11685 cat >conftest.$ac_ext <<_ACEOF
11686 /* confdefs.h. */
11687 _ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h. */
11692 /* Override any gcc2 internal prototype to avoid an error. */
11693 #ifdef __cplusplus
11694 extern "C"
11695 #endif
11696 /* We use char because int might match the return type of a gcc2
11697 builtin and then its argument prototype would still apply. */
11698 char socket ();
11700 main ()
11702 socket ();
11704 return 0;
11706 _ACEOF
11707 rm -f conftest.$ac_objext conftest$ac_exeext
11708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11709 (eval $ac_link) 2>conftest.er1
11710 ac_status=$?
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
11716 { ac_try='test -z "$ac_c_werror_flag"
11717 || test ! -s conftest.err'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; } &&
11723 { ac_try='test -s conftest$ac_exeext'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11729 ac_cv_lib_socket_socket=yes
11730 else
11731 echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11734 ac_cv_lib_socket_socket=no
11736 rm -f conftest.err conftest.$ac_objext \
11737 conftest$ac_exeext conftest.$ac_ext
11738 LIBS=$ac_check_lib_save_LIBS
11740 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11741 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11742 if test $ac_cv_lib_socket_socket = yes; then
11743 LIBS="-lsocket $LIBS"
11745 # SVR4 sockets
11747 case "$ac_sys_system" in
11748 BeOS*)
11749 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11750 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11751 if test "${ac_cv_lib_net_socket+set}" = set; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11753 else
11754 ac_check_lib_save_LIBS=$LIBS
11755 LIBS="-lnet $LIBS $LIBS"
11756 cat >conftest.$ac_ext <<_ACEOF
11757 /* confdefs.h. */
11758 _ACEOF
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h. */
11763 /* Override any gcc2 internal prototype to avoid an error. */
11764 #ifdef __cplusplus
11765 extern "C"
11766 #endif
11767 /* We use char because int might match the return type of a gcc2
11768 builtin and then its argument prototype would still apply. */
11769 char socket ();
11771 main ()
11773 socket ();
11775 return 0;
11777 _ACEOF
11778 rm -f conftest.$ac_objext conftest$ac_exeext
11779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11780 (eval $ac_link) 2>conftest.er1
11781 ac_status=$?
11782 grep -v '^ *+' conftest.er1 >conftest.err
11783 rm -f conftest.er1
11784 cat conftest.err >&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } &&
11787 { ac_try='test -z "$ac_c_werror_flag"
11788 || test ! -s conftest.err'
11789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790 (eval $ac_try) 2>&5
11791 ac_status=$?
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; } &&
11794 { ac_try='test -s conftest$ac_exeext'
11795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796 (eval $ac_try) 2>&5
11797 ac_status=$?
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); }; }; then
11800 ac_cv_lib_net_socket=yes
11801 else
11802 echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11805 ac_cv_lib_net_socket=no
11807 rm -f conftest.err conftest.$ac_objext \
11808 conftest$ac_exeext conftest.$ac_ext
11809 LIBS=$ac_check_lib_save_LIBS
11811 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11812 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11813 if test $ac_cv_lib_net_socket = yes; then
11814 LIBS="-lnet $LIBS"
11816 # BeOS
11818 esac
11820 echo "$as_me:$LINENO: checking for --with-libs" >&5
11821 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11823 # Check whether --with-libs or --without-libs was given.
11824 if test "${with_libs+set}" = set; then
11825 withval="$with_libs"
11827 echo "$as_me:$LINENO: result: $withval" >&5
11828 echo "${ECHO_T}$withval" >&6
11829 LIBS="$withval $LIBS"
11831 else
11832 echo "$as_me:$LINENO: result: no" >&5
11833 echo "${ECHO_T}no" >&6
11836 # Check for use of the system libffi library
11837 echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
11838 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6
11840 # Check whether --with-system_ffi or --without-system_ffi was given.
11841 if test "${with_system_ffi+set}" = set; then
11842 withval="$with_system_ffi"
11846 if test -z "$with_system_ffi"
11847 then with_system_ffi="no"
11849 echo "$as_me:$LINENO: result: $with_system_ffi" >&5
11850 echo "${ECHO_T}$with_system_ffi" >&6
11852 # Determine if signalmodule should be used.
11855 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11856 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11858 # Check whether --with-signal-module or --without-signal-module was given.
11859 if test "${with_signal_module+set}" = set; then
11860 withval="$with_signal_module"
11864 if test -z "$with_signal_module"
11865 then with_signal_module="yes"
11867 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11868 echo "${ECHO_T}$with_signal_module" >&6
11870 if test "${with_signal_module}" = "yes"; then
11871 USE_SIGNAL_MODULE=""
11872 SIGNAL_OBJS=""
11873 else
11874 USE_SIGNAL_MODULE="#"
11875 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
11878 # This is used to generate Setup.config
11880 USE_THREAD_MODULE=""
11882 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11883 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11886 # Check whether --with-dec-threads or --without-dec-threads was given.
11887 if test "${with_dec_threads+set}" = set; then
11888 withval="$with_dec_threads"
11890 echo "$as_me:$LINENO: result: $withval" >&5
11891 echo "${ECHO_T}$withval" >&6
11892 LDLAST=-threads
11893 if test "${with_thread+set}" != set; then
11894 with_thread="$withval";
11896 else
11897 echo "$as_me:$LINENO: result: no" >&5
11898 echo "${ECHO_T}no" >&6
11901 # Templates for things AC_DEFINEd more than once.
11902 # For a single AC_DEFINE, no template is needed.
11910 echo "$as_me:$LINENO: checking for --with-threads" >&5
11911 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11913 # Check whether --with-threads or --without-threads was given.
11914 if test "${with_threads+set}" = set; then
11915 withval="$with_threads"
11919 # --with-thread is deprecated, but check for it anyway
11921 # Check whether --with-thread or --without-thread was given.
11922 if test "${with_thread+set}" = set; then
11923 withval="$with_thread"
11924 with_threads=$with_thread
11927 if test -z "$with_threads"
11928 then with_threads="yes"
11930 echo "$as_me:$LINENO: result: $with_threads" >&5
11931 echo "${ECHO_T}$with_threads" >&6
11934 if test "$with_threads" = "no"
11935 then
11936 USE_THREAD_MODULE="#"
11937 elif test "$ac_cv_pthread_is_default" = yes
11938 then
11939 cat >>confdefs.h <<\_ACEOF
11940 #define WITH_THREAD 1
11941 _ACEOF
11943 # Defining _REENTRANT on system with POSIX threads should not hurt.
11944 cat >>confdefs.h <<\_ACEOF
11945 #define _REENTRANT 1
11946 _ACEOF
11948 posix_threads=yes
11949 THREADOBJ="Python/thread.o"
11950 elif test "$ac_cv_kpthread" = "yes"
11951 then
11952 CC="$CC -Kpthread"
11953 if test "$ac_cv_cxx_thread" = "yes"; then
11954 CXX="$CXX -Kpthread"
11956 cat >>confdefs.h <<\_ACEOF
11957 #define WITH_THREAD 1
11958 _ACEOF
11960 posix_threads=yes
11961 THREADOBJ="Python/thread.o"
11962 elif test "$ac_cv_kthread" = "yes"
11963 then
11964 CC="$CC -Kthread"
11965 if test "$ac_cv_cxx_thread" = "yes"; then
11966 CXX="$CXX -Kthread"
11968 cat >>confdefs.h <<\_ACEOF
11969 #define WITH_THREAD 1
11970 _ACEOF
11972 posix_threads=yes
11973 THREADOBJ="Python/thread.o"
11974 elif test "$ac_cv_pthread" = "yes"
11975 then
11976 CC="$CC -pthread"
11977 if test "$ac_cv_cxx_thread" = "yes"; then
11978 CXX="$CXX -pthread"
11980 cat >>confdefs.h <<\_ACEOF
11981 #define WITH_THREAD 1
11982 _ACEOF
11984 posix_threads=yes
11985 THREADOBJ="Python/thread.o"
11986 else
11987 if test ! -z "$with_threads" -a -d "$with_threads"
11988 then LDFLAGS="$LDFLAGS -L$with_threads"
11990 if test ! -z "$withval" -a -d "$withval"
11991 then LDFLAGS="$LDFLAGS -L$withval"
11994 # According to the POSIX spec, a pthreads implementation must
11995 # define _POSIX_THREADS in unistd.h. Some apparently don't
11996 # (e.g. gnu pth with pthread emulation)
11997 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
11998 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
11999 cat >conftest.$ac_ext <<_ACEOF
12000 /* confdefs.h. */
12001 _ACEOF
12002 cat confdefs.h >>conftest.$ac_ext
12003 cat >>conftest.$ac_ext <<_ACEOF
12004 /* end confdefs.h. */
12006 #include <unistd.h>
12007 #ifdef _POSIX_THREADS
12009 #endif
12011 _ACEOF
12012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12013 $EGREP "yes" >/dev/null 2>&1; then
12014 unistd_defines_pthreads=yes
12015 else
12016 unistd_defines_pthreads=no
12018 rm -f conftest*
12020 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
12021 echo "${ECHO_T}$unistd_defines_pthreads" >&6
12023 cat >>confdefs.h <<\_ACEOF
12024 #define _REENTRANT 1
12025 _ACEOF
12027 if test "${ac_cv_header_cthreads_h+set}" = set; then
12028 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12029 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12030 if test "${ac_cv_header_cthreads_h+set}" = set; then
12031 echo $ECHO_N "(cached) $ECHO_C" >&6
12033 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12034 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12035 else
12036 # Is the header compilable?
12037 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
12038 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
12039 cat >conftest.$ac_ext <<_ACEOF
12040 /* confdefs.h. */
12041 _ACEOF
12042 cat confdefs.h >>conftest.$ac_ext
12043 cat >>conftest.$ac_ext <<_ACEOF
12044 /* end confdefs.h. */
12045 $ac_includes_default
12046 #include <cthreads.h>
12047 _ACEOF
12048 rm -f conftest.$ac_objext
12049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12050 (eval $ac_compile) 2>conftest.er1
12051 ac_status=$?
12052 grep -v '^ *+' conftest.er1 >conftest.err
12053 rm -f conftest.er1
12054 cat conftest.err >&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); } &&
12057 { ac_try='test -z "$ac_c_werror_flag"
12058 || test ! -s conftest.err'
12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060 (eval $ac_try) 2>&5
12061 ac_status=$?
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; } &&
12064 { ac_try='test -s conftest.$ac_objext'
12065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12066 (eval $ac_try) 2>&5
12067 ac_status=$?
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); }; }; then
12070 ac_header_compiler=yes
12071 else
12072 echo "$as_me: failed program was:" >&5
12073 sed 's/^/| /' conftest.$ac_ext >&5
12075 ac_header_compiler=no
12077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12078 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12079 echo "${ECHO_T}$ac_header_compiler" >&6
12081 # Is the header present?
12082 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12083 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12084 cat >conftest.$ac_ext <<_ACEOF
12085 /* confdefs.h. */
12086 _ACEOF
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h. */
12090 #include <cthreads.h>
12091 _ACEOF
12092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12094 ac_status=$?
12095 grep -v '^ *+' conftest.er1 >conftest.err
12096 rm -f conftest.er1
12097 cat conftest.err >&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } >/dev/null; then
12100 if test -s conftest.err; then
12101 ac_cpp_err=$ac_c_preproc_warn_flag
12102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12103 else
12104 ac_cpp_err=
12106 else
12107 ac_cpp_err=yes
12109 if test -z "$ac_cpp_err"; then
12110 ac_header_preproc=yes
12111 else
12112 echo "$as_me: failed program was:" >&5
12113 sed 's/^/| /' conftest.$ac_ext >&5
12115 ac_header_preproc=no
12117 rm -f conftest.err conftest.$ac_ext
12118 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12119 echo "${ECHO_T}$ac_header_preproc" >&6
12121 # So? What about this header?
12122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12123 yes:no: )
12124 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12125 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12126 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12127 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12128 ac_header_preproc=yes
12130 no:yes:* )
12131 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12132 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12133 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12134 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12135 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12136 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12137 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12138 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12139 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12140 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12141 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12142 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12144 cat <<\_ASBOX
12145 ## ------------------------------------------------ ##
12146 ## Report this to http://www.python.org/python-bugs ##
12147 ## ------------------------------------------------ ##
12148 _ASBOX
12150 sed "s/^/$as_me: WARNING: /" >&2
12152 esac
12153 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12154 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12155 if test "${ac_cv_header_cthreads_h+set}" = set; then
12156 echo $ECHO_N "(cached) $ECHO_C" >&6
12157 else
12158 ac_cv_header_cthreads_h=$ac_header_preproc
12160 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12161 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12164 if test $ac_cv_header_cthreads_h = yes; then
12165 cat >>confdefs.h <<\_ACEOF
12166 #define WITH_THREAD 1
12167 _ACEOF
12169 cat >>confdefs.h <<\_ACEOF
12170 #define C_THREADS 1
12171 _ACEOF
12174 cat >>confdefs.h <<\_ACEOF
12175 #define HURD_C_THREADS 1
12176 _ACEOF
12178 LIBS="$LIBS -lthreads"
12179 THREADOBJ="Python/thread.o"
12180 else
12182 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12183 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12184 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12185 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12186 echo $ECHO_N "(cached) $ECHO_C" >&6
12188 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12189 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12190 else
12191 # Is the header compilable?
12192 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12193 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12194 cat >conftest.$ac_ext <<_ACEOF
12195 /* confdefs.h. */
12196 _ACEOF
12197 cat confdefs.h >>conftest.$ac_ext
12198 cat >>conftest.$ac_ext <<_ACEOF
12199 /* end confdefs.h. */
12200 $ac_includes_default
12201 #include <mach/cthreads.h>
12202 _ACEOF
12203 rm -f conftest.$ac_objext
12204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12205 (eval $ac_compile) 2>conftest.er1
12206 ac_status=$?
12207 grep -v '^ *+' conftest.er1 >conftest.err
12208 rm -f conftest.er1
12209 cat conftest.err >&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); } &&
12212 { ac_try='test -z "$ac_c_werror_flag"
12213 || test ! -s conftest.err'
12214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215 (eval $ac_try) 2>&5
12216 ac_status=$?
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; } &&
12219 { ac_try='test -s conftest.$ac_objext'
12220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221 (eval $ac_try) 2>&5
12222 ac_status=$?
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; }; then
12225 ac_header_compiler=yes
12226 else
12227 echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.$ac_ext >&5
12230 ac_header_compiler=no
12232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12233 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12234 echo "${ECHO_T}$ac_header_compiler" >&6
12236 # Is the header present?
12237 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12238 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12239 cat >conftest.$ac_ext <<_ACEOF
12240 /* confdefs.h. */
12241 _ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12245 #include <mach/cthreads.h>
12246 _ACEOF
12247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12249 ac_status=$?
12250 grep -v '^ *+' conftest.er1 >conftest.err
12251 rm -f conftest.er1
12252 cat conftest.err >&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); } >/dev/null; then
12255 if test -s conftest.err; then
12256 ac_cpp_err=$ac_c_preproc_warn_flag
12257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12258 else
12259 ac_cpp_err=
12261 else
12262 ac_cpp_err=yes
12264 if test -z "$ac_cpp_err"; then
12265 ac_header_preproc=yes
12266 else
12267 echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12270 ac_header_preproc=no
12272 rm -f conftest.err conftest.$ac_ext
12273 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12274 echo "${ECHO_T}$ac_header_preproc" >&6
12276 # So? What about this header?
12277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12278 yes:no: )
12279 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12280 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12281 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12282 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12283 ac_header_preproc=yes
12285 no:yes:* )
12286 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12287 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12288 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12289 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12290 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12291 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12293 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12294 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12295 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12296 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12297 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12299 cat <<\_ASBOX
12300 ## ------------------------------------------------ ##
12301 ## Report this to http://www.python.org/python-bugs ##
12302 ## ------------------------------------------------ ##
12303 _ASBOX
12305 sed "s/^/$as_me: WARNING: /" >&2
12307 esac
12308 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12309 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12310 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12312 else
12313 ac_cv_header_mach_cthreads_h=$ac_header_preproc
12315 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12316 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12319 if test $ac_cv_header_mach_cthreads_h = yes; then
12320 cat >>confdefs.h <<\_ACEOF
12321 #define WITH_THREAD 1
12322 _ACEOF
12324 cat >>confdefs.h <<\_ACEOF
12325 #define C_THREADS 1
12326 _ACEOF
12329 cat >>confdefs.h <<\_ACEOF
12330 #define MACH_C_THREADS 1
12331 _ACEOF
12333 THREADOBJ="Python/thread.o"
12334 else
12336 echo "$as_me:$LINENO: checking for --with-pth" >&5
12337 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12339 # Check whether --with-pth or --without-pth was given.
12340 if test "${with_pth+set}" = set; then
12341 withval="$with_pth"
12342 echo "$as_me:$LINENO: result: $withval" >&5
12343 echo "${ECHO_T}$withval" >&6
12344 cat >>confdefs.h <<\_ACEOF
12345 #define WITH_THREAD 1
12346 _ACEOF
12349 cat >>confdefs.h <<\_ACEOF
12350 #define HAVE_PTH 1
12351 _ACEOF
12353 LIBS="-lpth $LIBS"
12354 THREADOBJ="Python/thread.o"
12355 else
12356 echo "$as_me:$LINENO: result: no" >&5
12357 echo "${ECHO_T}no" >&6
12359 # Just looking for pthread_create in libpthread is not enough:
12360 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12361 # So we really have to include pthread.h, and then link.
12362 _libs=$LIBS
12363 LIBS="$LIBS -lpthread"
12364 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12365 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12366 cat >conftest.$ac_ext <<_ACEOF
12367 /* confdefs.h. */
12368 _ACEOF
12369 cat confdefs.h >>conftest.$ac_ext
12370 cat >>conftest.$ac_ext <<_ACEOF
12371 /* end confdefs.h. */
12372 #include <pthread.h>
12374 void * start_routine (void *arg) { exit (0); }
12376 main ()
12379 pthread_create (NULL, NULL, start_routine, NULL)
12381 return 0;
12383 _ACEOF
12384 rm -f conftest.$ac_objext conftest$ac_exeext
12385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12386 (eval $ac_link) 2>conftest.er1
12387 ac_status=$?
12388 grep -v '^ *+' conftest.er1 >conftest.err
12389 rm -f conftest.er1
12390 cat conftest.err >&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } &&
12393 { ac_try='test -z "$ac_c_werror_flag"
12394 || test ! -s conftest.err'
12395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396 (eval $ac_try) 2>&5
12397 ac_status=$?
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; } &&
12400 { ac_try='test -s conftest$ac_exeext'
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12403 ac_status=$?
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; }; then
12407 echo "$as_me:$LINENO: result: yes" >&5
12408 echo "${ECHO_T}yes" >&6
12409 cat >>confdefs.h <<\_ACEOF
12410 #define WITH_THREAD 1
12411 _ACEOF
12413 posix_threads=yes
12414 THREADOBJ="Python/thread.o"
12415 else
12416 echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12420 LIBS=$_libs
12421 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12422 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12423 if test "${ac_cv_func_pthread_detach+set}" = set; then
12424 echo $ECHO_N "(cached) $ECHO_C" >&6
12425 else
12426 cat >conftest.$ac_ext <<_ACEOF
12427 /* confdefs.h. */
12428 _ACEOF
12429 cat confdefs.h >>conftest.$ac_ext
12430 cat >>conftest.$ac_ext <<_ACEOF
12431 /* end confdefs.h. */
12432 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12434 #define pthread_detach innocuous_pthread_detach
12436 /* System header to define __stub macros and hopefully few prototypes,
12437 which can conflict with char pthread_detach (); below.
12438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12439 <limits.h> exists even on freestanding compilers. */
12441 #ifdef __STDC__
12442 # include <limits.h>
12443 #else
12444 # include <assert.h>
12445 #endif
12447 #undef pthread_detach
12449 /* Override any gcc2 internal prototype to avoid an error. */
12450 #ifdef __cplusplus
12451 extern "C"
12453 #endif
12454 /* We use char because int might match the return type of a gcc2
12455 builtin and then its argument prototype would still apply. */
12456 char pthread_detach ();
12457 /* The GNU C library defines this for functions which it implements
12458 to always fail with ENOSYS. Some functions are actually named
12459 something starting with __ and the normal name is an alias. */
12460 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
12461 choke me
12462 #else
12463 char (*f) () = pthread_detach;
12464 #endif
12465 #ifdef __cplusplus
12467 #endif
12470 main ()
12472 return f != pthread_detach;
12474 return 0;
12476 _ACEOF
12477 rm -f conftest.$ac_objext conftest$ac_exeext
12478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12479 (eval $ac_link) 2>conftest.er1
12480 ac_status=$?
12481 grep -v '^ *+' conftest.er1 >conftest.err
12482 rm -f conftest.er1
12483 cat conftest.err >&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); } &&
12486 { ac_try='test -z "$ac_c_werror_flag"
12487 || test ! -s conftest.err'
12488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489 (eval $ac_try) 2>&5
12490 ac_status=$?
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; } &&
12493 { ac_try='test -s conftest$ac_exeext'
12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495 (eval $ac_try) 2>&5
12496 ac_status=$?
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; }; then
12499 ac_cv_func_pthread_detach=yes
12500 else
12501 echo "$as_me: failed program was:" >&5
12502 sed 's/^/| /' conftest.$ac_ext >&5
12504 ac_cv_func_pthread_detach=no
12506 rm -f conftest.err conftest.$ac_objext \
12507 conftest$ac_exeext conftest.$ac_ext
12509 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
12510 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
12511 if test $ac_cv_func_pthread_detach = yes; then
12512 cat >>confdefs.h <<\_ACEOF
12513 #define WITH_THREAD 1
12514 _ACEOF
12516 posix_threads=yes
12517 THREADOBJ="Python/thread.o"
12518 else
12520 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12521 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12522 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12523 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
12526 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12527 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12528 else
12529 # Is the header compilable?
12530 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
12531 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
12532 cat >conftest.$ac_ext <<_ACEOF
12533 /* confdefs.h. */
12534 _ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12538 $ac_includes_default
12539 #include <atheos/threads.h>
12540 _ACEOF
12541 rm -f conftest.$ac_objext
12542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12543 (eval $ac_compile) 2>conftest.er1
12544 ac_status=$?
12545 grep -v '^ *+' conftest.er1 >conftest.err
12546 rm -f conftest.er1
12547 cat conftest.err >&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } &&
12550 { ac_try='test -z "$ac_c_werror_flag"
12551 || test ! -s conftest.err'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12554 ac_status=$?
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; } &&
12557 { ac_try='test -s conftest.$ac_objext'
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12560 ac_status=$?
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
12563 ac_header_compiler=yes
12564 else
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12568 ac_header_compiler=no
12570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12572 echo "${ECHO_T}$ac_header_compiler" >&6
12574 # Is the header present?
12575 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
12576 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
12577 cat >conftest.$ac_ext <<_ACEOF
12578 /* confdefs.h. */
12579 _ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h. */
12583 #include <atheos/threads.h>
12584 _ACEOF
12585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12587 ac_status=$?
12588 grep -v '^ *+' conftest.er1 >conftest.err
12589 rm -f conftest.er1
12590 cat conftest.err >&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } >/dev/null; then
12593 if test -s conftest.err; then
12594 ac_cpp_err=$ac_c_preproc_warn_flag
12595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12596 else
12597 ac_cpp_err=
12599 else
12600 ac_cpp_err=yes
12602 if test -z "$ac_cpp_err"; then
12603 ac_header_preproc=yes
12604 else
12605 echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12608 ac_header_preproc=no
12610 rm -f conftest.err conftest.$ac_ext
12611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12612 echo "${ECHO_T}$ac_header_preproc" >&6
12614 # So? What about this header?
12615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12616 yes:no: )
12617 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12618 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12619 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
12620 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
12621 ac_header_preproc=yes
12623 no:yes:* )
12624 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
12625 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
12626 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
12627 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
12628 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
12629 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
12630 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
12631 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12632 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
12633 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
12634 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
12635 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
12637 cat <<\_ASBOX
12638 ## ------------------------------------------------ ##
12639 ## Report this to http://www.python.org/python-bugs ##
12640 ## ------------------------------------------------ ##
12641 _ASBOX
12643 sed "s/^/$as_me: WARNING: /" >&2
12645 esac
12646 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12647 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12648 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12649 echo $ECHO_N "(cached) $ECHO_C" >&6
12650 else
12651 ac_cv_header_atheos_threads_h=$ac_header_preproc
12653 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12654 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12657 if test $ac_cv_header_atheos_threads_h = yes; then
12658 cat >>confdefs.h <<\_ACEOF
12659 #define WITH_THREAD 1
12660 _ACEOF
12663 cat >>confdefs.h <<\_ACEOF
12664 #define ATHEOS_THREADS 1
12665 _ACEOF
12667 THREADOBJ="Python/thread.o"
12668 else
12670 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12671 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12672 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12673 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12676 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12677 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12678 else
12679 # Is the header compilable?
12680 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
12681 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
12682 cat >conftest.$ac_ext <<_ACEOF
12683 /* confdefs.h. */
12684 _ACEOF
12685 cat confdefs.h >>conftest.$ac_ext
12686 cat >>conftest.$ac_ext <<_ACEOF
12687 /* end confdefs.h. */
12688 $ac_includes_default
12689 #include <kernel/OS.h>
12690 _ACEOF
12691 rm -f conftest.$ac_objext
12692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12693 (eval $ac_compile) 2>conftest.er1
12694 ac_status=$?
12695 grep -v '^ *+' conftest.er1 >conftest.err
12696 rm -f conftest.er1
12697 cat conftest.err >&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); } &&
12700 { ac_try='test -z "$ac_c_werror_flag"
12701 || test ! -s conftest.err'
12702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12703 (eval $ac_try) 2>&5
12704 ac_status=$?
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); }; } &&
12707 { ac_try='test -s conftest.$ac_objext'
12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709 (eval $ac_try) 2>&5
12710 ac_status=$?
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; }; then
12713 ac_header_compiler=yes
12714 else
12715 echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12718 ac_header_compiler=no
12720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12722 echo "${ECHO_T}$ac_header_compiler" >&6
12724 # Is the header present?
12725 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12726 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12727 cat >conftest.$ac_ext <<_ACEOF
12728 /* confdefs.h. */
12729 _ACEOF
12730 cat confdefs.h >>conftest.$ac_ext
12731 cat >>conftest.$ac_ext <<_ACEOF
12732 /* end confdefs.h. */
12733 #include <kernel/OS.h>
12734 _ACEOF
12735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12737 ac_status=$?
12738 grep -v '^ *+' conftest.er1 >conftest.err
12739 rm -f conftest.er1
12740 cat conftest.err >&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); } >/dev/null; then
12743 if test -s conftest.err; then
12744 ac_cpp_err=$ac_c_preproc_warn_flag
12745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12746 else
12747 ac_cpp_err=
12749 else
12750 ac_cpp_err=yes
12752 if test -z "$ac_cpp_err"; then
12753 ac_header_preproc=yes
12754 else
12755 echo "$as_me: failed program was:" >&5
12756 sed 's/^/| /' conftest.$ac_ext >&5
12758 ac_header_preproc=no
12760 rm -f conftest.err conftest.$ac_ext
12761 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12762 echo "${ECHO_T}$ac_header_preproc" >&6
12764 # So? What about this header?
12765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12766 yes:no: )
12767 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12768 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12769 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12770 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12771 ac_header_preproc=yes
12773 no:yes:* )
12774 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12775 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12776 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12777 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12778 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12779 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12780 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12781 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12782 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12783 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12784 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12785 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12787 cat <<\_ASBOX
12788 ## ------------------------------------------------ ##
12789 ## Report this to http://www.python.org/python-bugs ##
12790 ## ------------------------------------------------ ##
12791 _ASBOX
12793 sed "s/^/$as_me: WARNING: /" >&2
12795 esac
12796 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12797 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12798 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12799 echo $ECHO_N "(cached) $ECHO_C" >&6
12800 else
12801 ac_cv_header_kernel_OS_h=$ac_header_preproc
12803 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12804 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12807 if test $ac_cv_header_kernel_OS_h = yes; then
12808 cat >>confdefs.h <<\_ACEOF
12809 #define WITH_THREAD 1
12810 _ACEOF
12813 cat >>confdefs.h <<\_ACEOF
12814 #define BEOS_THREADS 1
12815 _ACEOF
12817 THREADOBJ="Python/thread.o"
12818 else
12820 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12821 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12822 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12823 echo $ECHO_N "(cached) $ECHO_C" >&6
12824 else
12825 ac_check_lib_save_LIBS=$LIBS
12826 LIBS="-lpthreads $LIBS"
12827 cat >conftest.$ac_ext <<_ACEOF
12828 /* confdefs.h. */
12829 _ACEOF
12830 cat confdefs.h >>conftest.$ac_ext
12831 cat >>conftest.$ac_ext <<_ACEOF
12832 /* end confdefs.h. */
12834 /* Override any gcc2 internal prototype to avoid an error. */
12835 #ifdef __cplusplus
12836 extern "C"
12837 #endif
12838 /* We use char because int might match the return type of a gcc2
12839 builtin and then its argument prototype would still apply. */
12840 char pthread_create ();
12842 main ()
12844 pthread_create ();
12846 return 0;
12848 _ACEOF
12849 rm -f conftest.$ac_objext conftest$ac_exeext
12850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12851 (eval $ac_link) 2>conftest.er1
12852 ac_status=$?
12853 grep -v '^ *+' conftest.er1 >conftest.err
12854 rm -f conftest.er1
12855 cat conftest.err >&5
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); } &&
12858 { ac_try='test -z "$ac_c_werror_flag"
12859 || test ! -s conftest.err'
12860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861 (eval $ac_try) 2>&5
12862 ac_status=$?
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; } &&
12865 { ac_try='test -s conftest$ac_exeext'
12866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867 (eval $ac_try) 2>&5
12868 ac_status=$?
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); }; }; then
12871 ac_cv_lib_pthreads_pthread_create=yes
12872 else
12873 echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.$ac_ext >&5
12876 ac_cv_lib_pthreads_pthread_create=no
12878 rm -f conftest.err conftest.$ac_objext \
12879 conftest$ac_exeext conftest.$ac_ext
12880 LIBS=$ac_check_lib_save_LIBS
12882 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12883 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12884 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12885 cat >>confdefs.h <<\_ACEOF
12886 #define WITH_THREAD 1
12887 _ACEOF
12889 posix_threads=yes
12890 LIBS="$LIBS -lpthreads"
12891 THREADOBJ="Python/thread.o"
12892 else
12894 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12895 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12896 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12898 else
12899 ac_check_lib_save_LIBS=$LIBS
12900 LIBS="-lc_r $LIBS"
12901 cat >conftest.$ac_ext <<_ACEOF
12902 /* confdefs.h. */
12903 _ACEOF
12904 cat confdefs.h >>conftest.$ac_ext
12905 cat >>conftest.$ac_ext <<_ACEOF
12906 /* end confdefs.h. */
12908 /* Override any gcc2 internal prototype to avoid an error. */
12909 #ifdef __cplusplus
12910 extern "C"
12911 #endif
12912 /* We use char because int might match the return type of a gcc2
12913 builtin and then its argument prototype would still apply. */
12914 char pthread_create ();
12916 main ()
12918 pthread_create ();
12920 return 0;
12922 _ACEOF
12923 rm -f conftest.$ac_objext conftest$ac_exeext
12924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12925 (eval $ac_link) 2>conftest.er1
12926 ac_status=$?
12927 grep -v '^ *+' conftest.er1 >conftest.err
12928 rm -f conftest.er1
12929 cat conftest.err >&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); } &&
12932 { ac_try='test -z "$ac_c_werror_flag"
12933 || test ! -s conftest.err'
12934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935 (eval $ac_try) 2>&5
12936 ac_status=$?
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; } &&
12939 { ac_try='test -s conftest$ac_exeext'
12940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941 (eval $ac_try) 2>&5
12942 ac_status=$?
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); }; }; then
12945 ac_cv_lib_c_r_pthread_create=yes
12946 else
12947 echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12950 ac_cv_lib_c_r_pthread_create=no
12952 rm -f conftest.err conftest.$ac_objext \
12953 conftest$ac_exeext conftest.$ac_ext
12954 LIBS=$ac_check_lib_save_LIBS
12956 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12957 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12958 if test $ac_cv_lib_c_r_pthread_create = yes; then
12959 cat >>confdefs.h <<\_ACEOF
12960 #define WITH_THREAD 1
12961 _ACEOF
12963 posix_threads=yes
12964 LIBS="$LIBS -lc_r"
12965 THREADOBJ="Python/thread.o"
12966 else
12968 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12969 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12970 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12971 echo $ECHO_N "(cached) $ECHO_C" >&6
12972 else
12973 ac_check_lib_save_LIBS=$LIBS
12974 LIBS="-lpthread $LIBS"
12975 cat >conftest.$ac_ext <<_ACEOF
12976 /* confdefs.h. */
12977 _ACEOF
12978 cat confdefs.h >>conftest.$ac_ext
12979 cat >>conftest.$ac_ext <<_ACEOF
12980 /* end confdefs.h. */
12982 /* Override any gcc2 internal prototype to avoid an error. */
12983 #ifdef __cplusplus
12984 extern "C"
12985 #endif
12986 /* We use char because int might match the return type of a gcc2
12987 builtin and then its argument prototype would still apply. */
12988 char __pthread_create_system ();
12990 main ()
12992 __pthread_create_system ();
12994 return 0;
12996 _ACEOF
12997 rm -f conftest.$ac_objext conftest$ac_exeext
12998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12999 (eval $ac_link) 2>conftest.er1
13000 ac_status=$?
13001 grep -v '^ *+' conftest.er1 >conftest.err
13002 rm -f conftest.er1
13003 cat conftest.err >&5
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); } &&
13006 { ac_try='test -z "$ac_c_werror_flag"
13007 || test ! -s conftest.err'
13008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13009 (eval $ac_try) 2>&5
13010 ac_status=$?
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; } &&
13013 { ac_try='test -s conftest$ac_exeext'
13014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13015 (eval $ac_try) 2>&5
13016 ac_status=$?
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; }; then
13019 ac_cv_lib_pthread___pthread_create_system=yes
13020 else
13021 echo "$as_me: failed program was:" >&5
13022 sed 's/^/| /' conftest.$ac_ext >&5
13024 ac_cv_lib_pthread___pthread_create_system=no
13026 rm -f conftest.err conftest.$ac_objext \
13027 conftest$ac_exeext conftest.$ac_ext
13028 LIBS=$ac_check_lib_save_LIBS
13030 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
13031 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
13032 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
13033 cat >>confdefs.h <<\_ACEOF
13034 #define WITH_THREAD 1
13035 _ACEOF
13037 posix_threads=yes
13038 LIBS="$LIBS -lpthread"
13039 THREADOBJ="Python/thread.o"
13040 else
13042 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
13043 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
13044 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
13045 echo $ECHO_N "(cached) $ECHO_C" >&6
13046 else
13047 ac_check_lib_save_LIBS=$LIBS
13048 LIBS="-lcma $LIBS"
13049 cat >conftest.$ac_ext <<_ACEOF
13050 /* confdefs.h. */
13051 _ACEOF
13052 cat confdefs.h >>conftest.$ac_ext
13053 cat >>conftest.$ac_ext <<_ACEOF
13054 /* end confdefs.h. */
13056 /* Override any gcc2 internal prototype to avoid an error. */
13057 #ifdef __cplusplus
13058 extern "C"
13059 #endif
13060 /* We use char because int might match the return type of a gcc2
13061 builtin and then its argument prototype would still apply. */
13062 char pthread_create ();
13064 main ()
13066 pthread_create ();
13068 return 0;
13070 _ACEOF
13071 rm -f conftest.$ac_objext conftest$ac_exeext
13072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13073 (eval $ac_link) 2>conftest.er1
13074 ac_status=$?
13075 grep -v '^ *+' conftest.er1 >conftest.err
13076 rm -f conftest.er1
13077 cat conftest.err >&5
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); } &&
13080 { ac_try='test -z "$ac_c_werror_flag"
13081 || test ! -s conftest.err'
13082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083 (eval $ac_try) 2>&5
13084 ac_status=$?
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; } &&
13087 { ac_try='test -s conftest$ac_exeext'
13088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13089 (eval $ac_try) 2>&5
13090 ac_status=$?
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); }; }; then
13093 ac_cv_lib_cma_pthread_create=yes
13094 else
13095 echo "$as_me: failed program was:" >&5
13096 sed 's/^/| /' conftest.$ac_ext >&5
13098 ac_cv_lib_cma_pthread_create=no
13100 rm -f conftest.err conftest.$ac_objext \
13101 conftest$ac_exeext conftest.$ac_ext
13102 LIBS=$ac_check_lib_save_LIBS
13104 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13105 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13106 if test $ac_cv_lib_cma_pthread_create = yes; then
13107 cat >>confdefs.h <<\_ACEOF
13108 #define WITH_THREAD 1
13109 _ACEOF
13111 posix_threads=yes
13112 LIBS="$LIBS -lcma"
13113 THREADOBJ="Python/thread.o"
13114 else
13116 USE_THREAD_MODULE="#"
13135 rm -f conftest.err conftest.$ac_objext \
13136 conftest$ac_exeext conftest.$ac_ext
13145 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13146 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13147 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13148 echo $ECHO_N "(cached) $ECHO_C" >&6
13149 else
13150 ac_check_lib_save_LIBS=$LIBS
13151 LIBS="-lmpc $LIBS"
13152 cat >conftest.$ac_ext <<_ACEOF
13153 /* confdefs.h. */
13154 _ACEOF
13155 cat confdefs.h >>conftest.$ac_ext
13156 cat >>conftest.$ac_ext <<_ACEOF
13157 /* end confdefs.h. */
13159 /* Override any gcc2 internal prototype to avoid an error. */
13160 #ifdef __cplusplus
13161 extern "C"
13162 #endif
13163 /* We use char because int might match the return type of a gcc2
13164 builtin and then its argument prototype would still apply. */
13165 char usconfig ();
13167 main ()
13169 usconfig ();
13171 return 0;
13173 _ACEOF
13174 rm -f conftest.$ac_objext conftest$ac_exeext
13175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13176 (eval $ac_link) 2>conftest.er1
13177 ac_status=$?
13178 grep -v '^ *+' conftest.er1 >conftest.err
13179 rm -f conftest.er1
13180 cat conftest.err >&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); } &&
13183 { ac_try='test -z "$ac_c_werror_flag"
13184 || test ! -s conftest.err'
13185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13186 (eval $ac_try) 2>&5
13187 ac_status=$?
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; } &&
13190 { ac_try='test -s conftest$ac_exeext'
13191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13192 (eval $ac_try) 2>&5
13193 ac_status=$?
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); }; }; then
13196 ac_cv_lib_mpc_usconfig=yes
13197 else
13198 echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.$ac_ext >&5
13201 ac_cv_lib_mpc_usconfig=no
13203 rm -f conftest.err conftest.$ac_objext \
13204 conftest$ac_exeext conftest.$ac_ext
13205 LIBS=$ac_check_lib_save_LIBS
13207 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13208 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13209 if test $ac_cv_lib_mpc_usconfig = yes; then
13210 cat >>confdefs.h <<\_ACEOF
13211 #define WITH_THREAD 1
13212 _ACEOF
13214 LIBS="$LIBS -lmpc"
13215 THREADOBJ="Python/thread.o"
13216 USE_THREAD_MODULE=""
13220 if test "$posix_threads" != "yes"; then
13221 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13222 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13223 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13225 else
13226 ac_check_lib_save_LIBS=$LIBS
13227 LIBS="-lthread $LIBS"
13228 cat >conftest.$ac_ext <<_ACEOF
13229 /* confdefs.h. */
13230 _ACEOF
13231 cat confdefs.h >>conftest.$ac_ext
13232 cat >>conftest.$ac_ext <<_ACEOF
13233 /* end confdefs.h. */
13235 /* Override any gcc2 internal prototype to avoid an error. */
13236 #ifdef __cplusplus
13237 extern "C"
13238 #endif
13239 /* We use char because int might match the return type of a gcc2
13240 builtin and then its argument prototype would still apply. */
13241 char thr_create ();
13243 main ()
13245 thr_create ();
13247 return 0;
13249 _ACEOF
13250 rm -f conftest.$ac_objext conftest$ac_exeext
13251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13252 (eval $ac_link) 2>conftest.er1
13253 ac_status=$?
13254 grep -v '^ *+' conftest.er1 >conftest.err
13255 rm -f conftest.er1
13256 cat conftest.err >&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); } &&
13259 { ac_try='test -z "$ac_c_werror_flag"
13260 || test ! -s conftest.err'
13261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13262 (eval $ac_try) 2>&5
13263 ac_status=$?
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); }; } &&
13266 { ac_try='test -s conftest$ac_exeext'
13267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13268 (eval $ac_try) 2>&5
13269 ac_status=$?
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); }; }; then
13272 ac_cv_lib_thread_thr_create=yes
13273 else
13274 echo "$as_me: failed program was:" >&5
13275 sed 's/^/| /' conftest.$ac_ext >&5
13277 ac_cv_lib_thread_thr_create=no
13279 rm -f conftest.err conftest.$ac_objext \
13280 conftest$ac_exeext conftest.$ac_ext
13281 LIBS=$ac_check_lib_save_LIBS
13283 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13284 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13285 if test $ac_cv_lib_thread_thr_create = yes; then
13286 cat >>confdefs.h <<\_ACEOF
13287 #define WITH_THREAD 1
13288 _ACEOF
13290 LIBS="$LIBS -lthread"
13291 THREADOBJ="Python/thread.o"
13292 USE_THREAD_MODULE=""
13297 if test "$USE_THREAD_MODULE" != "#"
13298 then
13299 # If the above checks didn't disable threads, (at least) OSF1
13300 # needs this '-threads' argument during linking.
13301 case $ac_sys_system in
13302 OSF1) LDLAST=-threads;;
13303 esac
13307 if test "$posix_threads" = "yes"; then
13308 if test "$unistd_defines_pthreads" = "no"; then
13310 cat >>confdefs.h <<\_ACEOF
13311 #define _POSIX_THREADS 1
13312 _ACEOF
13316 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13317 case $ac_sys_system/$ac_sys_release in
13318 SunOS/5.6)
13319 cat >>confdefs.h <<\_ACEOF
13320 #define HAVE_PTHREAD_DESTRUCTOR 1
13321 _ACEOF
13324 SunOS/5.8)
13325 cat >>confdefs.h <<\_ACEOF
13326 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13327 _ACEOF
13330 esac
13332 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13333 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13334 if test "${ac_cv_pthread_system_supported+set}" = set; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13336 else
13337 if test "$cross_compiling" = yes; then
13338 ac_cv_pthread_system_supported=no
13339 else
13340 cat >conftest.$ac_ext <<_ACEOF
13341 /* confdefs.h. */
13342 _ACEOF
13343 cat confdefs.h >>conftest.$ac_ext
13344 cat >>conftest.$ac_ext <<_ACEOF
13345 /* end confdefs.h. */
13346 #include <pthread.h>
13347 void *foo(void *parm) {
13348 return NULL;
13350 main() {
13351 pthread_attr_t attr;
13352 pthread_t id;
13353 if (pthread_attr_init(&attr)) exit(-1);
13354 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13355 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13356 exit(0);
13358 _ACEOF
13359 rm -f conftest$ac_exeext
13360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13361 (eval $ac_link) 2>&5
13362 ac_status=$?
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366 (eval $ac_try) 2>&5
13367 ac_status=$?
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); }; }; then
13370 ac_cv_pthread_system_supported=yes
13371 else
13372 echo "$as_me: program exited with status $ac_status" >&5
13373 echo "$as_me: failed program was:" >&5
13374 sed 's/^/| /' conftest.$ac_ext >&5
13376 ( exit $ac_status )
13377 ac_cv_pthread_system_supported=no
13379 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13384 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13385 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13386 if test "$ac_cv_pthread_system_supported" = "yes"; then
13388 cat >>confdefs.h <<\_ACEOF
13389 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13390 _ACEOF
13394 for ac_func in pthread_sigmask
13396 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13397 echo "$as_me:$LINENO: checking for $ac_func" >&5
13398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13399 if eval "test \"\${$as_ac_var+set}\" = set"; then
13400 echo $ECHO_N "(cached) $ECHO_C" >&6
13401 else
13402 cat >conftest.$ac_ext <<_ACEOF
13403 /* confdefs.h. */
13404 _ACEOF
13405 cat confdefs.h >>conftest.$ac_ext
13406 cat >>conftest.$ac_ext <<_ACEOF
13407 /* end confdefs.h. */
13408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13410 #define $ac_func innocuous_$ac_func
13412 /* System header to define __stub macros and hopefully few prototypes,
13413 which can conflict with char $ac_func (); below.
13414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13415 <limits.h> exists even on freestanding compilers. */
13417 #ifdef __STDC__
13418 # include <limits.h>
13419 #else
13420 # include <assert.h>
13421 #endif
13423 #undef $ac_func
13425 /* Override any gcc2 internal prototype to avoid an error. */
13426 #ifdef __cplusplus
13427 extern "C"
13429 #endif
13430 /* We use char because int might match the return type of a gcc2
13431 builtin and then its argument prototype would still apply. */
13432 char $ac_func ();
13433 /* The GNU C library defines this for functions which it implements
13434 to always fail with ENOSYS. Some functions are actually named
13435 something starting with __ and the normal name is an alias. */
13436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13437 choke me
13438 #else
13439 char (*f) () = $ac_func;
13440 #endif
13441 #ifdef __cplusplus
13443 #endif
13446 main ()
13448 return f != $ac_func;
13450 return 0;
13452 _ACEOF
13453 rm -f conftest.$ac_objext conftest$ac_exeext
13454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13455 (eval $ac_link) 2>conftest.er1
13456 ac_status=$?
13457 grep -v '^ *+' conftest.er1 >conftest.err
13458 rm -f conftest.er1
13459 cat conftest.err >&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); } &&
13462 { ac_try='test -z "$ac_c_werror_flag"
13463 || test ! -s conftest.err'
13464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465 (eval $ac_try) 2>&5
13466 ac_status=$?
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); }; } &&
13469 { ac_try='test -s conftest$ac_exeext'
13470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471 (eval $ac_try) 2>&5
13472 ac_status=$?
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; }; then
13475 eval "$as_ac_var=yes"
13476 else
13477 echo "$as_me: failed program was:" >&5
13478 sed 's/^/| /' conftest.$ac_ext >&5
13480 eval "$as_ac_var=no"
13482 rm -f conftest.err conftest.$ac_objext \
13483 conftest$ac_exeext conftest.$ac_ext
13485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13487 if test `eval echo '${'$as_ac_var'}'` = yes; then
13488 cat >>confdefs.h <<_ACEOF
13489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13490 _ACEOF
13491 case $ac_sys_system in
13492 CYGWIN*)
13494 cat >>confdefs.h <<\_ACEOF
13495 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
13496 _ACEOF
13499 esac
13501 done
13506 # Check for enable-ipv6
13509 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
13510 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
13511 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13512 if test "${enable_ipv6+set}" = set; then
13513 enableval="$enable_ipv6"
13514 case "$enableval" in
13516 echo "$as_me:$LINENO: result: no" >&5
13517 echo "${ECHO_T}no" >&6
13518 ipv6=no
13520 *) echo "$as_me:$LINENO: result: yes" >&5
13521 echo "${ECHO_T}yes" >&6
13522 cat >>confdefs.h <<\_ACEOF
13523 #define ENABLE_IPV6 1
13524 _ACEOF
13526 ipv6=yes
13528 esac
13529 else
13531 if test "$cross_compiling" = yes; then
13532 echo "$as_me:$LINENO: result: no" >&5
13533 echo "${ECHO_T}no" >&6
13534 ipv6=no
13536 else
13537 cat >conftest.$ac_ext <<_ACEOF
13538 /* confdefs.h. */
13539 _ACEOF
13540 cat confdefs.h >>conftest.$ac_ext
13541 cat >>conftest.$ac_ext <<_ACEOF
13542 /* end confdefs.h. */
13543 /* AF_INET6 available check */
13544 #include <sys/types.h>
13545 #include <sys/socket.h>
13546 main()
13548 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
13549 exit(1);
13550 else
13551 exit(0);
13554 _ACEOF
13555 rm -f conftest$ac_exeext
13556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13557 (eval $ac_link) 2>&5
13558 ac_status=$?
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562 (eval $ac_try) 2>&5
13563 ac_status=$?
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; }; then
13566 echo "$as_me:$LINENO: result: yes" >&5
13567 echo "${ECHO_T}yes" >&6
13568 ipv6=yes
13569 else
13570 echo "$as_me: program exited with status $ac_status" >&5
13571 echo "$as_me: failed program was:" >&5
13572 sed 's/^/| /' conftest.$ac_ext >&5
13574 ( exit $ac_status )
13575 echo "$as_me:$LINENO: result: no" >&5
13576 echo "${ECHO_T}no" >&6
13577 ipv6=no
13579 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13582 if test "$ipv6" = "yes"; then
13583 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
13584 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
13585 cat >conftest.$ac_ext <<_ACEOF
13586 /* confdefs.h. */
13587 _ACEOF
13588 cat confdefs.h >>conftest.$ac_ext
13589 cat >>conftest.$ac_ext <<_ACEOF
13590 /* end confdefs.h. */
13591 #include <sys/types.h>
13592 #include <netinet/in.h>
13594 main ()
13596 struct sockaddr_in6 x;
13597 x.sin6_scope_id;
13599 return 0;
13601 _ACEOF
13602 rm -f conftest.$ac_objext
13603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13604 (eval $ac_compile) 2>conftest.er1
13605 ac_status=$?
13606 grep -v '^ *+' conftest.er1 >conftest.err
13607 rm -f conftest.er1
13608 cat conftest.err >&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } &&
13611 { ac_try='test -z "$ac_c_werror_flag"
13612 || test ! -s conftest.err'
13613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13615 ac_status=$?
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; } &&
13618 { ac_try='test -s conftest.$ac_objext'
13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13621 ac_status=$?
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; }; then
13624 echo "$as_me:$LINENO: result: yes" >&5
13625 echo "${ECHO_T}yes" >&6
13626 ipv6=yes
13627 else
13628 echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13631 echo "$as_me:$LINENO: result: no" >&5
13632 echo "${ECHO_T}no" >&6
13633 ipv6=no
13635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13638 if test "$ipv6" = "yes"; then
13639 cat >>confdefs.h <<\_ACEOF
13640 #define ENABLE_IPV6 1
13641 _ACEOF
13647 ipv6type=unknown
13648 ipv6lib=none
13649 ipv6trylibc=no
13651 if test "$ipv6" = "yes"; then
13652 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
13653 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
13654 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
13656 case $i in
13657 inria)
13658 cat >conftest.$ac_ext <<_ACEOF
13659 /* confdefs.h. */
13660 _ACEOF
13661 cat confdefs.h >>conftest.$ac_ext
13662 cat >>conftest.$ac_ext <<_ACEOF
13663 /* end confdefs.h. */
13665 #include <netinet/in.h>
13666 #ifdef IPV6_INRIA_VERSION
13668 #endif
13669 _ACEOF
13670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13671 $EGREP "yes" >/dev/null 2>&1; then
13672 ipv6type=$i
13674 rm -f conftest*
13677 kame)
13678 cat >conftest.$ac_ext <<_ACEOF
13679 /* confdefs.h. */
13680 _ACEOF
13681 cat confdefs.h >>conftest.$ac_ext
13682 cat >>conftest.$ac_ext <<_ACEOF
13683 /* end confdefs.h. */
13685 #include <netinet/in.h>
13686 #ifdef __KAME__
13688 #endif
13689 _ACEOF
13690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13691 $EGREP "yes" >/dev/null 2>&1; then
13692 ipv6type=$i;
13693 ipv6lib=inet6
13694 ipv6libdir=/usr/local/v6/lib
13695 ipv6trylibc=yes
13697 rm -f conftest*
13700 linux-glibc)
13701 cat >conftest.$ac_ext <<_ACEOF
13702 /* confdefs.h. */
13703 _ACEOF
13704 cat confdefs.h >>conftest.$ac_ext
13705 cat >>conftest.$ac_ext <<_ACEOF
13706 /* end confdefs.h. */
13708 #include <features.h>
13709 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13711 #endif
13712 _ACEOF
13713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13714 $EGREP "yes" >/dev/null 2>&1; then
13715 ipv6type=$i;
13716 ipv6trylibc=yes
13718 rm -f conftest*
13721 linux-inet6)
13722 if test -d /usr/inet6; then
13723 ipv6type=$i
13724 ipv6lib=inet6
13725 ipv6libdir=/usr/inet6/lib
13726 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
13729 solaris)
13730 if test -f /etc/netconfig; then
13731 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
13732 ipv6type=$i
13733 ipv6trylibc=yes
13737 toshiba)
13738 cat >conftest.$ac_ext <<_ACEOF
13739 /* confdefs.h. */
13740 _ACEOF
13741 cat confdefs.h >>conftest.$ac_ext
13742 cat >>conftest.$ac_ext <<_ACEOF
13743 /* end confdefs.h. */
13745 #include <sys/param.h>
13746 #ifdef _TOSHIBA_INET6
13748 #endif
13749 _ACEOF
13750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13751 $EGREP "yes" >/dev/null 2>&1; then
13752 ipv6type=$i;
13753 ipv6lib=inet6;
13754 ipv6libdir=/usr/local/v6/lib
13756 rm -f conftest*
13759 v6d)
13760 cat >conftest.$ac_ext <<_ACEOF
13761 /* confdefs.h. */
13762 _ACEOF
13763 cat confdefs.h >>conftest.$ac_ext
13764 cat >>conftest.$ac_ext <<_ACEOF
13765 /* end confdefs.h. */
13767 #include </usr/local/v6/include/sys/v6config.h>
13768 #ifdef __V6D__
13770 #endif
13771 _ACEOF
13772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13773 $EGREP "yes" >/dev/null 2>&1; then
13774 ipv6type=$i;
13775 ipv6lib=v6;
13776 ipv6libdir=/usr/local/v6/lib;
13777 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
13779 rm -f conftest*
13782 zeta)
13783 cat >conftest.$ac_ext <<_ACEOF
13784 /* confdefs.h. */
13785 _ACEOF
13786 cat confdefs.h >>conftest.$ac_ext
13787 cat >>conftest.$ac_ext <<_ACEOF
13788 /* end confdefs.h. */
13790 #include <sys/param.h>
13791 #ifdef _ZETA_MINAMI_INET6
13793 #endif
13794 _ACEOF
13795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13796 $EGREP "yes" >/dev/null 2>&1; then
13797 ipv6type=$i;
13798 ipv6lib=inet6;
13799 ipv6libdir=/usr/local/v6/lib
13801 rm -f conftest*
13804 esac
13805 if test "$ipv6type" != "unknown"; then
13806 break
13808 done
13809 echo "$as_me:$LINENO: result: $ipv6type" >&5
13810 echo "${ECHO_T}$ipv6type" >&6
13813 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13814 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
13815 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
13816 echo "using lib$ipv6lib"
13817 else
13818 if test $ipv6trylibc = "yes"; then
13819 echo "using libc"
13820 else
13821 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13822 echo "You need to fetch lib$ipv6lib.a from appropriate"
13823 echo 'ipv6 kit and compile beforehand.'
13824 exit 1
13829 # Check for --with-doc-strings
13830 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13831 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13833 # Check whether --with-doc-strings or --without-doc-strings was given.
13834 if test "${with_doc_strings+set}" = set; then
13835 withval="$with_doc_strings"
13839 if test -z "$with_doc_strings"
13840 then with_doc_strings="yes"
13842 if test "$with_doc_strings" != "no"
13843 then
13845 cat >>confdefs.h <<\_ACEOF
13846 #define WITH_DOC_STRINGS 1
13847 _ACEOF
13850 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13851 echo "${ECHO_T}$with_doc_strings" >&6
13853 # Check for Python-specific malloc support
13854 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13855 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13857 # Check whether --with-tsc or --without-tsc was given.
13858 if test "${with_tsc+set}" = set; then
13859 withval="$with_tsc"
13861 if test "$withval" != no
13862 then
13864 cat >>confdefs.h <<\_ACEOF
13865 #define WITH_TSC 1
13866 _ACEOF
13868 echo "$as_me:$LINENO: result: yes" >&5
13869 echo "${ECHO_T}yes" >&6
13870 else echo "$as_me:$LINENO: result: no" >&5
13871 echo "${ECHO_T}no" >&6
13873 else
13874 echo "$as_me:$LINENO: result: no" >&5
13875 echo "${ECHO_T}no" >&6
13878 # Check for Python-specific malloc support
13879 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13880 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13882 # Check whether --with-pymalloc or --without-pymalloc was given.
13883 if test "${with_pymalloc+set}" = set; then
13884 withval="$with_pymalloc"
13888 if test -z "$with_pymalloc"
13889 then with_pymalloc="yes"
13891 if test "$with_pymalloc" != "no"
13892 then
13894 cat >>confdefs.h <<\_ACEOF
13895 #define WITH_PYMALLOC 1
13896 _ACEOF
13899 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13900 echo "${ECHO_T}$with_pymalloc" >&6
13902 # Check for --with-wctype-functions
13903 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13904 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13906 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13907 if test "${with_wctype_functions+set}" = set; then
13908 withval="$with_wctype_functions"
13910 if test "$withval" != no
13911 then
13913 cat >>confdefs.h <<\_ACEOF
13914 #define WANT_WCTYPE_FUNCTIONS 1
13915 _ACEOF
13917 echo "$as_me:$LINENO: result: yes" >&5
13918 echo "${ECHO_T}yes" >&6
13919 else echo "$as_me:$LINENO: result: no" >&5
13920 echo "${ECHO_T}no" >&6
13922 else
13923 echo "$as_me:$LINENO: result: no" >&5
13924 echo "${ECHO_T}no" >&6
13927 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13929 DLINCLDIR=.
13931 # the dlopen() function means we might want to use dynload_shlib.o. some
13932 # platforms, such as AIX, have dlopen(), but don't want to use it.
13934 for ac_func in dlopen
13936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13937 echo "$as_me:$LINENO: checking for $ac_func" >&5
13938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13939 if eval "test \"\${$as_ac_var+set}\" = set"; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13941 else
13942 cat >conftest.$ac_ext <<_ACEOF
13943 /* confdefs.h. */
13944 _ACEOF
13945 cat confdefs.h >>conftest.$ac_ext
13946 cat >>conftest.$ac_ext <<_ACEOF
13947 /* end confdefs.h. */
13948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13950 #define $ac_func innocuous_$ac_func
13952 /* System header to define __stub macros and hopefully few prototypes,
13953 which can conflict with char $ac_func (); below.
13954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13955 <limits.h> exists even on freestanding compilers. */
13957 #ifdef __STDC__
13958 # include <limits.h>
13959 #else
13960 # include <assert.h>
13961 #endif
13963 #undef $ac_func
13965 /* Override any gcc2 internal prototype to avoid an error. */
13966 #ifdef __cplusplus
13967 extern "C"
13969 #endif
13970 /* We use char because int might match the return type of a gcc2
13971 builtin and then its argument prototype would still apply. */
13972 char $ac_func ();
13973 /* The GNU C library defines this for functions which it implements
13974 to always fail with ENOSYS. Some functions are actually named
13975 something starting with __ and the normal name is an alias. */
13976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13977 choke me
13978 #else
13979 char (*f) () = $ac_func;
13980 #endif
13981 #ifdef __cplusplus
13983 #endif
13986 main ()
13988 return f != $ac_func;
13990 return 0;
13992 _ACEOF
13993 rm -f conftest.$ac_objext conftest$ac_exeext
13994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13995 (eval $ac_link) 2>conftest.er1
13996 ac_status=$?
13997 grep -v '^ *+' conftest.er1 >conftest.err
13998 rm -f conftest.er1
13999 cat conftest.err >&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); } &&
14002 { ac_try='test -z "$ac_c_werror_flag"
14003 || test ! -s conftest.err'
14004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005 (eval $ac_try) 2>&5
14006 ac_status=$?
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); }; } &&
14009 { ac_try='test -s conftest$ac_exeext'
14010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14011 (eval $ac_try) 2>&5
14012 ac_status=$?
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; }; then
14015 eval "$as_ac_var=yes"
14016 else
14017 echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.$ac_ext >&5
14020 eval "$as_ac_var=no"
14022 rm -f conftest.err conftest.$ac_objext \
14023 conftest$ac_exeext conftest.$ac_ext
14025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14027 if test `eval echo '${'$as_ac_var'}'` = yes; then
14028 cat >>confdefs.h <<_ACEOF
14029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14030 _ACEOF
14033 done
14036 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
14037 # loading of modules.
14039 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
14040 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
14041 if test -z "$DYNLOADFILE"
14042 then
14043 case $ac_sys_system/$ac_sys_release in
14044 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
14045 if test "$ac_cv_func_dlopen" = yes
14046 then DYNLOADFILE="dynload_shlib.o"
14047 else DYNLOADFILE="dynload_aix.o"
14050 BeOS*) DYNLOADFILE="dynload_beos.o";;
14051 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
14052 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
14053 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
14054 atheos*) DYNLOADFILE="dynload_atheos.o";;
14056 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
14057 # out any dynamic loading
14058 if test "$ac_cv_func_dlopen" = yes
14059 then DYNLOADFILE="dynload_shlib.o"
14060 else DYNLOADFILE="dynload_stub.o"
14063 esac
14065 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
14066 echo "${ECHO_T}$DYNLOADFILE" >&6
14067 if test "$DYNLOADFILE" != "dynload_stub.o"
14068 then
14070 cat >>confdefs.h <<\_ACEOF
14071 #define HAVE_DYNAMIC_LOADING 1
14072 _ACEOF
14076 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14079 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14080 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14081 if test -z "$MACHDEP_OBJS"
14082 then
14083 MACHDEP_OBJS=$extra_machdep_objs
14084 else
14085 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
14087 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14088 echo "${ECHO_T}MACHDEP_OBJS" >&6
14090 # checks for library functions
14167 for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \
14168 execv fork fpathconf ftime ftruncate \
14169 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14170 getpriority getpwent getspnam getspent getsid getwd \
14171 kill killpg lchown lstat mkfifo mknod mktime \
14172 mremap nice pathconf pause plock poll pthread_init \
14173 putenv readlink realpath \
14174 select setegid seteuid setgid \
14175 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14176 sigaction siginterrupt sigrelse strftime \
14177 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
14178 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14181 echo "$as_me:$LINENO: checking for $ac_func" >&5
14182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14183 if eval "test \"\${$as_ac_var+set}\" = set"; then
14184 echo $ECHO_N "(cached) $ECHO_C" >&6
14185 else
14186 cat >conftest.$ac_ext <<_ACEOF
14187 /* confdefs.h. */
14188 _ACEOF
14189 cat confdefs.h >>conftest.$ac_ext
14190 cat >>conftest.$ac_ext <<_ACEOF
14191 /* end confdefs.h. */
14192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14194 #define $ac_func innocuous_$ac_func
14196 /* System header to define __stub macros and hopefully few prototypes,
14197 which can conflict with char $ac_func (); below.
14198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14199 <limits.h> exists even on freestanding compilers. */
14201 #ifdef __STDC__
14202 # include <limits.h>
14203 #else
14204 # include <assert.h>
14205 #endif
14207 #undef $ac_func
14209 /* Override any gcc2 internal prototype to avoid an error. */
14210 #ifdef __cplusplus
14211 extern "C"
14213 #endif
14214 /* We use char because int might match the return type of a gcc2
14215 builtin and then its argument prototype would still apply. */
14216 char $ac_func ();
14217 /* The GNU C library defines this for functions which it implements
14218 to always fail with ENOSYS. Some functions are actually named
14219 something starting with __ and the normal name is an alias. */
14220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14221 choke me
14222 #else
14223 char (*f) () = $ac_func;
14224 #endif
14225 #ifdef __cplusplus
14227 #endif
14230 main ()
14232 return f != $ac_func;
14234 return 0;
14236 _ACEOF
14237 rm -f conftest.$ac_objext conftest$ac_exeext
14238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14239 (eval $ac_link) 2>conftest.er1
14240 ac_status=$?
14241 grep -v '^ *+' conftest.er1 >conftest.err
14242 rm -f conftest.er1
14243 cat conftest.err >&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); } &&
14246 { ac_try='test -z "$ac_c_werror_flag"
14247 || test ! -s conftest.err'
14248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14249 (eval $ac_try) 2>&5
14250 ac_status=$?
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); }; } &&
14253 { ac_try='test -s conftest$ac_exeext'
14254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255 (eval $ac_try) 2>&5
14256 ac_status=$?
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); }; }; then
14259 eval "$as_ac_var=yes"
14260 else
14261 echo "$as_me: failed program was:" >&5
14262 sed 's/^/| /' conftest.$ac_ext >&5
14264 eval "$as_ac_var=no"
14266 rm -f conftest.err conftest.$ac_objext \
14267 conftest$ac_exeext conftest.$ac_ext
14269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14271 if test `eval echo '${'$as_ac_var'}'` = yes; then
14272 cat >>confdefs.h <<_ACEOF
14273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14274 _ACEOF
14277 done
14280 # For some functions, having a definition is not sufficient, since
14281 # we want to take their address.
14282 echo "$as_me:$LINENO: checking for chroot" >&5
14283 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14284 cat >conftest.$ac_ext <<_ACEOF
14285 /* confdefs.h. */
14286 _ACEOF
14287 cat confdefs.h >>conftest.$ac_ext
14288 cat >>conftest.$ac_ext <<_ACEOF
14289 /* end confdefs.h. */
14290 #include <unistd.h>
14292 main ()
14294 void *x=chroot
14296 return 0;
14298 _ACEOF
14299 rm -f conftest.$ac_objext
14300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14301 (eval $ac_compile) 2>conftest.er1
14302 ac_status=$?
14303 grep -v '^ *+' conftest.er1 >conftest.err
14304 rm -f conftest.er1
14305 cat conftest.err >&5
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); } &&
14308 { ac_try='test -z "$ac_c_werror_flag"
14309 || test ! -s conftest.err'
14310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14311 (eval $ac_try) 2>&5
14312 ac_status=$?
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); }; } &&
14315 { ac_try='test -s conftest.$ac_objext'
14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14318 ac_status=$?
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; }; then
14322 cat >>confdefs.h <<\_ACEOF
14323 #define HAVE_CHROOT 1
14324 _ACEOF
14326 echo "$as_me:$LINENO: result: yes" >&5
14327 echo "${ECHO_T}yes" >&6
14328 else
14329 echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14332 echo "$as_me:$LINENO: result: no" >&5
14333 echo "${ECHO_T}no" >&6
14336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14337 echo "$as_me:$LINENO: checking for link" >&5
14338 echo $ECHO_N "checking for link... $ECHO_C" >&6
14339 cat >conftest.$ac_ext <<_ACEOF
14340 /* confdefs.h. */
14341 _ACEOF
14342 cat confdefs.h >>conftest.$ac_ext
14343 cat >>conftest.$ac_ext <<_ACEOF
14344 /* end confdefs.h. */
14345 #include <unistd.h>
14347 main ()
14349 void *x=link
14351 return 0;
14353 _ACEOF
14354 rm -f conftest.$ac_objext
14355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14356 (eval $ac_compile) 2>conftest.er1
14357 ac_status=$?
14358 grep -v '^ *+' conftest.er1 >conftest.err
14359 rm -f conftest.er1
14360 cat conftest.err >&5
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); } &&
14363 { ac_try='test -z "$ac_c_werror_flag"
14364 || test ! -s conftest.err'
14365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14366 (eval $ac_try) 2>&5
14367 ac_status=$?
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); }; } &&
14370 { ac_try='test -s conftest.$ac_objext'
14371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372 (eval $ac_try) 2>&5
14373 ac_status=$?
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; }; then
14377 cat >>confdefs.h <<\_ACEOF
14378 #define HAVE_LINK 1
14379 _ACEOF
14381 echo "$as_me:$LINENO: result: yes" >&5
14382 echo "${ECHO_T}yes" >&6
14383 else
14384 echo "$as_me: failed program was:" >&5
14385 sed 's/^/| /' conftest.$ac_ext >&5
14387 echo "$as_me:$LINENO: result: no" >&5
14388 echo "${ECHO_T}no" >&6
14391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14392 echo "$as_me:$LINENO: checking for symlink" >&5
14393 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14394 cat >conftest.$ac_ext <<_ACEOF
14395 /* confdefs.h. */
14396 _ACEOF
14397 cat confdefs.h >>conftest.$ac_ext
14398 cat >>conftest.$ac_ext <<_ACEOF
14399 /* end confdefs.h. */
14400 #include <unistd.h>
14402 main ()
14404 void *x=symlink
14406 return 0;
14408 _ACEOF
14409 rm -f conftest.$ac_objext
14410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14411 (eval $ac_compile) 2>conftest.er1
14412 ac_status=$?
14413 grep -v '^ *+' conftest.er1 >conftest.err
14414 rm -f conftest.er1
14415 cat conftest.err >&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } &&
14418 { ac_try='test -z "$ac_c_werror_flag"
14419 || test ! -s conftest.err'
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14422 ac_status=$?
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; } &&
14425 { ac_try='test -s conftest.$ac_objext'
14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14428 ac_status=$?
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; }; then
14432 cat >>confdefs.h <<\_ACEOF
14433 #define HAVE_SYMLINK 1
14434 _ACEOF
14436 echo "$as_me:$LINENO: result: yes" >&5
14437 echo "${ECHO_T}yes" >&6
14438 else
14439 echo "$as_me: failed program was:" >&5
14440 sed 's/^/| /' conftest.$ac_ext >&5
14442 echo "$as_me:$LINENO: result: no" >&5
14443 echo "${ECHO_T}no" >&6
14446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14447 echo "$as_me:$LINENO: checking for fchdir" >&5
14448 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
14449 cat >conftest.$ac_ext <<_ACEOF
14450 /* confdefs.h. */
14451 _ACEOF
14452 cat confdefs.h >>conftest.$ac_ext
14453 cat >>conftest.$ac_ext <<_ACEOF
14454 /* end confdefs.h. */
14455 #include <unistd.h>
14457 main ()
14459 void *x=fchdir
14461 return 0;
14463 _ACEOF
14464 rm -f conftest.$ac_objext
14465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14466 (eval $ac_compile) 2>conftest.er1
14467 ac_status=$?
14468 grep -v '^ *+' conftest.er1 >conftest.err
14469 rm -f conftest.er1
14470 cat conftest.err >&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); } &&
14473 { ac_try='test -z "$ac_c_werror_flag"
14474 || test ! -s conftest.err'
14475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14476 (eval $ac_try) 2>&5
14477 ac_status=$?
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); }; } &&
14480 { ac_try='test -s conftest.$ac_objext'
14481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14482 (eval $ac_try) 2>&5
14483 ac_status=$?
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); }; }; then
14487 cat >>confdefs.h <<\_ACEOF
14488 #define HAVE_FCHDIR 1
14489 _ACEOF
14491 echo "$as_me:$LINENO: result: yes" >&5
14492 echo "${ECHO_T}yes" >&6
14493 else
14494 echo "$as_me: failed program was:" >&5
14495 sed 's/^/| /' conftest.$ac_ext >&5
14497 echo "$as_me:$LINENO: result: no" >&5
14498 echo "${ECHO_T}no" >&6
14501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14502 echo "$as_me:$LINENO: checking for fsync" >&5
14503 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
14504 cat >conftest.$ac_ext <<_ACEOF
14505 /* confdefs.h. */
14506 _ACEOF
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h. */
14510 #include <unistd.h>
14512 main ()
14514 void *x=fsync
14516 return 0;
14518 _ACEOF
14519 rm -f conftest.$ac_objext
14520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14521 (eval $ac_compile) 2>conftest.er1
14522 ac_status=$?
14523 grep -v '^ *+' conftest.er1 >conftest.err
14524 rm -f conftest.er1
14525 cat conftest.err >&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); } &&
14528 { ac_try='test -z "$ac_c_werror_flag"
14529 || test ! -s conftest.err'
14530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14531 (eval $ac_try) 2>&5
14532 ac_status=$?
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); }; } &&
14535 { ac_try='test -s conftest.$ac_objext'
14536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14537 (eval $ac_try) 2>&5
14538 ac_status=$?
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); }; }; then
14542 cat >>confdefs.h <<\_ACEOF
14543 #define HAVE_FSYNC 1
14544 _ACEOF
14546 echo "$as_me:$LINENO: result: yes" >&5
14547 echo "${ECHO_T}yes" >&6
14548 else
14549 echo "$as_me: failed program was:" >&5
14550 sed 's/^/| /' conftest.$ac_ext >&5
14552 echo "$as_me:$LINENO: result: no" >&5
14553 echo "${ECHO_T}no" >&6
14556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14557 echo "$as_me:$LINENO: checking for fdatasync" >&5
14558 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
14559 cat >conftest.$ac_ext <<_ACEOF
14560 /* confdefs.h. */
14561 _ACEOF
14562 cat confdefs.h >>conftest.$ac_ext
14563 cat >>conftest.$ac_ext <<_ACEOF
14564 /* end confdefs.h. */
14565 #include <unistd.h>
14567 main ()
14569 void *x=fdatasync
14571 return 0;
14573 _ACEOF
14574 rm -f conftest.$ac_objext
14575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14576 (eval $ac_compile) 2>conftest.er1
14577 ac_status=$?
14578 grep -v '^ *+' conftest.er1 >conftest.err
14579 rm -f conftest.er1
14580 cat conftest.err >&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); } &&
14583 { ac_try='test -z "$ac_c_werror_flag"
14584 || test ! -s conftest.err'
14585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586 (eval $ac_try) 2>&5
14587 ac_status=$?
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; } &&
14590 { ac_try='test -s conftest.$ac_objext'
14591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592 (eval $ac_try) 2>&5
14593 ac_status=$?
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); }; }; then
14597 cat >>confdefs.h <<\_ACEOF
14598 #define HAVE_FDATASYNC 1
14599 _ACEOF
14601 echo "$as_me:$LINENO: result: yes" >&5
14602 echo "${ECHO_T}yes" >&6
14603 else
14604 echo "$as_me: failed program was:" >&5
14605 sed 's/^/| /' conftest.$ac_ext >&5
14607 echo "$as_me:$LINENO: result: no" >&5
14608 echo "${ECHO_T}no" >&6
14611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14613 # On some systems (eg. FreeBSD 5), we would find a definition of the
14614 # functions ctermid_r, setgroups in the library, but no prototype
14615 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
14616 # address to avoid compiler warnings and potential miscompilations
14617 # because of the missing prototypes.
14619 echo "$as_me:$LINENO: checking for ctermid_r" >&5
14620 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
14621 cat >conftest.$ac_ext <<_ACEOF
14622 /* confdefs.h. */
14623 _ACEOF
14624 cat confdefs.h >>conftest.$ac_ext
14625 cat >>conftest.$ac_ext <<_ACEOF
14626 /* end confdefs.h. */
14628 #include "confdefs.h"
14629 #include <stdio.h>
14632 main ()
14634 void* p = ctermid_r
14636 return 0;
14638 _ACEOF
14639 rm -f conftest.$ac_objext
14640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14641 (eval $ac_compile) 2>conftest.er1
14642 ac_status=$?
14643 grep -v '^ *+' conftest.er1 >conftest.err
14644 rm -f conftest.er1
14645 cat conftest.err >&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); } &&
14648 { ac_try='test -z "$ac_c_werror_flag"
14649 || test ! -s conftest.err'
14650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651 (eval $ac_try) 2>&5
14652 ac_status=$?
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; } &&
14655 { ac_try='test -s conftest.$ac_objext'
14656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14657 (eval $ac_try) 2>&5
14658 ac_status=$?
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); }; }; then
14662 cat >>confdefs.h <<\_ACEOF
14663 #define HAVE_CTERMID_R 1
14664 _ACEOF
14666 echo "$as_me:$LINENO: result: yes" >&5
14667 echo "${ECHO_T}yes" >&6
14668 else
14669 echo "$as_me: failed program was:" >&5
14670 sed 's/^/| /' conftest.$ac_ext >&5
14672 echo "$as_me:$LINENO: result: no" >&5
14673 echo "${ECHO_T}no" >&6
14676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14678 echo "$as_me:$LINENO: checking for flock" >&5
14679 echo $ECHO_N "checking for flock... $ECHO_C" >&6
14680 cat >conftest.$ac_ext <<_ACEOF
14681 /* confdefs.h. */
14682 _ACEOF
14683 cat confdefs.h >>conftest.$ac_ext
14684 cat >>conftest.$ac_ext <<_ACEOF
14685 /* end confdefs.h. */
14687 #include "confdefs.h"
14688 #include <sys/file.h>
14691 main ()
14693 void* p = flock
14695 return 0;
14697 _ACEOF
14698 rm -f conftest.$ac_objext
14699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14700 (eval $ac_compile) 2>conftest.er1
14701 ac_status=$?
14702 grep -v '^ *+' conftest.er1 >conftest.err
14703 rm -f conftest.er1
14704 cat conftest.err >&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); } &&
14707 { ac_try='test -z "$ac_c_werror_flag"
14708 || test ! -s conftest.err'
14709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14710 (eval $ac_try) 2>&5
14711 ac_status=$?
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); }; } &&
14714 { ac_try='test -s conftest.$ac_objext'
14715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14716 (eval $ac_try) 2>&5
14717 ac_status=$?
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); }; }; then
14721 cat >>confdefs.h <<\_ACEOF
14722 #define HAVE_FLOCK 1
14723 _ACEOF
14725 echo "$as_me:$LINENO: result: yes" >&5
14726 echo "${ECHO_T}yes" >&6
14727 else
14728 echo "$as_me: failed program was:" >&5
14729 sed 's/^/| /' conftest.$ac_ext >&5
14731 echo "$as_me:$LINENO: result: no" >&5
14732 echo "${ECHO_T}no" >&6
14735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14737 echo "$as_me:$LINENO: checking for getpagesize" >&5
14738 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14739 cat >conftest.$ac_ext <<_ACEOF
14740 /* confdefs.h. */
14741 _ACEOF
14742 cat confdefs.h >>conftest.$ac_ext
14743 cat >>conftest.$ac_ext <<_ACEOF
14744 /* end confdefs.h. */
14746 #include "confdefs.h"
14747 #include <unistd.h>
14750 main ()
14752 void* p = getpagesize
14754 return 0;
14756 _ACEOF
14757 rm -f conftest.$ac_objext
14758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14759 (eval $ac_compile) 2>conftest.er1
14760 ac_status=$?
14761 grep -v '^ *+' conftest.er1 >conftest.err
14762 rm -f conftest.er1
14763 cat conftest.err >&5
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); } &&
14766 { ac_try='test -z "$ac_c_werror_flag"
14767 || test ! -s conftest.err'
14768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14769 (eval $ac_try) 2>&5
14770 ac_status=$?
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); }; } &&
14773 { ac_try='test -s conftest.$ac_objext'
14774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14775 (eval $ac_try) 2>&5
14776 ac_status=$?
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); }; }; then
14780 cat >>confdefs.h <<\_ACEOF
14781 #define HAVE_GETPAGESIZE 1
14782 _ACEOF
14784 echo "$as_me:$LINENO: result: yes" >&5
14785 echo "${ECHO_T}yes" >&6
14786 else
14787 echo "$as_me: failed program was:" >&5
14788 sed 's/^/| /' conftest.$ac_ext >&5
14790 echo "$as_me:$LINENO: result: no" >&5
14791 echo "${ECHO_T}no" >&6
14794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14796 for ac_prog in true
14798 # Extract the first word of "$ac_prog", so it can be a program name with args.
14799 set dummy $ac_prog; ac_word=$2
14800 echo "$as_me:$LINENO: checking for $ac_word" >&5
14801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14802 if test "${ac_cv_prog_TRUE+set}" = set; then
14803 echo $ECHO_N "(cached) $ECHO_C" >&6
14804 else
14805 if test -n "$TRUE"; then
14806 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
14807 else
14808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14809 for as_dir in $PATH
14811 IFS=$as_save_IFS
14812 test -z "$as_dir" && as_dir=.
14813 for ac_exec_ext in '' $ac_executable_extensions; do
14814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14815 ac_cv_prog_TRUE="$ac_prog"
14816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14817 break 2
14819 done
14820 done
14824 TRUE=$ac_cv_prog_TRUE
14825 if test -n "$TRUE"; then
14826 echo "$as_me:$LINENO: result: $TRUE" >&5
14827 echo "${ECHO_T}$TRUE" >&6
14828 else
14829 echo "$as_me:$LINENO: result: no" >&5
14830 echo "${ECHO_T}no" >&6
14833 test -n "$TRUE" && break
14834 done
14835 test -n "$TRUE" || TRUE="/bin/true"
14838 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14839 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14840 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14841 echo $ECHO_N "(cached) $ECHO_C" >&6
14842 else
14843 ac_check_lib_save_LIBS=$LIBS
14844 LIBS="-lc $LIBS"
14845 cat >conftest.$ac_ext <<_ACEOF
14846 /* confdefs.h. */
14847 _ACEOF
14848 cat confdefs.h >>conftest.$ac_ext
14849 cat >>conftest.$ac_ext <<_ACEOF
14850 /* end confdefs.h. */
14852 /* Override any gcc2 internal prototype to avoid an error. */
14853 #ifdef __cplusplus
14854 extern "C"
14855 #endif
14856 /* We use char because int might match the return type of a gcc2
14857 builtin and then its argument prototype would still apply. */
14858 char inet_aton ();
14860 main ()
14862 inet_aton ();
14864 return 0;
14866 _ACEOF
14867 rm -f conftest.$ac_objext conftest$ac_exeext
14868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14869 (eval $ac_link) 2>conftest.er1
14870 ac_status=$?
14871 grep -v '^ *+' conftest.er1 >conftest.err
14872 rm -f conftest.er1
14873 cat conftest.err >&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } &&
14876 { ac_try='test -z "$ac_c_werror_flag"
14877 || test ! -s conftest.err'
14878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14879 (eval $ac_try) 2>&5
14880 ac_status=$?
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); }; } &&
14883 { ac_try='test -s conftest$ac_exeext'
14884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14885 (eval $ac_try) 2>&5
14886 ac_status=$?
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); }; }; then
14889 ac_cv_lib_c_inet_aton=yes
14890 else
14891 echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14894 ac_cv_lib_c_inet_aton=no
14896 rm -f conftest.err conftest.$ac_objext \
14897 conftest$ac_exeext conftest.$ac_ext
14898 LIBS=$ac_check_lib_save_LIBS
14900 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14901 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14902 if test $ac_cv_lib_c_inet_aton = yes; then
14903 $ac_cv_prog_TRUE
14904 else
14906 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14907 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14908 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14909 echo $ECHO_N "(cached) $ECHO_C" >&6
14910 else
14911 ac_check_lib_save_LIBS=$LIBS
14912 LIBS="-lresolv $LIBS"
14913 cat >conftest.$ac_ext <<_ACEOF
14914 /* confdefs.h. */
14915 _ACEOF
14916 cat confdefs.h >>conftest.$ac_ext
14917 cat >>conftest.$ac_ext <<_ACEOF
14918 /* end confdefs.h. */
14920 /* Override any gcc2 internal prototype to avoid an error. */
14921 #ifdef __cplusplus
14922 extern "C"
14923 #endif
14924 /* We use char because int might match the return type of a gcc2
14925 builtin and then its argument prototype would still apply. */
14926 char inet_aton ();
14928 main ()
14930 inet_aton ();
14932 return 0;
14934 _ACEOF
14935 rm -f conftest.$ac_objext conftest$ac_exeext
14936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14937 (eval $ac_link) 2>conftest.er1
14938 ac_status=$?
14939 grep -v '^ *+' conftest.er1 >conftest.err
14940 rm -f conftest.er1
14941 cat conftest.err >&5
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); } &&
14944 { ac_try='test -z "$ac_c_werror_flag"
14945 || test ! -s conftest.err'
14946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14947 (eval $ac_try) 2>&5
14948 ac_status=$?
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); }; } &&
14951 { ac_try='test -s conftest$ac_exeext'
14952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14953 (eval $ac_try) 2>&5
14954 ac_status=$?
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); }; }; then
14957 ac_cv_lib_resolv_inet_aton=yes
14958 else
14959 echo "$as_me: failed program was:" >&5
14960 sed 's/^/| /' conftest.$ac_ext >&5
14962 ac_cv_lib_resolv_inet_aton=no
14964 rm -f conftest.err conftest.$ac_objext \
14965 conftest$ac_exeext conftest.$ac_ext
14966 LIBS=$ac_check_lib_save_LIBS
14968 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14969 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14970 if test $ac_cv_lib_resolv_inet_aton = yes; then
14971 cat >>confdefs.h <<_ACEOF
14972 #define HAVE_LIBRESOLV 1
14973 _ACEOF
14975 LIBS="-lresolv $LIBS"
14983 echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
14984 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6
14985 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
14986 echo $ECHO_N "(cached) $ECHO_C" >&6
14987 else
14988 ac_check_lib_save_LIBS=$LIBS
14989 LIBS="-lz $LIBS"
14990 cat >conftest.$ac_ext <<_ACEOF
14991 /* confdefs.h. */
14992 _ACEOF
14993 cat confdefs.h >>conftest.$ac_ext
14994 cat >>conftest.$ac_ext <<_ACEOF
14995 /* end confdefs.h. */
14997 /* Override any gcc2 internal prototype to avoid an error. */
14998 #ifdef __cplusplus
14999 extern "C"
15000 #endif
15001 /* We use char because int might match the return type of a gcc2
15002 builtin and then its argument prototype would still apply. */
15003 char inflateCopy ();
15005 main ()
15007 inflateCopy ();
15009 return 0;
15011 _ACEOF
15012 rm -f conftest.$ac_objext conftest$ac_exeext
15013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15014 (eval $ac_link) 2>conftest.er1
15015 ac_status=$?
15016 grep -v '^ *+' conftest.er1 >conftest.err
15017 rm -f conftest.er1
15018 cat conftest.err >&5
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); } &&
15021 { ac_try='test -z "$ac_c_werror_flag"
15022 || test ! -s conftest.err'
15023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15024 (eval $ac_try) 2>&5
15025 ac_status=$?
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); }; } &&
15028 { ac_try='test -s conftest$ac_exeext'
15029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15030 (eval $ac_try) 2>&5
15031 ac_status=$?
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); }; }; then
15034 ac_cv_lib_z_inflateCopy=yes
15035 else
15036 echo "$as_me: failed program was:" >&5
15037 sed 's/^/| /' conftest.$ac_ext >&5
15039 ac_cv_lib_z_inflateCopy=no
15041 rm -f conftest.err conftest.$ac_objext \
15042 conftest$ac_exeext conftest.$ac_ext
15043 LIBS=$ac_check_lib_save_LIBS
15045 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
15046 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6
15047 if test $ac_cv_lib_z_inflateCopy = yes; then
15049 cat >>confdefs.h <<\_ACEOF
15050 #define HAVE_ZLIB_COPY 1
15051 _ACEOF
15056 echo "$as_me:$LINENO: checking for hstrerror" >&5
15057 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
15058 cat >conftest.$ac_ext <<_ACEOF
15059 /* confdefs.h. */
15060 _ACEOF
15061 cat confdefs.h >>conftest.$ac_ext
15062 cat >>conftest.$ac_ext <<_ACEOF
15063 /* end confdefs.h. */
15065 #include "confdefs.h"
15066 #include <netdb.h>
15069 main ()
15071 void* p = hstrerror; hstrerror(0)
15073 return 0;
15075 _ACEOF
15076 rm -f conftest.$ac_objext conftest$ac_exeext
15077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15078 (eval $ac_link) 2>conftest.er1
15079 ac_status=$?
15080 grep -v '^ *+' conftest.er1 >conftest.err
15081 rm -f conftest.er1
15082 cat conftest.err >&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); } &&
15085 { ac_try='test -z "$ac_c_werror_flag"
15086 || test ! -s conftest.err'
15087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088 (eval $ac_try) 2>&5
15089 ac_status=$?
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; } &&
15092 { ac_try='test -s conftest$ac_exeext'
15093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15094 (eval $ac_try) 2>&5
15095 ac_status=$?
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); }; }; then
15099 cat >>confdefs.h <<\_ACEOF
15100 #define HAVE_HSTRERROR 1
15101 _ACEOF
15103 echo "$as_me:$LINENO: result: yes" >&5
15104 echo "${ECHO_T}yes" >&6
15105 else
15106 echo "$as_me: failed program was:" >&5
15107 sed 's/^/| /' conftest.$ac_ext >&5
15109 echo "$as_me:$LINENO: result: no" >&5
15110 echo "${ECHO_T}no" >&6
15113 rm -f conftest.err conftest.$ac_objext \
15114 conftest$ac_exeext conftest.$ac_ext
15116 echo "$as_me:$LINENO: checking for inet_aton" >&5
15117 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
15118 cat >conftest.$ac_ext <<_ACEOF
15119 /* confdefs.h. */
15120 _ACEOF
15121 cat confdefs.h >>conftest.$ac_ext
15122 cat >>conftest.$ac_ext <<_ACEOF
15123 /* end confdefs.h. */
15125 #include "confdefs.h"
15126 #include <sys/types.h>
15127 #include <sys/socket.h>
15128 #include <netinet/in.h>
15129 #include <arpa/inet.h>
15132 main ()
15134 void* p = inet_aton;inet_aton(0,0)
15136 return 0;
15138 _ACEOF
15139 rm -f conftest.$ac_objext conftest$ac_exeext
15140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15141 (eval $ac_link) 2>conftest.er1
15142 ac_status=$?
15143 grep -v '^ *+' conftest.er1 >conftest.err
15144 rm -f conftest.er1
15145 cat conftest.err >&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); } &&
15148 { ac_try='test -z "$ac_c_werror_flag"
15149 || test ! -s conftest.err'
15150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15151 (eval $ac_try) 2>&5
15152 ac_status=$?
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); }; } &&
15155 { ac_try='test -s conftest$ac_exeext'
15156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15157 (eval $ac_try) 2>&5
15158 ac_status=$?
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; }; then
15162 cat >>confdefs.h <<\_ACEOF
15163 #define HAVE_INET_ATON 1
15164 _ACEOF
15166 echo "$as_me:$LINENO: result: yes" >&5
15167 echo "${ECHO_T}yes" >&6
15168 else
15169 echo "$as_me: failed program was:" >&5
15170 sed 's/^/| /' conftest.$ac_ext >&5
15172 echo "$as_me:$LINENO: result: no" >&5
15173 echo "${ECHO_T}no" >&6
15176 rm -f conftest.err conftest.$ac_objext \
15177 conftest$ac_exeext conftest.$ac_ext
15179 echo "$as_me:$LINENO: checking for inet_pton" >&5
15180 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15181 cat >conftest.$ac_ext <<_ACEOF
15182 /* confdefs.h. */
15183 _ACEOF
15184 cat confdefs.h >>conftest.$ac_ext
15185 cat >>conftest.$ac_ext <<_ACEOF
15186 /* end confdefs.h. */
15188 #include "confdefs.h"
15189 #include <sys/types.h>
15190 #include <sys/socket.h>
15191 #include <netinet/in.h>
15192 #include <arpa/inet.h>
15195 main ()
15197 void* p = inet_pton
15199 return 0;
15201 _ACEOF
15202 rm -f conftest.$ac_objext
15203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15204 (eval $ac_compile) 2>conftest.er1
15205 ac_status=$?
15206 grep -v '^ *+' conftest.er1 >conftest.err
15207 rm -f conftest.er1
15208 cat conftest.err >&5
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); } &&
15211 { ac_try='test -z "$ac_c_werror_flag"
15212 || test ! -s conftest.err'
15213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15214 (eval $ac_try) 2>&5
15215 ac_status=$?
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); }; } &&
15218 { ac_try='test -s conftest.$ac_objext'
15219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15220 (eval $ac_try) 2>&5
15221 ac_status=$?
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); }; }; then
15225 cat >>confdefs.h <<\_ACEOF
15226 #define HAVE_INET_PTON 1
15227 _ACEOF
15229 echo "$as_me:$LINENO: result: yes" >&5
15230 echo "${ECHO_T}yes" >&6
15231 else
15232 echo "$as_me: failed program was:" >&5
15233 sed 's/^/| /' conftest.$ac_ext >&5
15235 echo "$as_me:$LINENO: result: no" >&5
15236 echo "${ECHO_T}no" >&6
15239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15241 # On some systems, setgroups is in unistd.h, on others, in grp.h
15242 echo "$as_me:$LINENO: checking for setgroups" >&5
15243 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15244 cat >conftest.$ac_ext <<_ACEOF
15245 /* confdefs.h. */
15246 _ACEOF
15247 cat confdefs.h >>conftest.$ac_ext
15248 cat >>conftest.$ac_ext <<_ACEOF
15249 /* end confdefs.h. */
15251 #include "confdefs.h"
15252 #include <unistd.h>
15253 #ifdef HAVE_GRP_H
15254 #include <grp.h>
15255 #endif
15258 main ()
15260 void* p = setgroups
15262 return 0;
15264 _ACEOF
15265 rm -f conftest.$ac_objext
15266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15267 (eval $ac_compile) 2>conftest.er1
15268 ac_status=$?
15269 grep -v '^ *+' conftest.er1 >conftest.err
15270 rm -f conftest.er1
15271 cat conftest.err >&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); } &&
15274 { ac_try='test -z "$ac_c_werror_flag"
15275 || test ! -s conftest.err'
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15278 ac_status=$?
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; } &&
15281 { ac_try='test -s conftest.$ac_objext'
15282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283 (eval $ac_try) 2>&5
15284 ac_status=$?
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); }; }; then
15288 cat >>confdefs.h <<\_ACEOF
15289 #define HAVE_SETGROUPS 1
15290 _ACEOF
15292 echo "$as_me:$LINENO: result: yes" >&5
15293 echo "${ECHO_T}yes" >&6
15294 else
15295 echo "$as_me: failed program was:" >&5
15296 sed 's/^/| /' conftest.$ac_ext >&5
15298 echo "$as_me:$LINENO: result: no" >&5
15299 echo "${ECHO_T}no" >&6
15302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15304 # check for openpty and forkpty
15307 for ac_func in openpty
15309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15310 echo "$as_me:$LINENO: checking for $ac_func" >&5
15311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15312 if eval "test \"\${$as_ac_var+set}\" = set"; then
15313 echo $ECHO_N "(cached) $ECHO_C" >&6
15314 else
15315 cat >conftest.$ac_ext <<_ACEOF
15316 /* confdefs.h. */
15317 _ACEOF
15318 cat confdefs.h >>conftest.$ac_ext
15319 cat >>conftest.$ac_ext <<_ACEOF
15320 /* end confdefs.h. */
15321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15323 #define $ac_func innocuous_$ac_func
15325 /* System header to define __stub macros and hopefully few prototypes,
15326 which can conflict with char $ac_func (); below.
15327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15328 <limits.h> exists even on freestanding compilers. */
15330 #ifdef __STDC__
15331 # include <limits.h>
15332 #else
15333 # include <assert.h>
15334 #endif
15336 #undef $ac_func
15338 /* Override any gcc2 internal prototype to avoid an error. */
15339 #ifdef __cplusplus
15340 extern "C"
15342 #endif
15343 /* We use char because int might match the return type of a gcc2
15344 builtin and then its argument prototype would still apply. */
15345 char $ac_func ();
15346 /* The GNU C library defines this for functions which it implements
15347 to always fail with ENOSYS. Some functions are actually named
15348 something starting with __ and the normal name is an alias. */
15349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15350 choke me
15351 #else
15352 char (*f) () = $ac_func;
15353 #endif
15354 #ifdef __cplusplus
15356 #endif
15359 main ()
15361 return f != $ac_func;
15363 return 0;
15365 _ACEOF
15366 rm -f conftest.$ac_objext conftest$ac_exeext
15367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15368 (eval $ac_link) 2>conftest.er1
15369 ac_status=$?
15370 grep -v '^ *+' conftest.er1 >conftest.err
15371 rm -f conftest.er1
15372 cat conftest.err >&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); } &&
15375 { ac_try='test -z "$ac_c_werror_flag"
15376 || test ! -s conftest.err'
15377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15378 (eval $ac_try) 2>&5
15379 ac_status=$?
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); }; } &&
15382 { ac_try='test -s conftest$ac_exeext'
15383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15384 (eval $ac_try) 2>&5
15385 ac_status=$?
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; }; then
15388 eval "$as_ac_var=yes"
15389 else
15390 echo "$as_me: failed program was:" >&5
15391 sed 's/^/| /' conftest.$ac_ext >&5
15393 eval "$as_ac_var=no"
15395 rm -f conftest.err conftest.$ac_objext \
15396 conftest$ac_exeext conftest.$ac_ext
15398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15399 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15400 if test `eval echo '${'$as_ac_var'}'` = yes; then
15401 cat >>confdefs.h <<_ACEOF
15402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15403 _ACEOF
15405 else
15406 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15407 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15408 if test "${ac_cv_lib_util_openpty+set}" = set; then
15409 echo $ECHO_N "(cached) $ECHO_C" >&6
15410 else
15411 ac_check_lib_save_LIBS=$LIBS
15412 LIBS="-lutil $LIBS"
15413 cat >conftest.$ac_ext <<_ACEOF
15414 /* confdefs.h. */
15415 _ACEOF
15416 cat confdefs.h >>conftest.$ac_ext
15417 cat >>conftest.$ac_ext <<_ACEOF
15418 /* end confdefs.h. */
15420 /* Override any gcc2 internal prototype to avoid an error. */
15421 #ifdef __cplusplus
15422 extern "C"
15423 #endif
15424 /* We use char because int might match the return type of a gcc2
15425 builtin and then its argument prototype would still apply. */
15426 char openpty ();
15428 main ()
15430 openpty ();
15432 return 0;
15434 _ACEOF
15435 rm -f conftest.$ac_objext conftest$ac_exeext
15436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15437 (eval $ac_link) 2>conftest.er1
15438 ac_status=$?
15439 grep -v '^ *+' conftest.er1 >conftest.err
15440 rm -f conftest.er1
15441 cat conftest.err >&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } &&
15444 { ac_try='test -z "$ac_c_werror_flag"
15445 || test ! -s conftest.err'
15446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15447 (eval $ac_try) 2>&5
15448 ac_status=$?
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); }; } &&
15451 { ac_try='test -s conftest$ac_exeext'
15452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453 (eval $ac_try) 2>&5
15454 ac_status=$?
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); }; }; then
15457 ac_cv_lib_util_openpty=yes
15458 else
15459 echo "$as_me: failed program was:" >&5
15460 sed 's/^/| /' conftest.$ac_ext >&5
15462 ac_cv_lib_util_openpty=no
15464 rm -f conftest.err conftest.$ac_objext \
15465 conftest$ac_exeext conftest.$ac_ext
15466 LIBS=$ac_check_lib_save_LIBS
15468 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15469 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15470 if test $ac_cv_lib_util_openpty = yes; then
15471 cat >>confdefs.h <<\_ACEOF
15472 #define HAVE_OPENPTY 1
15473 _ACEOF
15474 LIBS="$LIBS -lutil"
15475 else
15476 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
15477 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
15478 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
15479 echo $ECHO_N "(cached) $ECHO_C" >&6
15480 else
15481 ac_check_lib_save_LIBS=$LIBS
15482 LIBS="-lbsd $LIBS"
15483 cat >conftest.$ac_ext <<_ACEOF
15484 /* confdefs.h. */
15485 _ACEOF
15486 cat confdefs.h >>conftest.$ac_ext
15487 cat >>conftest.$ac_ext <<_ACEOF
15488 /* end confdefs.h. */
15490 /* Override any gcc2 internal prototype to avoid an error. */
15491 #ifdef __cplusplus
15492 extern "C"
15493 #endif
15494 /* We use char because int might match the return type of a gcc2
15495 builtin and then its argument prototype would still apply. */
15496 char openpty ();
15498 main ()
15500 openpty ();
15502 return 0;
15504 _ACEOF
15505 rm -f conftest.$ac_objext conftest$ac_exeext
15506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15507 (eval $ac_link) 2>conftest.er1
15508 ac_status=$?
15509 grep -v '^ *+' conftest.er1 >conftest.err
15510 rm -f conftest.er1
15511 cat conftest.err >&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); } &&
15514 { ac_try='test -z "$ac_c_werror_flag"
15515 || test ! -s conftest.err'
15516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517 (eval $ac_try) 2>&5
15518 ac_status=$?
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; } &&
15521 { ac_try='test -s conftest$ac_exeext'
15522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15523 (eval $ac_try) 2>&5
15524 ac_status=$?
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); }; }; then
15527 ac_cv_lib_bsd_openpty=yes
15528 else
15529 echo "$as_me: failed program was:" >&5
15530 sed 's/^/| /' conftest.$ac_ext >&5
15532 ac_cv_lib_bsd_openpty=no
15534 rm -f conftest.err conftest.$ac_objext \
15535 conftest$ac_exeext conftest.$ac_ext
15536 LIBS=$ac_check_lib_save_LIBS
15538 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
15539 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
15540 if test $ac_cv_lib_bsd_openpty = yes; then
15541 cat >>confdefs.h <<\_ACEOF
15542 #define HAVE_OPENPTY 1
15543 _ACEOF
15544 LIBS="$LIBS -lbsd"
15552 done
15555 for ac_func in forkpty
15557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15558 echo "$as_me:$LINENO: checking for $ac_func" >&5
15559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15560 if eval "test \"\${$as_ac_var+set}\" = set"; then
15561 echo $ECHO_N "(cached) $ECHO_C" >&6
15562 else
15563 cat >conftest.$ac_ext <<_ACEOF
15564 /* confdefs.h. */
15565 _ACEOF
15566 cat confdefs.h >>conftest.$ac_ext
15567 cat >>conftest.$ac_ext <<_ACEOF
15568 /* end confdefs.h. */
15569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15571 #define $ac_func innocuous_$ac_func
15573 /* System header to define __stub macros and hopefully few prototypes,
15574 which can conflict with char $ac_func (); below.
15575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15576 <limits.h> exists even on freestanding compilers. */
15578 #ifdef __STDC__
15579 # include <limits.h>
15580 #else
15581 # include <assert.h>
15582 #endif
15584 #undef $ac_func
15586 /* Override any gcc2 internal prototype to avoid an error. */
15587 #ifdef __cplusplus
15588 extern "C"
15590 #endif
15591 /* We use char because int might match the return type of a gcc2
15592 builtin and then its argument prototype would still apply. */
15593 char $ac_func ();
15594 /* The GNU C library defines this for functions which it implements
15595 to always fail with ENOSYS. Some functions are actually named
15596 something starting with __ and the normal name is an alias. */
15597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15598 choke me
15599 #else
15600 char (*f) () = $ac_func;
15601 #endif
15602 #ifdef __cplusplus
15604 #endif
15607 main ()
15609 return f != $ac_func;
15611 return 0;
15613 _ACEOF
15614 rm -f conftest.$ac_objext conftest$ac_exeext
15615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15616 (eval $ac_link) 2>conftest.er1
15617 ac_status=$?
15618 grep -v '^ *+' conftest.er1 >conftest.err
15619 rm -f conftest.er1
15620 cat conftest.err >&5
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); } &&
15623 { ac_try='test -z "$ac_c_werror_flag"
15624 || test ! -s conftest.err'
15625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15626 (eval $ac_try) 2>&5
15627 ac_status=$?
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); }; } &&
15630 { ac_try='test -s conftest$ac_exeext'
15631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15632 (eval $ac_try) 2>&5
15633 ac_status=$?
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); }; }; then
15636 eval "$as_ac_var=yes"
15637 else
15638 echo "$as_me: failed program was:" >&5
15639 sed 's/^/| /' conftest.$ac_ext >&5
15641 eval "$as_ac_var=no"
15643 rm -f conftest.err conftest.$ac_objext \
15644 conftest$ac_exeext conftest.$ac_ext
15646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15647 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15648 if test `eval echo '${'$as_ac_var'}'` = yes; then
15649 cat >>confdefs.h <<_ACEOF
15650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15651 _ACEOF
15653 else
15654 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
15655 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
15656 if test "${ac_cv_lib_util_forkpty+set}" = set; then
15657 echo $ECHO_N "(cached) $ECHO_C" >&6
15658 else
15659 ac_check_lib_save_LIBS=$LIBS
15660 LIBS="-lutil $LIBS"
15661 cat >conftest.$ac_ext <<_ACEOF
15662 /* confdefs.h. */
15663 _ACEOF
15664 cat confdefs.h >>conftest.$ac_ext
15665 cat >>conftest.$ac_ext <<_ACEOF
15666 /* end confdefs.h. */
15668 /* Override any gcc2 internal prototype to avoid an error. */
15669 #ifdef __cplusplus
15670 extern "C"
15671 #endif
15672 /* We use char because int might match the return type of a gcc2
15673 builtin and then its argument prototype would still apply. */
15674 char forkpty ();
15676 main ()
15678 forkpty ();
15680 return 0;
15682 _ACEOF
15683 rm -f conftest.$ac_objext conftest$ac_exeext
15684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15685 (eval $ac_link) 2>conftest.er1
15686 ac_status=$?
15687 grep -v '^ *+' conftest.er1 >conftest.err
15688 rm -f conftest.er1
15689 cat conftest.err >&5
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); } &&
15692 { ac_try='test -z "$ac_c_werror_flag"
15693 || test ! -s conftest.err'
15694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15695 (eval $ac_try) 2>&5
15696 ac_status=$?
15697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698 (exit $ac_status); }; } &&
15699 { ac_try='test -s conftest$ac_exeext'
15700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15701 (eval $ac_try) 2>&5
15702 ac_status=$?
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); }; }; then
15705 ac_cv_lib_util_forkpty=yes
15706 else
15707 echo "$as_me: failed program was:" >&5
15708 sed 's/^/| /' conftest.$ac_ext >&5
15710 ac_cv_lib_util_forkpty=no
15712 rm -f conftest.err conftest.$ac_objext \
15713 conftest$ac_exeext conftest.$ac_ext
15714 LIBS=$ac_check_lib_save_LIBS
15716 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
15717 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
15718 if test $ac_cv_lib_util_forkpty = yes; then
15719 cat >>confdefs.h <<\_ACEOF
15720 #define HAVE_FORKPTY 1
15721 _ACEOF
15722 LIBS="$LIBS -lutil"
15723 else
15724 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
15725 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
15726 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
15727 echo $ECHO_N "(cached) $ECHO_C" >&6
15728 else
15729 ac_check_lib_save_LIBS=$LIBS
15730 LIBS="-lbsd $LIBS"
15731 cat >conftest.$ac_ext <<_ACEOF
15732 /* confdefs.h. */
15733 _ACEOF
15734 cat confdefs.h >>conftest.$ac_ext
15735 cat >>conftest.$ac_ext <<_ACEOF
15736 /* end confdefs.h. */
15738 /* Override any gcc2 internal prototype to avoid an error. */
15739 #ifdef __cplusplus
15740 extern "C"
15741 #endif
15742 /* We use char because int might match the return type of a gcc2
15743 builtin and then its argument prototype would still apply. */
15744 char forkpty ();
15746 main ()
15748 forkpty ();
15750 return 0;
15752 _ACEOF
15753 rm -f conftest.$ac_objext conftest$ac_exeext
15754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15755 (eval $ac_link) 2>conftest.er1
15756 ac_status=$?
15757 grep -v '^ *+' conftest.er1 >conftest.err
15758 rm -f conftest.er1
15759 cat conftest.err >&5
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); } &&
15762 { ac_try='test -z "$ac_c_werror_flag"
15763 || test ! -s conftest.err'
15764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15765 (eval $ac_try) 2>&5
15766 ac_status=$?
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; } &&
15769 { ac_try='test -s conftest$ac_exeext'
15770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15771 (eval $ac_try) 2>&5
15772 ac_status=$?
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); }; }; then
15775 ac_cv_lib_bsd_forkpty=yes
15776 else
15777 echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15780 ac_cv_lib_bsd_forkpty=no
15782 rm -f conftest.err conftest.$ac_objext \
15783 conftest$ac_exeext conftest.$ac_ext
15784 LIBS=$ac_check_lib_save_LIBS
15786 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
15787 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
15788 if test $ac_cv_lib_bsd_forkpty = yes; then
15789 cat >>confdefs.h <<\_ACEOF
15790 #define HAVE_FORKPTY 1
15791 _ACEOF
15792 LIBS="$LIBS -lbsd"
15800 done
15803 # check for long file support functions
15810 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
15812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15813 echo "$as_me:$LINENO: checking for $ac_func" >&5
15814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15815 if eval "test \"\${$as_ac_var+set}\" = set"; then
15816 echo $ECHO_N "(cached) $ECHO_C" >&6
15817 else
15818 cat >conftest.$ac_ext <<_ACEOF
15819 /* confdefs.h. */
15820 _ACEOF
15821 cat confdefs.h >>conftest.$ac_ext
15822 cat >>conftest.$ac_ext <<_ACEOF
15823 /* end confdefs.h. */
15824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15826 #define $ac_func innocuous_$ac_func
15828 /* System header to define __stub macros and hopefully few prototypes,
15829 which can conflict with char $ac_func (); below.
15830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15831 <limits.h> exists even on freestanding compilers. */
15833 #ifdef __STDC__
15834 # include <limits.h>
15835 #else
15836 # include <assert.h>
15837 #endif
15839 #undef $ac_func
15841 /* Override any gcc2 internal prototype to avoid an error. */
15842 #ifdef __cplusplus
15843 extern "C"
15845 #endif
15846 /* We use char because int might match the return type of a gcc2
15847 builtin and then its argument prototype would still apply. */
15848 char $ac_func ();
15849 /* The GNU C library defines this for functions which it implements
15850 to always fail with ENOSYS. Some functions are actually named
15851 something starting with __ and the normal name is an alias. */
15852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15853 choke me
15854 #else
15855 char (*f) () = $ac_func;
15856 #endif
15857 #ifdef __cplusplus
15859 #endif
15862 main ()
15864 return f != $ac_func;
15866 return 0;
15868 _ACEOF
15869 rm -f conftest.$ac_objext conftest$ac_exeext
15870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15871 (eval $ac_link) 2>conftest.er1
15872 ac_status=$?
15873 grep -v '^ *+' conftest.er1 >conftest.err
15874 rm -f conftest.er1
15875 cat conftest.err >&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); } &&
15878 { ac_try='test -z "$ac_c_werror_flag"
15879 || test ! -s conftest.err'
15880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881 (eval $ac_try) 2>&5
15882 ac_status=$?
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); }; } &&
15885 { ac_try='test -s conftest$ac_exeext'
15886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887 (eval $ac_try) 2>&5
15888 ac_status=$?
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); }; }; then
15891 eval "$as_ac_var=yes"
15892 else
15893 echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15896 eval "$as_ac_var=no"
15898 rm -f conftest.err conftest.$ac_objext \
15899 conftest$ac_exeext conftest.$ac_ext
15901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15902 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15903 if test `eval echo '${'$as_ac_var'}'` = yes; then
15904 cat >>confdefs.h <<_ACEOF
15905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15906 _ACEOF
15909 done
15917 for ac_func in dup2 getcwd strdup strerror memmove
15919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15920 echo "$as_me:$LINENO: checking for $ac_func" >&5
15921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15922 if eval "test \"\${$as_ac_var+set}\" = set"; then
15923 echo $ECHO_N "(cached) $ECHO_C" >&6
15924 else
15925 cat >conftest.$ac_ext <<_ACEOF
15926 /* confdefs.h. */
15927 _ACEOF
15928 cat confdefs.h >>conftest.$ac_ext
15929 cat >>conftest.$ac_ext <<_ACEOF
15930 /* end confdefs.h. */
15931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15933 #define $ac_func innocuous_$ac_func
15935 /* System header to define __stub macros and hopefully few prototypes,
15936 which can conflict with char $ac_func (); below.
15937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15938 <limits.h> exists even on freestanding compilers. */
15940 #ifdef __STDC__
15941 # include <limits.h>
15942 #else
15943 # include <assert.h>
15944 #endif
15946 #undef $ac_func
15948 /* Override any gcc2 internal prototype to avoid an error. */
15949 #ifdef __cplusplus
15950 extern "C"
15952 #endif
15953 /* We use char because int might match the return type of a gcc2
15954 builtin and then its argument prototype would still apply. */
15955 char $ac_func ();
15956 /* The GNU C library defines this for functions which it implements
15957 to always fail with ENOSYS. Some functions are actually named
15958 something starting with __ and the normal name is an alias. */
15959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15960 choke me
15961 #else
15962 char (*f) () = $ac_func;
15963 #endif
15964 #ifdef __cplusplus
15966 #endif
15969 main ()
15971 return f != $ac_func;
15973 return 0;
15975 _ACEOF
15976 rm -f conftest.$ac_objext conftest$ac_exeext
15977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15978 (eval $ac_link) 2>conftest.er1
15979 ac_status=$?
15980 grep -v '^ *+' conftest.er1 >conftest.err
15981 rm -f conftest.er1
15982 cat conftest.err >&5
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); } &&
15985 { ac_try='test -z "$ac_c_werror_flag"
15986 || test ! -s conftest.err'
15987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15988 (eval $ac_try) 2>&5
15989 ac_status=$?
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); }; } &&
15992 { ac_try='test -s conftest$ac_exeext'
15993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15994 (eval $ac_try) 2>&5
15995 ac_status=$?
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); }; }; then
15998 eval "$as_ac_var=yes"
15999 else
16000 echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.$ac_ext >&5
16003 eval "$as_ac_var=no"
16005 rm -f conftest.err conftest.$ac_objext \
16006 conftest$ac_exeext conftest.$ac_ext
16008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16009 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16010 if test `eval echo '${'$as_ac_var'}'` = yes; then
16011 cat >>confdefs.h <<_ACEOF
16012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16013 _ACEOF
16015 else
16016 case $LIBOBJS in
16017 "$ac_func.$ac_objext" | \
16018 *" $ac_func.$ac_objext" | \
16019 "$ac_func.$ac_objext "* | \
16020 *" $ac_func.$ac_objext "* ) ;;
16021 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16022 esac
16025 done
16029 for ac_func in getpgrp
16031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16032 echo "$as_me:$LINENO: checking for $ac_func" >&5
16033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16034 if eval "test \"\${$as_ac_var+set}\" = set"; then
16035 echo $ECHO_N "(cached) $ECHO_C" >&6
16036 else
16037 cat >conftest.$ac_ext <<_ACEOF
16038 /* confdefs.h. */
16039 _ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h. */
16043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16045 #define $ac_func innocuous_$ac_func
16047 /* System header to define __stub macros and hopefully few prototypes,
16048 which can conflict with char $ac_func (); below.
16049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16050 <limits.h> exists even on freestanding compilers. */
16052 #ifdef __STDC__
16053 # include <limits.h>
16054 #else
16055 # include <assert.h>
16056 #endif
16058 #undef $ac_func
16060 /* Override any gcc2 internal prototype to avoid an error. */
16061 #ifdef __cplusplus
16062 extern "C"
16064 #endif
16065 /* We use char because int might match the return type of a gcc2
16066 builtin and then its argument prototype would still apply. */
16067 char $ac_func ();
16068 /* The GNU C library defines this for functions which it implements
16069 to always fail with ENOSYS. Some functions are actually named
16070 something starting with __ and the normal name is an alias. */
16071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16072 choke me
16073 #else
16074 char (*f) () = $ac_func;
16075 #endif
16076 #ifdef __cplusplus
16078 #endif
16081 main ()
16083 return f != $ac_func;
16085 return 0;
16087 _ACEOF
16088 rm -f conftest.$ac_objext conftest$ac_exeext
16089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16090 (eval $ac_link) 2>conftest.er1
16091 ac_status=$?
16092 grep -v '^ *+' conftest.er1 >conftest.err
16093 rm -f conftest.er1
16094 cat conftest.err >&5
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); } &&
16097 { ac_try='test -z "$ac_c_werror_flag"
16098 || test ! -s conftest.err'
16099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16100 (eval $ac_try) 2>&5
16101 ac_status=$?
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); }; } &&
16104 { ac_try='test -s conftest$ac_exeext'
16105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16106 (eval $ac_try) 2>&5
16107 ac_status=$?
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); }; }; then
16110 eval "$as_ac_var=yes"
16111 else
16112 echo "$as_me: failed program was:" >&5
16113 sed 's/^/| /' conftest.$ac_ext >&5
16115 eval "$as_ac_var=no"
16117 rm -f conftest.err conftest.$ac_objext \
16118 conftest$ac_exeext conftest.$ac_ext
16120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16121 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16122 if test `eval echo '${'$as_ac_var'}'` = yes; then
16123 cat >>confdefs.h <<_ACEOF
16124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16125 _ACEOF
16126 cat >conftest.$ac_ext <<_ACEOF
16127 /* confdefs.h. */
16128 _ACEOF
16129 cat confdefs.h >>conftest.$ac_ext
16130 cat >>conftest.$ac_ext <<_ACEOF
16131 /* end confdefs.h. */
16132 #include <unistd.h>
16134 main ()
16136 getpgrp(0);
16138 return 0;
16140 _ACEOF
16141 rm -f conftest.$ac_objext
16142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16143 (eval $ac_compile) 2>conftest.er1
16144 ac_status=$?
16145 grep -v '^ *+' conftest.er1 >conftest.err
16146 rm -f conftest.er1
16147 cat conftest.err >&5
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); } &&
16150 { ac_try='test -z "$ac_c_werror_flag"
16151 || test ! -s conftest.err'
16152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153 (eval $ac_try) 2>&5
16154 ac_status=$?
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); }; } &&
16157 { ac_try='test -s conftest.$ac_objext'
16158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16159 (eval $ac_try) 2>&5
16160 ac_status=$?
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); }; }; then
16164 cat >>confdefs.h <<\_ACEOF
16165 #define GETPGRP_HAVE_ARG 1
16166 _ACEOF
16169 else
16170 echo "$as_me: failed program was:" >&5
16171 sed 's/^/| /' conftest.$ac_ext >&5
16174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16177 done
16180 for ac_func in setpgrp
16182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16183 echo "$as_me:$LINENO: checking for $ac_func" >&5
16184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16185 if eval "test \"\${$as_ac_var+set}\" = set"; then
16186 echo $ECHO_N "(cached) $ECHO_C" >&6
16187 else
16188 cat >conftest.$ac_ext <<_ACEOF
16189 /* confdefs.h. */
16190 _ACEOF
16191 cat confdefs.h >>conftest.$ac_ext
16192 cat >>conftest.$ac_ext <<_ACEOF
16193 /* end confdefs.h. */
16194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16196 #define $ac_func innocuous_$ac_func
16198 /* System header to define __stub macros and hopefully few prototypes,
16199 which can conflict with char $ac_func (); below.
16200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16201 <limits.h> exists even on freestanding compilers. */
16203 #ifdef __STDC__
16204 # include <limits.h>
16205 #else
16206 # include <assert.h>
16207 #endif
16209 #undef $ac_func
16211 /* Override any gcc2 internal prototype to avoid an error. */
16212 #ifdef __cplusplus
16213 extern "C"
16215 #endif
16216 /* We use char because int might match the return type of a gcc2
16217 builtin and then its argument prototype would still apply. */
16218 char $ac_func ();
16219 /* The GNU C library defines this for functions which it implements
16220 to always fail with ENOSYS. Some functions are actually named
16221 something starting with __ and the normal name is an alias. */
16222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16223 choke me
16224 #else
16225 char (*f) () = $ac_func;
16226 #endif
16227 #ifdef __cplusplus
16229 #endif
16232 main ()
16234 return f != $ac_func;
16236 return 0;
16238 _ACEOF
16239 rm -f conftest.$ac_objext conftest$ac_exeext
16240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16241 (eval $ac_link) 2>conftest.er1
16242 ac_status=$?
16243 grep -v '^ *+' conftest.er1 >conftest.err
16244 rm -f conftest.er1
16245 cat conftest.err >&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); } &&
16248 { ac_try='test -z "$ac_c_werror_flag"
16249 || test ! -s conftest.err'
16250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16251 (eval $ac_try) 2>&5
16252 ac_status=$?
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); }; } &&
16255 { ac_try='test -s conftest$ac_exeext'
16256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16257 (eval $ac_try) 2>&5
16258 ac_status=$?
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); }; }; then
16261 eval "$as_ac_var=yes"
16262 else
16263 echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16266 eval "$as_ac_var=no"
16268 rm -f conftest.err conftest.$ac_objext \
16269 conftest$ac_exeext conftest.$ac_ext
16271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16273 if test `eval echo '${'$as_ac_var'}'` = yes; then
16274 cat >>confdefs.h <<_ACEOF
16275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16276 _ACEOF
16277 cat >conftest.$ac_ext <<_ACEOF
16278 /* confdefs.h. */
16279 _ACEOF
16280 cat confdefs.h >>conftest.$ac_ext
16281 cat >>conftest.$ac_ext <<_ACEOF
16282 /* end confdefs.h. */
16283 #include <unistd.h>
16285 main ()
16287 setpgrp(0,0);
16289 return 0;
16291 _ACEOF
16292 rm -f conftest.$ac_objext
16293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16294 (eval $ac_compile) 2>conftest.er1
16295 ac_status=$?
16296 grep -v '^ *+' conftest.er1 >conftest.err
16297 rm -f conftest.er1
16298 cat conftest.err >&5
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); } &&
16301 { ac_try='test -z "$ac_c_werror_flag"
16302 || test ! -s conftest.err'
16303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16304 (eval $ac_try) 2>&5
16305 ac_status=$?
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); }; } &&
16308 { ac_try='test -s conftest.$ac_objext'
16309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16310 (eval $ac_try) 2>&5
16311 ac_status=$?
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }; }; then
16315 cat >>confdefs.h <<\_ACEOF
16316 #define SETPGRP_HAVE_ARG 1
16317 _ACEOF
16320 else
16321 echo "$as_me: failed program was:" >&5
16322 sed 's/^/| /' conftest.$ac_ext >&5
16325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16328 done
16331 for ac_func in gettimeofday
16333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16334 echo "$as_me:$LINENO: checking for $ac_func" >&5
16335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16336 if eval "test \"\${$as_ac_var+set}\" = set"; then
16337 echo $ECHO_N "(cached) $ECHO_C" >&6
16338 else
16339 cat >conftest.$ac_ext <<_ACEOF
16340 /* confdefs.h. */
16341 _ACEOF
16342 cat confdefs.h >>conftest.$ac_ext
16343 cat >>conftest.$ac_ext <<_ACEOF
16344 /* end confdefs.h. */
16345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16347 #define $ac_func innocuous_$ac_func
16349 /* System header to define __stub macros and hopefully few prototypes,
16350 which can conflict with char $ac_func (); below.
16351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16352 <limits.h> exists even on freestanding compilers. */
16354 #ifdef __STDC__
16355 # include <limits.h>
16356 #else
16357 # include <assert.h>
16358 #endif
16360 #undef $ac_func
16362 /* Override any gcc2 internal prototype to avoid an error. */
16363 #ifdef __cplusplus
16364 extern "C"
16366 #endif
16367 /* We use char because int might match the return type of a gcc2
16368 builtin and then its argument prototype would still apply. */
16369 char $ac_func ();
16370 /* The GNU C library defines this for functions which it implements
16371 to always fail with ENOSYS. Some functions are actually named
16372 something starting with __ and the normal name is an alias. */
16373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16374 choke me
16375 #else
16376 char (*f) () = $ac_func;
16377 #endif
16378 #ifdef __cplusplus
16380 #endif
16383 main ()
16385 return f != $ac_func;
16387 return 0;
16389 _ACEOF
16390 rm -f conftest.$ac_objext conftest$ac_exeext
16391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16392 (eval $ac_link) 2>conftest.er1
16393 ac_status=$?
16394 grep -v '^ *+' conftest.er1 >conftest.err
16395 rm -f conftest.er1
16396 cat conftest.err >&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } &&
16399 { ac_try='test -z "$ac_c_werror_flag"
16400 || test ! -s conftest.err'
16401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16402 (eval $ac_try) 2>&5
16403 ac_status=$?
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); }; } &&
16406 { ac_try='test -s conftest$ac_exeext'
16407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16408 (eval $ac_try) 2>&5
16409 ac_status=$?
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; }; then
16412 eval "$as_ac_var=yes"
16413 else
16414 echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16417 eval "$as_ac_var=no"
16419 rm -f conftest.err conftest.$ac_objext \
16420 conftest$ac_exeext conftest.$ac_ext
16422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16423 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16424 if test `eval echo '${'$as_ac_var'}'` = yes; then
16425 cat >>confdefs.h <<_ACEOF
16426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16427 _ACEOF
16428 cat >conftest.$ac_ext <<_ACEOF
16429 /* confdefs.h. */
16430 _ACEOF
16431 cat confdefs.h >>conftest.$ac_ext
16432 cat >>conftest.$ac_ext <<_ACEOF
16433 /* end confdefs.h. */
16434 #include <sys/time.h>
16436 main ()
16438 gettimeofday((struct timeval*)0,(struct timezone*)0);
16440 return 0;
16442 _ACEOF
16443 rm -f conftest.$ac_objext
16444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16445 (eval $ac_compile) 2>conftest.er1
16446 ac_status=$?
16447 grep -v '^ *+' conftest.er1 >conftest.err
16448 rm -f conftest.er1
16449 cat conftest.err >&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); } &&
16452 { ac_try='test -z "$ac_c_werror_flag"
16453 || test ! -s conftest.err'
16454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455 (eval $ac_try) 2>&5
16456 ac_status=$?
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; } &&
16459 { ac_try='test -s conftest.$ac_objext'
16460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16461 (eval $ac_try) 2>&5
16462 ac_status=$?
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); }; }; then
16466 else
16467 echo "$as_me: failed program was:" >&5
16468 sed 's/^/| /' conftest.$ac_ext >&5
16471 cat >>confdefs.h <<\_ACEOF
16472 #define GETTIMEOFDAY_NO_TZ 1
16473 _ACEOF
16477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16480 done
16483 echo "$as_me:$LINENO: checking for major" >&5
16484 echo $ECHO_N "checking for major... $ECHO_C" >&6
16485 cat >conftest.$ac_ext <<_ACEOF
16486 /* confdefs.h. */
16487 _ACEOF
16488 cat confdefs.h >>conftest.$ac_ext
16489 cat >>conftest.$ac_ext <<_ACEOF
16490 /* end confdefs.h. */
16492 #if defined(MAJOR_IN_MKDEV)
16493 #include <sys/mkdev.h>
16494 #elif defined(MAJOR_IN_SYSMACROS)
16495 #include <sys/sysmacros.h>
16496 #else
16497 #include <sys/types.h>
16498 #endif
16501 main ()
16504 makedev(major(0),minor(0));
16507 return 0;
16509 _ACEOF
16510 rm -f conftest.$ac_objext conftest$ac_exeext
16511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16512 (eval $ac_link) 2>conftest.er1
16513 ac_status=$?
16514 grep -v '^ *+' conftest.er1 >conftest.err
16515 rm -f conftest.er1
16516 cat conftest.err >&5
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); } &&
16519 { ac_try='test -z "$ac_c_werror_flag"
16520 || test ! -s conftest.err'
16521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16522 (eval $ac_try) 2>&5
16523 ac_status=$?
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; } &&
16526 { ac_try='test -s conftest$ac_exeext'
16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528 (eval $ac_try) 2>&5
16529 ac_status=$?
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; }; then
16534 cat >>confdefs.h <<\_ACEOF
16535 #define HAVE_DEVICE_MACROS 1
16536 _ACEOF
16538 echo "$as_me:$LINENO: result: yes" >&5
16539 echo "${ECHO_T}yes" >&6
16541 else
16542 echo "$as_me: failed program was:" >&5
16543 sed 's/^/| /' conftest.$ac_ext >&5
16546 echo "$as_me:$LINENO: result: no" >&5
16547 echo "${ECHO_T}no" >&6
16550 rm -f conftest.err conftest.$ac_objext \
16551 conftest$ac_exeext conftest.$ac_ext
16553 # On OSF/1 V5.1, getaddrinfo is available, but a define
16554 # for [no]getaddrinfo in netdb.h.
16555 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16556 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
16557 cat >conftest.$ac_ext <<_ACEOF
16558 /* confdefs.h. */
16559 _ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h. */
16564 #include <sys/types.h>
16565 #include <sys/socket.h>
16566 #include <netdb.h>
16567 #include <stdio.h>
16570 main ()
16573 getaddrinfo(NULL, NULL, NULL, NULL);
16576 return 0;
16578 _ACEOF
16579 rm -f conftest.$ac_objext conftest$ac_exeext
16580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16581 (eval $ac_link) 2>conftest.er1
16582 ac_status=$?
16583 grep -v '^ *+' conftest.er1 >conftest.err
16584 rm -f conftest.er1
16585 cat conftest.err >&5
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); } &&
16588 { ac_try='test -z "$ac_c_werror_flag"
16589 || test ! -s conftest.err'
16590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16591 (eval $ac_try) 2>&5
16592 ac_status=$?
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); }; } &&
16595 { ac_try='test -s conftest$ac_exeext'
16596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597 (eval $ac_try) 2>&5
16598 ac_status=$?
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); }; }; then
16602 echo "$as_me:$LINENO: result: yes" >&5
16603 echo "${ECHO_T}yes" >&6
16604 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
16605 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
16606 if test "$cross_compiling" = yes; then
16607 echo "$as_me:$LINENO: result: buggy" >&5
16608 echo "${ECHO_T}buggy" >&6
16609 buggygetaddrinfo=yes
16610 else
16611 cat >conftest.$ac_ext <<_ACEOF
16612 /* confdefs.h. */
16613 _ACEOF
16614 cat confdefs.h >>conftest.$ac_ext
16615 cat >>conftest.$ac_ext <<_ACEOF
16616 /* end confdefs.h. */
16618 #include <sys/types.h>
16619 #include <netdb.h>
16620 #include <string.h>
16621 #include <sys/socket.h>
16622 #include <netinet/in.h>
16624 main()
16626 int passive, gaierr, inet4 = 0, inet6 = 0;
16627 struct addrinfo hints, *ai, *aitop;
16628 char straddr[INET6_ADDRSTRLEN], strport[16];
16630 for (passive = 0; passive <= 1; passive++) {
16631 memset(&hints, 0, sizeof(hints));
16632 hints.ai_family = AF_UNSPEC;
16633 hints.ai_flags = passive ? AI_PASSIVE : 0;
16634 hints.ai_socktype = SOCK_STREAM;
16635 hints.ai_protocol = IPPROTO_TCP;
16636 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
16637 (void)gai_strerror(gaierr);
16638 goto bad;
16640 for (ai = aitop; ai; ai = ai->ai_next) {
16641 if (ai->ai_addr == NULL ||
16642 ai->ai_addrlen == 0 ||
16643 getnameinfo(ai->ai_addr, ai->ai_addrlen,
16644 straddr, sizeof(straddr), strport, sizeof(strport),
16645 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
16646 goto bad;
16648 switch (ai->ai_family) {
16649 case AF_INET:
16650 if (strcmp(strport, "54321") != 0) {
16651 goto bad;
16653 if (passive) {
16654 if (strcmp(straddr, "0.0.0.0") != 0) {
16655 goto bad;
16657 } else {
16658 if (strcmp(straddr, "127.0.0.1") != 0) {
16659 goto bad;
16662 inet4++;
16663 break;
16664 case AF_INET6:
16665 if (strcmp(strport, "54321") != 0) {
16666 goto bad;
16668 if (passive) {
16669 if (strcmp(straddr, "::") != 0) {
16670 goto bad;
16672 } else {
16673 if (strcmp(straddr, "::1") != 0) {
16674 goto bad;
16677 inet6++;
16678 break;
16679 case AF_UNSPEC:
16680 goto bad;
16681 break;
16682 default:
16683 /* another family support? */
16684 break;
16689 if (!(inet4 == 0 || inet4 == 2))
16690 goto bad;
16691 if (!(inet6 == 0 || inet6 == 2))
16692 goto bad;
16694 if (aitop)
16695 freeaddrinfo(aitop);
16696 exit(0);
16698 bad:
16699 if (aitop)
16700 freeaddrinfo(aitop);
16701 exit(1);
16704 _ACEOF
16705 rm -f conftest$ac_exeext
16706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16707 (eval $ac_link) 2>&5
16708 ac_status=$?
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16712 (eval $ac_try) 2>&5
16713 ac_status=$?
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; }; then
16716 echo "$as_me:$LINENO: result: good" >&5
16717 echo "${ECHO_T}good" >&6
16718 buggygetaddrinfo=no
16719 else
16720 echo "$as_me: program exited with status $ac_status" >&5
16721 echo "$as_me: failed program was:" >&5
16722 sed 's/^/| /' conftest.$ac_ext >&5
16724 ( exit $ac_status )
16725 echo "$as_me:$LINENO: result: buggy" >&5
16726 echo "${ECHO_T}buggy" >&6
16727 buggygetaddrinfo=yes
16729 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16731 else
16732 echo "$as_me: failed program was:" >&5
16733 sed 's/^/| /' conftest.$ac_ext >&5
16736 echo "$as_me:$LINENO: result: no" >&5
16737 echo "${ECHO_T}no" >&6
16738 buggygetaddrinfo=yes
16741 rm -f conftest.err conftest.$ac_objext \
16742 conftest$ac_exeext conftest.$ac_ext
16744 if test "$buggygetaddrinfo" = "yes"; then
16745 if test "$ipv6" = "yes"; then
16746 echo 'Fatal: You must get working getaddrinfo() function.'
16747 echo ' or you can specify "--disable-ipv6"'.
16748 exit 1
16750 else
16752 cat >>confdefs.h <<\_ACEOF
16753 #define HAVE_GETADDRINFO 1
16754 _ACEOF
16758 for ac_func in getnameinfo
16760 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16761 echo "$as_me:$LINENO: checking for $ac_func" >&5
16762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16763 if eval "test \"\${$as_ac_var+set}\" = set"; then
16764 echo $ECHO_N "(cached) $ECHO_C" >&6
16765 else
16766 cat >conftest.$ac_ext <<_ACEOF
16767 /* confdefs.h. */
16768 _ACEOF
16769 cat confdefs.h >>conftest.$ac_ext
16770 cat >>conftest.$ac_ext <<_ACEOF
16771 /* end confdefs.h. */
16772 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16774 #define $ac_func innocuous_$ac_func
16776 /* System header to define __stub macros and hopefully few prototypes,
16777 which can conflict with char $ac_func (); below.
16778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16779 <limits.h> exists even on freestanding compilers. */
16781 #ifdef __STDC__
16782 # include <limits.h>
16783 #else
16784 # include <assert.h>
16785 #endif
16787 #undef $ac_func
16789 /* Override any gcc2 internal prototype to avoid an error. */
16790 #ifdef __cplusplus
16791 extern "C"
16793 #endif
16794 /* We use char because int might match the return type of a gcc2
16795 builtin and then its argument prototype would still apply. */
16796 char $ac_func ();
16797 /* The GNU C library defines this for functions which it implements
16798 to always fail with ENOSYS. Some functions are actually named
16799 something starting with __ and the normal name is an alias. */
16800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16801 choke me
16802 #else
16803 char (*f) () = $ac_func;
16804 #endif
16805 #ifdef __cplusplus
16807 #endif
16810 main ()
16812 return f != $ac_func;
16814 return 0;
16816 _ACEOF
16817 rm -f conftest.$ac_objext conftest$ac_exeext
16818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16819 (eval $ac_link) 2>conftest.er1
16820 ac_status=$?
16821 grep -v '^ *+' conftest.er1 >conftest.err
16822 rm -f conftest.er1
16823 cat conftest.err >&5
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); } &&
16826 { ac_try='test -z "$ac_c_werror_flag"
16827 || test ! -s conftest.err'
16828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16829 (eval $ac_try) 2>&5
16830 ac_status=$?
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; } &&
16833 { ac_try='test -s conftest$ac_exeext'
16834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16835 (eval $ac_try) 2>&5
16836 ac_status=$?
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; }; then
16839 eval "$as_ac_var=yes"
16840 else
16841 echo "$as_me: failed program was:" >&5
16842 sed 's/^/| /' conftest.$ac_ext >&5
16844 eval "$as_ac_var=no"
16846 rm -f conftest.err conftest.$ac_objext \
16847 conftest$ac_exeext conftest.$ac_ext
16849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16850 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16851 if test `eval echo '${'$as_ac_var'}'` = yes; then
16852 cat >>confdefs.h <<_ACEOF
16853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16854 _ACEOF
16857 done
16860 # checks for structures
16861 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16862 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16863 if test "${ac_cv_header_time+set}" = set; then
16864 echo $ECHO_N "(cached) $ECHO_C" >&6
16865 else
16866 cat >conftest.$ac_ext <<_ACEOF
16867 /* confdefs.h. */
16868 _ACEOF
16869 cat confdefs.h >>conftest.$ac_ext
16870 cat >>conftest.$ac_ext <<_ACEOF
16871 /* end confdefs.h. */
16872 #include <sys/types.h>
16873 #include <sys/time.h>
16874 #include <time.h>
16877 main ()
16879 if ((struct tm *) 0)
16880 return 0;
16882 return 0;
16884 _ACEOF
16885 rm -f conftest.$ac_objext
16886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16887 (eval $ac_compile) 2>conftest.er1
16888 ac_status=$?
16889 grep -v '^ *+' conftest.er1 >conftest.err
16890 rm -f conftest.er1
16891 cat conftest.err >&5
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); } &&
16894 { ac_try='test -z "$ac_c_werror_flag"
16895 || test ! -s conftest.err'
16896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16897 (eval $ac_try) 2>&5
16898 ac_status=$?
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); }; } &&
16901 { ac_try='test -s conftest.$ac_objext'
16902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16903 (eval $ac_try) 2>&5
16904 ac_status=$?
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); }; }; then
16907 ac_cv_header_time=yes
16908 else
16909 echo "$as_me: failed program was:" >&5
16910 sed 's/^/| /' conftest.$ac_ext >&5
16912 ac_cv_header_time=no
16914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16916 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16917 echo "${ECHO_T}$ac_cv_header_time" >&6
16918 if test $ac_cv_header_time = yes; then
16920 cat >>confdefs.h <<\_ACEOF
16921 #define TIME_WITH_SYS_TIME 1
16922 _ACEOF
16926 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16927 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16928 if test "${ac_cv_struct_tm+set}" = set; then
16929 echo $ECHO_N "(cached) $ECHO_C" >&6
16930 else
16931 cat >conftest.$ac_ext <<_ACEOF
16932 /* confdefs.h. */
16933 _ACEOF
16934 cat confdefs.h >>conftest.$ac_ext
16935 cat >>conftest.$ac_ext <<_ACEOF
16936 /* end confdefs.h. */
16937 #include <sys/types.h>
16938 #include <time.h>
16941 main ()
16943 struct tm *tp; tp->tm_sec;
16945 return 0;
16947 _ACEOF
16948 rm -f conftest.$ac_objext
16949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16950 (eval $ac_compile) 2>conftest.er1
16951 ac_status=$?
16952 grep -v '^ *+' conftest.er1 >conftest.err
16953 rm -f conftest.er1
16954 cat conftest.err >&5
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); } &&
16957 { ac_try='test -z "$ac_c_werror_flag"
16958 || test ! -s conftest.err'
16959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16960 (eval $ac_try) 2>&5
16961 ac_status=$?
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); }; } &&
16964 { ac_try='test -s conftest.$ac_objext'
16965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16966 (eval $ac_try) 2>&5
16967 ac_status=$?
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; }; then
16970 ac_cv_struct_tm=time.h
16971 else
16972 echo "$as_me: failed program was:" >&5
16973 sed 's/^/| /' conftest.$ac_ext >&5
16975 ac_cv_struct_tm=sys/time.h
16977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16979 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16980 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16981 if test $ac_cv_struct_tm = sys/time.h; then
16983 cat >>confdefs.h <<\_ACEOF
16984 #define TM_IN_SYS_TIME 1
16985 _ACEOF
16989 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16990 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16991 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16992 echo $ECHO_N "(cached) $ECHO_C" >&6
16993 else
16994 cat >conftest.$ac_ext <<_ACEOF
16995 /* confdefs.h. */
16996 _ACEOF
16997 cat confdefs.h >>conftest.$ac_ext
16998 cat >>conftest.$ac_ext <<_ACEOF
16999 /* end confdefs.h. */
17000 #include <sys/types.h>
17001 #include <$ac_cv_struct_tm>
17005 main ()
17007 static struct tm ac_aggr;
17008 if (ac_aggr.tm_zone)
17009 return 0;
17011 return 0;
17013 _ACEOF
17014 rm -f conftest.$ac_objext
17015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17016 (eval $ac_compile) 2>conftest.er1
17017 ac_status=$?
17018 grep -v '^ *+' conftest.er1 >conftest.err
17019 rm -f conftest.er1
17020 cat conftest.err >&5
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); } &&
17023 { ac_try='test -z "$ac_c_werror_flag"
17024 || test ! -s conftest.err'
17025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17026 (eval $ac_try) 2>&5
17027 ac_status=$?
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }; } &&
17030 { ac_try='test -s conftest.$ac_objext'
17031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17032 (eval $ac_try) 2>&5
17033 ac_status=$?
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); }; }; then
17036 ac_cv_member_struct_tm_tm_zone=yes
17037 else
17038 echo "$as_me: failed program was:" >&5
17039 sed 's/^/| /' conftest.$ac_ext >&5
17041 cat >conftest.$ac_ext <<_ACEOF
17042 /* confdefs.h. */
17043 _ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h. */
17047 #include <sys/types.h>
17048 #include <$ac_cv_struct_tm>
17052 main ()
17054 static struct tm ac_aggr;
17055 if (sizeof ac_aggr.tm_zone)
17056 return 0;
17058 return 0;
17060 _ACEOF
17061 rm -f conftest.$ac_objext
17062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17063 (eval $ac_compile) 2>conftest.er1
17064 ac_status=$?
17065 grep -v '^ *+' conftest.er1 >conftest.err
17066 rm -f conftest.er1
17067 cat conftest.err >&5
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); } &&
17070 { ac_try='test -z "$ac_c_werror_flag"
17071 || test ! -s conftest.err'
17072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17073 (eval $ac_try) 2>&5
17074 ac_status=$?
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); }; } &&
17077 { ac_try='test -s conftest.$ac_objext'
17078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17079 (eval $ac_try) 2>&5
17080 ac_status=$?
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); }; }; then
17083 ac_cv_member_struct_tm_tm_zone=yes
17084 else
17085 echo "$as_me: failed program was:" >&5
17086 sed 's/^/| /' conftest.$ac_ext >&5
17088 ac_cv_member_struct_tm_tm_zone=no
17090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17094 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17095 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
17096 if test $ac_cv_member_struct_tm_tm_zone = yes; then
17098 cat >>confdefs.h <<_ACEOF
17099 #define HAVE_STRUCT_TM_TM_ZONE 1
17100 _ACEOF
17105 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17107 cat >>confdefs.h <<\_ACEOF
17108 #define HAVE_TM_ZONE 1
17109 _ACEOF
17111 else
17112 echo "$as_me:$LINENO: checking for tzname" >&5
17113 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
17114 if test "${ac_cv_var_tzname+set}" = set; then
17115 echo $ECHO_N "(cached) $ECHO_C" >&6
17116 else
17117 cat >conftest.$ac_ext <<_ACEOF
17118 /* confdefs.h. */
17119 _ACEOF
17120 cat confdefs.h >>conftest.$ac_ext
17121 cat >>conftest.$ac_ext <<_ACEOF
17122 /* end confdefs.h. */
17123 #include <time.h>
17124 #ifndef tzname /* For SGI. */
17125 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17126 #endif
17129 main ()
17131 atoi(*tzname);
17133 return 0;
17135 _ACEOF
17136 rm -f conftest.$ac_objext conftest$ac_exeext
17137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17138 (eval $ac_link) 2>conftest.er1
17139 ac_status=$?
17140 grep -v '^ *+' conftest.er1 >conftest.err
17141 rm -f conftest.er1
17142 cat conftest.err >&5
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); } &&
17145 { ac_try='test -z "$ac_c_werror_flag"
17146 || test ! -s conftest.err'
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17149 ac_status=$?
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; } &&
17152 { ac_try='test -s conftest$ac_exeext'
17153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17154 (eval $ac_try) 2>&5
17155 ac_status=$?
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); }; }; then
17158 ac_cv_var_tzname=yes
17159 else
17160 echo "$as_me: failed program was:" >&5
17161 sed 's/^/| /' conftest.$ac_ext >&5
17163 ac_cv_var_tzname=no
17165 rm -f conftest.err conftest.$ac_objext \
17166 conftest$ac_exeext conftest.$ac_ext
17168 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17169 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17170 if test $ac_cv_var_tzname = yes; then
17172 cat >>confdefs.h <<\_ACEOF
17173 #define HAVE_TZNAME 1
17174 _ACEOF
17179 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17180 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17181 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17182 echo $ECHO_N "(cached) $ECHO_C" >&6
17183 else
17184 cat >conftest.$ac_ext <<_ACEOF
17185 /* confdefs.h. */
17186 _ACEOF
17187 cat confdefs.h >>conftest.$ac_ext
17188 cat >>conftest.$ac_ext <<_ACEOF
17189 /* end confdefs.h. */
17190 $ac_includes_default
17192 main ()
17194 static struct stat ac_aggr;
17195 if (ac_aggr.st_rdev)
17196 return 0;
17198 return 0;
17200 _ACEOF
17201 rm -f conftest.$ac_objext
17202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17203 (eval $ac_compile) 2>conftest.er1
17204 ac_status=$?
17205 grep -v '^ *+' conftest.er1 >conftest.err
17206 rm -f conftest.er1
17207 cat conftest.err >&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } &&
17210 { ac_try='test -z "$ac_c_werror_flag"
17211 || test ! -s conftest.err'
17212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213 (eval $ac_try) 2>&5
17214 ac_status=$?
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); }; } &&
17217 { ac_try='test -s conftest.$ac_objext'
17218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219 (eval $ac_try) 2>&5
17220 ac_status=$?
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); }; }; then
17223 ac_cv_member_struct_stat_st_rdev=yes
17224 else
17225 echo "$as_me: failed program was:" >&5
17226 sed 's/^/| /' conftest.$ac_ext >&5
17228 cat >conftest.$ac_ext <<_ACEOF
17229 /* confdefs.h. */
17230 _ACEOF
17231 cat confdefs.h >>conftest.$ac_ext
17232 cat >>conftest.$ac_ext <<_ACEOF
17233 /* end confdefs.h. */
17234 $ac_includes_default
17236 main ()
17238 static struct stat ac_aggr;
17239 if (sizeof ac_aggr.st_rdev)
17240 return 0;
17242 return 0;
17244 _ACEOF
17245 rm -f conftest.$ac_objext
17246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17247 (eval $ac_compile) 2>conftest.er1
17248 ac_status=$?
17249 grep -v '^ *+' conftest.er1 >conftest.err
17250 rm -f conftest.er1
17251 cat conftest.err >&5
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); } &&
17254 { ac_try='test -z "$ac_c_werror_flag"
17255 || test ! -s conftest.err'
17256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17257 (eval $ac_try) 2>&5
17258 ac_status=$?
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; } &&
17261 { ac_try='test -s conftest.$ac_objext'
17262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263 (eval $ac_try) 2>&5
17264 ac_status=$?
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; }; then
17267 ac_cv_member_struct_stat_st_rdev=yes
17268 else
17269 echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17272 ac_cv_member_struct_stat_st_rdev=no
17274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17278 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17279 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17280 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17282 cat >>confdefs.h <<_ACEOF
17283 #define HAVE_STRUCT_STAT_ST_RDEV 1
17284 _ACEOF
17289 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17290 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17291 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17292 echo $ECHO_N "(cached) $ECHO_C" >&6
17293 else
17294 cat >conftest.$ac_ext <<_ACEOF
17295 /* confdefs.h. */
17296 _ACEOF
17297 cat confdefs.h >>conftest.$ac_ext
17298 cat >>conftest.$ac_ext <<_ACEOF
17299 /* end confdefs.h. */
17300 $ac_includes_default
17302 main ()
17304 static struct stat ac_aggr;
17305 if (ac_aggr.st_blksize)
17306 return 0;
17308 return 0;
17310 _ACEOF
17311 rm -f conftest.$ac_objext
17312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17313 (eval $ac_compile) 2>conftest.er1
17314 ac_status=$?
17315 grep -v '^ *+' conftest.er1 >conftest.err
17316 rm -f conftest.er1
17317 cat conftest.err >&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } &&
17320 { ac_try='test -z "$ac_c_werror_flag"
17321 || test ! -s conftest.err'
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17324 ac_status=$?
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; } &&
17327 { ac_try='test -s conftest.$ac_objext'
17328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329 (eval $ac_try) 2>&5
17330 ac_status=$?
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; }; then
17333 ac_cv_member_struct_stat_st_blksize=yes
17334 else
17335 echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.$ac_ext >&5
17338 cat >conftest.$ac_ext <<_ACEOF
17339 /* confdefs.h. */
17340 _ACEOF
17341 cat confdefs.h >>conftest.$ac_ext
17342 cat >>conftest.$ac_ext <<_ACEOF
17343 /* end confdefs.h. */
17344 $ac_includes_default
17346 main ()
17348 static struct stat ac_aggr;
17349 if (sizeof ac_aggr.st_blksize)
17350 return 0;
17352 return 0;
17354 _ACEOF
17355 rm -f conftest.$ac_objext
17356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17357 (eval $ac_compile) 2>conftest.er1
17358 ac_status=$?
17359 grep -v '^ *+' conftest.er1 >conftest.err
17360 rm -f conftest.er1
17361 cat conftest.err >&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); } &&
17364 { ac_try='test -z "$ac_c_werror_flag"
17365 || test ! -s conftest.err'
17366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17367 (eval $ac_try) 2>&5
17368 ac_status=$?
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); }; } &&
17371 { ac_try='test -s conftest.$ac_objext'
17372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17373 (eval $ac_try) 2>&5
17374 ac_status=$?
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); }; }; then
17377 ac_cv_member_struct_stat_st_blksize=yes
17378 else
17379 echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17382 ac_cv_member_struct_stat_st_blksize=no
17384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17388 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17389 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17390 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17392 cat >>confdefs.h <<_ACEOF
17393 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17394 _ACEOF
17399 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17400 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17401 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17402 echo $ECHO_N "(cached) $ECHO_C" >&6
17403 else
17404 cat >conftest.$ac_ext <<_ACEOF
17405 /* confdefs.h. */
17406 _ACEOF
17407 cat confdefs.h >>conftest.$ac_ext
17408 cat >>conftest.$ac_ext <<_ACEOF
17409 /* end confdefs.h. */
17410 $ac_includes_default
17412 main ()
17414 static struct stat ac_aggr;
17415 if (ac_aggr.st_flags)
17416 return 0;
17418 return 0;
17420 _ACEOF
17421 rm -f conftest.$ac_objext
17422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17423 (eval $ac_compile) 2>conftest.er1
17424 ac_status=$?
17425 grep -v '^ *+' conftest.er1 >conftest.err
17426 rm -f conftest.er1
17427 cat conftest.err >&5
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); } &&
17430 { ac_try='test -z "$ac_c_werror_flag"
17431 || test ! -s conftest.err'
17432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17434 ac_status=$?
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; } &&
17437 { ac_try='test -s conftest.$ac_objext'
17438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17439 (eval $ac_try) 2>&5
17440 ac_status=$?
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; }; then
17443 ac_cv_member_struct_stat_st_flags=yes
17444 else
17445 echo "$as_me: failed program was:" >&5
17446 sed 's/^/| /' conftest.$ac_ext >&5
17448 cat >conftest.$ac_ext <<_ACEOF
17449 /* confdefs.h. */
17450 _ACEOF
17451 cat confdefs.h >>conftest.$ac_ext
17452 cat >>conftest.$ac_ext <<_ACEOF
17453 /* end confdefs.h. */
17454 $ac_includes_default
17456 main ()
17458 static struct stat ac_aggr;
17459 if (sizeof ac_aggr.st_flags)
17460 return 0;
17462 return 0;
17464 _ACEOF
17465 rm -f conftest.$ac_objext
17466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17467 (eval $ac_compile) 2>conftest.er1
17468 ac_status=$?
17469 grep -v '^ *+' conftest.er1 >conftest.err
17470 rm -f conftest.er1
17471 cat conftest.err >&5
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); } &&
17474 { ac_try='test -z "$ac_c_werror_flag"
17475 || test ! -s conftest.err'
17476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17477 (eval $ac_try) 2>&5
17478 ac_status=$?
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; } &&
17481 { ac_try='test -s conftest.$ac_objext'
17482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483 (eval $ac_try) 2>&5
17484 ac_status=$?
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; }; then
17487 ac_cv_member_struct_stat_st_flags=yes
17488 else
17489 echo "$as_me: failed program was:" >&5
17490 sed 's/^/| /' conftest.$ac_ext >&5
17492 ac_cv_member_struct_stat_st_flags=no
17494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17498 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
17499 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
17500 if test $ac_cv_member_struct_stat_st_flags = yes; then
17502 cat >>confdefs.h <<_ACEOF
17503 #define HAVE_STRUCT_STAT_ST_FLAGS 1
17504 _ACEOF
17509 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
17510 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
17511 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
17512 echo $ECHO_N "(cached) $ECHO_C" >&6
17513 else
17514 cat >conftest.$ac_ext <<_ACEOF
17515 /* confdefs.h. */
17516 _ACEOF
17517 cat confdefs.h >>conftest.$ac_ext
17518 cat >>conftest.$ac_ext <<_ACEOF
17519 /* end confdefs.h. */
17520 $ac_includes_default
17522 main ()
17524 static struct stat ac_aggr;
17525 if (ac_aggr.st_gen)
17526 return 0;
17528 return 0;
17530 _ACEOF
17531 rm -f conftest.$ac_objext
17532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17533 (eval $ac_compile) 2>conftest.er1
17534 ac_status=$?
17535 grep -v '^ *+' conftest.er1 >conftest.err
17536 rm -f conftest.er1
17537 cat conftest.err >&5
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); } &&
17540 { ac_try='test -z "$ac_c_werror_flag"
17541 || test ! -s conftest.err'
17542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543 (eval $ac_try) 2>&5
17544 ac_status=$?
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); }; } &&
17547 { ac_try='test -s conftest.$ac_objext'
17548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17549 (eval $ac_try) 2>&5
17550 ac_status=$?
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); }; }; then
17553 ac_cv_member_struct_stat_st_gen=yes
17554 else
17555 echo "$as_me: failed program was:" >&5
17556 sed 's/^/| /' conftest.$ac_ext >&5
17558 cat >conftest.$ac_ext <<_ACEOF
17559 /* confdefs.h. */
17560 _ACEOF
17561 cat confdefs.h >>conftest.$ac_ext
17562 cat >>conftest.$ac_ext <<_ACEOF
17563 /* end confdefs.h. */
17564 $ac_includes_default
17566 main ()
17568 static struct stat ac_aggr;
17569 if (sizeof ac_aggr.st_gen)
17570 return 0;
17572 return 0;
17574 _ACEOF
17575 rm -f conftest.$ac_objext
17576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17577 (eval $ac_compile) 2>conftest.er1
17578 ac_status=$?
17579 grep -v '^ *+' conftest.er1 >conftest.err
17580 rm -f conftest.er1
17581 cat conftest.err >&5
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); } &&
17584 { ac_try='test -z "$ac_c_werror_flag"
17585 || test ! -s conftest.err'
17586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17587 (eval $ac_try) 2>&5
17588 ac_status=$?
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); }; } &&
17591 { ac_try='test -s conftest.$ac_objext'
17592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17593 (eval $ac_try) 2>&5
17594 ac_status=$?
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; }; then
17597 ac_cv_member_struct_stat_st_gen=yes
17598 else
17599 echo "$as_me: failed program was:" >&5
17600 sed 's/^/| /' conftest.$ac_ext >&5
17602 ac_cv_member_struct_stat_st_gen=no
17604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17608 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
17609 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
17610 if test $ac_cv_member_struct_stat_st_gen = yes; then
17612 cat >>confdefs.h <<_ACEOF
17613 #define HAVE_STRUCT_STAT_ST_GEN 1
17614 _ACEOF
17619 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
17620 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
17621 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
17622 echo $ECHO_N "(cached) $ECHO_C" >&6
17623 else
17624 cat >conftest.$ac_ext <<_ACEOF
17625 /* confdefs.h. */
17626 _ACEOF
17627 cat confdefs.h >>conftest.$ac_ext
17628 cat >>conftest.$ac_ext <<_ACEOF
17629 /* end confdefs.h. */
17630 $ac_includes_default
17632 main ()
17634 static struct stat ac_aggr;
17635 if (ac_aggr.st_birthtime)
17636 return 0;
17638 return 0;
17640 _ACEOF
17641 rm -f conftest.$ac_objext
17642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17643 (eval $ac_compile) 2>conftest.er1
17644 ac_status=$?
17645 grep -v '^ *+' conftest.er1 >conftest.err
17646 rm -f conftest.er1
17647 cat conftest.err >&5
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); } &&
17650 { ac_try='test -z "$ac_c_werror_flag"
17651 || test ! -s conftest.err'
17652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653 (eval $ac_try) 2>&5
17654 ac_status=$?
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); }; } &&
17657 { ac_try='test -s conftest.$ac_objext'
17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659 (eval $ac_try) 2>&5
17660 ac_status=$?
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; }; then
17663 ac_cv_member_struct_stat_st_birthtime=yes
17664 else
17665 echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17668 cat >conftest.$ac_ext <<_ACEOF
17669 /* confdefs.h. */
17670 _ACEOF
17671 cat confdefs.h >>conftest.$ac_ext
17672 cat >>conftest.$ac_ext <<_ACEOF
17673 /* end confdefs.h. */
17674 $ac_includes_default
17676 main ()
17678 static struct stat ac_aggr;
17679 if (sizeof ac_aggr.st_birthtime)
17680 return 0;
17682 return 0;
17684 _ACEOF
17685 rm -f conftest.$ac_objext
17686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17687 (eval $ac_compile) 2>conftest.er1
17688 ac_status=$?
17689 grep -v '^ *+' conftest.er1 >conftest.err
17690 rm -f conftest.er1
17691 cat conftest.err >&5
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); } &&
17694 { ac_try='test -z "$ac_c_werror_flag"
17695 || test ! -s conftest.err'
17696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17697 (eval $ac_try) 2>&5
17698 ac_status=$?
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); }; } &&
17701 { ac_try='test -s conftest.$ac_objext'
17702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17703 (eval $ac_try) 2>&5
17704 ac_status=$?
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }; }; then
17707 ac_cv_member_struct_stat_st_birthtime=yes
17708 else
17709 echo "$as_me: failed program was:" >&5
17710 sed 's/^/| /' conftest.$ac_ext >&5
17712 ac_cv_member_struct_stat_st_birthtime=no
17714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17718 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
17719 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
17720 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
17722 cat >>confdefs.h <<_ACEOF
17723 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
17724 _ACEOF
17729 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17730 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17731 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17732 echo $ECHO_N "(cached) $ECHO_C" >&6
17733 else
17734 cat >conftest.$ac_ext <<_ACEOF
17735 /* confdefs.h. */
17736 _ACEOF
17737 cat confdefs.h >>conftest.$ac_ext
17738 cat >>conftest.$ac_ext <<_ACEOF
17739 /* end confdefs.h. */
17740 $ac_includes_default
17742 main ()
17744 static struct stat ac_aggr;
17745 if (ac_aggr.st_blocks)
17746 return 0;
17748 return 0;
17750 _ACEOF
17751 rm -f conftest.$ac_objext
17752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17753 (eval $ac_compile) 2>conftest.er1
17754 ac_status=$?
17755 grep -v '^ *+' conftest.er1 >conftest.err
17756 rm -f conftest.er1
17757 cat conftest.err >&5
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); } &&
17760 { ac_try='test -z "$ac_c_werror_flag"
17761 || test ! -s conftest.err'
17762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763 (eval $ac_try) 2>&5
17764 ac_status=$?
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; } &&
17767 { ac_try='test -s conftest.$ac_objext'
17768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769 (eval $ac_try) 2>&5
17770 ac_status=$?
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }; }; then
17773 ac_cv_member_struct_stat_st_blocks=yes
17774 else
17775 echo "$as_me: failed program was:" >&5
17776 sed 's/^/| /' conftest.$ac_ext >&5
17778 cat >conftest.$ac_ext <<_ACEOF
17779 /* confdefs.h. */
17780 _ACEOF
17781 cat confdefs.h >>conftest.$ac_ext
17782 cat >>conftest.$ac_ext <<_ACEOF
17783 /* end confdefs.h. */
17784 $ac_includes_default
17786 main ()
17788 static struct stat ac_aggr;
17789 if (sizeof ac_aggr.st_blocks)
17790 return 0;
17792 return 0;
17794 _ACEOF
17795 rm -f conftest.$ac_objext
17796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17797 (eval $ac_compile) 2>conftest.er1
17798 ac_status=$?
17799 grep -v '^ *+' conftest.er1 >conftest.err
17800 rm -f conftest.er1
17801 cat conftest.err >&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); } &&
17804 { ac_try='test -z "$ac_c_werror_flag"
17805 || test ! -s conftest.err'
17806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17807 (eval $ac_try) 2>&5
17808 ac_status=$?
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); }; } &&
17811 { ac_try='test -s conftest.$ac_objext'
17812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813 (eval $ac_try) 2>&5
17814 ac_status=$?
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); }; }; then
17817 ac_cv_member_struct_stat_st_blocks=yes
17818 else
17819 echo "$as_me: failed program was:" >&5
17820 sed 's/^/| /' conftest.$ac_ext >&5
17822 ac_cv_member_struct_stat_st_blocks=no
17824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17828 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17829 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17830 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17832 cat >>confdefs.h <<_ACEOF
17833 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17834 _ACEOF
17837 cat >>confdefs.h <<\_ACEOF
17838 #define HAVE_ST_BLOCKS 1
17839 _ACEOF
17841 else
17842 case $LIBOBJS in
17843 "fileblocks.$ac_objext" | \
17844 *" fileblocks.$ac_objext" | \
17845 "fileblocks.$ac_objext "* | \
17846 *" fileblocks.$ac_objext "* ) ;;
17847 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
17848 esac
17854 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
17855 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
17856 if test "${ac_cv_header_time_altzone+set}" = set; then
17857 echo $ECHO_N "(cached) $ECHO_C" >&6
17858 else
17859 cat >conftest.$ac_ext <<_ACEOF
17860 /* confdefs.h. */
17861 _ACEOF
17862 cat confdefs.h >>conftest.$ac_ext
17863 cat >>conftest.$ac_ext <<_ACEOF
17864 /* end confdefs.h. */
17865 #include <time.h>
17867 main ()
17869 return altzone;
17871 return 0;
17873 _ACEOF
17874 rm -f conftest.$ac_objext
17875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17876 (eval $ac_compile) 2>conftest.er1
17877 ac_status=$?
17878 grep -v '^ *+' conftest.er1 >conftest.err
17879 rm -f conftest.er1
17880 cat conftest.err >&5
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); } &&
17883 { ac_try='test -z "$ac_c_werror_flag"
17884 || test ! -s conftest.err'
17885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17886 (eval $ac_try) 2>&5
17887 ac_status=$?
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; } &&
17890 { ac_try='test -s conftest.$ac_objext'
17891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892 (eval $ac_try) 2>&5
17893 ac_status=$?
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; }; then
17896 ac_cv_header_time_altzone=yes
17897 else
17898 echo "$as_me: failed program was:" >&5
17899 sed 's/^/| /' conftest.$ac_ext >&5
17901 ac_cv_header_time_altzone=no
17903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17906 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
17907 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
17908 if test $ac_cv_header_time_altzone = yes; then
17910 cat >>confdefs.h <<\_ACEOF
17911 #define HAVE_ALTZONE 1
17912 _ACEOF
17916 was_it_defined=no
17917 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
17918 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
17919 cat >conftest.$ac_ext <<_ACEOF
17920 /* confdefs.h. */
17921 _ACEOF
17922 cat confdefs.h >>conftest.$ac_ext
17923 cat >>conftest.$ac_ext <<_ACEOF
17924 /* end confdefs.h. */
17926 #include <sys/types.h>
17927 #include <sys/select.h>
17928 #include <sys/time.h>
17931 main ()
17935 return 0;
17937 _ACEOF
17938 rm -f conftest.$ac_objext
17939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17940 (eval $ac_compile) 2>conftest.er1
17941 ac_status=$?
17942 grep -v '^ *+' conftest.er1 >conftest.err
17943 rm -f conftest.er1
17944 cat conftest.err >&5
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); } &&
17947 { ac_try='test -z "$ac_c_werror_flag"
17948 || test ! -s conftest.err'
17949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950 (eval $ac_try) 2>&5
17951 ac_status=$?
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); }; } &&
17954 { ac_try='test -s conftest.$ac_objext'
17955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17956 (eval $ac_try) 2>&5
17957 ac_status=$?
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; }; then
17962 cat >>confdefs.h <<\_ACEOF
17963 #define SYS_SELECT_WITH_SYS_TIME 1
17964 _ACEOF
17966 was_it_defined=yes
17968 else
17969 echo "$as_me: failed program was:" >&5
17970 sed 's/^/| /' conftest.$ac_ext >&5
17973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17974 echo "$as_me:$LINENO: result: $was_it_defined" >&5
17975 echo "${ECHO_T}$was_it_defined" >&6
17977 echo "$as_me:$LINENO: checking for addrinfo" >&5
17978 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
17979 if test "${ac_cv_struct_addrinfo+set}" = set; then
17980 echo $ECHO_N "(cached) $ECHO_C" >&6
17981 else
17982 cat >conftest.$ac_ext <<_ACEOF
17983 /* confdefs.h. */
17984 _ACEOF
17985 cat confdefs.h >>conftest.$ac_ext
17986 cat >>conftest.$ac_ext <<_ACEOF
17987 /* end confdefs.h. */
17989 # include <netdb.h>
17991 main ()
17993 struct addrinfo a
17995 return 0;
17997 _ACEOF
17998 rm -f conftest.$ac_objext
17999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18000 (eval $ac_compile) 2>conftest.er1
18001 ac_status=$?
18002 grep -v '^ *+' conftest.er1 >conftest.err
18003 rm -f conftest.er1
18004 cat conftest.err >&5
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); } &&
18007 { ac_try='test -z "$ac_c_werror_flag"
18008 || test ! -s conftest.err'
18009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18010 (eval $ac_try) 2>&5
18011 ac_status=$?
18012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); }; } &&
18014 { ac_try='test -s conftest.$ac_objext'
18015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18016 (eval $ac_try) 2>&5
18017 ac_status=$?
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); }; }; then
18020 ac_cv_struct_addrinfo=yes
18021 else
18022 echo "$as_me: failed program was:" >&5
18023 sed 's/^/| /' conftest.$ac_ext >&5
18025 ac_cv_struct_addrinfo=no
18027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18030 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
18031 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
18032 if test $ac_cv_struct_addrinfo = yes; then
18034 cat >>confdefs.h <<\_ACEOF
18035 #define HAVE_ADDRINFO 1
18036 _ACEOF
18040 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
18041 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
18042 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
18043 echo $ECHO_N "(cached) $ECHO_C" >&6
18044 else
18045 cat >conftest.$ac_ext <<_ACEOF
18046 /* confdefs.h. */
18047 _ACEOF
18048 cat confdefs.h >>conftest.$ac_ext
18049 cat >>conftest.$ac_ext <<_ACEOF
18050 /* end confdefs.h. */
18052 # include <sys/types.h>
18053 # include <sys/socket.h>
18055 main ()
18057 struct sockaddr_storage s
18059 return 0;
18061 _ACEOF
18062 rm -f conftest.$ac_objext
18063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18064 (eval $ac_compile) 2>conftest.er1
18065 ac_status=$?
18066 grep -v '^ *+' conftest.er1 >conftest.err
18067 rm -f conftest.er1
18068 cat conftest.err >&5
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); } &&
18071 { ac_try='test -z "$ac_c_werror_flag"
18072 || test ! -s conftest.err'
18073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18074 (eval $ac_try) 2>&5
18075 ac_status=$?
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); }; } &&
18078 { ac_try='test -s conftest.$ac_objext'
18079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18080 (eval $ac_try) 2>&5
18081 ac_status=$?
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); }; }; then
18084 ac_cv_struct_sockaddr_storage=yes
18085 else
18086 echo "$as_me: failed program was:" >&5
18087 sed 's/^/| /' conftest.$ac_ext >&5
18089 ac_cv_struct_sockaddr_storage=no
18091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18094 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
18095 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
18096 if test $ac_cv_struct_sockaddr_storage = yes; then
18098 cat >>confdefs.h <<\_ACEOF
18099 #define HAVE_SOCKADDR_STORAGE 1
18100 _ACEOF
18104 # checks for compiler characteristics
18107 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
18108 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
18109 if test "${ac_cv_c_char_unsigned+set}" = set; then
18110 echo $ECHO_N "(cached) $ECHO_C" >&6
18111 else
18112 cat >conftest.$ac_ext <<_ACEOF
18113 /* confdefs.h. */
18114 _ACEOF
18115 cat confdefs.h >>conftest.$ac_ext
18116 cat >>conftest.$ac_ext <<_ACEOF
18117 /* end confdefs.h. */
18118 $ac_includes_default
18120 main ()
18122 static int test_array [1 - 2 * !(((char) -1) < 0)];
18123 test_array [0] = 0
18126 return 0;
18128 _ACEOF
18129 rm -f conftest.$ac_objext
18130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18131 (eval $ac_compile) 2>conftest.er1
18132 ac_status=$?
18133 grep -v '^ *+' conftest.er1 >conftest.err
18134 rm -f conftest.er1
18135 cat conftest.err >&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); } &&
18138 { ac_try='test -z "$ac_c_werror_flag"
18139 || test ! -s conftest.err'
18140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18141 (eval $ac_try) 2>&5
18142 ac_status=$?
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }; } &&
18145 { ac_try='test -s conftest.$ac_objext'
18146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18147 (eval $ac_try) 2>&5
18148 ac_status=$?
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); }; }; then
18151 ac_cv_c_char_unsigned=no
18152 else
18153 echo "$as_me: failed program was:" >&5
18154 sed 's/^/| /' conftest.$ac_ext >&5
18156 ac_cv_c_char_unsigned=yes
18158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18160 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18161 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18162 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18163 cat >>confdefs.h <<\_ACEOF
18164 #define __CHAR_UNSIGNED__ 1
18165 _ACEOF
18169 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18170 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18171 if test "${ac_cv_c_const+set}" = set; then
18172 echo $ECHO_N "(cached) $ECHO_C" >&6
18173 else
18174 cat >conftest.$ac_ext <<_ACEOF
18175 /* confdefs.h. */
18176 _ACEOF
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h. */
18182 main ()
18184 /* FIXME: Include the comments suggested by Paul. */
18185 #ifndef __cplusplus
18186 /* Ultrix mips cc rejects this. */
18187 typedef int charset[2];
18188 const charset x;
18189 /* SunOS 4.1.1 cc rejects this. */
18190 char const *const *ccp;
18191 char **p;
18192 /* NEC SVR4.0.2 mips cc rejects this. */
18193 struct point {int x, y;};
18194 static struct point const zero = {0,0};
18195 /* AIX XL C 1.02.0.0 rejects this.
18196 It does not let you subtract one const X* pointer from another in
18197 an arm of an if-expression whose if-part is not a constant
18198 expression */
18199 const char *g = "string";
18200 ccp = &g + (g ? g-g : 0);
18201 /* HPUX 7.0 cc rejects these. */
18202 ++ccp;
18203 p = (char**) ccp;
18204 ccp = (char const *const *) p;
18205 { /* SCO 3.2v4 cc rejects this. */
18206 char *t;
18207 char const *s = 0 ? (char *) 0 : (char const *) 0;
18209 *t++ = 0;
18211 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18212 int x[] = {25, 17};
18213 const int *foo = &x[0];
18214 ++foo;
18216 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18217 typedef const int *iptr;
18218 iptr p = 0;
18219 ++p;
18221 { /* AIX XL C 1.02.0.0 rejects this saying
18222 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18223 struct s { int j; const int *ap[3]; };
18224 struct s *b; b->j = 5;
18226 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18227 const int foo = 10;
18229 #endif
18232 return 0;
18234 _ACEOF
18235 rm -f conftest.$ac_objext
18236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18237 (eval $ac_compile) 2>conftest.er1
18238 ac_status=$?
18239 grep -v '^ *+' conftest.er1 >conftest.err
18240 rm -f conftest.er1
18241 cat conftest.err >&5
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); } &&
18244 { ac_try='test -z "$ac_c_werror_flag"
18245 || test ! -s conftest.err'
18246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18247 (eval $ac_try) 2>&5
18248 ac_status=$?
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); }; } &&
18251 { ac_try='test -s conftest.$ac_objext'
18252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18253 (eval $ac_try) 2>&5
18254 ac_status=$?
18255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); }; }; then
18257 ac_cv_c_const=yes
18258 else
18259 echo "$as_me: failed program was:" >&5
18260 sed 's/^/| /' conftest.$ac_ext >&5
18262 ac_cv_c_const=no
18264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18266 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18267 echo "${ECHO_T}$ac_cv_c_const" >&6
18268 if test $ac_cv_c_const = no; then
18270 cat >>confdefs.h <<\_ACEOF
18271 #define const
18272 _ACEOF
18277 works=no
18278 echo "$as_me:$LINENO: checking for working volatile" >&5
18279 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18280 cat >conftest.$ac_ext <<_ACEOF
18281 /* confdefs.h. */
18282 _ACEOF
18283 cat confdefs.h >>conftest.$ac_ext
18284 cat >>conftest.$ac_ext <<_ACEOF
18285 /* end confdefs.h. */
18288 main ()
18290 volatile int x; x = 0;
18292 return 0;
18294 _ACEOF
18295 rm -f conftest.$ac_objext
18296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18297 (eval $ac_compile) 2>conftest.er1
18298 ac_status=$?
18299 grep -v '^ *+' conftest.er1 >conftest.err
18300 rm -f conftest.er1
18301 cat conftest.err >&5
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); } &&
18304 { ac_try='test -z "$ac_c_werror_flag"
18305 || test ! -s conftest.err'
18306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18307 (eval $ac_try) 2>&5
18308 ac_status=$?
18309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310 (exit $ac_status); }; } &&
18311 { ac_try='test -s conftest.$ac_objext'
18312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18313 (eval $ac_try) 2>&5
18314 ac_status=$?
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); }; }; then
18317 works=yes
18318 else
18319 echo "$as_me: failed program was:" >&5
18320 sed 's/^/| /' conftest.$ac_ext >&5
18323 cat >>confdefs.h <<\_ACEOF
18324 #define volatile
18325 _ACEOF
18329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18330 echo "$as_me:$LINENO: result: $works" >&5
18331 echo "${ECHO_T}$works" >&6
18333 works=no
18334 echo "$as_me:$LINENO: checking for working signed char" >&5
18335 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18336 cat >conftest.$ac_ext <<_ACEOF
18337 /* confdefs.h. */
18338 _ACEOF
18339 cat confdefs.h >>conftest.$ac_ext
18340 cat >>conftest.$ac_ext <<_ACEOF
18341 /* end confdefs.h. */
18344 main ()
18346 signed char c;
18348 return 0;
18350 _ACEOF
18351 rm -f conftest.$ac_objext
18352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18353 (eval $ac_compile) 2>conftest.er1
18354 ac_status=$?
18355 grep -v '^ *+' conftest.er1 >conftest.err
18356 rm -f conftest.er1
18357 cat conftest.err >&5
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); } &&
18360 { ac_try='test -z "$ac_c_werror_flag"
18361 || test ! -s conftest.err'
18362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18363 (eval $ac_try) 2>&5
18364 ac_status=$?
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); }; } &&
18367 { ac_try='test -s conftest.$ac_objext'
18368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18369 (eval $ac_try) 2>&5
18370 ac_status=$?
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); }; }; then
18373 works=yes
18374 else
18375 echo "$as_me: failed program was:" >&5
18376 sed 's/^/| /' conftest.$ac_ext >&5
18379 cat >>confdefs.h <<\_ACEOF
18380 #define signed
18381 _ACEOF
18385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18386 echo "$as_me:$LINENO: result: $works" >&5
18387 echo "${ECHO_T}$works" >&6
18389 have_prototypes=no
18390 echo "$as_me:$LINENO: checking for prototypes" >&5
18391 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18392 cat >conftest.$ac_ext <<_ACEOF
18393 /* confdefs.h. */
18394 _ACEOF
18395 cat confdefs.h >>conftest.$ac_ext
18396 cat >>conftest.$ac_ext <<_ACEOF
18397 /* end confdefs.h. */
18398 int foo(int x) { return 0; }
18400 main ()
18402 return foo(10);
18404 return 0;
18406 _ACEOF
18407 rm -f conftest.$ac_objext
18408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18409 (eval $ac_compile) 2>conftest.er1
18410 ac_status=$?
18411 grep -v '^ *+' conftest.er1 >conftest.err
18412 rm -f conftest.er1
18413 cat conftest.err >&5
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); } &&
18416 { ac_try='test -z "$ac_c_werror_flag"
18417 || test ! -s conftest.err'
18418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18419 (eval $ac_try) 2>&5
18420 ac_status=$?
18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); }; } &&
18423 { ac_try='test -s conftest.$ac_objext'
18424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18425 (eval $ac_try) 2>&5
18426 ac_status=$?
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; }; then
18431 cat >>confdefs.h <<\_ACEOF
18432 #define HAVE_PROTOTYPES 1
18433 _ACEOF
18435 have_prototypes=yes
18437 else
18438 echo "$as_me: failed program was:" >&5
18439 sed 's/^/| /' conftest.$ac_ext >&5
18442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18443 echo "$as_me:$LINENO: result: $have_prototypes" >&5
18444 echo "${ECHO_T}$have_prototypes" >&6
18446 works=no
18447 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
18448 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
18449 cat >conftest.$ac_ext <<_ACEOF
18450 /* confdefs.h. */
18451 _ACEOF
18452 cat confdefs.h >>conftest.$ac_ext
18453 cat >>conftest.$ac_ext <<_ACEOF
18454 /* end confdefs.h. */
18456 #include <stdarg.h>
18457 int foo(int x, ...) {
18458 va_list va;
18459 va_start(va, x);
18460 va_arg(va, int);
18461 va_arg(va, char *);
18462 va_arg(va, double);
18463 return 0;
18467 main ()
18469 return foo(10, "", 3.14);
18471 return 0;
18473 _ACEOF
18474 rm -f conftest.$ac_objext
18475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18476 (eval $ac_compile) 2>conftest.er1
18477 ac_status=$?
18478 grep -v '^ *+' conftest.er1 >conftest.err
18479 rm -f conftest.er1
18480 cat conftest.err >&5
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); } &&
18483 { ac_try='test -z "$ac_c_werror_flag"
18484 || test ! -s conftest.err'
18485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18486 (eval $ac_try) 2>&5
18487 ac_status=$?
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); }; } &&
18490 { ac_try='test -s conftest.$ac_objext'
18491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18492 (eval $ac_try) 2>&5
18493 ac_status=$?
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); }; }; then
18498 cat >>confdefs.h <<\_ACEOF
18499 #define HAVE_STDARG_PROTOTYPES 1
18500 _ACEOF
18502 works=yes
18504 else
18505 echo "$as_me: failed program was:" >&5
18506 sed 's/^/| /' conftest.$ac_ext >&5
18509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18510 echo "$as_me:$LINENO: result: $works" >&5
18511 echo "${ECHO_T}$works" >&6
18513 # check for socketpair
18514 echo "$as_me:$LINENO: checking for socketpair" >&5
18515 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
18516 cat >conftest.$ac_ext <<_ACEOF
18517 /* confdefs.h. */
18518 _ACEOF
18519 cat confdefs.h >>conftest.$ac_ext
18520 cat >>conftest.$ac_ext <<_ACEOF
18521 /* end confdefs.h. */
18523 #include <sys/types.h>
18524 #include <sys/socket.h>
18527 main ()
18529 void *x=socketpair
18531 return 0;
18533 _ACEOF
18534 rm -f conftest.$ac_objext
18535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18536 (eval $ac_compile) 2>conftest.er1
18537 ac_status=$?
18538 grep -v '^ *+' conftest.er1 >conftest.err
18539 rm -f conftest.er1
18540 cat conftest.err >&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); } &&
18543 { ac_try='test -z "$ac_c_werror_flag"
18544 || test ! -s conftest.err'
18545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18546 (eval $ac_try) 2>&5
18547 ac_status=$?
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); }; } &&
18550 { ac_try='test -s conftest.$ac_objext'
18551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18552 (eval $ac_try) 2>&5
18553 ac_status=$?
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; }; then
18557 cat >>confdefs.h <<\_ACEOF
18558 #define HAVE_SOCKETPAIR 1
18559 _ACEOF
18561 echo "$as_me:$LINENO: result: yes" >&5
18562 echo "${ECHO_T}yes" >&6
18563 else
18564 echo "$as_me: failed program was:" >&5
18565 sed 's/^/| /' conftest.$ac_ext >&5
18567 echo "$as_me:$LINENO: result: no" >&5
18568 echo "${ECHO_T}no" >&6
18571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18573 # check if sockaddr has sa_len member
18574 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
18575 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
18576 cat >conftest.$ac_ext <<_ACEOF
18577 /* confdefs.h. */
18578 _ACEOF
18579 cat confdefs.h >>conftest.$ac_ext
18580 cat >>conftest.$ac_ext <<_ACEOF
18581 /* end confdefs.h. */
18582 #include <sys/types.h>
18583 #include <sys/socket.h>
18585 main ()
18587 struct sockaddr x;
18588 x.sa_len = 0;
18590 return 0;
18592 _ACEOF
18593 rm -f conftest.$ac_objext
18594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18595 (eval $ac_compile) 2>conftest.er1
18596 ac_status=$?
18597 grep -v '^ *+' conftest.er1 >conftest.err
18598 rm -f conftest.er1
18599 cat conftest.err >&5
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); } &&
18602 { ac_try='test -z "$ac_c_werror_flag"
18603 || test ! -s conftest.err'
18604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18605 (eval $ac_try) 2>&5
18606 ac_status=$?
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; } &&
18609 { ac_try='test -s conftest.$ac_objext'
18610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611 (eval $ac_try) 2>&5
18612 ac_status=$?
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); }; }; then
18615 echo "$as_me:$LINENO: result: yes" >&5
18616 echo "${ECHO_T}yes" >&6
18618 cat >>confdefs.h <<\_ACEOF
18619 #define HAVE_SOCKADDR_SA_LEN 1
18620 _ACEOF
18622 else
18623 echo "$as_me: failed program was:" >&5
18624 sed 's/^/| /' conftest.$ac_ext >&5
18626 echo "$as_me:$LINENO: result: no" >&5
18627 echo "${ECHO_T}no" >&6
18629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18631 va_list_is_array=no
18632 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
18633 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
18634 cat >conftest.$ac_ext <<_ACEOF
18635 /* confdefs.h. */
18636 _ACEOF
18637 cat confdefs.h >>conftest.$ac_ext
18638 cat >>conftest.$ac_ext <<_ACEOF
18639 /* end confdefs.h. */
18641 #ifdef HAVE_STDARG_PROTOTYPES
18642 #include <stdarg.h>
18643 #else
18644 #include <varargs.h>
18645 #endif
18648 main ()
18650 va_list list1, list2; list1 = list2;
18652 return 0;
18654 _ACEOF
18655 rm -f conftest.$ac_objext
18656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18657 (eval $ac_compile) 2>conftest.er1
18658 ac_status=$?
18659 grep -v '^ *+' conftest.er1 >conftest.err
18660 rm -f conftest.er1
18661 cat conftest.err >&5
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); } &&
18664 { ac_try='test -z "$ac_c_werror_flag"
18665 || test ! -s conftest.err'
18666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18667 (eval $ac_try) 2>&5
18668 ac_status=$?
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); }; } &&
18671 { ac_try='test -s conftest.$ac_objext'
18672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18673 (eval $ac_try) 2>&5
18674 ac_status=$?
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); }; }; then
18678 else
18679 echo "$as_me: failed program was:" >&5
18680 sed 's/^/| /' conftest.$ac_ext >&5
18684 cat >>confdefs.h <<\_ACEOF
18685 #define VA_LIST_IS_ARRAY 1
18686 _ACEOF
18688 va_list_is_array=yes
18691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18692 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
18693 echo "${ECHO_T}$va_list_is_array" >&6
18695 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
18699 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18700 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18701 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18702 echo $ECHO_N "(cached) $ECHO_C" >&6
18703 else
18704 cat >conftest.$ac_ext <<_ACEOF
18705 /* confdefs.h. */
18706 _ACEOF
18707 cat confdefs.h >>conftest.$ac_ext
18708 cat >>conftest.$ac_ext <<_ACEOF
18709 /* end confdefs.h. */
18710 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18712 #define gethostbyname_r innocuous_gethostbyname_r
18714 /* System header to define __stub macros and hopefully few prototypes,
18715 which can conflict with char gethostbyname_r (); below.
18716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18717 <limits.h> exists even on freestanding compilers. */
18719 #ifdef __STDC__
18720 # include <limits.h>
18721 #else
18722 # include <assert.h>
18723 #endif
18725 #undef gethostbyname_r
18727 /* Override any gcc2 internal prototype to avoid an error. */
18728 #ifdef __cplusplus
18729 extern "C"
18731 #endif
18732 /* We use char because int might match the return type of a gcc2
18733 builtin and then its argument prototype would still apply. */
18734 char gethostbyname_r ();
18735 /* The GNU C library defines this for functions which it implements
18736 to always fail with ENOSYS. Some functions are actually named
18737 something starting with __ and the normal name is an alias. */
18738 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18739 choke me
18740 #else
18741 char (*f) () = gethostbyname_r;
18742 #endif
18743 #ifdef __cplusplus
18745 #endif
18748 main ()
18750 return f != gethostbyname_r;
18752 return 0;
18754 _ACEOF
18755 rm -f conftest.$ac_objext conftest$ac_exeext
18756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18757 (eval $ac_link) 2>conftest.er1
18758 ac_status=$?
18759 grep -v '^ *+' conftest.er1 >conftest.err
18760 rm -f conftest.er1
18761 cat conftest.err >&5
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); } &&
18764 { ac_try='test -z "$ac_c_werror_flag"
18765 || test ! -s conftest.err'
18766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18767 (eval $ac_try) 2>&5
18768 ac_status=$?
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); }; } &&
18771 { ac_try='test -s conftest$ac_exeext'
18772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18773 (eval $ac_try) 2>&5
18774 ac_status=$?
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); }; }; then
18777 ac_cv_func_gethostbyname_r=yes
18778 else
18779 echo "$as_me: failed program was:" >&5
18780 sed 's/^/| /' conftest.$ac_ext >&5
18782 ac_cv_func_gethostbyname_r=no
18784 rm -f conftest.err conftest.$ac_objext \
18785 conftest$ac_exeext conftest.$ac_ext
18787 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18788 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18789 if test $ac_cv_func_gethostbyname_r = yes; then
18791 cat >>confdefs.h <<\_ACEOF
18792 #define HAVE_GETHOSTBYNAME_R 1
18793 _ACEOF
18795 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
18796 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
18797 OLD_CFLAGS=$CFLAGS
18798 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
18799 cat >conftest.$ac_ext <<_ACEOF
18800 /* confdefs.h. */
18801 _ACEOF
18802 cat confdefs.h >>conftest.$ac_ext
18803 cat >>conftest.$ac_ext <<_ACEOF
18804 /* end confdefs.h. */
18806 # include <netdb.h>
18809 main ()
18812 char *name;
18813 struct hostent *he, *res;
18814 char buffer[2048];
18815 int buflen = 2048;
18816 int h_errnop;
18818 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
18821 return 0;
18823 _ACEOF
18824 rm -f conftest.$ac_objext
18825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18826 (eval $ac_compile) 2>conftest.er1
18827 ac_status=$?
18828 grep -v '^ *+' conftest.er1 >conftest.err
18829 rm -f conftest.er1
18830 cat conftest.err >&5
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); } &&
18833 { ac_try='test -z "$ac_c_werror_flag"
18834 || test ! -s conftest.err'
18835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18836 (eval $ac_try) 2>&5
18837 ac_status=$?
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); }; } &&
18840 { ac_try='test -s conftest.$ac_objext'
18841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18842 (eval $ac_try) 2>&5
18843 ac_status=$?
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); }; }; then
18847 cat >>confdefs.h <<\_ACEOF
18848 #define HAVE_GETHOSTBYNAME_R 1
18849 _ACEOF
18852 cat >>confdefs.h <<\_ACEOF
18853 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
18854 _ACEOF
18856 echo "$as_me:$LINENO: result: yes" >&5
18857 echo "${ECHO_T}yes" >&6
18859 else
18860 echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.$ac_ext >&5
18864 echo "$as_me:$LINENO: result: no" >&5
18865 echo "${ECHO_T}no" >&6
18866 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
18867 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
18868 cat >conftest.$ac_ext <<_ACEOF
18869 /* confdefs.h. */
18870 _ACEOF
18871 cat confdefs.h >>conftest.$ac_ext
18872 cat >>conftest.$ac_ext <<_ACEOF
18873 /* end confdefs.h. */
18875 # include <netdb.h>
18878 main ()
18881 char *name;
18882 struct hostent *he;
18883 char buffer[2048];
18884 int buflen = 2048;
18885 int h_errnop;
18887 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
18890 return 0;
18892 _ACEOF
18893 rm -f conftest.$ac_objext
18894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18895 (eval $ac_compile) 2>conftest.er1
18896 ac_status=$?
18897 grep -v '^ *+' conftest.er1 >conftest.err
18898 rm -f conftest.er1
18899 cat conftest.err >&5
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); } &&
18902 { ac_try='test -z "$ac_c_werror_flag"
18903 || test ! -s conftest.err'
18904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18905 (eval $ac_try) 2>&5
18906 ac_status=$?
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); }; } &&
18909 { ac_try='test -s conftest.$ac_objext'
18910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18911 (eval $ac_try) 2>&5
18912 ac_status=$?
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); }; }; then
18916 cat >>confdefs.h <<\_ACEOF
18917 #define HAVE_GETHOSTBYNAME_R 1
18918 _ACEOF
18921 cat >>confdefs.h <<\_ACEOF
18922 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
18923 _ACEOF
18925 echo "$as_me:$LINENO: result: yes" >&5
18926 echo "${ECHO_T}yes" >&6
18928 else
18929 echo "$as_me: failed program was:" >&5
18930 sed 's/^/| /' conftest.$ac_ext >&5
18933 echo "$as_me:$LINENO: result: no" >&5
18934 echo "${ECHO_T}no" >&6
18935 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
18936 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
18937 cat >conftest.$ac_ext <<_ACEOF
18938 /* confdefs.h. */
18939 _ACEOF
18940 cat confdefs.h >>conftest.$ac_ext
18941 cat >>conftest.$ac_ext <<_ACEOF
18942 /* end confdefs.h. */
18944 # include <netdb.h>
18947 main ()
18950 char *name;
18951 struct hostent *he;
18952 struct hostent_data data;
18954 (void) gethostbyname_r(name, he, &data);
18957 return 0;
18959 _ACEOF
18960 rm -f conftest.$ac_objext
18961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18962 (eval $ac_compile) 2>conftest.er1
18963 ac_status=$?
18964 grep -v '^ *+' conftest.er1 >conftest.err
18965 rm -f conftest.er1
18966 cat conftest.err >&5
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); } &&
18969 { ac_try='test -z "$ac_c_werror_flag"
18970 || test ! -s conftest.err'
18971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18972 (eval $ac_try) 2>&5
18973 ac_status=$?
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); }; } &&
18976 { ac_try='test -s conftest.$ac_objext'
18977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18978 (eval $ac_try) 2>&5
18979 ac_status=$?
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); }; }; then
18983 cat >>confdefs.h <<\_ACEOF
18984 #define HAVE_GETHOSTBYNAME_R 1
18985 _ACEOF
18988 cat >>confdefs.h <<\_ACEOF
18989 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
18990 _ACEOF
18992 echo "$as_me:$LINENO: result: yes" >&5
18993 echo "${ECHO_T}yes" >&6
18995 else
18996 echo "$as_me: failed program was:" >&5
18997 sed 's/^/| /' conftest.$ac_ext >&5
19000 echo "$as_me:$LINENO: result: no" >&5
19001 echo "${ECHO_T}no" >&6
19004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19011 CFLAGS=$OLD_CFLAGS
19013 else
19016 for ac_func in gethostbyname
19018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19019 echo "$as_me:$LINENO: checking for $ac_func" >&5
19020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19021 if eval "test \"\${$as_ac_var+set}\" = set"; then
19022 echo $ECHO_N "(cached) $ECHO_C" >&6
19023 else
19024 cat >conftest.$ac_ext <<_ACEOF
19025 /* confdefs.h. */
19026 _ACEOF
19027 cat confdefs.h >>conftest.$ac_ext
19028 cat >>conftest.$ac_ext <<_ACEOF
19029 /* end confdefs.h. */
19030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19032 #define $ac_func innocuous_$ac_func
19034 /* System header to define __stub macros and hopefully few prototypes,
19035 which can conflict with char $ac_func (); below.
19036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19037 <limits.h> exists even on freestanding compilers. */
19039 #ifdef __STDC__
19040 # include <limits.h>
19041 #else
19042 # include <assert.h>
19043 #endif
19045 #undef $ac_func
19047 /* Override any gcc2 internal prototype to avoid an error. */
19048 #ifdef __cplusplus
19049 extern "C"
19051 #endif
19052 /* We use char because int might match the return type of a gcc2
19053 builtin and then its argument prototype would still apply. */
19054 char $ac_func ();
19055 /* The GNU C library defines this for functions which it implements
19056 to always fail with ENOSYS. Some functions are actually named
19057 something starting with __ and the normal name is an alias. */
19058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19059 choke me
19060 #else
19061 char (*f) () = $ac_func;
19062 #endif
19063 #ifdef __cplusplus
19065 #endif
19068 main ()
19070 return f != $ac_func;
19072 return 0;
19074 _ACEOF
19075 rm -f conftest.$ac_objext conftest$ac_exeext
19076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19077 (eval $ac_link) 2>conftest.er1
19078 ac_status=$?
19079 grep -v '^ *+' conftest.er1 >conftest.err
19080 rm -f conftest.er1
19081 cat conftest.err >&5
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); } &&
19084 { ac_try='test -z "$ac_c_werror_flag"
19085 || test ! -s conftest.err'
19086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087 (eval $ac_try) 2>&5
19088 ac_status=$?
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); }; } &&
19091 { ac_try='test -s conftest$ac_exeext'
19092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093 (eval $ac_try) 2>&5
19094 ac_status=$?
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); }; }; then
19097 eval "$as_ac_var=yes"
19098 else
19099 echo "$as_me: failed program was:" >&5
19100 sed 's/^/| /' conftest.$ac_ext >&5
19102 eval "$as_ac_var=no"
19104 rm -f conftest.err conftest.$ac_objext \
19105 conftest$ac_exeext conftest.$ac_ext
19107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19108 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19109 if test `eval echo '${'$as_ac_var'}'` = yes; then
19110 cat >>confdefs.h <<_ACEOF
19111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19112 _ACEOF
19115 done
19126 # checks for system services
19127 # (none yet)
19129 # Linux requires this for correct f.p. operations
19130 echo "$as_me:$LINENO: checking for __fpu_control" >&5
19131 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
19132 if test "${ac_cv_func___fpu_control+set}" = set; then
19133 echo $ECHO_N "(cached) $ECHO_C" >&6
19134 else
19135 cat >conftest.$ac_ext <<_ACEOF
19136 /* confdefs.h. */
19137 _ACEOF
19138 cat confdefs.h >>conftest.$ac_ext
19139 cat >>conftest.$ac_ext <<_ACEOF
19140 /* end confdefs.h. */
19141 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
19142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19143 #define __fpu_control innocuous___fpu_control
19145 /* System header to define __stub macros and hopefully few prototypes,
19146 which can conflict with char __fpu_control (); below.
19147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19148 <limits.h> exists even on freestanding compilers. */
19150 #ifdef __STDC__
19151 # include <limits.h>
19152 #else
19153 # include <assert.h>
19154 #endif
19156 #undef __fpu_control
19158 /* Override any gcc2 internal prototype to avoid an error. */
19159 #ifdef __cplusplus
19160 extern "C"
19162 #endif
19163 /* We use char because int might match the return type of a gcc2
19164 builtin and then its argument prototype would still apply. */
19165 char __fpu_control ();
19166 /* The GNU C library defines this for functions which it implements
19167 to always fail with ENOSYS. Some functions are actually named
19168 something starting with __ and the normal name is an alias. */
19169 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19170 choke me
19171 #else
19172 char (*f) () = __fpu_control;
19173 #endif
19174 #ifdef __cplusplus
19176 #endif
19179 main ()
19181 return f != __fpu_control;
19183 return 0;
19185 _ACEOF
19186 rm -f conftest.$ac_objext conftest$ac_exeext
19187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19188 (eval $ac_link) 2>conftest.er1
19189 ac_status=$?
19190 grep -v '^ *+' conftest.er1 >conftest.err
19191 rm -f conftest.er1
19192 cat conftest.err >&5
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); } &&
19195 { ac_try='test -z "$ac_c_werror_flag"
19196 || test ! -s conftest.err'
19197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19198 (eval $ac_try) 2>&5
19199 ac_status=$?
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); }; } &&
19202 { ac_try='test -s conftest$ac_exeext'
19203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19204 (eval $ac_try) 2>&5
19205 ac_status=$?
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); }; }; then
19208 ac_cv_func___fpu_control=yes
19209 else
19210 echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.$ac_ext >&5
19213 ac_cv_func___fpu_control=no
19215 rm -f conftest.err conftest.$ac_objext \
19216 conftest$ac_exeext conftest.$ac_ext
19218 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19219 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19220 if test $ac_cv_func___fpu_control = yes; then
19222 else
19224 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19225 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19226 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19227 echo $ECHO_N "(cached) $ECHO_C" >&6
19228 else
19229 ac_check_lib_save_LIBS=$LIBS
19230 LIBS="-lieee $LIBS"
19231 cat >conftest.$ac_ext <<_ACEOF
19232 /* confdefs.h. */
19233 _ACEOF
19234 cat confdefs.h >>conftest.$ac_ext
19235 cat >>conftest.$ac_ext <<_ACEOF
19236 /* end confdefs.h. */
19238 /* Override any gcc2 internal prototype to avoid an error. */
19239 #ifdef __cplusplus
19240 extern "C"
19241 #endif
19242 /* We use char because int might match the return type of a gcc2
19243 builtin and then its argument prototype would still apply. */
19244 char __fpu_control ();
19246 main ()
19248 __fpu_control ();
19250 return 0;
19252 _ACEOF
19253 rm -f conftest.$ac_objext conftest$ac_exeext
19254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19255 (eval $ac_link) 2>conftest.er1
19256 ac_status=$?
19257 grep -v '^ *+' conftest.er1 >conftest.err
19258 rm -f conftest.er1
19259 cat conftest.err >&5
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); } &&
19262 { ac_try='test -z "$ac_c_werror_flag"
19263 || test ! -s conftest.err'
19264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19265 (eval $ac_try) 2>&5
19266 ac_status=$?
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); }; } &&
19269 { ac_try='test -s conftest$ac_exeext'
19270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19271 (eval $ac_try) 2>&5
19272 ac_status=$?
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); }; }; then
19275 ac_cv_lib_ieee___fpu_control=yes
19276 else
19277 echo "$as_me: failed program was:" >&5
19278 sed 's/^/| /' conftest.$ac_ext >&5
19280 ac_cv_lib_ieee___fpu_control=no
19282 rm -f conftest.err conftest.$ac_objext \
19283 conftest$ac_exeext conftest.$ac_ext
19284 LIBS=$ac_check_lib_save_LIBS
19286 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19287 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19288 if test $ac_cv_lib_ieee___fpu_control = yes; then
19289 cat >>confdefs.h <<_ACEOF
19290 #define HAVE_LIBIEEE 1
19291 _ACEOF
19293 LIBS="-lieee $LIBS"
19301 # Check for --with-fpectl
19302 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19303 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19305 # Check whether --with-fpectl or --without-fpectl was given.
19306 if test "${with_fpectl+set}" = set; then
19307 withval="$with_fpectl"
19309 if test "$withval" != no
19310 then
19312 cat >>confdefs.h <<\_ACEOF
19313 #define WANT_SIGFPE_HANDLER 1
19314 _ACEOF
19316 echo "$as_me:$LINENO: result: yes" >&5
19317 echo "${ECHO_T}yes" >&6
19318 else echo "$as_me:$LINENO: result: no" >&5
19319 echo "${ECHO_T}no" >&6
19321 else
19322 echo "$as_me:$LINENO: result: no" >&5
19323 echo "${ECHO_T}no" >&6
19326 # check for --with-libm=...
19328 case $ac_sys_system in
19329 Darwin) ;;
19330 BeOS) ;;
19331 *) LIBM=-lm
19332 esac
19333 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19334 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19336 # Check whether --with-libm or --without-libm was given.
19337 if test "${with_libm+set}" = set; then
19338 withval="$with_libm"
19340 if test "$withval" = no
19341 then LIBM=
19342 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19343 echo "${ECHO_T}force LIBM empty" >&6
19344 elif test "$withval" != yes
19345 then LIBM=$withval
19346 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19347 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19348 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19349 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19350 { (exit 1); exit 1; }; }
19352 else
19353 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19354 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19357 # check for --with-libc=...
19359 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19360 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19362 # Check whether --with-libc or --without-libc was given.
19363 if test "${with_libc+set}" = set; then
19364 withval="$with_libc"
19366 if test "$withval" = no
19367 then LIBC=
19368 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19369 echo "${ECHO_T}force LIBC empty" >&6
19370 elif test "$withval" != yes
19371 then LIBC=$withval
19372 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19373 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19374 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19375 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19376 { (exit 1); exit 1; }; }
19378 else
19379 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19380 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19383 # check for hypot() in math library
19384 LIBS_SAVE=$LIBS
19385 LIBS="$LIBS $LIBM"
19387 for ac_func in hypot
19389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19390 echo "$as_me:$LINENO: checking for $ac_func" >&5
19391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19392 if eval "test \"\${$as_ac_var+set}\" = set"; then
19393 echo $ECHO_N "(cached) $ECHO_C" >&6
19394 else
19395 cat >conftest.$ac_ext <<_ACEOF
19396 /* confdefs.h. */
19397 _ACEOF
19398 cat confdefs.h >>conftest.$ac_ext
19399 cat >>conftest.$ac_ext <<_ACEOF
19400 /* end confdefs.h. */
19401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19403 #define $ac_func innocuous_$ac_func
19405 /* System header to define __stub macros and hopefully few prototypes,
19406 which can conflict with char $ac_func (); below.
19407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19408 <limits.h> exists even on freestanding compilers. */
19410 #ifdef __STDC__
19411 # include <limits.h>
19412 #else
19413 # include <assert.h>
19414 #endif
19416 #undef $ac_func
19418 /* Override any gcc2 internal prototype to avoid an error. */
19419 #ifdef __cplusplus
19420 extern "C"
19422 #endif
19423 /* We use char because int might match the return type of a gcc2
19424 builtin and then its argument prototype would still apply. */
19425 char $ac_func ();
19426 /* The GNU C library defines this for functions which it implements
19427 to always fail with ENOSYS. Some functions are actually named
19428 something starting with __ and the normal name is an alias. */
19429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19430 choke me
19431 #else
19432 char (*f) () = $ac_func;
19433 #endif
19434 #ifdef __cplusplus
19436 #endif
19439 main ()
19441 return f != $ac_func;
19443 return 0;
19445 _ACEOF
19446 rm -f conftest.$ac_objext conftest$ac_exeext
19447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19448 (eval $ac_link) 2>conftest.er1
19449 ac_status=$?
19450 grep -v '^ *+' conftest.er1 >conftest.err
19451 rm -f conftest.er1
19452 cat conftest.err >&5
19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); } &&
19455 { ac_try='test -z "$ac_c_werror_flag"
19456 || test ! -s conftest.err'
19457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19458 (eval $ac_try) 2>&5
19459 ac_status=$?
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); }; } &&
19462 { ac_try='test -s conftest$ac_exeext'
19463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19464 (eval $ac_try) 2>&5
19465 ac_status=$?
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; }; then
19468 eval "$as_ac_var=yes"
19469 else
19470 echo "$as_me: failed program was:" >&5
19471 sed 's/^/| /' conftest.$ac_ext >&5
19473 eval "$as_ac_var=no"
19475 rm -f conftest.err conftest.$ac_objext \
19476 conftest$ac_exeext conftest.$ac_ext
19478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19479 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19480 if test `eval echo '${'$as_ac_var'}'` = yes; then
19481 cat >>confdefs.h <<_ACEOF
19482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19483 _ACEOF
19485 else
19486 case $LIBOBJS in
19487 "$ac_func.$ac_objext" | \
19488 *" $ac_func.$ac_objext" | \
19489 "$ac_func.$ac_objext "* | \
19490 *" $ac_func.$ac_objext "* ) ;;
19491 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
19492 esac
19495 done
19498 LIBS=$LIBS_SAVE
19500 # check for wchar.h
19501 if test "${ac_cv_header_wchar_h+set}" = set; then
19502 echo "$as_me:$LINENO: checking for wchar.h" >&5
19503 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19504 if test "${ac_cv_header_wchar_h+set}" = set; then
19505 echo $ECHO_N "(cached) $ECHO_C" >&6
19507 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19508 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19509 else
19510 # Is the header compilable?
19511 echo "$as_me:$LINENO: checking wchar.h usability" >&5
19512 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
19513 cat >conftest.$ac_ext <<_ACEOF
19514 /* confdefs.h. */
19515 _ACEOF
19516 cat confdefs.h >>conftest.$ac_ext
19517 cat >>conftest.$ac_ext <<_ACEOF
19518 /* end confdefs.h. */
19519 $ac_includes_default
19520 #include <wchar.h>
19521 _ACEOF
19522 rm -f conftest.$ac_objext
19523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19524 (eval $ac_compile) 2>conftest.er1
19525 ac_status=$?
19526 grep -v '^ *+' conftest.er1 >conftest.err
19527 rm -f conftest.er1
19528 cat conftest.err >&5
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); } &&
19531 { ac_try='test -z "$ac_c_werror_flag"
19532 || test ! -s conftest.err'
19533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534 (eval $ac_try) 2>&5
19535 ac_status=$?
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; } &&
19538 { ac_try='test -s conftest.$ac_objext'
19539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19540 (eval $ac_try) 2>&5
19541 ac_status=$?
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); }; }; then
19544 ac_header_compiler=yes
19545 else
19546 echo "$as_me: failed program was:" >&5
19547 sed 's/^/| /' conftest.$ac_ext >&5
19549 ac_header_compiler=no
19551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19552 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19553 echo "${ECHO_T}$ac_header_compiler" >&6
19555 # Is the header present?
19556 echo "$as_me:$LINENO: checking wchar.h presence" >&5
19557 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
19558 cat >conftest.$ac_ext <<_ACEOF
19559 /* confdefs.h. */
19560 _ACEOF
19561 cat confdefs.h >>conftest.$ac_ext
19562 cat >>conftest.$ac_ext <<_ACEOF
19563 /* end confdefs.h. */
19564 #include <wchar.h>
19565 _ACEOF
19566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19567 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19568 ac_status=$?
19569 grep -v '^ *+' conftest.er1 >conftest.err
19570 rm -f conftest.er1
19571 cat conftest.err >&5
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); } >/dev/null; then
19574 if test -s conftest.err; then
19575 ac_cpp_err=$ac_c_preproc_warn_flag
19576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19577 else
19578 ac_cpp_err=
19580 else
19581 ac_cpp_err=yes
19583 if test -z "$ac_cpp_err"; then
19584 ac_header_preproc=yes
19585 else
19586 echo "$as_me: failed program was:" >&5
19587 sed 's/^/| /' conftest.$ac_ext >&5
19589 ac_header_preproc=no
19591 rm -f conftest.err conftest.$ac_ext
19592 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19593 echo "${ECHO_T}$ac_header_preproc" >&6
19595 # So? What about this header?
19596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19597 yes:no: )
19598 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
19599 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19600 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
19601 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
19602 ac_header_preproc=yes
19604 no:yes:* )
19605 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
19606 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
19607 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
19608 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
19609 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
19610 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
19611 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
19612 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
19613 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
19614 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
19615 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
19616 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
19618 cat <<\_ASBOX
19619 ## ------------------------------------------------ ##
19620 ## Report this to http://www.python.org/python-bugs ##
19621 ## ------------------------------------------------ ##
19622 _ASBOX
19624 sed "s/^/$as_me: WARNING: /" >&2
19626 esac
19627 echo "$as_me:$LINENO: checking for wchar.h" >&5
19628 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19629 if test "${ac_cv_header_wchar_h+set}" = set; then
19630 echo $ECHO_N "(cached) $ECHO_C" >&6
19631 else
19632 ac_cv_header_wchar_h=$ac_header_preproc
19634 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19635 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19638 if test $ac_cv_header_wchar_h = yes; then
19641 cat >>confdefs.h <<\_ACEOF
19642 #define HAVE_WCHAR_H 1
19643 _ACEOF
19645 wchar_h="yes"
19647 else
19648 wchar_h="no"
19654 # determine wchar_t size
19655 if test "$wchar_h" = yes
19656 then
19657 echo "$as_me:$LINENO: checking for wchar_t" >&5
19658 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19659 if test "${ac_cv_type_wchar_t+set}" = set; then
19660 echo $ECHO_N "(cached) $ECHO_C" >&6
19661 else
19662 cat >conftest.$ac_ext <<_ACEOF
19663 /* confdefs.h. */
19664 _ACEOF
19665 cat confdefs.h >>conftest.$ac_ext
19666 cat >>conftest.$ac_ext <<_ACEOF
19667 /* end confdefs.h. */
19668 #include <wchar.h>
19671 main ()
19673 if ((wchar_t *) 0)
19674 return 0;
19675 if (sizeof (wchar_t))
19676 return 0;
19678 return 0;
19680 _ACEOF
19681 rm -f conftest.$ac_objext
19682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19683 (eval $ac_compile) 2>conftest.er1
19684 ac_status=$?
19685 grep -v '^ *+' conftest.er1 >conftest.err
19686 rm -f conftest.er1
19687 cat conftest.err >&5
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); } &&
19690 { ac_try='test -z "$ac_c_werror_flag"
19691 || test ! -s conftest.err'
19692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19693 (eval $ac_try) 2>&5
19694 ac_status=$?
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); }; } &&
19697 { ac_try='test -s conftest.$ac_objext'
19698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19699 (eval $ac_try) 2>&5
19700 ac_status=$?
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); }; }; then
19703 ac_cv_type_wchar_t=yes
19704 else
19705 echo "$as_me: failed program was:" >&5
19706 sed 's/^/| /' conftest.$ac_ext >&5
19708 ac_cv_type_wchar_t=no
19710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19712 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19713 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19715 echo "$as_me:$LINENO: checking size of wchar_t" >&5
19716 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19717 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19718 echo $ECHO_N "(cached) $ECHO_C" >&6
19719 else
19720 if test "$ac_cv_type_wchar_t" = yes; then
19721 # The cast to unsigned long works around a bug in the HP C Compiler
19722 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19723 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19724 # This bug is HP SR number 8606223364.
19725 if test "$cross_compiling" = yes; then
19726 # Depending upon the size, compute the lo and hi bounds.
19727 cat >conftest.$ac_ext <<_ACEOF
19728 /* confdefs.h. */
19729 _ACEOF
19730 cat confdefs.h >>conftest.$ac_ext
19731 cat >>conftest.$ac_ext <<_ACEOF
19732 /* end confdefs.h. */
19733 #include <wchar.h>
19736 main ()
19738 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19739 test_array [0] = 0
19742 return 0;
19744 _ACEOF
19745 rm -f conftest.$ac_objext
19746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19747 (eval $ac_compile) 2>conftest.er1
19748 ac_status=$?
19749 grep -v '^ *+' conftest.er1 >conftest.err
19750 rm -f conftest.er1
19751 cat conftest.err >&5
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); } &&
19754 { ac_try='test -z "$ac_c_werror_flag"
19755 || test ! -s conftest.err'
19756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19757 (eval $ac_try) 2>&5
19758 ac_status=$?
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); }; } &&
19761 { ac_try='test -s conftest.$ac_objext'
19762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19763 (eval $ac_try) 2>&5
19764 ac_status=$?
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); }; }; then
19767 ac_lo=0 ac_mid=0
19768 while :; do
19769 cat >conftest.$ac_ext <<_ACEOF
19770 /* confdefs.h. */
19771 _ACEOF
19772 cat confdefs.h >>conftest.$ac_ext
19773 cat >>conftest.$ac_ext <<_ACEOF
19774 /* end confdefs.h. */
19775 #include <wchar.h>
19778 main ()
19780 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19781 test_array [0] = 0
19784 return 0;
19786 _ACEOF
19787 rm -f conftest.$ac_objext
19788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19789 (eval $ac_compile) 2>conftest.er1
19790 ac_status=$?
19791 grep -v '^ *+' conftest.er1 >conftest.err
19792 rm -f conftest.er1
19793 cat conftest.err >&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } &&
19796 { ac_try='test -z "$ac_c_werror_flag"
19797 || test ! -s conftest.err'
19798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19799 (eval $ac_try) 2>&5
19800 ac_status=$?
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); }; } &&
19803 { ac_try='test -s conftest.$ac_objext'
19804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805 (eval $ac_try) 2>&5
19806 ac_status=$?
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); }; }; then
19809 ac_hi=$ac_mid; break
19810 else
19811 echo "$as_me: failed program was:" >&5
19812 sed 's/^/| /' conftest.$ac_ext >&5
19814 ac_lo=`expr $ac_mid + 1`
19815 if test $ac_lo -le $ac_mid; then
19816 ac_lo= ac_hi=
19817 break
19819 ac_mid=`expr 2 '*' $ac_mid + 1`
19821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19822 done
19823 else
19824 echo "$as_me: failed program was:" >&5
19825 sed 's/^/| /' conftest.$ac_ext >&5
19827 cat >conftest.$ac_ext <<_ACEOF
19828 /* confdefs.h. */
19829 _ACEOF
19830 cat confdefs.h >>conftest.$ac_ext
19831 cat >>conftest.$ac_ext <<_ACEOF
19832 /* end confdefs.h. */
19833 #include <wchar.h>
19836 main ()
19838 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19839 test_array [0] = 0
19842 return 0;
19844 _ACEOF
19845 rm -f conftest.$ac_objext
19846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19847 (eval $ac_compile) 2>conftest.er1
19848 ac_status=$?
19849 grep -v '^ *+' conftest.er1 >conftest.err
19850 rm -f conftest.er1
19851 cat conftest.err >&5
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); } &&
19854 { ac_try='test -z "$ac_c_werror_flag"
19855 || test ! -s conftest.err'
19856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19857 (eval $ac_try) 2>&5
19858 ac_status=$?
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); }; } &&
19861 { ac_try='test -s conftest.$ac_objext'
19862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19863 (eval $ac_try) 2>&5
19864 ac_status=$?
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); }; }; then
19867 ac_hi=-1 ac_mid=-1
19868 while :; do
19869 cat >conftest.$ac_ext <<_ACEOF
19870 /* confdefs.h. */
19871 _ACEOF
19872 cat confdefs.h >>conftest.$ac_ext
19873 cat >>conftest.$ac_ext <<_ACEOF
19874 /* end confdefs.h. */
19875 #include <wchar.h>
19878 main ()
19880 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19881 test_array [0] = 0
19884 return 0;
19886 _ACEOF
19887 rm -f conftest.$ac_objext
19888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19889 (eval $ac_compile) 2>conftest.er1
19890 ac_status=$?
19891 grep -v '^ *+' conftest.er1 >conftest.err
19892 rm -f conftest.er1
19893 cat conftest.err >&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); } &&
19896 { ac_try='test -z "$ac_c_werror_flag"
19897 || test ! -s conftest.err'
19898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19899 (eval $ac_try) 2>&5
19900 ac_status=$?
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); }; } &&
19903 { ac_try='test -s conftest.$ac_objext'
19904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19905 (eval $ac_try) 2>&5
19906 ac_status=$?
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); }; }; then
19909 ac_lo=$ac_mid; break
19910 else
19911 echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.$ac_ext >&5
19914 ac_hi=`expr '(' $ac_mid ')' - 1`
19915 if test $ac_mid -le $ac_hi; then
19916 ac_lo= ac_hi=
19917 break
19919 ac_mid=`expr 2 '*' $ac_mid`
19921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19922 done
19923 else
19924 echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.$ac_ext >&5
19927 ac_lo= ac_hi=
19929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19932 # Binary search between lo and hi bounds.
19933 while test "x$ac_lo" != "x$ac_hi"; do
19934 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19935 cat >conftest.$ac_ext <<_ACEOF
19936 /* confdefs.h. */
19937 _ACEOF
19938 cat confdefs.h >>conftest.$ac_ext
19939 cat >>conftest.$ac_ext <<_ACEOF
19940 /* end confdefs.h. */
19941 #include <wchar.h>
19944 main ()
19946 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19947 test_array [0] = 0
19950 return 0;
19952 _ACEOF
19953 rm -f conftest.$ac_objext
19954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19955 (eval $ac_compile) 2>conftest.er1
19956 ac_status=$?
19957 grep -v '^ *+' conftest.er1 >conftest.err
19958 rm -f conftest.er1
19959 cat conftest.err >&5
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); } &&
19962 { ac_try='test -z "$ac_c_werror_flag"
19963 || test ! -s conftest.err'
19964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19965 (eval $ac_try) 2>&5
19966 ac_status=$?
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); }; } &&
19969 { ac_try='test -s conftest.$ac_objext'
19970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19971 (eval $ac_try) 2>&5
19972 ac_status=$?
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); }; }; then
19975 ac_hi=$ac_mid
19976 else
19977 echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.$ac_ext >&5
19980 ac_lo=`expr '(' $ac_mid ')' + 1`
19982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19983 done
19984 case $ac_lo in
19985 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19986 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19987 See \`config.log' for more details." >&5
19988 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19989 See \`config.log' for more details." >&2;}
19990 { (exit 1); exit 1; }; } ;;
19991 esac
19992 else
19993 if test "$cross_compiling" = yes; then
19994 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19995 See \`config.log' for more details." >&5
19996 echo "$as_me: error: cannot run test program while cross compiling
19997 See \`config.log' for more details." >&2;}
19998 { (exit 1); exit 1; }; }
19999 else
20000 cat >conftest.$ac_ext <<_ACEOF
20001 /* confdefs.h. */
20002 _ACEOF
20003 cat confdefs.h >>conftest.$ac_ext
20004 cat >>conftest.$ac_ext <<_ACEOF
20005 /* end confdefs.h. */
20006 #include <wchar.h>
20008 long longval () { return (long) (sizeof (wchar_t)); }
20009 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
20010 #include <stdio.h>
20011 #include <stdlib.h>
20013 main ()
20016 FILE *f = fopen ("conftest.val", "w");
20017 if (! f)
20018 exit (1);
20019 if (((long) (sizeof (wchar_t))) < 0)
20021 long i = longval ();
20022 if (i != ((long) (sizeof (wchar_t))))
20023 exit (1);
20024 fprintf (f, "%ld\n", i);
20026 else
20028 unsigned long i = ulongval ();
20029 if (i != ((long) (sizeof (wchar_t))))
20030 exit (1);
20031 fprintf (f, "%lu\n", i);
20033 exit (ferror (f) || fclose (f) != 0);
20036 return 0;
20038 _ACEOF
20039 rm -f conftest$ac_exeext
20040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20041 (eval $ac_link) 2>&5
20042 ac_status=$?
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20046 (eval $ac_try) 2>&5
20047 ac_status=$?
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); }; }; then
20050 ac_cv_sizeof_wchar_t=`cat conftest.val`
20051 else
20052 echo "$as_me: program exited with status $ac_status" >&5
20053 echo "$as_me: failed program was:" >&5
20054 sed 's/^/| /' conftest.$ac_ext >&5
20056 ( exit $ac_status )
20057 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20058 See \`config.log' for more details." >&5
20059 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20060 See \`config.log' for more details." >&2;}
20061 { (exit 1); exit 1; }; }
20063 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20066 rm -f conftest.val
20067 else
20068 ac_cv_sizeof_wchar_t=0
20071 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20072 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
20073 cat >>confdefs.h <<_ACEOF
20074 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
20075 _ACEOF
20080 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
20081 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
20082 have_ucs4_tcl=no
20083 cat >conftest.$ac_ext <<_ACEOF
20084 /* confdefs.h. */
20085 _ACEOF
20086 cat confdefs.h >>conftest.$ac_ext
20087 cat >>conftest.$ac_ext <<_ACEOF
20088 /* end confdefs.h. */
20090 #include <tcl.h>
20091 #if TCL_UTF_MAX != 6
20092 # error "NOT UCS4_TCL"
20093 #endif
20095 main ()
20099 return 0;
20101 _ACEOF
20102 rm -f conftest.$ac_objext
20103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20104 (eval $ac_compile) 2>conftest.er1
20105 ac_status=$?
20106 grep -v '^ *+' conftest.er1 >conftest.err
20107 rm -f conftest.er1
20108 cat conftest.err >&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); } &&
20111 { ac_try='test -z "$ac_c_werror_flag"
20112 || test ! -s conftest.err'
20113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20114 (eval $ac_try) 2>&5
20115 ac_status=$?
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); }; } &&
20118 { ac_try='test -s conftest.$ac_objext'
20119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120 (eval $ac_try) 2>&5
20121 ac_status=$?
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; }; then
20126 cat >>confdefs.h <<\_ACEOF
20127 #define HAVE_UCS4_TCL 1
20128 _ACEOF
20130 have_ucs4_tcl=yes
20132 else
20133 echo "$as_me: failed program was:" >&5
20134 sed 's/^/| /' conftest.$ac_ext >&5
20137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20138 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
20139 echo "${ECHO_T}$have_ucs4_tcl" >&6
20141 # check whether wchar_t is signed or not
20142 if test "$wchar_h" = yes
20143 then
20144 # check whether wchar_t is signed or not
20145 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20146 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
20147 if test "${ac_cv_wchar_t_signed+set}" = set; then
20148 echo $ECHO_N "(cached) $ECHO_C" >&6
20149 else
20151 if test "$cross_compiling" = yes; then
20152 ac_cv_wchar_t_signed=yes
20153 else
20154 cat >conftest.$ac_ext <<_ACEOF
20155 /* confdefs.h. */
20156 _ACEOF
20157 cat confdefs.h >>conftest.$ac_ext
20158 cat >>conftest.$ac_ext <<_ACEOF
20159 /* end confdefs.h. */
20161 #include <wchar.h>
20162 int main()
20164 /* Success: exit code 0 */
20165 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
20168 _ACEOF
20169 rm -f conftest$ac_exeext
20170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20171 (eval $ac_link) 2>&5
20172 ac_status=$?
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20176 (eval $ac_try) 2>&5
20177 ac_status=$?
20178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179 (exit $ac_status); }; }; then
20180 ac_cv_wchar_t_signed=yes
20181 else
20182 echo "$as_me: program exited with status $ac_status" >&5
20183 echo "$as_me: failed program was:" >&5
20184 sed 's/^/| /' conftest.$ac_ext >&5
20186 ( exit $ac_status )
20187 ac_cv_wchar_t_signed=no
20189 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20193 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20194 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20197 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20198 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20199 # Check whether --enable-unicode or --disable-unicode was given.
20200 if test "${enable_unicode+set}" = set; then
20201 enableval="$enable_unicode"
20203 else
20204 enable_unicode=yes
20207 if test $enable_unicode = yes
20208 then
20209 # Without any arguments, Py_UNICODE defaults to two-byte mode
20210 case "$have_ucs4_tcl" in
20211 yes) enable_unicode="ucs4"
20213 *) enable_unicode="ucs2"
20215 esac
20220 case "$enable_unicode" in
20221 ucs2) unicode_size="2"
20222 cat >>confdefs.h <<\_ACEOF
20223 #define Py_UNICODE_SIZE 2
20224 _ACEOF
20227 ucs4) unicode_size="4"
20228 cat >>confdefs.h <<\_ACEOF
20229 #define Py_UNICODE_SIZE 4
20230 _ACEOF
20233 esac
20239 if test "$enable_unicode" = "no"
20240 then
20241 UNICODE_OBJS=""
20242 echo "$as_me:$LINENO: result: not used" >&5
20243 echo "${ECHO_T}not used" >&6
20244 else
20245 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
20247 cat >>confdefs.h <<\_ACEOF
20248 #define Py_USING_UNICODE 1
20249 _ACEOF
20252 # wchar_t is only usable if it maps to an unsigned type
20253 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20254 -a "$ac_cv_wchar_t_signed" = "no"
20255 then
20256 PY_UNICODE_TYPE="wchar_t"
20258 cat >>confdefs.h <<\_ACEOF
20259 #define HAVE_USABLE_WCHAR_T 1
20260 _ACEOF
20262 cat >>confdefs.h <<\_ACEOF
20263 #define PY_UNICODE_TYPE wchar_t
20264 _ACEOF
20266 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20267 then
20268 PY_UNICODE_TYPE="unsigned short"
20269 cat >>confdefs.h <<\_ACEOF
20270 #define PY_UNICODE_TYPE unsigned short
20271 _ACEOF
20273 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20274 then
20275 PY_UNICODE_TYPE="unsigned long"
20276 cat >>confdefs.h <<\_ACEOF
20277 #define PY_UNICODE_TYPE unsigned long
20278 _ACEOF
20280 else
20281 PY_UNICODE_TYPE="no type found"
20283 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20284 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20287 # check for endianness
20288 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20289 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20290 if test "${ac_cv_c_bigendian+set}" = set; then
20291 echo $ECHO_N "(cached) $ECHO_C" >&6
20292 else
20293 # See if sys/param.h defines the BYTE_ORDER macro.
20294 cat >conftest.$ac_ext <<_ACEOF
20295 /* confdefs.h. */
20296 _ACEOF
20297 cat confdefs.h >>conftest.$ac_ext
20298 cat >>conftest.$ac_ext <<_ACEOF
20299 /* end confdefs.h. */
20300 #include <sys/types.h>
20301 #include <sys/param.h>
20304 main ()
20306 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20307 bogus endian macros
20308 #endif
20311 return 0;
20313 _ACEOF
20314 rm -f conftest.$ac_objext
20315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20316 (eval $ac_compile) 2>conftest.er1
20317 ac_status=$?
20318 grep -v '^ *+' conftest.er1 >conftest.err
20319 rm -f conftest.er1
20320 cat conftest.err >&5
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); } &&
20323 { ac_try='test -z "$ac_c_werror_flag"
20324 || test ! -s conftest.err'
20325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20326 (eval $ac_try) 2>&5
20327 ac_status=$?
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); }; } &&
20330 { ac_try='test -s conftest.$ac_objext'
20331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20332 (eval $ac_try) 2>&5
20333 ac_status=$?
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); }; }; then
20336 # It does; now see whether it defined to BIG_ENDIAN or not.
20337 cat >conftest.$ac_ext <<_ACEOF
20338 /* confdefs.h. */
20339 _ACEOF
20340 cat confdefs.h >>conftest.$ac_ext
20341 cat >>conftest.$ac_ext <<_ACEOF
20342 /* end confdefs.h. */
20343 #include <sys/types.h>
20344 #include <sys/param.h>
20347 main ()
20349 #if BYTE_ORDER != BIG_ENDIAN
20350 not big endian
20351 #endif
20354 return 0;
20356 _ACEOF
20357 rm -f conftest.$ac_objext
20358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20359 (eval $ac_compile) 2>conftest.er1
20360 ac_status=$?
20361 grep -v '^ *+' conftest.er1 >conftest.err
20362 rm -f conftest.er1
20363 cat conftest.err >&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } &&
20366 { ac_try='test -z "$ac_c_werror_flag"
20367 || test ! -s conftest.err'
20368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20369 (eval $ac_try) 2>&5
20370 ac_status=$?
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); }; } &&
20373 { ac_try='test -s conftest.$ac_objext'
20374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20375 (eval $ac_try) 2>&5
20376 ac_status=$?
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); }; }; then
20379 ac_cv_c_bigendian=yes
20380 else
20381 echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20384 ac_cv_c_bigendian=no
20386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20387 else
20388 echo "$as_me: failed program was:" >&5
20389 sed 's/^/| /' conftest.$ac_ext >&5
20391 # It does not; compile a test program.
20392 if test "$cross_compiling" = yes; then
20393 # try to guess the endianness by grepping values into an object file
20394 ac_cv_c_bigendian=unknown
20395 cat >conftest.$ac_ext <<_ACEOF
20396 /* confdefs.h. */
20397 _ACEOF
20398 cat confdefs.h >>conftest.$ac_ext
20399 cat >>conftest.$ac_ext <<_ACEOF
20400 /* end confdefs.h. */
20401 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20402 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20403 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20404 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20405 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20406 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20408 main ()
20410 _ascii (); _ebcdic ();
20412 return 0;
20414 _ACEOF
20415 rm -f conftest.$ac_objext
20416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20417 (eval $ac_compile) 2>conftest.er1
20418 ac_status=$?
20419 grep -v '^ *+' conftest.er1 >conftest.err
20420 rm -f conftest.er1
20421 cat conftest.err >&5
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); } &&
20424 { ac_try='test -z "$ac_c_werror_flag"
20425 || test ! -s conftest.err'
20426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20427 (eval $ac_try) 2>&5
20428 ac_status=$?
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); }; } &&
20431 { ac_try='test -s conftest.$ac_objext'
20432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20433 (eval $ac_try) 2>&5
20434 ac_status=$?
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); }; }; then
20437 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20438 ac_cv_c_bigendian=yes
20440 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20441 if test "$ac_cv_c_bigendian" = unknown; then
20442 ac_cv_c_bigendian=no
20443 else
20444 # finding both strings is unlikely to happen, but who knows?
20445 ac_cv_c_bigendian=unknown
20448 else
20449 echo "$as_me: failed program was:" >&5
20450 sed 's/^/| /' conftest.$ac_ext >&5
20453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20454 else
20455 cat >conftest.$ac_ext <<_ACEOF
20456 /* confdefs.h. */
20457 _ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h. */
20462 main ()
20464 /* Are we little or big endian? From Harbison&Steele. */
20465 union
20467 long l;
20468 char c[sizeof (long)];
20469 } u;
20470 u.l = 1;
20471 exit (u.c[sizeof (long) - 1] == 1);
20473 _ACEOF
20474 rm -f conftest$ac_exeext
20475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20476 (eval $ac_link) 2>&5
20477 ac_status=$?
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481 (eval $ac_try) 2>&5
20482 ac_status=$?
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); }; }; then
20485 ac_cv_c_bigendian=no
20486 else
20487 echo "$as_me: program exited with status $ac_status" >&5
20488 echo "$as_me: failed program was:" >&5
20489 sed 's/^/| /' conftest.$ac_ext >&5
20491 ( exit $ac_status )
20492 ac_cv_c_bigendian=yes
20494 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20499 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20500 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20501 case $ac_cv_c_bigendian in
20502 yes)
20504 cat >>confdefs.h <<\_ACEOF
20505 #define WORDS_BIGENDIAN 1
20506 _ACEOF
20511 { { echo "$as_me:$LINENO: error: unknown endianness
20512 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20513 echo "$as_me: error: unknown endianness
20514 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20515 { (exit 1); exit 1; }; } ;;
20516 esac
20521 # Check whether right shifting a negative integer extends the sign bit
20522 # or fills with zeros (like the Cray J90, according to Tim Peters).
20523 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
20524 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
20525 if test "${ac_cv_rshift_extends_sign+set}" = set; then
20526 echo $ECHO_N "(cached) $ECHO_C" >&6
20527 else
20529 if test "$cross_compiling" = yes; then
20530 ac_cv_rshift_extends_sign=yes
20531 else
20532 cat >conftest.$ac_ext <<_ACEOF
20533 /* confdefs.h. */
20534 _ACEOF
20535 cat confdefs.h >>conftest.$ac_ext
20536 cat >>conftest.$ac_ext <<_ACEOF
20537 /* end confdefs.h. */
20539 int main()
20541 exit(((-1)>>3 == -1) ? 0 : 1);
20544 _ACEOF
20545 rm -f conftest$ac_exeext
20546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20547 (eval $ac_link) 2>&5
20548 ac_status=$?
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20552 (eval $ac_try) 2>&5
20553 ac_status=$?
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); }; }; then
20556 ac_cv_rshift_extends_sign=yes
20557 else
20558 echo "$as_me: program exited with status $ac_status" >&5
20559 echo "$as_me: failed program was:" >&5
20560 sed 's/^/| /' conftest.$ac_ext >&5
20562 ( exit $ac_status )
20563 ac_cv_rshift_extends_sign=no
20565 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20569 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
20570 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
20571 if test "$ac_cv_rshift_extends_sign" = no
20572 then
20574 cat >>confdefs.h <<\_ACEOF
20575 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
20576 _ACEOF
20580 # check for getc_unlocked and related locking functions
20581 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
20582 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
20583 if test "${ac_cv_have_getc_unlocked+set}" = set; then
20584 echo $ECHO_N "(cached) $ECHO_C" >&6
20585 else
20587 cat >conftest.$ac_ext <<_ACEOF
20588 /* confdefs.h. */
20589 _ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h. */
20593 #include <stdio.h>
20595 main ()
20598 FILE *f = fopen("/dev/null", "r");
20599 flockfile(f);
20600 getc_unlocked(f);
20601 funlockfile(f);
20604 return 0;
20606 _ACEOF
20607 rm -f conftest.$ac_objext conftest$ac_exeext
20608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20609 (eval $ac_link) 2>conftest.er1
20610 ac_status=$?
20611 grep -v '^ *+' conftest.er1 >conftest.err
20612 rm -f conftest.er1
20613 cat conftest.err >&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); } &&
20616 { ac_try='test -z "$ac_c_werror_flag"
20617 || test ! -s conftest.err'
20618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20619 (eval $ac_try) 2>&5
20620 ac_status=$?
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); }; } &&
20623 { ac_try='test -s conftest$ac_exeext'
20624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20625 (eval $ac_try) 2>&5
20626 ac_status=$?
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); }; }; then
20629 ac_cv_have_getc_unlocked=yes
20630 else
20631 echo "$as_me: failed program was:" >&5
20632 sed 's/^/| /' conftest.$ac_ext >&5
20634 ac_cv_have_getc_unlocked=no
20636 rm -f conftest.err conftest.$ac_objext \
20637 conftest$ac_exeext conftest.$ac_ext
20640 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
20641 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
20642 if test "$ac_cv_have_getc_unlocked" = yes
20643 then
20645 cat >>confdefs.h <<\_ACEOF
20646 #define HAVE_GETC_UNLOCKED 1
20647 _ACEOF
20651 # check where readline lives
20652 # save the value of LIBS so we don't actually link Python with readline
20653 LIBS_no_readline=$LIBS
20655 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20656 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20657 if test "${ac_cv_lib_readline_readline+set}" = set; then
20658 echo $ECHO_N "(cached) $ECHO_C" >&6
20659 else
20660 ac_check_lib_save_LIBS=$LIBS
20661 LIBS="-lreadline $LIBS"
20662 cat >conftest.$ac_ext <<_ACEOF
20663 /* confdefs.h. */
20664 _ACEOF
20665 cat confdefs.h >>conftest.$ac_ext
20666 cat >>conftest.$ac_ext <<_ACEOF
20667 /* end confdefs.h. */
20669 /* Override any gcc2 internal prototype to avoid an error. */
20670 #ifdef __cplusplus
20671 extern "C"
20672 #endif
20673 /* We use char because int might match the return type of a gcc2
20674 builtin and then its argument prototype would still apply. */
20675 char readline ();
20677 main ()
20679 readline ();
20681 return 0;
20683 _ACEOF
20684 rm -f conftest.$ac_objext conftest$ac_exeext
20685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20686 (eval $ac_link) 2>conftest.er1
20687 ac_status=$?
20688 grep -v '^ *+' conftest.er1 >conftest.err
20689 rm -f conftest.er1
20690 cat conftest.err >&5
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); } &&
20693 { ac_try='test -z "$ac_c_werror_flag"
20694 || test ! -s conftest.err'
20695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20696 (eval $ac_try) 2>&5
20697 ac_status=$?
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); }; } &&
20700 { ac_try='test -s conftest$ac_exeext'
20701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20702 (eval $ac_try) 2>&5
20703 ac_status=$?
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); }; }; then
20706 ac_cv_lib_readline_readline=yes
20707 else
20708 echo "$as_me: failed program was:" >&5
20709 sed 's/^/| /' conftest.$ac_ext >&5
20711 ac_cv_lib_readline_readline=no
20713 rm -f conftest.err conftest.$ac_objext \
20714 conftest$ac_exeext conftest.$ac_ext
20715 LIBS=$ac_check_lib_save_LIBS
20717 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20718 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20719 if test $ac_cv_lib_readline_readline = yes; then
20720 cat >>confdefs.h <<_ACEOF
20721 #define HAVE_LIBREADLINE 1
20722 _ACEOF
20724 LIBS="-lreadline $LIBS"
20728 if test "$ac_cv_have_readline_readline" = no
20729 then
20731 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
20732 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
20733 if test "${ac_cv_lib_termcap_readline+set}" = set; then
20734 echo $ECHO_N "(cached) $ECHO_C" >&6
20735 else
20736 ac_check_lib_save_LIBS=$LIBS
20737 LIBS="-ltermcap $LIBS"
20738 cat >conftest.$ac_ext <<_ACEOF
20739 /* confdefs.h. */
20740 _ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h. */
20745 /* Override any gcc2 internal prototype to avoid an error. */
20746 #ifdef __cplusplus
20747 extern "C"
20748 #endif
20749 /* We use char because int might match the return type of a gcc2
20750 builtin and then its argument prototype would still apply. */
20751 char readline ();
20753 main ()
20755 readline ();
20757 return 0;
20759 _ACEOF
20760 rm -f conftest.$ac_objext conftest$ac_exeext
20761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20762 (eval $ac_link) 2>conftest.er1
20763 ac_status=$?
20764 grep -v '^ *+' conftest.er1 >conftest.err
20765 rm -f conftest.er1
20766 cat conftest.err >&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); } &&
20769 { ac_try='test -z "$ac_c_werror_flag"
20770 || test ! -s conftest.err'
20771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772 (eval $ac_try) 2>&5
20773 ac_status=$?
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); }; } &&
20776 { ac_try='test -s conftest$ac_exeext'
20777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778 (eval $ac_try) 2>&5
20779 ac_status=$?
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); }; }; then
20782 ac_cv_lib_termcap_readline=yes
20783 else
20784 echo "$as_me: failed program was:" >&5
20785 sed 's/^/| /' conftest.$ac_ext >&5
20787 ac_cv_lib_termcap_readline=no
20789 rm -f conftest.err conftest.$ac_objext \
20790 conftest$ac_exeext conftest.$ac_ext
20791 LIBS=$ac_check_lib_save_LIBS
20793 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
20794 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
20795 if test $ac_cv_lib_termcap_readline = yes; then
20796 cat >>confdefs.h <<_ACEOF
20797 #define HAVE_LIBTERMCAP 1
20798 _ACEOF
20800 LIBS="-ltermcap $LIBS"
20806 # check for readline 2.1
20807 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
20808 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
20809 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
20810 echo $ECHO_N "(cached) $ECHO_C" >&6
20811 else
20812 ac_check_lib_save_LIBS=$LIBS
20813 LIBS="-lreadline $LIBS"
20814 cat >conftest.$ac_ext <<_ACEOF
20815 /* confdefs.h. */
20816 _ACEOF
20817 cat confdefs.h >>conftest.$ac_ext
20818 cat >>conftest.$ac_ext <<_ACEOF
20819 /* end confdefs.h. */
20821 /* Override any gcc2 internal prototype to avoid an error. */
20822 #ifdef __cplusplus
20823 extern "C"
20824 #endif
20825 /* We use char because int might match the return type of a gcc2
20826 builtin and then its argument prototype would still apply. */
20827 char rl_callback_handler_install ();
20829 main ()
20831 rl_callback_handler_install ();
20833 return 0;
20835 _ACEOF
20836 rm -f conftest.$ac_objext conftest$ac_exeext
20837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20838 (eval $ac_link) 2>conftest.er1
20839 ac_status=$?
20840 grep -v '^ *+' conftest.er1 >conftest.err
20841 rm -f conftest.er1
20842 cat conftest.err >&5
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); } &&
20845 { ac_try='test -z "$ac_c_werror_flag"
20846 || test ! -s conftest.err'
20847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20848 (eval $ac_try) 2>&5
20849 ac_status=$?
20850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851 (exit $ac_status); }; } &&
20852 { ac_try='test -s conftest$ac_exeext'
20853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20854 (eval $ac_try) 2>&5
20855 ac_status=$?
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); }; }; then
20858 ac_cv_lib_readline_rl_callback_handler_install=yes
20859 else
20860 echo "$as_me: failed program was:" >&5
20861 sed 's/^/| /' conftest.$ac_ext >&5
20863 ac_cv_lib_readline_rl_callback_handler_install=no
20865 rm -f conftest.err conftest.$ac_objext \
20866 conftest$ac_exeext conftest.$ac_ext
20867 LIBS=$ac_check_lib_save_LIBS
20869 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
20870 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
20871 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
20873 cat >>confdefs.h <<\_ACEOF
20874 #define HAVE_RL_CALLBACK 1
20875 _ACEOF
20880 # check for readline 2.2
20881 cat >conftest.$ac_ext <<_ACEOF
20882 /* confdefs.h. */
20883 _ACEOF
20884 cat confdefs.h >>conftest.$ac_ext
20885 cat >>conftest.$ac_ext <<_ACEOF
20886 /* end confdefs.h. */
20887 #include <readline/readline.h>
20888 _ACEOF
20889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20891 ac_status=$?
20892 grep -v '^ *+' conftest.er1 >conftest.err
20893 rm -f conftest.er1
20894 cat conftest.err >&5
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); } >/dev/null; then
20897 if test -s conftest.err; then
20898 ac_cpp_err=$ac_c_preproc_warn_flag
20899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20900 else
20901 ac_cpp_err=
20903 else
20904 ac_cpp_err=yes
20906 if test -z "$ac_cpp_err"; then
20907 have_readline=yes
20908 else
20909 echo "$as_me: failed program was:" >&5
20910 sed 's/^/| /' conftest.$ac_ext >&5
20912 have_readline=no
20914 rm -f conftest.err conftest.$ac_ext
20915 if test $have_readline = yes
20916 then
20917 cat >conftest.$ac_ext <<_ACEOF
20918 /* confdefs.h. */
20919 _ACEOF
20920 cat confdefs.h >>conftest.$ac_ext
20921 cat >>conftest.$ac_ext <<_ACEOF
20922 /* end confdefs.h. */
20923 #include <readline/readline.h>
20925 _ACEOF
20926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20927 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
20929 cat >>confdefs.h <<\_ACEOF
20930 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20931 _ACEOF
20934 rm -f conftest*
20938 # check for readline 4.0
20939 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
20940 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
20941 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
20942 echo $ECHO_N "(cached) $ECHO_C" >&6
20943 else
20944 ac_check_lib_save_LIBS=$LIBS
20945 LIBS="-lreadline $LIBS"
20946 cat >conftest.$ac_ext <<_ACEOF
20947 /* confdefs.h. */
20948 _ACEOF
20949 cat confdefs.h >>conftest.$ac_ext
20950 cat >>conftest.$ac_ext <<_ACEOF
20951 /* end confdefs.h. */
20953 /* Override any gcc2 internal prototype to avoid an error. */
20954 #ifdef __cplusplus
20955 extern "C"
20956 #endif
20957 /* We use char because int might match the return type of a gcc2
20958 builtin and then its argument prototype would still apply. */
20959 char rl_pre_input_hook ();
20961 main ()
20963 rl_pre_input_hook ();
20965 return 0;
20967 _ACEOF
20968 rm -f conftest.$ac_objext conftest$ac_exeext
20969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20970 (eval $ac_link) 2>conftest.er1
20971 ac_status=$?
20972 grep -v '^ *+' conftest.er1 >conftest.err
20973 rm -f conftest.er1
20974 cat conftest.err >&5
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); } &&
20977 { ac_try='test -z "$ac_c_werror_flag"
20978 || test ! -s conftest.err'
20979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20980 (eval $ac_try) 2>&5
20981 ac_status=$?
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); }; } &&
20984 { ac_try='test -s conftest$ac_exeext'
20985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20986 (eval $ac_try) 2>&5
20987 ac_status=$?
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); }; }; then
20990 ac_cv_lib_readline_rl_pre_input_hook=yes
20991 else
20992 echo "$as_me: failed program was:" >&5
20993 sed 's/^/| /' conftest.$ac_ext >&5
20995 ac_cv_lib_readline_rl_pre_input_hook=no
20997 rm -f conftest.err conftest.$ac_objext \
20998 conftest$ac_exeext conftest.$ac_ext
20999 LIBS=$ac_check_lib_save_LIBS
21001 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
21002 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
21003 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
21005 cat >>confdefs.h <<\_ACEOF
21006 #define HAVE_RL_PRE_INPUT_HOOK 1
21007 _ACEOF
21012 # check for readline 4.2
21013 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
21014 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
21015 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
21016 echo $ECHO_N "(cached) $ECHO_C" >&6
21017 else
21018 ac_check_lib_save_LIBS=$LIBS
21019 LIBS="-lreadline $LIBS"
21020 cat >conftest.$ac_ext <<_ACEOF
21021 /* confdefs.h. */
21022 _ACEOF
21023 cat confdefs.h >>conftest.$ac_ext
21024 cat >>conftest.$ac_ext <<_ACEOF
21025 /* end confdefs.h. */
21027 /* Override any gcc2 internal prototype to avoid an error. */
21028 #ifdef __cplusplus
21029 extern "C"
21030 #endif
21031 /* We use char because int might match the return type of a gcc2
21032 builtin and then its argument prototype would still apply. */
21033 char rl_completion_matches ();
21035 main ()
21037 rl_completion_matches ();
21039 return 0;
21041 _ACEOF
21042 rm -f conftest.$ac_objext conftest$ac_exeext
21043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21044 (eval $ac_link) 2>conftest.er1
21045 ac_status=$?
21046 grep -v '^ *+' conftest.er1 >conftest.err
21047 rm -f conftest.er1
21048 cat conftest.err >&5
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); } &&
21051 { ac_try='test -z "$ac_c_werror_flag"
21052 || test ! -s conftest.err'
21053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21054 (eval $ac_try) 2>&5
21055 ac_status=$?
21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057 (exit $ac_status); }; } &&
21058 { ac_try='test -s conftest$ac_exeext'
21059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21060 (eval $ac_try) 2>&5
21061 ac_status=$?
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); }; }; then
21064 ac_cv_lib_readline_rl_completion_matches=yes
21065 else
21066 echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21069 ac_cv_lib_readline_rl_completion_matches=no
21071 rm -f conftest.err conftest.$ac_objext \
21072 conftest$ac_exeext conftest.$ac_ext
21073 LIBS=$ac_check_lib_save_LIBS
21075 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
21076 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
21077 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
21079 cat >>confdefs.h <<\_ACEOF
21080 #define HAVE_RL_COMPLETION_MATCHES 1
21081 _ACEOF
21086 # also in readline 4.2
21087 cat >conftest.$ac_ext <<_ACEOF
21088 /* confdefs.h. */
21089 _ACEOF
21090 cat confdefs.h >>conftest.$ac_ext
21091 cat >>conftest.$ac_ext <<_ACEOF
21092 /* end confdefs.h. */
21093 #include <readline/readline.h>
21094 _ACEOF
21095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21097 ac_status=$?
21098 grep -v '^ *+' conftest.er1 >conftest.err
21099 rm -f conftest.er1
21100 cat conftest.err >&5
21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 (exit $ac_status); } >/dev/null; then
21103 if test -s conftest.err; then
21104 ac_cpp_err=$ac_c_preproc_warn_flag
21105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21106 else
21107 ac_cpp_err=
21109 else
21110 ac_cpp_err=yes
21112 if test -z "$ac_cpp_err"; then
21113 have_readline=yes
21114 else
21115 echo "$as_me: failed program was:" >&5
21116 sed 's/^/| /' conftest.$ac_ext >&5
21118 have_readline=no
21120 rm -f conftest.err conftest.$ac_ext
21121 if test $have_readline = yes
21122 then
21123 cat >conftest.$ac_ext <<_ACEOF
21124 /* confdefs.h. */
21125 _ACEOF
21126 cat confdefs.h >>conftest.$ac_ext
21127 cat >>conftest.$ac_ext <<_ACEOF
21128 /* end confdefs.h. */
21129 #include <readline/readline.h>
21131 _ACEOF
21132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21133 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
21135 cat >>confdefs.h <<\_ACEOF
21136 #define HAVE_RL_CATCH_SIGNAL 1
21137 _ACEOF
21140 rm -f conftest*
21144 # End of readline checks: restore LIBS
21145 LIBS=$LIBS_no_readline
21147 echo "$as_me:$LINENO: checking for broken nice()" >&5
21148 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
21149 if test "${ac_cv_broken_nice+set}" = set; then
21150 echo $ECHO_N "(cached) $ECHO_C" >&6
21151 else
21153 if test "$cross_compiling" = yes; then
21154 ac_cv_broken_nice=no
21155 else
21156 cat >conftest.$ac_ext <<_ACEOF
21157 /* confdefs.h. */
21158 _ACEOF
21159 cat confdefs.h >>conftest.$ac_ext
21160 cat >>conftest.$ac_ext <<_ACEOF
21161 /* end confdefs.h. */
21163 int main()
21165 int val1 = nice(1);
21166 if (val1 != -1 && val1 == nice(2))
21167 exit(0);
21168 exit(1);
21171 _ACEOF
21172 rm -f conftest$ac_exeext
21173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21174 (eval $ac_link) 2>&5
21175 ac_status=$?
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21179 (eval $ac_try) 2>&5
21180 ac_status=$?
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); }; }; then
21183 ac_cv_broken_nice=yes
21184 else
21185 echo "$as_me: program exited with status $ac_status" >&5
21186 echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.$ac_ext >&5
21189 ( exit $ac_status )
21190 ac_cv_broken_nice=no
21192 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21196 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21197 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21198 if test "$ac_cv_broken_nice" = yes
21199 then
21201 cat >>confdefs.h <<\_ACEOF
21202 #define HAVE_BROKEN_NICE 1
21203 _ACEOF
21207 echo "$as_me:$LINENO: checking for broken poll()" >&5
21208 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21209 if test "$cross_compiling" = yes; then
21210 ac_cv_broken_poll=no
21211 else
21212 cat >conftest.$ac_ext <<_ACEOF
21213 /* confdefs.h. */
21214 _ACEOF
21215 cat confdefs.h >>conftest.$ac_ext
21216 cat >>conftest.$ac_ext <<_ACEOF
21217 /* end confdefs.h. */
21219 #include <poll.h>
21221 int main (void)
21223 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21225 close (42);
21227 int poll_test = poll (&poll_struct, 1, 0);
21229 if (poll_test < 0)
21231 exit(0);
21233 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21235 exit(0);
21237 else
21239 exit(1);
21243 _ACEOF
21244 rm -f conftest$ac_exeext
21245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21246 (eval $ac_link) 2>&5
21247 ac_status=$?
21248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21251 (eval $ac_try) 2>&5
21252 ac_status=$?
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); }; }; then
21255 ac_cv_broken_poll=yes
21256 else
21257 echo "$as_me: program exited with status $ac_status" >&5
21258 echo "$as_me: failed program was:" >&5
21259 sed 's/^/| /' conftest.$ac_ext >&5
21261 ( exit $ac_status )
21262 ac_cv_broken_poll=no
21264 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21266 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21267 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21268 if test "$ac_cv_broken_poll" = yes
21269 then
21271 cat >>confdefs.h <<\_ACEOF
21272 #define HAVE_BROKEN_POLL 1
21273 _ACEOF
21277 # Before we can test tzset, we need to check if struct tm has a tm_zone
21278 # (which is not required by ISO C or UNIX spec) and/or if we support
21279 # tzname[]
21280 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21281 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21282 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21283 echo $ECHO_N "(cached) $ECHO_C" >&6
21284 else
21285 cat >conftest.$ac_ext <<_ACEOF
21286 /* confdefs.h. */
21287 _ACEOF
21288 cat confdefs.h >>conftest.$ac_ext
21289 cat >>conftest.$ac_ext <<_ACEOF
21290 /* end confdefs.h. */
21291 #include <sys/types.h>
21292 #include <$ac_cv_struct_tm>
21296 main ()
21298 static struct tm ac_aggr;
21299 if (ac_aggr.tm_zone)
21300 return 0;
21302 return 0;
21304 _ACEOF
21305 rm -f conftest.$ac_objext
21306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21307 (eval $ac_compile) 2>conftest.er1
21308 ac_status=$?
21309 grep -v '^ *+' conftest.er1 >conftest.err
21310 rm -f conftest.er1
21311 cat conftest.err >&5
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); } &&
21314 { ac_try='test -z "$ac_c_werror_flag"
21315 || test ! -s conftest.err'
21316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21317 (eval $ac_try) 2>&5
21318 ac_status=$?
21319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320 (exit $ac_status); }; } &&
21321 { ac_try='test -s conftest.$ac_objext'
21322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21323 (eval $ac_try) 2>&5
21324 ac_status=$?
21325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326 (exit $ac_status); }; }; then
21327 ac_cv_member_struct_tm_tm_zone=yes
21328 else
21329 echo "$as_me: failed program was:" >&5
21330 sed 's/^/| /' conftest.$ac_ext >&5
21332 cat >conftest.$ac_ext <<_ACEOF
21333 /* confdefs.h. */
21334 _ACEOF
21335 cat confdefs.h >>conftest.$ac_ext
21336 cat >>conftest.$ac_ext <<_ACEOF
21337 /* end confdefs.h. */
21338 #include <sys/types.h>
21339 #include <$ac_cv_struct_tm>
21343 main ()
21345 static struct tm ac_aggr;
21346 if (sizeof ac_aggr.tm_zone)
21347 return 0;
21349 return 0;
21351 _ACEOF
21352 rm -f conftest.$ac_objext
21353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21354 (eval $ac_compile) 2>conftest.er1
21355 ac_status=$?
21356 grep -v '^ *+' conftest.er1 >conftest.err
21357 rm -f conftest.er1
21358 cat conftest.err >&5
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); } &&
21361 { ac_try='test -z "$ac_c_werror_flag"
21362 || test ! -s conftest.err'
21363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21364 (eval $ac_try) 2>&5
21365 ac_status=$?
21366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367 (exit $ac_status); }; } &&
21368 { ac_try='test -s conftest.$ac_objext'
21369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21370 (eval $ac_try) 2>&5
21371 ac_status=$?
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); }; }; then
21374 ac_cv_member_struct_tm_tm_zone=yes
21375 else
21376 echo "$as_me: failed program was:" >&5
21377 sed 's/^/| /' conftest.$ac_ext >&5
21379 ac_cv_member_struct_tm_tm_zone=no
21381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21385 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21386 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21387 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21389 cat >>confdefs.h <<_ACEOF
21390 #define HAVE_STRUCT_TM_TM_ZONE 1
21391 _ACEOF
21396 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21398 cat >>confdefs.h <<\_ACEOF
21399 #define HAVE_TM_ZONE 1
21400 _ACEOF
21402 else
21403 echo "$as_me:$LINENO: checking for tzname" >&5
21404 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21405 if test "${ac_cv_var_tzname+set}" = set; then
21406 echo $ECHO_N "(cached) $ECHO_C" >&6
21407 else
21408 cat >conftest.$ac_ext <<_ACEOF
21409 /* confdefs.h. */
21410 _ACEOF
21411 cat confdefs.h >>conftest.$ac_ext
21412 cat >>conftest.$ac_ext <<_ACEOF
21413 /* end confdefs.h. */
21414 #include <time.h>
21415 #ifndef tzname /* For SGI. */
21416 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21417 #endif
21420 main ()
21422 atoi(*tzname);
21424 return 0;
21426 _ACEOF
21427 rm -f conftest.$ac_objext conftest$ac_exeext
21428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21429 (eval $ac_link) 2>conftest.er1
21430 ac_status=$?
21431 grep -v '^ *+' conftest.er1 >conftest.err
21432 rm -f conftest.er1
21433 cat conftest.err >&5
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); } &&
21436 { ac_try='test -z "$ac_c_werror_flag"
21437 || test ! -s conftest.err'
21438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21439 (eval $ac_try) 2>&5
21440 ac_status=$?
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); }; } &&
21443 { ac_try='test -s conftest$ac_exeext'
21444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21445 (eval $ac_try) 2>&5
21446 ac_status=$?
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); }; }; then
21449 ac_cv_var_tzname=yes
21450 else
21451 echo "$as_me: failed program was:" >&5
21452 sed 's/^/| /' conftest.$ac_ext >&5
21454 ac_cv_var_tzname=no
21456 rm -f conftest.err conftest.$ac_objext \
21457 conftest$ac_exeext conftest.$ac_ext
21459 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21460 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21461 if test $ac_cv_var_tzname = yes; then
21463 cat >>confdefs.h <<\_ACEOF
21464 #define HAVE_TZNAME 1
21465 _ACEOF
21471 # check tzset(3) exists and works like we expect it to
21472 echo "$as_me:$LINENO: checking for working tzset()" >&5
21473 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
21474 if test "${ac_cv_working_tzset+set}" = set; then
21475 echo $ECHO_N "(cached) $ECHO_C" >&6
21476 else
21478 if test "$cross_compiling" = yes; then
21479 ac_cv_working_tzset=no
21480 else
21481 cat >conftest.$ac_ext <<_ACEOF
21482 /* confdefs.h. */
21483 _ACEOF
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h. */
21488 #include <stdlib.h>
21489 #include <time.h>
21490 #include <string.h>
21492 #if HAVE_TZNAME
21493 extern char *tzname[];
21494 #endif
21496 int main()
21498 /* Note that we need to ensure that not only does tzset(3)
21499 do 'something' with localtime, but it works as documented
21500 in the library reference and as expected by the test suite.
21501 This includes making sure that tzname is set properly if
21502 tm->tm_zone does not exist since it is the alternative way
21503 of getting timezone info.
21505 Red Hat 6.2 doesn't understand the southern hemisphere
21506 after New Year's Day.
21509 time_t groundhogday = 1044144000; /* GMT-based */
21510 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
21512 putenv("TZ=UTC+0");
21513 tzset();
21514 if (localtime(&groundhogday)->tm_hour != 0)
21515 exit(1);
21516 #if HAVE_TZNAME
21517 /* For UTC, tzname[1] is sometimes "", sometimes " " */
21518 if (strcmp(tzname[0], "UTC") ||
21519 (tzname[1][0] != 0 && tzname[1][0] != ' '))
21520 exit(1);
21521 #endif
21523 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
21524 tzset();
21525 if (localtime(&groundhogday)->tm_hour != 19)
21526 exit(1);
21527 #if HAVE_TZNAME
21528 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
21529 exit(1);
21530 #endif
21532 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
21533 tzset();
21534 if (localtime(&groundhogday)->tm_hour != 11)
21535 exit(1);
21536 #if HAVE_TZNAME
21537 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
21538 exit(1);
21539 #endif
21541 #if HAVE_STRUCT_TM_TM_ZONE
21542 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
21543 exit(1);
21544 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
21545 exit(1);
21546 #endif
21548 exit(0);
21551 _ACEOF
21552 rm -f conftest$ac_exeext
21553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21554 (eval $ac_link) 2>&5
21555 ac_status=$?
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21559 (eval $ac_try) 2>&5
21560 ac_status=$?
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); }; }; then
21563 ac_cv_working_tzset=yes
21564 else
21565 echo "$as_me: program exited with status $ac_status" >&5
21566 echo "$as_me: failed program was:" >&5
21567 sed 's/^/| /' conftest.$ac_ext >&5
21569 ( exit $ac_status )
21570 ac_cv_working_tzset=no
21572 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21576 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
21577 echo "${ECHO_T}$ac_cv_working_tzset" >&6
21578 if test "$ac_cv_working_tzset" = yes
21579 then
21581 cat >>confdefs.h <<\_ACEOF
21582 #define HAVE_WORKING_TZSET 1
21583 _ACEOF
21587 # Look for subsecond timestamps in struct stat
21588 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
21589 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
21590 if test "${ac_cv_stat_tv_nsec+set}" = set; then
21591 echo $ECHO_N "(cached) $ECHO_C" >&6
21592 else
21593 cat >conftest.$ac_ext <<_ACEOF
21594 /* confdefs.h. */
21595 _ACEOF
21596 cat confdefs.h >>conftest.$ac_ext
21597 cat >>conftest.$ac_ext <<_ACEOF
21598 /* end confdefs.h. */
21599 #include <sys/stat.h>
21601 main ()
21604 struct stat st;
21605 st.st_mtim.tv_nsec = 1;
21608 return 0;
21610 _ACEOF
21611 rm -f conftest.$ac_objext
21612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21613 (eval $ac_compile) 2>conftest.er1
21614 ac_status=$?
21615 grep -v '^ *+' conftest.er1 >conftest.err
21616 rm -f conftest.er1
21617 cat conftest.err >&5
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); } &&
21620 { ac_try='test -z "$ac_c_werror_flag"
21621 || test ! -s conftest.err'
21622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21623 (eval $ac_try) 2>&5
21624 ac_status=$?
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); }; } &&
21627 { ac_try='test -s conftest.$ac_objext'
21628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21629 (eval $ac_try) 2>&5
21630 ac_status=$?
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); }; }; then
21633 ac_cv_stat_tv_nsec=yes
21634 else
21635 echo "$as_me: failed program was:" >&5
21636 sed 's/^/| /' conftest.$ac_ext >&5
21638 ac_cv_stat_tv_nsec=no
21640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21643 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
21644 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
21645 if test "$ac_cv_stat_tv_nsec" = yes
21646 then
21648 cat >>confdefs.h <<\_ACEOF
21649 #define HAVE_STAT_TV_NSEC 1
21650 _ACEOF
21654 # Look for BSD style subsecond timestamps in struct stat
21655 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
21656 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
21657 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
21658 echo $ECHO_N "(cached) $ECHO_C" >&6
21659 else
21660 cat >conftest.$ac_ext <<_ACEOF
21661 /* confdefs.h. */
21662 _ACEOF
21663 cat confdefs.h >>conftest.$ac_ext
21664 cat >>conftest.$ac_ext <<_ACEOF
21665 /* end confdefs.h. */
21666 #include <sys/stat.h>
21668 main ()
21671 struct stat st;
21672 st.st_mtimespec.tv_nsec = 1;
21675 return 0;
21677 _ACEOF
21678 rm -f conftest.$ac_objext
21679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21680 (eval $ac_compile) 2>conftest.er1
21681 ac_status=$?
21682 grep -v '^ *+' conftest.er1 >conftest.err
21683 rm -f conftest.er1
21684 cat conftest.err >&5
21685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); } &&
21687 { ac_try='test -z "$ac_c_werror_flag"
21688 || test ! -s conftest.err'
21689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21690 (eval $ac_try) 2>&5
21691 ac_status=$?
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); }; } &&
21694 { ac_try='test -s conftest.$ac_objext'
21695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21696 (eval $ac_try) 2>&5
21697 ac_status=$?
21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); }; }; then
21700 ac_cv_stat_tv_nsec2=yes
21701 else
21702 echo "$as_me: failed program was:" >&5
21703 sed 's/^/| /' conftest.$ac_ext >&5
21705 ac_cv_stat_tv_nsec2=no
21707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21710 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
21711 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
21712 if test "$ac_cv_stat_tv_nsec2" = yes
21713 then
21715 cat >>confdefs.h <<\_ACEOF
21716 #define HAVE_STAT_TV_NSEC2 1
21717 _ACEOF
21721 # On HP/UX 11.0, mvwdelch is a block with a return statement
21722 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
21723 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
21724 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
21725 echo $ECHO_N "(cached) $ECHO_C" >&6
21726 else
21727 cat >conftest.$ac_ext <<_ACEOF
21728 /* confdefs.h. */
21729 _ACEOF
21730 cat confdefs.h >>conftest.$ac_ext
21731 cat >>conftest.$ac_ext <<_ACEOF
21732 /* end confdefs.h. */
21733 #include <curses.h>
21735 main ()
21738 int rtn;
21739 rtn = mvwdelch(0,0,0);
21742 return 0;
21744 _ACEOF
21745 rm -f conftest.$ac_objext
21746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21747 (eval $ac_compile) 2>conftest.er1
21748 ac_status=$?
21749 grep -v '^ *+' conftest.er1 >conftest.err
21750 rm -f conftest.er1
21751 cat conftest.err >&5
21752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); } &&
21754 { ac_try='test -z "$ac_c_werror_flag"
21755 || test ! -s conftest.err'
21756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21757 (eval $ac_try) 2>&5
21758 ac_status=$?
21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); }; } &&
21761 { ac_try='test -s conftest.$ac_objext'
21762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21763 (eval $ac_try) 2>&5
21764 ac_status=$?
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); }; }; then
21767 ac_cv_mvwdelch_is_expression=yes
21768 else
21769 echo "$as_me: failed program was:" >&5
21770 sed 's/^/| /' conftest.$ac_ext >&5
21772 ac_cv_mvwdelch_is_expression=no
21774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21777 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
21778 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
21780 if test "$ac_cv_mvwdelch_is_expression" = yes
21781 then
21783 cat >>confdefs.h <<\_ACEOF
21784 #define MVWDELCH_IS_EXPRESSION 1
21785 _ACEOF
21789 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
21790 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
21791 if test "${ac_cv_window_has_flags+set}" = set; then
21792 echo $ECHO_N "(cached) $ECHO_C" >&6
21793 else
21794 cat >conftest.$ac_ext <<_ACEOF
21795 /* confdefs.h. */
21796 _ACEOF
21797 cat confdefs.h >>conftest.$ac_ext
21798 cat >>conftest.$ac_ext <<_ACEOF
21799 /* end confdefs.h. */
21800 #include <curses.h>
21802 main ()
21805 WINDOW *w;
21806 w->_flags = 0;
21809 return 0;
21811 _ACEOF
21812 rm -f conftest.$ac_objext
21813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21814 (eval $ac_compile) 2>conftest.er1
21815 ac_status=$?
21816 grep -v '^ *+' conftest.er1 >conftest.err
21817 rm -f conftest.er1
21818 cat conftest.err >&5
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); } &&
21821 { ac_try='test -z "$ac_c_werror_flag"
21822 || test ! -s conftest.err'
21823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21824 (eval $ac_try) 2>&5
21825 ac_status=$?
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); }; } &&
21828 { ac_try='test -s conftest.$ac_objext'
21829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21830 (eval $ac_try) 2>&5
21831 ac_status=$?
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); }; }; then
21834 ac_cv_window_has_flags=yes
21835 else
21836 echo "$as_me: failed program was:" >&5
21837 sed 's/^/| /' conftest.$ac_ext >&5
21839 ac_cv_window_has_flags=no
21841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21844 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
21845 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
21848 if test "$ac_cv_window_has_flags" = yes
21849 then
21851 cat >>confdefs.h <<\_ACEOF
21852 #define WINDOW_HAS_FLAGS 1
21853 _ACEOF
21857 echo "$as_me:$LINENO: checking for is_term_resized" >&5
21858 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6
21859 cat >conftest.$ac_ext <<_ACEOF
21860 /* confdefs.h. */
21861 _ACEOF
21862 cat confdefs.h >>conftest.$ac_ext
21863 cat >>conftest.$ac_ext <<_ACEOF
21864 /* end confdefs.h. */
21865 #include <curses.h>
21867 main ()
21869 void *x=is_term_resized
21871 return 0;
21873 _ACEOF
21874 rm -f conftest.$ac_objext
21875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21876 (eval $ac_compile) 2>conftest.er1
21877 ac_status=$?
21878 grep -v '^ *+' conftest.er1 >conftest.err
21879 rm -f conftest.er1
21880 cat conftest.err >&5
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); } &&
21883 { ac_try='test -z "$ac_c_werror_flag"
21884 || test ! -s conftest.err'
21885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21886 (eval $ac_try) 2>&5
21887 ac_status=$?
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); }; } &&
21890 { ac_try='test -s conftest.$ac_objext'
21891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21892 (eval $ac_try) 2>&5
21893 ac_status=$?
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); }; }; then
21897 cat >>confdefs.h <<\_ACEOF
21898 #define HAVE_CURSES_IS_TERM_RESIZED 1
21899 _ACEOF
21901 echo "$as_me:$LINENO: result: yes" >&5
21902 echo "${ECHO_T}yes" >&6
21903 else
21904 echo "$as_me: failed program was:" >&5
21905 sed 's/^/| /' conftest.$ac_ext >&5
21907 echo "$as_me:$LINENO: result: no" >&5
21908 echo "${ECHO_T}no" >&6
21911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21913 echo "$as_me:$LINENO: checking for resize_term" >&5
21914 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6
21915 cat >conftest.$ac_ext <<_ACEOF
21916 /* confdefs.h. */
21917 _ACEOF
21918 cat confdefs.h >>conftest.$ac_ext
21919 cat >>conftest.$ac_ext <<_ACEOF
21920 /* end confdefs.h. */
21921 #include <curses.h>
21923 main ()
21925 void *x=resize_term
21927 return 0;
21929 _ACEOF
21930 rm -f conftest.$ac_objext
21931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21932 (eval $ac_compile) 2>conftest.er1
21933 ac_status=$?
21934 grep -v '^ *+' conftest.er1 >conftest.err
21935 rm -f conftest.er1
21936 cat conftest.err >&5
21937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); } &&
21939 { ac_try='test -z "$ac_c_werror_flag"
21940 || test ! -s conftest.err'
21941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21942 (eval $ac_try) 2>&5
21943 ac_status=$?
21944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945 (exit $ac_status); }; } &&
21946 { ac_try='test -s conftest.$ac_objext'
21947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21948 (eval $ac_try) 2>&5
21949 ac_status=$?
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); }; }; then
21953 cat >>confdefs.h <<\_ACEOF
21954 #define HAVE_CURSES_RESIZE_TERM 1
21955 _ACEOF
21957 echo "$as_me:$LINENO: result: yes" >&5
21958 echo "${ECHO_T}yes" >&6
21959 else
21960 echo "$as_me: failed program was:" >&5
21961 sed 's/^/| /' conftest.$ac_ext >&5
21963 echo "$as_me:$LINENO: result: no" >&5
21964 echo "${ECHO_T}no" >&6
21967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21969 echo "$as_me:$LINENO: checking for resizeterm" >&5
21970 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6
21971 cat >conftest.$ac_ext <<_ACEOF
21972 /* confdefs.h. */
21973 _ACEOF
21974 cat confdefs.h >>conftest.$ac_ext
21975 cat >>conftest.$ac_ext <<_ACEOF
21976 /* end confdefs.h. */
21977 #include <curses.h>
21979 main ()
21981 void *x=resizeterm
21983 return 0;
21985 _ACEOF
21986 rm -f conftest.$ac_objext
21987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21988 (eval $ac_compile) 2>conftest.er1
21989 ac_status=$?
21990 grep -v '^ *+' conftest.er1 >conftest.err
21991 rm -f conftest.er1
21992 cat conftest.err >&5
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); } &&
21995 { ac_try='test -z "$ac_c_werror_flag"
21996 || test ! -s conftest.err'
21997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21998 (eval $ac_try) 2>&5
21999 ac_status=$?
22000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001 (exit $ac_status); }; } &&
22002 { ac_try='test -s conftest.$ac_objext'
22003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22004 (eval $ac_try) 2>&5
22005 ac_status=$?
22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); }; }; then
22009 cat >>confdefs.h <<\_ACEOF
22010 #define HAVE_CURSES_RESIZETERM 1
22011 _ACEOF
22013 echo "$as_me:$LINENO: result: yes" >&5
22014 echo "${ECHO_T}yes" >&6
22015 else
22016 echo "$as_me: failed program was:" >&5
22017 sed 's/^/| /' conftest.$ac_ext >&5
22019 echo "$as_me:$LINENO: result: no" >&5
22020 echo "${ECHO_T}no" >&6
22023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22025 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
22026 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
22028 if test -e /dev/ptmx
22029 then
22030 echo "$as_me:$LINENO: result: yes" >&5
22031 echo "${ECHO_T}yes" >&6
22033 cat >>confdefs.h <<\_ACEOF
22034 #define HAVE_DEV_PTMX 1
22035 _ACEOF
22037 else
22038 echo "$as_me:$LINENO: result: no" >&5
22039 echo "${ECHO_T}no" >&6
22042 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
22043 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
22045 if test -e /dev/ptc
22046 then
22047 echo "$as_me:$LINENO: result: yes" >&5
22048 echo "${ECHO_T}yes" >&6
22050 cat >>confdefs.h <<\_ACEOF
22051 #define HAVE_DEV_PTC 1
22052 _ACEOF
22054 else
22055 echo "$as_me:$LINENO: result: no" >&5
22056 echo "${ECHO_T}no" >&6
22059 echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
22060 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6
22061 if test "$cross_compiling" = yes; then
22062 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22063 See \`config.log' for more details." >&5
22064 echo "$as_me: error: cannot run test program while cross compiling
22065 See \`config.log' for more details." >&2;}
22066 { (exit 1); exit 1; }; }
22067 else
22068 cat >conftest.$ac_ext <<_ACEOF
22069 /* confdefs.h. */
22070 _ACEOF
22071 cat confdefs.h >>conftest.$ac_ext
22072 cat >>conftest.$ac_ext <<_ACEOF
22073 /* end confdefs.h. */
22074 #include <stdio.h>
22075 #include <stddef.h>
22076 #include <string.h>
22078 int main()
22080 char buffer[4];
22082 if(sprintf(buffer, "%zd", (size_t)123) < 0)
22083 return 1;
22085 if (strncmp(buffer, "123", 3))
22086 return 1;
22088 return 0;
22090 _ACEOF
22091 rm -f conftest$ac_exeext
22092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22093 (eval $ac_link) 2>&5
22094 ac_status=$?
22095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22098 (eval $ac_try) 2>&5
22099 ac_status=$?
22100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101 (exit $ac_status); }; }; then
22102 echo "$as_me:$LINENO: result: yes" >&5
22103 echo "${ECHO_T}yes" >&6
22105 cat >>confdefs.h <<\_ACEOF
22106 #define PY_FORMAT_SIZE_T "z"
22107 _ACEOF
22109 else
22110 echo "$as_me: program exited with status $ac_status" >&5
22111 echo "$as_me: failed program was:" >&5
22112 sed 's/^/| /' conftest.$ac_ext >&5
22114 ( exit $ac_status )
22115 echo "$as_me:$LINENO: result: no" >&5
22116 echo "${ECHO_T}no" >&6
22118 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22121 echo "$as_me:$LINENO: checking for socklen_t" >&5
22122 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
22123 if test "${ac_cv_type_socklen_t+set}" = set; then
22124 echo $ECHO_N "(cached) $ECHO_C" >&6
22125 else
22126 cat >conftest.$ac_ext <<_ACEOF
22127 /* confdefs.h. */
22128 _ACEOF
22129 cat confdefs.h >>conftest.$ac_ext
22130 cat >>conftest.$ac_ext <<_ACEOF
22131 /* end confdefs.h. */
22133 #ifdef HAVE_SYS_TYPES_H
22134 #include <sys/types.h>
22135 #endif
22136 #ifdef HAVE_SYS_SOCKET_H
22137 #include <sys/socket.h>
22138 #endif
22142 main ()
22144 if ((socklen_t *) 0)
22145 return 0;
22146 if (sizeof (socklen_t))
22147 return 0;
22149 return 0;
22151 _ACEOF
22152 rm -f conftest.$ac_objext
22153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22154 (eval $ac_compile) 2>conftest.er1
22155 ac_status=$?
22156 grep -v '^ *+' conftest.er1 >conftest.err
22157 rm -f conftest.er1
22158 cat conftest.err >&5
22159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); } &&
22161 { ac_try='test -z "$ac_c_werror_flag"
22162 || test ! -s conftest.err'
22163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22164 (eval $ac_try) 2>&5
22165 ac_status=$?
22166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167 (exit $ac_status); }; } &&
22168 { ac_try='test -s conftest.$ac_objext'
22169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22170 (eval $ac_try) 2>&5
22171 ac_status=$?
22172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173 (exit $ac_status); }; }; then
22174 ac_cv_type_socklen_t=yes
22175 else
22176 echo "$as_me: failed program was:" >&5
22177 sed 's/^/| /' conftest.$ac_ext >&5
22179 ac_cv_type_socklen_t=no
22181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22183 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22184 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
22185 if test $ac_cv_type_socklen_t = yes; then
22187 else
22189 cat >>confdefs.h <<\_ACEOF
22190 #define socklen_t int
22191 _ACEOF
22198 for h in `(cd $srcdir;echo Python/thread_*.h)`
22200 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
22201 done
22204 SRCDIRS="Parser Grammar Objects Python Modules Mac"
22205 echo "$as_me:$LINENO: checking for build directories" >&5
22206 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
22207 for dir in $SRCDIRS; do
22208 if test ! -d $dir; then
22209 mkdir $dir
22211 done
22212 echo "$as_me:$LINENO: result: done" >&5
22213 echo "${ECHO_T}done" >&6
22215 # generate output files
22216 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
22218 cat >confcache <<\_ACEOF
22219 # This file is a shell script that caches the results of configure
22220 # tests run on this system so they can be shared between configure
22221 # scripts and configure runs, see configure's option --config-cache.
22222 # It is not useful on other systems. If it contains results you don't
22223 # want to keep, you may remove or edit it.
22225 # config.status only pays attention to the cache file if you give it
22226 # the --recheck option to rerun configure.
22228 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22229 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22230 # following values.
22232 _ACEOF
22234 # The following way of writing the cache mishandles newlines in values,
22235 # but we know of no workaround that is simple, portable, and efficient.
22236 # So, don't put newlines in cache variables' values.
22237 # Ultrix sh set writes to stderr and can't be redirected directly,
22238 # and sets the high bit in the cache file unless we assign to the vars.
22240 (set) 2>&1 |
22241 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22242 *ac_space=\ *)
22243 # `set' does not quote correctly, so add quotes (double-quote
22244 # substitution turns \\\\ into \\, and sed turns \\ into \).
22245 sed -n \
22246 "s/'/'\\\\''/g;
22247 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22250 # `set' quotes correctly as required by POSIX, so do not add quotes.
22251 sed -n \
22252 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22254 esac;
22256 sed '
22257 t clear
22258 : clear
22259 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22260 t end
22261 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22262 : end' >>confcache
22263 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22264 if test -w $cache_file; then
22265 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22266 cat confcache >$cache_file
22267 else
22268 echo "not updating unwritable cache $cache_file"
22271 rm -f confcache
22273 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22274 # Let make expand exec_prefix.
22275 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22277 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22278 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22279 # trailing colons and then remove the whole line if VPATH becomes empty
22280 # (actually we leave an empty line to preserve line numbers).
22281 if test "x$srcdir" = x.; then
22282 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22283 s/:*\$(srcdir):*/:/;
22284 s/:*\${srcdir}:*/:/;
22285 s/:*@srcdir@:*/:/;
22286 s/^\([^=]*=[ ]*\):*/\1/;
22287 s/:*$//;
22288 s/^[^=]*=[ ]*$//;
22292 DEFS=-DHAVE_CONFIG_H
22294 ac_libobjs=
22295 ac_ltlibobjs=
22296 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22297 # 1. Remove the extension, and $U if already installed.
22298 ac_i=`echo "$ac_i" |
22299 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22300 # 2. Add them.
22301 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22302 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22303 done
22304 LIBOBJS=$ac_libobjs
22306 LTLIBOBJS=$ac_ltlibobjs
22310 : ${CONFIG_STATUS=./config.status}
22311 ac_clean_files_save=$ac_clean_files
22312 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22313 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22314 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22315 cat >$CONFIG_STATUS <<_ACEOF
22316 #! $SHELL
22317 # Generated by $as_me.
22318 # Run this file to recreate the current configuration.
22319 # Compiler output produced by configure, useful for debugging
22320 # configure, is in config.log if it exists.
22322 debug=false
22323 ac_cs_recheck=false
22324 ac_cs_silent=false
22325 SHELL=\${CONFIG_SHELL-$SHELL}
22326 _ACEOF
22328 cat >>$CONFIG_STATUS <<\_ACEOF
22329 ## --------------------- ##
22330 ## M4sh Initialization. ##
22331 ## --------------------- ##
22333 # Be Bourne compatible
22334 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22335 emulate sh
22336 NULLCMD=:
22337 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22338 # is contrary to our usage. Disable this feature.
22339 alias -g '${1+"$@"}'='"$@"'
22340 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22341 set -o posix
22343 DUALCASE=1; export DUALCASE # for MKS sh
22345 # Support unset when possible.
22346 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22347 as_unset=unset
22348 else
22349 as_unset=false
22353 # Work around bugs in pre-3.0 UWIN ksh.
22354 $as_unset ENV MAIL MAILPATH
22355 PS1='$ '
22356 PS2='> '
22357 PS4='+ '
22359 # NLS nuisances.
22360 for as_var in \
22361 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22362 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22363 LC_TELEPHONE LC_TIME
22365 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22366 eval $as_var=C; export $as_var
22367 else
22368 $as_unset $as_var
22370 done
22372 # Required to use basename.
22373 if expr a : '\(a\)' >/dev/null 2>&1; then
22374 as_expr=expr
22375 else
22376 as_expr=false
22379 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22380 as_basename=basename
22381 else
22382 as_basename=false
22386 # Name of the executable.
22387 as_me=`$as_basename "$0" ||
22388 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22389 X"$0" : 'X\(//\)$' \| \
22390 X"$0" : 'X\(/\)$' \| \
22391 . : '\(.\)' 2>/dev/null ||
22392 echo X/"$0" |
22393 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22394 /^X\/\(\/\/\)$/{ s//\1/; q; }
22395 /^X\/\(\/\).*/{ s//\1/; q; }
22396 s/.*/./; q'`
22399 # PATH needs CR, and LINENO needs CR and PATH.
22400 # Avoid depending upon Character Ranges.
22401 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22402 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22403 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22404 as_cr_digits='0123456789'
22405 as_cr_alnum=$as_cr_Letters$as_cr_digits
22407 # The user is always right.
22408 if test "${PATH_SEPARATOR+set}" != set; then
22409 echo "#! /bin/sh" >conf$$.sh
22410 echo "exit 0" >>conf$$.sh
22411 chmod +x conf$$.sh
22412 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22413 PATH_SEPARATOR=';'
22414 else
22415 PATH_SEPARATOR=:
22417 rm -f conf$$.sh
22421 as_lineno_1=$LINENO
22422 as_lineno_2=$LINENO
22423 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22424 test "x$as_lineno_1" != "x$as_lineno_2" &&
22425 test "x$as_lineno_3" = "x$as_lineno_2" || {
22426 # Find who we are. Look in the path if we contain no path at all
22427 # relative or not.
22428 case $0 in
22429 *[\\/]* ) as_myself=$0 ;;
22430 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22431 for as_dir in $PATH
22433 IFS=$as_save_IFS
22434 test -z "$as_dir" && as_dir=.
22435 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22436 done
22439 esac
22440 # We did not find ourselves, most probably we were run as `sh COMMAND'
22441 # in which case we are not to be found in the path.
22442 if test "x$as_myself" = x; then
22443 as_myself=$0
22445 if test ! -f "$as_myself"; then
22446 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22447 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22448 { (exit 1); exit 1; }; }
22450 case $CONFIG_SHELL in
22452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22453 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22455 IFS=$as_save_IFS
22456 test -z "$as_dir" && as_dir=.
22457 for as_base in sh bash ksh sh5; do
22458 case $as_dir in
22460 if ("$as_dir/$as_base" -c '
22461 as_lineno_1=$LINENO
22462 as_lineno_2=$LINENO
22463 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22464 test "x$as_lineno_1" != "x$as_lineno_2" &&
22465 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22466 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22467 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22468 CONFIG_SHELL=$as_dir/$as_base
22469 export CONFIG_SHELL
22470 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22471 fi;;
22472 esac
22473 done
22474 done
22476 esac
22478 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22479 # uniformly replaced by the line number. The first 'sed' inserts a
22480 # line-number line before each line; the second 'sed' does the real
22481 # work. The second script uses 'N' to pair each line-number line
22482 # with the numbered line, and appends trailing '-' during
22483 # substitution so that $LINENO is not a special case at line end.
22484 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22485 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22486 sed '=' <$as_myself |
22487 sed '
22489 s,$,-,
22490 : loop
22491 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22492 t loop
22493 s,-$,,
22494 s,^['$as_cr_digits']*\n,,
22495 ' >$as_me.lineno &&
22496 chmod +x $as_me.lineno ||
22497 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22498 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22499 { (exit 1); exit 1; }; }
22501 # Don't try to exec as it changes $[0], causing all sort of problems
22502 # (the dirname of $[0] is not the place where we might find the
22503 # original and so on. Autoconf is especially sensible to this).
22504 . ./$as_me.lineno
22505 # Exit status is that of the last command.
22506 exit
22510 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22511 *c*,-n*) ECHO_N= ECHO_C='
22512 ' ECHO_T=' ' ;;
22513 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22514 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22515 esac
22517 if expr a : '\(a\)' >/dev/null 2>&1; then
22518 as_expr=expr
22519 else
22520 as_expr=false
22523 rm -f conf$$ conf$$.exe conf$$.file
22524 echo >conf$$.file
22525 if ln -s conf$$.file conf$$ 2>/dev/null; then
22526 # We could just check for DJGPP; but this test a) works b) is more generic
22527 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22528 if test -f conf$$.exe; then
22529 # Don't use ln at all; we don't have any links
22530 as_ln_s='cp -p'
22531 else
22532 as_ln_s='ln -s'
22534 elif ln conf$$.file conf$$ 2>/dev/null; then
22535 as_ln_s=ln
22536 else
22537 as_ln_s='cp -p'
22539 rm -f conf$$ conf$$.exe conf$$.file
22541 if mkdir -p . 2>/dev/null; then
22542 as_mkdir_p=:
22543 else
22544 test -d ./-p && rmdir ./-p
22545 as_mkdir_p=false
22548 as_executable_p="test -f"
22550 # Sed expression to map a string onto a valid CPP name.
22551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22553 # Sed expression to map a string onto a valid variable name.
22554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22557 # IFS
22558 # We need space, tab and new line, in precisely that order.
22559 as_nl='
22561 IFS=" $as_nl"
22563 # CDPATH.
22564 $as_unset CDPATH
22566 exec 6>&1
22568 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22569 # report actual input values of CONFIG_FILES etc. instead of their
22570 # values after options handling. Logging --version etc. is OK.
22571 exec 5>>config.log
22573 echo
22574 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22575 ## Running $as_me. ##
22576 _ASBOX
22577 } >&5
22578 cat >&5 <<_CSEOF
22580 This file was extended by python $as_me 2.5, which was
22581 generated by GNU Autoconf 2.59. Invocation command line was
22583 CONFIG_FILES = $CONFIG_FILES
22584 CONFIG_HEADERS = $CONFIG_HEADERS
22585 CONFIG_LINKS = $CONFIG_LINKS
22586 CONFIG_COMMANDS = $CONFIG_COMMANDS
22587 $ $0 $@
22589 _CSEOF
22590 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22591 echo >&5
22592 _ACEOF
22594 # Files that config.status was made for.
22595 if test -n "$ac_config_files"; then
22596 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22599 if test -n "$ac_config_headers"; then
22600 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22603 if test -n "$ac_config_links"; then
22604 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22607 if test -n "$ac_config_commands"; then
22608 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22611 cat >>$CONFIG_STATUS <<\_ACEOF
22613 ac_cs_usage="\
22614 \`$as_me' instantiates files from templates according to the
22615 current configuration.
22617 Usage: $0 [OPTIONS] [FILE]...
22619 -h, --help print this help, then exit
22620 -V, --version print version number, then exit
22621 -q, --quiet do not print progress messages
22622 -d, --debug don't remove temporary files
22623 --recheck update $as_me by reconfiguring in the same conditions
22624 --file=FILE[:TEMPLATE]
22625 instantiate the configuration file FILE
22626 --header=FILE[:TEMPLATE]
22627 instantiate the configuration header FILE
22629 Configuration files:
22630 $config_files
22632 Configuration headers:
22633 $config_headers
22635 Report bugs to <bug-autoconf@gnu.org>."
22636 _ACEOF
22638 cat >>$CONFIG_STATUS <<_ACEOF
22639 ac_cs_version="\\
22640 python config.status 2.5
22641 configured by $0, generated by GNU Autoconf 2.59,
22642 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22644 Copyright (C) 2003 Free Software Foundation, Inc.
22645 This config.status script is free software; the Free Software Foundation
22646 gives unlimited permission to copy, distribute and modify it."
22647 srcdir=$srcdir
22648 INSTALL="$INSTALL"
22649 _ACEOF
22651 cat >>$CONFIG_STATUS <<\_ACEOF
22652 # If no file are specified by the user, then we need to provide default
22653 # value. By we need to know if files were specified by the user.
22654 ac_need_defaults=:
22655 while test $# != 0
22657 case $1 in
22658 --*=*)
22659 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22660 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22661 ac_shift=:
22664 ac_option=$1
22665 ac_optarg=$2
22666 ac_shift=shift
22668 *) # This is not an option, so the user has probably given explicit
22669 # arguments.
22670 ac_option=$1
22671 ac_need_defaults=false;;
22672 esac
22674 case $ac_option in
22675 # Handling of the options.
22676 _ACEOF
22677 cat >>$CONFIG_STATUS <<\_ACEOF
22678 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22679 ac_cs_recheck=: ;;
22680 --version | --vers* | -V )
22681 echo "$ac_cs_version"; exit 0 ;;
22682 --he | --h)
22683 # Conflict between --help and --header
22684 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22685 Try \`$0 --help' for more information." >&5
22686 echo "$as_me: error: ambiguous option: $1
22687 Try \`$0 --help' for more information." >&2;}
22688 { (exit 1); exit 1; }; };;
22689 --help | --hel | -h )
22690 echo "$ac_cs_usage"; exit 0 ;;
22691 --debug | --d* | -d )
22692 debug=: ;;
22693 --file | --fil | --fi | --f )
22694 $ac_shift
22695 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22696 ac_need_defaults=false;;
22697 --header | --heade | --head | --hea )
22698 $ac_shift
22699 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22700 ac_need_defaults=false;;
22701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22702 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22703 ac_cs_silent=: ;;
22705 # This is an error.
22706 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22707 Try \`$0 --help' for more information." >&5
22708 echo "$as_me: error: unrecognized option: $1
22709 Try \`$0 --help' for more information." >&2;}
22710 { (exit 1); exit 1; }; } ;;
22712 *) ac_config_targets="$ac_config_targets $1" ;;
22714 esac
22715 shift
22716 done
22718 ac_configure_extra_args=
22720 if $ac_cs_silent; then
22721 exec 6>/dev/null
22722 ac_configure_extra_args="$ac_configure_extra_args --silent"
22725 _ACEOF
22726 cat >>$CONFIG_STATUS <<_ACEOF
22727 if \$ac_cs_recheck; then
22728 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22729 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22732 _ACEOF
22738 cat >>$CONFIG_STATUS <<\_ACEOF
22739 for ac_config_target in $ac_config_targets
22741 case "$ac_config_target" in
22742 # Handling of arguments.
22743 "Mac/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
22744 "Mac/PythonLauncher/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
22745 "Mac/IDLE/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
22746 "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
22747 "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
22748 "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
22749 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22750 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22751 { (exit 1); exit 1; }; };;
22752 esac
22753 done
22755 # If the user did not use the arguments to specify the items to instantiate,
22756 # then the envvar interface is used. Set only those that are not.
22757 # We use the long form for the default assignment because of an extremely
22758 # bizarre bug on SunOS 4.1.3.
22759 if $ac_need_defaults; then
22760 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22761 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22764 # Have a temporary directory for convenience. Make it in the build tree
22765 # simply because there is no reason to put it here, and in addition,
22766 # creating and moving files from /tmp can sometimes cause problems.
22767 # Create a temporary directory, and hook for its removal unless debugging.
22768 $debug ||
22770 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22771 trap '{ (exit 1); exit 1; }' 1 2 13 15
22774 # Create a (secure) tmp directory for tmp files.
22777 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22778 test -n "$tmp" && test -d "$tmp"
22779 } ||
22781 tmp=./confstat$$-$RANDOM
22782 (umask 077 && mkdir $tmp)
22783 } ||
22785 echo "$me: cannot create a temporary directory in ." >&2
22786 { (exit 1); exit 1; }
22789 _ACEOF
22791 cat >>$CONFIG_STATUS <<_ACEOF
22794 # CONFIG_FILES section.
22797 # No need to generate the scripts if there are no CONFIG_FILES.
22798 # This happens for instance when ./config.status config.h
22799 if test -n "\$CONFIG_FILES"; then
22800 # Protect against being on the right side of a sed subst in config.status.
22801 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22802 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22803 s,@SHELL@,$SHELL,;t t
22804 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22805 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22806 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22807 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22808 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22809 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22810 s,@exec_prefix@,$exec_prefix,;t t
22811 s,@prefix@,$prefix,;t t
22812 s,@program_transform_name@,$program_transform_name,;t t
22813 s,@bindir@,$bindir,;t t
22814 s,@sbindir@,$sbindir,;t t
22815 s,@libexecdir@,$libexecdir,;t t
22816 s,@datadir@,$datadir,;t t
22817 s,@sysconfdir@,$sysconfdir,;t t
22818 s,@sharedstatedir@,$sharedstatedir,;t t
22819 s,@localstatedir@,$localstatedir,;t t
22820 s,@libdir@,$libdir,;t t
22821 s,@includedir@,$includedir,;t t
22822 s,@oldincludedir@,$oldincludedir,;t t
22823 s,@infodir@,$infodir,;t t
22824 s,@mandir@,$mandir,;t t
22825 s,@build_alias@,$build_alias,;t t
22826 s,@host_alias@,$host_alias,;t t
22827 s,@target_alias@,$target_alias,;t t
22828 s,@DEFS@,$DEFS,;t t
22829 s,@ECHO_C@,$ECHO_C,;t t
22830 s,@ECHO_N@,$ECHO_N,;t t
22831 s,@ECHO_T@,$ECHO_T,;t t
22832 s,@LIBS@,$LIBS,;t t
22833 s,@VERSION@,$VERSION,;t t
22834 s,@SOVERSION@,$SOVERSION,;t t
22835 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
22836 s,@UNIVERSALSDK@,$UNIVERSALSDK,;t t
22837 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
22838 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
22839 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
22840 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
22841 s,@FRAMEWORKINSTALLFIRST@,$FRAMEWORKINSTALLFIRST,;t t
22842 s,@FRAMEWORKINSTALLLAST@,$FRAMEWORKINSTALLLAST,;t t
22843 s,@FRAMEWORKALTINSTALLFIRST@,$FRAMEWORKALTINSTALLFIRST,;t t
22844 s,@FRAMEWORKALTINSTALLLAST@,$FRAMEWORKALTINSTALLLAST,;t t
22845 s,@FRAMEWORKUNIXTOOLSPREFIX@,$FRAMEWORKUNIXTOOLSPREFIX,;t t
22846 s,@MACHDEP@,$MACHDEP,;t t
22847 s,@SGI_ABI@,$SGI_ABI,;t t
22848 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
22849 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
22850 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
22851 s,@EXPORT_MACOSX_DEPLOYMENT_TARGET@,$EXPORT_MACOSX_DEPLOYMENT_TARGET,;t t
22852 s,@CC@,$CC,;t t
22853 s,@CFLAGS@,$CFLAGS,;t t
22854 s,@LDFLAGS@,$LDFLAGS,;t t
22855 s,@CPPFLAGS@,$CPPFLAGS,;t t
22856 s,@ac_ct_CC@,$ac_ct_CC,;t t
22857 s,@EXEEXT@,$EXEEXT,;t t
22858 s,@OBJEXT@,$OBJEXT,;t t
22859 s,@CXX@,$CXX,;t t
22860 s,@MAINCC@,$MAINCC,;t t
22861 s,@CPP@,$CPP,;t t
22862 s,@EGREP@,$EGREP,;t t
22863 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
22864 s,@LIBRARY@,$LIBRARY,;t t
22865 s,@LDLIBRARY@,$LDLIBRARY,;t t
22866 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
22867 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
22868 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
22869 s,@INSTSONAME@,$INSTSONAME,;t t
22870 s,@RUNSHARED@,$RUNSHARED,;t t
22871 s,@LINKCC@,$LINKCC,;t t
22872 s,@RANLIB@,$RANLIB,;t t
22873 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22874 s,@AR@,$AR,;t t
22875 s,@SVNVERSION@,$SVNVERSION,;t t
22876 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22877 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22878 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22879 s,@LN@,$LN,;t t
22880 s,@OPT@,$OPT,;t t
22881 s,@BASECFLAGS@,$BASECFLAGS,;t t
22882 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
22883 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
22884 s,@SO@,$SO,;t t
22885 s,@LDSHARED@,$LDSHARED,;t t
22886 s,@BLDSHARED@,$BLDSHARED,;t t
22887 s,@CCSHARED@,$CCSHARED,;t t
22888 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
22889 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
22890 s,@SHLIBS@,$SHLIBS,;t t
22891 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
22892 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
22893 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
22894 s,@LDLAST@,$LDLAST,;t t
22895 s,@THREADOBJ@,$THREADOBJ,;t t
22896 s,@DLINCLDIR@,$DLINCLDIR,;t t
22897 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
22898 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
22899 s,@TRUE@,$TRUE,;t t
22900 s,@LIBOBJS@,$LIBOBJS,;t t
22901 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
22902 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
22903 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
22904 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
22905 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
22906 s,@LIBM@,$LIBM,;t t
22907 s,@LIBC@,$LIBC,;t t
22908 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
22909 s,@THREADHEADERS@,$THREADHEADERS,;t t
22910 s,@SRCDIRS@,$SRCDIRS,;t t
22911 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22912 CEOF
22914 _ACEOF
22916 cat >>$CONFIG_STATUS <<\_ACEOF
22917 # Split the substitutions into bite-sized pieces for seds with
22918 # small command number limits, like on Digital OSF/1 and HP-UX.
22919 ac_max_sed_lines=48
22920 ac_sed_frag=1 # Number of current file.
22921 ac_beg=1 # First line for current file.
22922 ac_end=$ac_max_sed_lines # Line after last line for current file.
22923 ac_more_lines=:
22924 ac_sed_cmds=
22925 while $ac_more_lines; do
22926 if test $ac_beg -gt 1; then
22927 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22928 else
22929 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22931 if test ! -s $tmp/subs.frag; then
22932 ac_more_lines=false
22933 else
22934 # The purpose of the label and of the branching condition is to
22935 # speed up the sed processing (if there are no `@' at all, there
22936 # is no need to browse any of the substitutions).
22937 # These are the two extra sed commands mentioned above.
22938 (echo ':t
22939 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22940 if test -z "$ac_sed_cmds"; then
22941 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22942 else
22943 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22945 ac_sed_frag=`expr $ac_sed_frag + 1`
22946 ac_beg=$ac_end
22947 ac_end=`expr $ac_end + $ac_max_sed_lines`
22949 done
22950 if test -z "$ac_sed_cmds"; then
22951 ac_sed_cmds=cat
22953 fi # test -n "$CONFIG_FILES"
22955 _ACEOF
22956 cat >>$CONFIG_STATUS <<\_ACEOF
22957 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22958 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22959 case $ac_file in
22960 - | *:- | *:-:* ) # input from stdin
22961 cat >$tmp/stdin
22962 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22963 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22964 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22965 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22966 * ) ac_file_in=$ac_file.in ;;
22967 esac
22969 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22970 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22971 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22972 X"$ac_file" : 'X\(//\)[^/]' \| \
22973 X"$ac_file" : 'X\(//\)$' \| \
22974 X"$ac_file" : 'X\(/\)' \| \
22975 . : '\(.\)' 2>/dev/null ||
22976 echo X"$ac_file" |
22977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22978 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22979 /^X\(\/\/\)$/{ s//\1/; q; }
22980 /^X\(\/\).*/{ s//\1/; q; }
22981 s/.*/./; q'`
22982 { if $as_mkdir_p; then
22983 mkdir -p "$ac_dir"
22984 else
22985 as_dir="$ac_dir"
22986 as_dirs=
22987 while test ! -d "$as_dir"; do
22988 as_dirs="$as_dir $as_dirs"
22989 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22990 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22991 X"$as_dir" : 'X\(//\)[^/]' \| \
22992 X"$as_dir" : 'X\(//\)$' \| \
22993 X"$as_dir" : 'X\(/\)' \| \
22994 . : '\(.\)' 2>/dev/null ||
22995 echo X"$as_dir" |
22996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22997 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22998 /^X\(\/\/\)$/{ s//\1/; q; }
22999 /^X\(\/\).*/{ s//\1/; q; }
23000 s/.*/./; q'`
23001 done
23002 test ! -n "$as_dirs" || mkdir $as_dirs
23003 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23004 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23005 { (exit 1); exit 1; }; }; }
23007 ac_builddir=.
23009 if test "$ac_dir" != .; then
23010 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23011 # A "../" for each directory in $ac_dir_suffix.
23012 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23013 else
23014 ac_dir_suffix= ac_top_builddir=
23017 case $srcdir in
23018 .) # No --srcdir option. We are building in place.
23019 ac_srcdir=.
23020 if test -z "$ac_top_builddir"; then
23021 ac_top_srcdir=.
23022 else
23023 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23024 fi ;;
23025 [\\/]* | ?:[\\/]* ) # Absolute path.
23026 ac_srcdir=$srcdir$ac_dir_suffix;
23027 ac_top_srcdir=$srcdir ;;
23028 *) # Relative path.
23029 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23030 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23031 esac
23033 # Do not use `cd foo && pwd` to compute absolute paths, because
23034 # the directories may not exist.
23035 case `pwd` in
23036 .) ac_abs_builddir="$ac_dir";;
23038 case "$ac_dir" in
23039 .) ac_abs_builddir=`pwd`;;
23040 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23041 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23042 esac;;
23043 esac
23044 case $ac_abs_builddir in
23045 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23047 case ${ac_top_builddir}. in
23048 .) ac_abs_top_builddir=$ac_abs_builddir;;
23049 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23050 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23051 esac;;
23052 esac
23053 case $ac_abs_builddir in
23054 .) ac_abs_srcdir=$ac_srcdir;;
23056 case $ac_srcdir in
23057 .) ac_abs_srcdir=$ac_abs_builddir;;
23058 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23059 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23060 esac;;
23061 esac
23062 case $ac_abs_builddir in
23063 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23065 case $ac_top_srcdir in
23066 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23067 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23068 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23069 esac;;
23070 esac
23073 case $INSTALL in
23074 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23075 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23076 esac
23078 if test x"$ac_file" != x-; then
23079 { echo "$as_me:$LINENO: creating $ac_file" >&5
23080 echo "$as_me: creating $ac_file" >&6;}
23081 rm -f "$ac_file"
23083 # Let's still pretend it is `configure' which instantiates (i.e., don't
23084 # use $as_me), people would be surprised to read:
23085 # /* config.h. Generated by config.status. */
23086 if test x"$ac_file" = x-; then
23087 configure_input=
23088 else
23089 configure_input="$ac_file. "
23091 configure_input=$configure_input"Generated from `echo $ac_file_in |
23092 sed 's,.*/,,'` by configure."
23094 # First look for the input files in the build tree, otherwise in the
23095 # src tree.
23096 ac_file_inputs=`IFS=:
23097 for f in $ac_file_in; do
23098 case $f in
23099 -) echo $tmp/stdin ;;
23100 [\\/$]*)
23101 # Absolute (can't be DOS-style, as IFS=:)
23102 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23103 echo "$as_me: error: cannot find input file: $f" >&2;}
23104 { (exit 1); exit 1; }; }
23105 echo "$f";;
23106 *) # Relative
23107 if test -f "$f"; then
23108 # Build tree
23109 echo "$f"
23110 elif test -f "$srcdir/$f"; then
23111 # Source tree
23112 echo "$srcdir/$f"
23113 else
23114 # /dev/null tree
23115 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23116 echo "$as_me: error: cannot find input file: $f" >&2;}
23117 { (exit 1); exit 1; }; }
23118 fi;;
23119 esac
23120 done` || { (exit 1); exit 1; }
23121 _ACEOF
23122 cat >>$CONFIG_STATUS <<_ACEOF
23123 sed "$ac_vpsub
23124 $extrasub
23125 _ACEOF
23126 cat >>$CONFIG_STATUS <<\_ACEOF
23128 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23129 s,@configure_input@,$configure_input,;t t
23130 s,@srcdir@,$ac_srcdir,;t t
23131 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23132 s,@top_srcdir@,$ac_top_srcdir,;t t
23133 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23134 s,@builddir@,$ac_builddir,;t t
23135 s,@abs_builddir@,$ac_abs_builddir,;t t
23136 s,@top_builddir@,$ac_top_builddir,;t t
23137 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23138 s,@INSTALL@,$ac_INSTALL,;t t
23139 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23140 rm -f $tmp/stdin
23141 if test x"$ac_file" != x-; then
23142 mv $tmp/out $ac_file
23143 else
23144 cat $tmp/out
23145 rm -f $tmp/out
23148 done
23149 _ACEOF
23150 cat >>$CONFIG_STATUS <<\_ACEOF
23153 # CONFIG_HEADER section.
23156 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23157 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23159 # ac_d sets the value in "#define NAME VALUE" lines.
23160 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23161 ac_dB='[ ].*$,\1#\2'
23162 ac_dC=' '
23163 ac_dD=',;t'
23164 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23165 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23166 ac_uB='$,\1#\2define\3'
23167 ac_uC=' '
23168 ac_uD=',;t'
23170 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23171 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23172 case $ac_file in
23173 - | *:- | *:-:* ) # input from stdin
23174 cat >$tmp/stdin
23175 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23176 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23177 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23178 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23179 * ) ac_file_in=$ac_file.in ;;
23180 esac
23182 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23183 echo "$as_me: creating $ac_file" >&6;}
23185 # First look for the input files in the build tree, otherwise in the
23186 # src tree.
23187 ac_file_inputs=`IFS=:
23188 for f in $ac_file_in; do
23189 case $f in
23190 -) echo $tmp/stdin ;;
23191 [\\/$]*)
23192 # Absolute (can't be DOS-style, as IFS=:)
23193 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23194 echo "$as_me: error: cannot find input file: $f" >&2;}
23195 { (exit 1); exit 1; }; }
23196 # Do quote $f, to prevent DOS paths from being IFS'd.
23197 echo "$f";;
23198 *) # Relative
23199 if test -f "$f"; then
23200 # Build tree
23201 echo "$f"
23202 elif test -f "$srcdir/$f"; then
23203 # Source tree
23204 echo "$srcdir/$f"
23205 else
23206 # /dev/null tree
23207 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23208 echo "$as_me: error: cannot find input file: $f" >&2;}
23209 { (exit 1); exit 1; }; }
23210 fi;;
23211 esac
23212 done` || { (exit 1); exit 1; }
23213 # Remove the trailing spaces.
23214 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23216 _ACEOF
23218 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23219 # `conftest.undefs', that substitutes the proper values into
23220 # config.h.in to produce config.h. The first handles `#define'
23221 # templates, and the second `#undef' templates.
23222 # And first: Protect against being on the right side of a sed subst in
23223 # config.status. Protect against being in an unquoted here document
23224 # in config.status.
23225 rm -f conftest.defines conftest.undefs
23226 # Using a here document instead of a string reduces the quoting nightmare.
23227 # Putting comments in sed scripts is not portable.
23229 # `end' is used to avoid that the second main sed command (meant for
23230 # 0-ary CPP macros) applies to n-ary macro definitions.
23231 # See the Autoconf documentation for `clear'.
23232 cat >confdef2sed.sed <<\_ACEOF
23233 s/[\\&,]/\\&/g
23234 s,[\\$`],\\&,g
23235 t clear
23236 : clear
23237 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23238 t end
23239 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23240 : end
23241 _ACEOF
23242 # If some macros were called several times there might be several times
23243 # the same #defines, which is useless. Nevertheless, we may not want to
23244 # sort them, since we want the *last* AC-DEFINE to be honored.
23245 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23246 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23247 rm -f confdef2sed.sed
23249 # This sed command replaces #undef with comments. This is necessary, for
23250 # example, in the case of _POSIX_SOURCE, which is predefined and required
23251 # on some systems where configure will not decide to define it.
23252 cat >>conftest.undefs <<\_ACEOF
23253 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23254 _ACEOF
23256 # Break up conftest.defines because some shells have a limit on the size
23257 # of here documents, and old seds have small limits too (100 cmds).
23258 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23259 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23260 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23261 echo ' :' >>$CONFIG_STATUS
23262 rm -f conftest.tail
23263 while grep . conftest.defines >/dev/null
23265 # Write a limited-size here document to $tmp/defines.sed.
23266 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23267 # Speed up: don't consider the non `#define' lines.
23268 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23269 # Work around the forget-to-reset-the-flag bug.
23270 echo 't clr' >>$CONFIG_STATUS
23271 echo ': clr' >>$CONFIG_STATUS
23272 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23273 echo 'CEOF
23274 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23275 rm -f $tmp/in
23276 mv $tmp/out $tmp/in
23277 ' >>$CONFIG_STATUS
23278 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23279 rm -f conftest.defines
23280 mv conftest.tail conftest.defines
23281 done
23282 rm -f conftest.defines
23283 echo ' fi # grep' >>$CONFIG_STATUS
23284 echo >>$CONFIG_STATUS
23286 # Break up conftest.undefs because some shells have a limit on the size
23287 # of here documents, and old seds have small limits too (100 cmds).
23288 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23289 rm -f conftest.tail
23290 while grep . conftest.undefs >/dev/null
23292 # Write a limited-size here document to $tmp/undefs.sed.
23293 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23294 # Speed up: don't consider the non `#undef'
23295 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23296 # Work around the forget-to-reset-the-flag bug.
23297 echo 't clr' >>$CONFIG_STATUS
23298 echo ': clr' >>$CONFIG_STATUS
23299 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23300 echo 'CEOF
23301 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23302 rm -f $tmp/in
23303 mv $tmp/out $tmp/in
23304 ' >>$CONFIG_STATUS
23305 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23306 rm -f conftest.undefs
23307 mv conftest.tail conftest.undefs
23308 done
23309 rm -f conftest.undefs
23311 cat >>$CONFIG_STATUS <<\_ACEOF
23312 # Let's still pretend it is `configure' which instantiates (i.e., don't
23313 # use $as_me), people would be surprised to read:
23314 # /* config.h. Generated by config.status. */
23315 if test x"$ac_file" = x-; then
23316 echo "/* Generated by configure. */" >$tmp/config.h
23317 else
23318 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23320 cat $tmp/in >>$tmp/config.h
23321 rm -f $tmp/in
23322 if test x"$ac_file" != x-; then
23323 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23324 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23325 echo "$as_me: $ac_file is unchanged" >&6;}
23326 else
23327 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23328 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23329 X"$ac_file" : 'X\(//\)[^/]' \| \
23330 X"$ac_file" : 'X\(//\)$' \| \
23331 X"$ac_file" : 'X\(/\)' \| \
23332 . : '\(.\)' 2>/dev/null ||
23333 echo X"$ac_file" |
23334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23335 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23336 /^X\(\/\/\)$/{ s//\1/; q; }
23337 /^X\(\/\).*/{ s//\1/; q; }
23338 s/.*/./; q'`
23339 { if $as_mkdir_p; then
23340 mkdir -p "$ac_dir"
23341 else
23342 as_dir="$ac_dir"
23343 as_dirs=
23344 while test ! -d "$as_dir"; do
23345 as_dirs="$as_dir $as_dirs"
23346 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23348 X"$as_dir" : 'X\(//\)[^/]' \| \
23349 X"$as_dir" : 'X\(//\)$' \| \
23350 X"$as_dir" : 'X\(/\)' \| \
23351 . : '\(.\)' 2>/dev/null ||
23352 echo X"$as_dir" |
23353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23354 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23355 /^X\(\/\/\)$/{ s//\1/; q; }
23356 /^X\(\/\).*/{ s//\1/; q; }
23357 s/.*/./; q'`
23358 done
23359 test ! -n "$as_dirs" || mkdir $as_dirs
23360 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23361 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23362 { (exit 1); exit 1; }; }; }
23364 rm -f $ac_file
23365 mv $tmp/config.h $ac_file
23367 else
23368 cat $tmp/config.h
23369 rm -f $tmp/config.h
23371 done
23372 _ACEOF
23374 cat >>$CONFIG_STATUS <<\_ACEOF
23376 { (exit 0); exit 0; }
23377 _ACEOF
23378 chmod +x $CONFIG_STATUS
23379 ac_clean_files=$ac_clean_files_save
23382 # configure is writing to config.log, and then calls config.status.
23383 # config.status does its own redirection, appending to config.log.
23384 # Unfortunately, on DOS this fails, as config.log is still kept open
23385 # by configure, so config.status won't be able to write to it; its
23386 # output is simply discarded. So we exec the FD to /dev/null,
23387 # effectively closing config.log, so it can be properly (re)opened and
23388 # appended to by config.status. When coming back to configure, we
23389 # need to make the FD available again.
23390 if test "$no_create" != yes; then
23391 ac_cs_success=:
23392 ac_config_status_args=
23393 test "$silent" = yes &&
23394 ac_config_status_args="$ac_config_status_args --quiet"
23395 exec 5>/dev/null
23396 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23397 exec 5>>config.log
23398 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23399 # would make configure fail if this is the last instruction.
23400 $ac_cs_success || { (exit 1); exit 1; }
23404 echo "creating Modules/Setup"
23405 if test ! -f Modules/Setup
23406 then
23407 cp $srcdir/Modules/Setup.dist Modules/Setup
23410 echo "creating Modules/Setup.local"
23411 if test ! -f Modules/Setup.local
23412 then
23413 echo "# Edit this file for local setup changes" >Modules/Setup.local
23416 echo "creating Makefile"
23417 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
23418 -s Modules Modules/Setup.config \
23419 Modules/Setup.local Modules/Setup
23420 mv config.c Modules