Exception handling now raises KeyboardInterrupt and SystemExit rather than passing...
[python.git] / configure
blob213b50c0ea2f050d92756cdc1688f412d51ca78b
1 #! /bin/sh
2 # From configure.in Revision: 1.486 .
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 PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET CXX MAINOBJ EXEEXT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT CPP EGREP BUILDEXEEXT LIBRARY LDLIBRARY DLLLIBRARY BLDLIBRARY LDLIBRARYDIR INSTSONAME RUNSHARED LINKCC RANLIB ac_ct_RANLIB AR 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-framework[=INSTALLDIR]
849 Build (MacOSX|Darwin) framework
850 --enable-shared disable/enable building shared python library
851 --enable-profiling enable C-level code profiling
852 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
853 --enable-ipv6 Enable ipv6 (with ipv4) support
854 --disable-ipv6 Disable ipv6 support
855 --enable-unicode[=ucs[24]]
856 Enable Unicode strings (default is yes)
858 Optional Packages:
859 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
860 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
861 --without-gcc never use gcc
862 --with-cxx=<compiler> enable C++ support
863 --with-suffix=.exe set executable suffix
864 --with-pydebug build with Py_DEBUG defined
865 --with-libs='lib1 ...' link against additional libs
866 --with-signal-module disable/enable signal module
867 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
868 --with(out)-threads[=DIRECTORY]
869 disable/enable thread support
870 --with(out)-thread[=DIRECTORY]
871 deprecated; use --with(out)-threads
872 --with-pth use GNU pth threading libraries
873 --with(out)-doc-strings disable/enable documentation strings
874 --with(out)-tsc enable/disable timestamp counter profile
875 --with(out)-pymalloc disable/enable specialized mallocs
876 --with-wctype-functions use wctype.h functions
877 --with-fpectl enable SIGFPE catching
878 --with-libm=STRING math library
879 --with-libc=STRING C library
881 Some influential environment variables:
882 CC C compiler command
883 CFLAGS C compiler flags
884 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
885 nonstandard directory <lib dir>
886 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
887 headers in a nonstandard directory <include dir>
888 CPP C preprocessor
890 Use these variables to override the choices made by `configure' or to help
891 it to find libraries and programs with nonstandard names/locations.
893 Report bugs to <http://www.python.org/python-bugs>.
894 _ACEOF
897 if test "$ac_init_help" = "recursive"; then
898 # If there are subdirs, report their specific --help.
899 ac_popdir=`pwd`
900 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
901 test -d $ac_dir || continue
902 ac_builddir=.
904 if test "$ac_dir" != .; then
905 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
906 # A "../" for each directory in $ac_dir_suffix.
907 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
908 else
909 ac_dir_suffix= ac_top_builddir=
912 case $srcdir in
913 .) # No --srcdir option. We are building in place.
914 ac_srcdir=.
915 if test -z "$ac_top_builddir"; then
916 ac_top_srcdir=.
917 else
918 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
919 fi ;;
920 [\\/]* | ?:[\\/]* ) # Absolute path.
921 ac_srcdir=$srcdir$ac_dir_suffix;
922 ac_top_srcdir=$srcdir ;;
923 *) # Relative path.
924 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
925 ac_top_srcdir=$ac_top_builddir$srcdir ;;
926 esac
928 # Do not use `cd foo && pwd` to compute absolute paths, because
929 # the directories may not exist.
930 case `pwd` in
931 .) ac_abs_builddir="$ac_dir";;
933 case "$ac_dir" in
934 .) ac_abs_builddir=`pwd`;;
935 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
936 *) ac_abs_builddir=`pwd`/"$ac_dir";;
937 esac;;
938 esac
939 case $ac_abs_builddir in
940 .) ac_abs_top_builddir=${ac_top_builddir}.;;
942 case ${ac_top_builddir}. in
943 .) ac_abs_top_builddir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
945 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
946 esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_srcdir=$ac_srcdir;;
951 case $ac_srcdir in
952 .) ac_abs_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
954 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
955 esac;;
956 esac
957 case $ac_abs_builddir in
958 .) ac_abs_top_srcdir=$ac_top_srcdir;;
960 case $ac_top_srcdir in
961 .) ac_abs_top_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
963 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
964 esac;;
965 esac
967 cd $ac_dir
968 # Check for guested configure; otherwise get Cygnus style configure.
969 if test -f $ac_srcdir/configure.gnu; then
970 echo
971 $SHELL $ac_srcdir/configure.gnu --help=recursive
972 elif test -f $ac_srcdir/configure; then
973 echo
974 $SHELL $ac_srcdir/configure --help=recursive
975 elif test -f $ac_srcdir/configure.ac ||
976 test -f $ac_srcdir/configure.in; then
977 echo
978 $ac_configure --help
979 else
980 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
982 cd $ac_popdir
983 done
986 test -n "$ac_init_help" && exit 0
987 if $ac_init_version; then
988 cat <<\_ACEOF
989 python configure 2.5
990 generated by GNU Autoconf 2.59
992 Copyright (C) 2003 Free Software Foundation, Inc.
993 This configure script is free software; the Free Software Foundation
994 gives unlimited permission to copy, distribute and modify it.
995 _ACEOF
996 exit 0
998 exec 5>config.log
999 cat >&5 <<_ACEOF
1000 This file contains any messages produced by compilers while
1001 running configure, to aid debugging if configure makes a mistake.
1003 It was created by python $as_me 2.5, which was
1004 generated by GNU Autoconf 2.59. Invocation command line was
1006 $ $0 $@
1008 _ACEOF
1010 cat <<_ASUNAME
1011 ## --------- ##
1012 ## Platform. ##
1013 ## --------- ##
1015 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1016 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1017 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1018 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1019 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1022 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1024 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1025 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1026 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1027 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1028 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1029 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1030 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1032 _ASUNAME
1034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1035 for as_dir in $PATH
1037 IFS=$as_save_IFS
1038 test -z "$as_dir" && as_dir=.
1039 echo "PATH: $as_dir"
1040 done
1042 } >&5
1044 cat >&5 <<_ACEOF
1047 ## ----------- ##
1048 ## Core tests. ##
1049 ## ----------- ##
1051 _ACEOF
1054 # Keep a trace of the command line.
1055 # Strip out --no-create and --no-recursion so they do not pile up.
1056 # Strip out --silent because we don't want to record it for future runs.
1057 # Also quote any args containing shell meta-characters.
1058 # Make two passes to allow for proper duplicate-argument suppression.
1059 ac_configure_args=
1060 ac_configure_args0=
1061 ac_configure_args1=
1062 ac_sep=
1063 ac_must_keep_next=false
1064 for ac_pass in 1 2
1066 for ac_arg
1068 case $ac_arg in
1069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 continue ;;
1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1075 esac
1076 case $ac_pass in
1077 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080 if test $ac_must_keep_next = true; then
1081 ac_must_keep_next=false # Got value, back to normal.
1082 else
1083 case $ac_arg in
1084 *=* | --config-cache | -C | -disable-* | --disable-* \
1085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087 | -with-* | --with-* | -without-* | --without-* | --x)
1088 case "$ac_configure_args0 " in
1089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1090 esac
1092 -* ) ac_must_keep_next=true ;;
1093 esac
1095 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096 # Get rid of the leading space.
1097 ac_sep=" "
1099 esac
1100 done
1101 done
1102 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105 # When interrupted or exit'd, cleanup temporary files, and complete
1106 # config.log. We remove comments because anyway the quotes in there
1107 # would cause problems or look ugly.
1108 # WARNING: Be sure not to use single quotes in there, as some shells,
1109 # such as our DU 5.0 friend, will then `close' the trap.
1110 trap 'exit_status=$?
1111 # Save into config.log some information that might help in debugging.
1113 echo
1115 cat <<\_ASBOX
1116 ## ---------------- ##
1117 ## Cache variables. ##
1118 ## ---------------- ##
1119 _ASBOX
1120 echo
1121 # The following way of writing the cache mishandles newlines in values,
1123 (set) 2>&1 |
1124 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1125 *ac_space=\ *)
1126 sed -n \
1127 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1131 sed -n \
1132 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1134 esac;
1136 echo
1138 cat <<\_ASBOX
1139 ## ----------------- ##
1140 ## Output variables. ##
1141 ## ----------------- ##
1142 _ASBOX
1143 echo
1144 for ac_var in $ac_subst_vars
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1148 done | sort
1149 echo
1151 if test -n "$ac_subst_files"; then
1152 cat <<\_ASBOX
1153 ## ------------- ##
1154 ## Output files. ##
1155 ## ------------- ##
1156 _ASBOX
1157 echo
1158 for ac_var in $ac_subst_files
1160 eval ac_val=$`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1162 done | sort
1163 echo
1166 if test -s confdefs.h; then
1167 cat <<\_ASBOX
1168 ## ----------- ##
1169 ## confdefs.h. ##
1170 ## ----------- ##
1171 _ASBOX
1172 echo
1173 sed "/^$/d" confdefs.h | sort
1174 echo
1176 test "$ac_signal" != 0 &&
1177 echo "$as_me: caught signal $ac_signal"
1178 echo "$as_me: exit $exit_status"
1179 } >&5
1180 rm -f core *.core &&
1181 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1182 exit $exit_status
1184 for ac_signal in 1 2 13 15; do
1185 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1186 done
1187 ac_signal=0
1189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1190 rm -rf conftest* confdefs.h
1191 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1192 echo >confdefs.h
1194 # Predefined preprocessor variables.
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_NAME "$PACKAGE_NAME"
1198 _ACEOF
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1203 _ACEOF
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1208 _ACEOF
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_STRING "$PACKAGE_STRING"
1213 _ACEOF
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1218 _ACEOF
1221 # Let the site file select an alternate cache file if it wants to.
1222 # Prefer explicitly selected file to automatically selected ones.
1223 if test -z "$CONFIG_SITE"; then
1224 if test "x$prefix" != xNONE; then
1225 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1226 else
1227 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230 for ac_site_file in $CONFIG_SITE; do
1231 if test -r "$ac_site_file"; then
1232 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233 echo "$as_me: loading site script $ac_site_file" >&6;}
1234 sed 's/^/| /' "$ac_site_file" >&5
1235 . "$ac_site_file"
1237 done
1239 if test -r "$cache_file"; then
1240 # Some versions of bash will fail to source /dev/null (special
1241 # files actually), so we avoid doing that.
1242 if test -f "$cache_file"; then
1243 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244 echo "$as_me: loading cache $cache_file" >&6;}
1245 case $cache_file in
1246 [\\/]* | ?:[\\/]* ) . $cache_file;;
1247 *) . ./$cache_file;;
1248 esac
1250 else
1251 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252 echo "$as_me: creating cache $cache_file" >&6;}
1253 >$cache_file
1256 # Check that the precious variables saved in the cache have kept the same
1257 # value.
1258 ac_cache_corrupted=false
1259 for ac_var in `(set) 2>&1 |
1260 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1261 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262 eval ac_new_set=\$ac_env_${ac_var}_set
1263 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264 eval ac_new_val="\$ac_env_${ac_var}_value"
1265 case $ac_old_set,$ac_new_set in
1266 set,)
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1270 ,set)
1271 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1274 ,);;
1276 if test "x$ac_old_val" != "x$ac_new_val"; then
1277 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1278 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1279 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1280 echo "$as_me: former value: $ac_old_val" >&2;}
1281 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1282 echo "$as_me: current value: $ac_new_val" >&2;}
1283 ac_cache_corrupted=:
1284 fi;;
1285 esac
1286 # Pass precious variables to config.status.
1287 if test "$ac_new_set" = set; then
1288 case $ac_new_val in
1289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1291 *) ac_arg=$ac_var=$ac_new_val ;;
1292 esac
1293 case " $ac_configure_args " in
1294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1295 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1296 esac
1298 done
1299 if $ac_cache_corrupted; then
1300 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1303 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304 { (exit 1); exit 1; }; }
1307 ac_ext=c
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1340 ac_config_headers="$ac_config_headers pyconfig.h"
1348 # We don't use PACKAGE_ variables, and they cause conflicts
1349 # with other autoconf-based packages that include Python.h
1350 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1351 rm confdefs.h
1352 mv confdefs.h.new confdefs.h
1355 VERSION=2.5
1358 SOVERSION=1.0
1360 # The later defininition of _XOPEN_SOURCE disables certain features
1361 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1363 cat >>confdefs.h <<\_ACEOF
1364 #define _GNU_SOURCE 1
1365 _ACEOF
1368 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1369 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1370 # them.
1372 cat >>confdefs.h <<\_ACEOF
1373 #define _NETBSD_SOURCE 1
1374 _ACEOF
1377 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1378 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1379 # them.
1381 cat >>confdefs.h <<\_ACEOF
1382 #define __BSD_VISIBLE 1
1383 _ACEOF
1386 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1387 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1389 cat >>confdefs.h <<\_ACEOF
1390 #define _BSD_TYPES 1
1391 _ACEOF
1394 define_xopen_source=yes
1396 # Arguments passed to configure.
1398 CONFIG_ARGS="$ac_configure_args"
1400 # Check whether --enable-framework or --disable-framework was given.
1401 if test "${enable_framework+set}" = set; then
1402 enableval="$enable_framework"
1404 case $enableval in
1405 yes)
1406 enableval=/Library/Frameworks
1407 esac
1408 case $enableval in
1410 PYTHONFRAMEWORK=
1411 PYTHONFRAMEWORKDIR=no-framework
1412 PYTHONFRAMEWORKPREFIX=
1413 PYTHONFRAMEWORKINSTALLDIR=
1414 enable_framework=
1417 PYTHONFRAMEWORK=Python
1418 PYTHONFRAMEWORKDIR=Python.framework
1419 PYTHONFRAMEWORKPREFIX=$enableval
1420 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1421 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1422 esac
1424 else
1426 PYTHONFRAMEWORK=
1427 PYTHONFRAMEWORKDIR=no-framework
1428 PYTHONFRAMEWORKPREFIX=
1429 PYTHONFRAMEWORKINSTALLDIR=
1430 enable_framework=
1438 ##AC_ARG_WITH(dyld,
1439 ## AC_HELP_STRING(--with-dyld,
1440 ## Use (OpenStep|Rhapsody) dynamic linker))
1442 # Set name for machine-dependent library files
1444 echo "$as_me:$LINENO: checking MACHDEP" >&5
1445 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1446 if test -z "$MACHDEP"
1447 then
1448 ac_sys_system=`uname -s`
1449 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1450 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1451 ac_sys_release=`uname -v`
1452 else
1453 ac_sys_release=`uname -r`
1455 ac_md_system=`echo $ac_sys_system |
1456 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1457 ac_md_release=`echo $ac_sys_release |
1458 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1459 MACHDEP="$ac_md_system$ac_md_release"
1461 case $MACHDEP in
1462 cygwin*) MACHDEP="cygwin";;
1463 darwin*) MACHDEP="darwin";;
1464 atheos*) MACHDEP="atheos";;
1465 irix646) MACHDEP="irix6";;
1466 '') MACHDEP="unknown";;
1467 esac
1470 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1471 # disable features if it is defined, without any means to access these
1472 # features as extensions. For these systems, we skip the definition of
1473 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1474 # some feature, make sure there is no alternative way to access this
1475 # feature. Also, when using wildcards, make sure you have verified the
1476 # need for not defining _XOPEN_SOURCE on all systems matching the
1477 # wildcard, and that the wildcard does not include future systems
1478 # (which may remove their limitations).
1479 case $ac_sys_system/$ac_sys_release in
1480 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1481 # even though select is a POSIX function. Reported by J. Ribbens.
1482 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1483 OpenBSD/2.* | OpenBSD/3.[0123456])
1484 define_xopen_source=no;;
1485 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1486 # of union __?sigval. Reported by Stuart Bishop.
1487 SunOS/5.6)
1488 define_xopen_source=no;;
1489 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1490 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1491 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1492 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
1493 define_xopen_source=no;;
1494 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1495 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1496 SCO_SV/3.2)
1497 define_xopen_source=no;;
1498 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1499 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1500 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1501 # This should hopefully be fixed in FreeBSD 4.9
1502 FreeBSD/4.8* | Darwin/6* )
1503 define_xopen_source=no;;
1504 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1505 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1506 # or has another value. By not (re)defining it, the defaults come in place.
1507 AIX/4)
1508 define_xopen_source=no;;
1509 AIX/5)
1510 if test `uname -r` -eq 1; then
1511 define_xopen_source=no
1514 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1515 # disables platform specific features beyond repair.
1516 Darwin/8.*)
1517 define_xopen_source=no
1520 esac
1522 if test $define_xopen_source = yes
1523 then
1524 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1525 # defined precisely as g++ defines it
1526 case $ac_sys_system/$ac_sys_release in
1527 SunOS/5.8|SunOS/5.9)
1529 cat >>confdefs.h <<\_ACEOF
1530 #define _XOPEN_SOURCE 500
1531 _ACEOF
1536 cat >>confdefs.h <<\_ACEOF
1537 #define _XOPEN_SOURCE 600
1538 _ACEOF
1541 esac
1543 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1544 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1545 # several APIs are not declared. Since this is also needed in some
1546 # cases for HP-UX, we define it globally.
1549 cat >>confdefs.h <<\_ACEOF
1550 #define _XOPEN_SOURCE_EXTENDED 1
1551 _ACEOF
1555 cat >>confdefs.h <<\_ACEOF
1556 #define _POSIX_C_SOURCE 200112L
1557 _ACEOF
1563 # SGI compilers allow the specification of the both the ABI and the
1564 # ISA on the command line. Depending on the values of these switches,
1565 # different and often incompatable code will be generated.
1567 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1568 # thus supply support for various ABI/ISA combinations. The MACHDEP
1569 # variable is also adjusted.
1572 if test ! -z "$SGI_ABI"
1573 then
1574 CC="cc $SGI_ABI"
1575 LDFLAGS="$SGI_ABI $LDFLAGS"
1576 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1578 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1579 echo "${ECHO_T}$MACHDEP" >&6
1581 # And add extra plat-mac for darwin
1584 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1585 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1586 if test -z "$EXTRAPLATDIR"
1587 then
1588 case $MACHDEP in
1589 darwin)
1590 EXTRAPLATDIR="\$(PLATMACDIRS)"
1591 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
1594 EXTRAPLATDIR=""
1595 EXTRAMACHDEPPATH=""
1597 esac
1599 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1600 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1602 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1603 # it may influence the way we can build extensions, so distutils
1604 # needs to check it
1606 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
1608 # checks for alternative programs
1610 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1611 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1612 # just to get things to compile and link. Users are free to override OPT
1613 # when running configure or make. The build should not break if they do.
1614 # BASECFLAGS should generally not be messed with, however.
1616 # XXX shouldn't some/most/all of this code be merged with the stuff later
1617 # on that fiddles with OPT and BASECFLAGS?
1618 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1619 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1621 # Check whether --with-gcc or --without-gcc was given.
1622 if test "${with_gcc+set}" = set; then
1623 withval="$with_gcc"
1625 case $withval in
1626 no) CC=cc
1627 without_gcc=yes;;
1628 yes) CC=gcc
1629 without_gcc=no;;
1630 *) CC=$withval
1631 without_gcc=$withval;;
1632 esac
1633 else
1635 case $ac_sys_system in
1636 AIX*) CC=cc_r
1637 without_gcc=;;
1638 BeOS*)
1639 case $BE_HOST_CPU in
1640 ppc)
1641 CC=mwcc
1642 without_gcc=yes
1643 BASECFLAGS="$BASECFLAGS -export pragma"
1644 OPT="$OPT -O"
1645 LDFLAGS="$LDFLAGS -nodup"
1647 x86)
1648 CC=gcc
1649 without_gcc=no
1650 OPT="$OPT -O"
1653 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1654 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1655 { (exit 1); exit 1; }; }
1657 esac
1658 AR="\$(srcdir)/Modules/ar_beos"
1659 RANLIB=:
1661 Monterey*)
1662 RANLIB=:
1663 without_gcc=;;
1664 *) without_gcc=no;;
1665 esac
1667 echo "$as_me:$LINENO: result: $without_gcc" >&5
1668 echo "${ECHO_T}$without_gcc" >&6
1672 MAINOBJ=python.o
1673 echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5
1674 echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6
1676 # Check whether --with-cxx or --without-cxx was given.
1677 if test "${with_cxx+set}" = set; then
1678 withval="$with_cxx"
1680 check_cxx=no
1681 case $withval in
1682 no) CXX=
1683 with_cxx=no;;
1684 *) CXX=$withval
1685 MAINOBJ=ccpython.o
1686 with_cxx=$withval;;
1687 esac
1688 else
1690 with_cxx=no
1691 check_cxx=yes
1694 echo "$as_me:$LINENO: result: $with_cxx" >&5
1695 echo "${ECHO_T}$with_cxx" >&6
1697 if test "$with_cxx" = "yes"
1698 then
1699 { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5
1700 echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;}
1701 { (exit 1); exit 1; }; }
1707 if test "$check_cxx" = "yes"
1708 then
1709 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1711 # Extract the first word of "$ac_prog", so it can be a program name with args.
1712 set dummy $ac_prog; ac_word=$2
1713 echo "$as_me:$LINENO: checking for $ac_word" >&5
1714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1715 if test "${ac_cv_prog_CXX+set}" = set; then
1716 echo $ECHO_N "(cached) $ECHO_C" >&6
1717 else
1718 if test -n "$CXX"; then
1719 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1720 else
1721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722 for as_dir in $PATH
1724 IFS=$as_save_IFS
1725 test -z "$as_dir" && as_dir=.
1726 for ac_exec_ext in '' $ac_executable_extensions; do
1727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1728 ac_cv_prog_CXX="$ac_prog"
1729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1730 break 2
1732 done
1733 done
1737 CXX=$ac_cv_prog_CXX
1738 if test -n "$CXX"; then
1739 echo "$as_me:$LINENO: result: $CXX" >&5
1740 echo "${ECHO_T}$CXX" >&6
1741 else
1742 echo "$as_me:$LINENO: result: no" >&5
1743 echo "${ECHO_T}no" >&6
1746 test -n "$CXX" && break
1747 done
1748 test -n "$CXX" || CXX="notfound"
1750 if test "$CXX" = "notfound"
1751 then
1752 CXX=
1753 else
1754 ac_ext=cc
1755 ac_cpp='$CXXCPP $CPPFLAGS'
1756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1759 cat >conftest.$ac_ext <<_ACEOF
1760 /* confdefs.h. */
1761 _ACEOF
1762 cat confdefs.h >>conftest.$ac_ext
1763 cat >>conftest.$ac_ext <<_ACEOF
1764 /* end confdefs.h. */
1767 main ()
1771 return 0;
1773 _ACEOF
1774 ac_clean_files_save=$ac_clean_files
1775 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1776 # Try to create an executable without -o first, disregard a.out.
1777 # It will help us diagnose broken compilers, and finding out an intuition
1778 # of exeext.
1779 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1780 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1781 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1782 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1783 (eval $ac_link_default) 2>&5
1784 ac_status=$?
1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786 (exit $ac_status); }; then
1787 # Find the output, starting from the most likely. This scheme is
1788 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1789 # resort.
1791 # Be careful to initialize this variable, since it used to be cached.
1792 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1793 ac_cv_exeext=
1794 # b.out is created by i960 compilers.
1795 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1797 test -f "$ac_file" || continue
1798 case $ac_file in
1799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1801 conftest.$ac_ext )
1802 # This is the source file.
1804 [ab].out )
1805 # We found the default executable, but exeext='' is most
1806 # certainly right.
1807 break;;
1808 *.* )
1809 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1810 # FIXME: I believe we export ac_cv_exeext for Libtool,
1811 # but it would be cool to find out if it's true. Does anybody
1812 # maintain Libtool? --akim.
1813 export ac_cv_exeext
1814 break;;
1816 break;;
1817 esac
1818 done
1819 else
1820 echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1823 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1824 See \`config.log' for more details." >&5
1825 echo "$as_me: error: C++ compiler cannot create executables
1826 See \`config.log' for more details." >&2;}
1827 { (exit 77); exit 77; }; }
1830 ac_exeext=$ac_cv_exeext
1831 echo "$as_me:$LINENO: result: $ac_file" >&5
1832 echo "${ECHO_T}$ac_file" >&6
1834 # Check the compiler produces executables we can run. If not, either
1835 # the compiler is broken, or we cross compile.
1836 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1837 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1838 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1839 # If not cross compiling, check that we can run a simple program.
1840 if test "$cross_compiling" != yes; then
1841 if { ac_try='./$ac_file'
1842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1843 (eval $ac_try) 2>&5
1844 ac_status=$?
1845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846 (exit $ac_status); }; }; then
1847 cross_compiling=no
1848 else
1849 if test "$cross_compiling" = maybe; then
1850 cross_compiling=yes
1851 else
1852 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1853 If you meant to cross compile, use \`--host'.
1854 See \`config.log' for more details." >&5
1855 echo "$as_me: error: cannot run C++ compiled programs.
1856 If you meant to cross compile, use \`--host'.
1857 See \`config.log' for more details." >&2;}
1858 { (exit 1); exit 1; }; }
1862 echo "$as_me:$LINENO: result: yes" >&5
1863 echo "${ECHO_T}yes" >&6
1865 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1866 ac_clean_files=$ac_clean_files_save
1867 # Check the compiler produces executables we can run. If not, either
1868 # the compiler is broken, or we cross compile.
1869 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1870 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1871 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1872 echo "${ECHO_T}$cross_compiling" >&6
1874 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1875 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1877 (eval $ac_link) 2>&5
1878 ac_status=$?
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; then
1881 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1882 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1883 # work properly (i.e., refer to `conftest.exe'), while it won't with
1884 # `rm'.
1885 for ac_file in conftest.exe conftest conftest.*; do
1886 test -f "$ac_file" || continue
1887 case $ac_file in
1888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1889 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1890 export ac_cv_exeext
1891 break;;
1892 * ) break;;
1893 esac
1894 done
1895 else
1896 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1897 See \`config.log' for more details." >&5
1898 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1899 See \`config.log' for more details." >&2;}
1900 { (exit 1); exit 1; }; }
1903 rm -f conftest$ac_cv_exeext
1904 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1905 echo "${ECHO_T}$ac_cv_exeext" >&6
1907 rm -f conftest.$ac_ext
1908 EXEEXT=$ac_cv_exeext
1909 ac_exeext=$EXEEXT
1911 ac_ext=c
1912 ac_cpp='$CPP $CPPFLAGS'
1913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1922 # If the user switches compilers, we can't believe the cache
1923 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1924 then
1925 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1926 (it is also a good idea to do 'make clean' before compiling)" >&5
1927 echo "$as_me: error: cached CC is different -- throw away $cache_file
1928 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1929 { (exit 1); exit 1; }; }
1932 ac_ext=c
1933 ac_cpp='$CPP $CPPFLAGS'
1934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1937 if test -n "$ac_tool_prefix"; then
1938 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1939 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1940 echo "$as_me:$LINENO: checking for $ac_word" >&5
1941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1942 if test "${ac_cv_prog_CC+set}" = set; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1944 else
1945 if test -n "$CC"; then
1946 ac_cv_prog_CC="$CC" # Let the user override the test.
1947 else
1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949 for as_dir in $PATH
1951 IFS=$as_save_IFS
1952 test -z "$as_dir" && as_dir=.
1953 for ac_exec_ext in '' $ac_executable_extensions; do
1954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957 break 2
1959 done
1960 done
1964 CC=$ac_cv_prog_CC
1965 if test -n "$CC"; then
1966 echo "$as_me:$LINENO: result: $CC" >&5
1967 echo "${ECHO_T}$CC" >&6
1968 else
1969 echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6
1974 if test -z "$ac_cv_prog_CC"; then
1975 ac_ct_CC=$CC
1976 # Extract the first word of "gcc", so it can be a program name with args.
1977 set dummy gcc; ac_word=$2
1978 echo "$as_me:$LINENO: checking for $ac_word" >&5
1979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1980 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 else
1983 if test -n "$ac_ct_CC"; then
1984 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1985 else
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 for as_dir in $PATH
1989 IFS=$as_save_IFS
1990 test -z "$as_dir" && as_dir=.
1991 for ac_exec_ext in '' $ac_executable_extensions; do
1992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1993 ac_cv_prog_ac_ct_CC="gcc"
1994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995 break 2
1997 done
1998 done
2002 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2003 if test -n "$ac_ct_CC"; then
2004 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2005 echo "${ECHO_T}$ac_ct_CC" >&6
2006 else
2007 echo "$as_me:$LINENO: result: no" >&5
2008 echo "${ECHO_T}no" >&6
2011 CC=$ac_ct_CC
2012 else
2013 CC="$ac_cv_prog_CC"
2016 if test -z "$CC"; then
2017 if test -n "$ac_tool_prefix"; then
2018 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2019 set dummy ${ac_tool_prefix}cc; ac_word=$2
2020 echo "$as_me:$LINENO: checking for $ac_word" >&5
2021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2022 if test "${ac_cv_prog_CC+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2024 else
2025 if test -n "$CC"; then
2026 ac_cv_prog_CC="$CC" # Let the user override the test.
2027 else
2028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029 for as_dir in $PATH
2031 IFS=$as_save_IFS
2032 test -z "$as_dir" && as_dir=.
2033 for ac_exec_ext in '' $ac_executable_extensions; do
2034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2035 ac_cv_prog_CC="${ac_tool_prefix}cc"
2036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2037 break 2
2039 done
2040 done
2044 CC=$ac_cv_prog_CC
2045 if test -n "$CC"; then
2046 echo "$as_me:$LINENO: result: $CC" >&5
2047 echo "${ECHO_T}$CC" >&6
2048 else
2049 echo "$as_me:$LINENO: result: no" >&5
2050 echo "${ECHO_T}no" >&6
2054 if test -z "$ac_cv_prog_CC"; then
2055 ac_ct_CC=$CC
2056 # Extract the first word of "cc", so it can be a program name with args.
2057 set dummy cc; ac_word=$2
2058 echo "$as_me:$LINENO: checking for $ac_word" >&5
2059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2060 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 else
2063 if test -n "$ac_ct_CC"; then
2064 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2065 else
2066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067 for as_dir in $PATH
2069 IFS=$as_save_IFS
2070 test -z "$as_dir" && as_dir=.
2071 for ac_exec_ext in '' $ac_executable_extensions; do
2072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2073 ac_cv_prog_ac_ct_CC="cc"
2074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075 break 2
2077 done
2078 done
2082 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2083 if test -n "$ac_ct_CC"; then
2084 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2085 echo "${ECHO_T}$ac_ct_CC" >&6
2086 else
2087 echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6
2091 CC=$ac_ct_CC
2092 else
2093 CC="$ac_cv_prog_CC"
2097 if test -z "$CC"; then
2098 # Extract the first word of "cc", so it can be a program name with args.
2099 set dummy cc; ac_word=$2
2100 echo "$as_me:$LINENO: checking for $ac_word" >&5
2101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2102 if test "${ac_cv_prog_CC+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 else
2105 if test -n "$CC"; then
2106 ac_cv_prog_CC="$CC" # Let the user override the test.
2107 else
2108 ac_prog_rejected=no
2109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 for as_dir in $PATH
2112 IFS=$as_save_IFS
2113 test -z "$as_dir" && as_dir=.
2114 for ac_exec_ext in '' $ac_executable_extensions; do
2115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2116 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2117 ac_prog_rejected=yes
2118 continue
2120 ac_cv_prog_CC="cc"
2121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2122 break 2
2124 done
2125 done
2127 if test $ac_prog_rejected = yes; then
2128 # We found a bogon in the path, so make sure we never use it.
2129 set dummy $ac_cv_prog_CC
2130 shift
2131 if test $# != 0; then
2132 # We chose a different compiler from the bogus one.
2133 # However, it has the same basename, so the bogon will be chosen
2134 # first if we set CC to just the basename; use the full file name.
2135 shift
2136 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2141 CC=$ac_cv_prog_CC
2142 if test -n "$CC"; then
2143 echo "$as_me:$LINENO: result: $CC" >&5
2144 echo "${ECHO_T}$CC" >&6
2145 else
2146 echo "$as_me:$LINENO: result: no" >&5
2147 echo "${ECHO_T}no" >&6
2151 if test -z "$CC"; then
2152 if test -n "$ac_tool_prefix"; then
2153 for ac_prog in cl
2155 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2156 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2157 echo "$as_me:$LINENO: checking for $ac_word" >&5
2158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2159 if test "${ac_cv_prog_CC+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 else
2162 if test -n "$CC"; then
2163 ac_cv_prog_CC="$CC" # Let the user override the test.
2164 else
2165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166 for as_dir in $PATH
2168 IFS=$as_save_IFS
2169 test -z "$as_dir" && as_dir=.
2170 for ac_exec_ext in '' $ac_executable_extensions; do
2171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2172 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2174 break 2
2176 done
2177 done
2181 CC=$ac_cv_prog_CC
2182 if test -n "$CC"; then
2183 echo "$as_me:$LINENO: result: $CC" >&5
2184 echo "${ECHO_T}$CC" >&6
2185 else
2186 echo "$as_me:$LINENO: result: no" >&5
2187 echo "${ECHO_T}no" >&6
2190 test -n "$CC" && break
2191 done
2193 if test -z "$CC"; then
2194 ac_ct_CC=$CC
2195 for ac_prog in cl
2197 # Extract the first word of "$ac_prog", so it can be a program name with args.
2198 set dummy $ac_prog; ac_word=$2
2199 echo "$as_me:$LINENO: checking for $ac_word" >&5
2200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2201 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2203 else
2204 if test -n "$ac_ct_CC"; then
2205 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2206 else
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 for as_dir in $PATH
2210 IFS=$as_save_IFS
2211 test -z "$as_dir" && as_dir=.
2212 for ac_exec_ext in '' $ac_executable_extensions; do
2213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2214 ac_cv_prog_ac_ct_CC="$ac_prog"
2215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2216 break 2
2218 done
2219 done
2223 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2224 if test -n "$ac_ct_CC"; then
2225 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2226 echo "${ECHO_T}$ac_ct_CC" >&6
2227 else
2228 echo "$as_me:$LINENO: result: no" >&5
2229 echo "${ECHO_T}no" >&6
2232 test -n "$ac_ct_CC" && break
2233 done
2235 CC=$ac_ct_CC
2241 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2242 See \`config.log' for more details." >&5
2243 echo "$as_me: error: no acceptable C compiler found in \$PATH
2244 See \`config.log' for more details." >&2;}
2245 { (exit 1); exit 1; }; }
2247 # Provide some information about the compiler.
2248 echo "$as_me:$LINENO:" \
2249 "checking for C compiler version" >&5
2250 ac_compiler=`set X $ac_compile; echo $2`
2251 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2252 (eval $ac_compiler --version </dev/null >&5) 2>&5
2253 ac_status=$?
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }
2256 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2257 (eval $ac_compiler -v </dev/null >&5) 2>&5
2258 ac_status=$?
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }
2261 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2262 (eval $ac_compiler -V </dev/null >&5) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }
2267 cat >conftest.$ac_ext <<_ACEOF
2268 /* confdefs.h. */
2269 _ACEOF
2270 cat confdefs.h >>conftest.$ac_ext
2271 cat >>conftest.$ac_ext <<_ACEOF
2272 /* end confdefs.h. */
2275 main ()
2279 return 0;
2281 _ACEOF
2282 ac_clean_files_save=$ac_clean_files
2283 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2284 # Try to create an executable without -o first, disregard a.out.
2285 # It will help us diagnose broken compilers, and finding out an intuition
2286 # of exeext.
2287 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2288 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2289 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2290 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2291 (eval $ac_link_default) 2>&5
2292 ac_status=$?
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; then
2295 # Find the output, starting from the most likely. This scheme is
2296 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2297 # resort.
2299 # Be careful to initialize this variable, since it used to be cached.
2300 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2301 ac_cv_exeext=
2302 # b.out is created by i960 compilers.
2303 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2305 test -f "$ac_file" || continue
2306 case $ac_file in
2307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2309 conftest.$ac_ext )
2310 # This is the source file.
2312 [ab].out )
2313 # We found the default executable, but exeext='' is most
2314 # certainly right.
2315 break;;
2316 *.* )
2317 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2318 # FIXME: I believe we export ac_cv_exeext for Libtool,
2319 # but it would be cool to find out if it's true. Does anybody
2320 # maintain Libtool? --akim.
2321 export ac_cv_exeext
2322 break;;
2324 break;;
2325 esac
2326 done
2327 else
2328 echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2331 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2332 See \`config.log' for more details." >&5
2333 echo "$as_me: error: C compiler cannot create executables
2334 See \`config.log' for more details." >&2;}
2335 { (exit 77); exit 77; }; }
2338 ac_exeext=$ac_cv_exeext
2339 echo "$as_me:$LINENO: result: $ac_file" >&5
2340 echo "${ECHO_T}$ac_file" >&6
2342 # Check the compiler produces executables we can run. If not, either
2343 # the compiler is broken, or we cross compile.
2344 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2345 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2346 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2347 # If not cross compiling, check that we can run a simple program.
2348 if test "$cross_compiling" != yes; then
2349 if { ac_try='./$ac_file'
2350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351 (eval $ac_try) 2>&5
2352 ac_status=$?
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }; }; then
2355 cross_compiling=no
2356 else
2357 if test "$cross_compiling" = maybe; then
2358 cross_compiling=yes
2359 else
2360 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2361 If you meant to cross compile, use \`--host'.
2362 See \`config.log' for more details." >&5
2363 echo "$as_me: error: cannot run C compiled programs.
2364 If you meant to cross compile, use \`--host'.
2365 See \`config.log' for more details." >&2;}
2366 { (exit 1); exit 1; }; }
2370 echo "$as_me:$LINENO: result: yes" >&5
2371 echo "${ECHO_T}yes" >&6
2373 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2374 ac_clean_files=$ac_clean_files_save
2375 # Check the compiler produces executables we can run. If not, either
2376 # the compiler is broken, or we cross compile.
2377 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2378 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2379 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2380 echo "${ECHO_T}$cross_compiling" >&6
2382 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2383 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2385 (eval $ac_link) 2>&5
2386 ac_status=$?
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }; then
2389 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2390 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2391 # work properly (i.e., refer to `conftest.exe'), while it won't with
2392 # `rm'.
2393 for ac_file in conftest.exe conftest conftest.*; do
2394 test -f "$ac_file" || continue
2395 case $ac_file in
2396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2397 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2398 export ac_cv_exeext
2399 break;;
2400 * ) break;;
2401 esac
2402 done
2403 else
2404 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2405 See \`config.log' for more details." >&5
2406 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2407 See \`config.log' for more details." >&2;}
2408 { (exit 1); exit 1; }; }
2411 rm -f conftest$ac_cv_exeext
2412 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2413 echo "${ECHO_T}$ac_cv_exeext" >&6
2415 rm -f conftest.$ac_ext
2416 EXEEXT=$ac_cv_exeext
2417 ac_exeext=$EXEEXT
2418 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2419 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2420 if test "${ac_cv_objext+set}" = set; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
2422 else
2423 cat >conftest.$ac_ext <<_ACEOF
2424 /* confdefs.h. */
2425 _ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2431 main ()
2435 return 0;
2437 _ACEOF
2438 rm -f conftest.o conftest.obj
2439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2440 (eval $ac_compile) 2>&5
2441 ac_status=$?
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; then
2444 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2445 case $ac_file in
2446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2447 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2448 break;;
2449 esac
2450 done
2451 else
2452 echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2455 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2456 See \`config.log' for more details." >&5
2457 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2458 See \`config.log' for more details." >&2;}
2459 { (exit 1); exit 1; }; }
2462 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2464 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2465 echo "${ECHO_T}$ac_cv_objext" >&6
2466 OBJEXT=$ac_cv_objext
2467 ac_objext=$OBJEXT
2468 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2469 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2470 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
2472 else
2473 cat >conftest.$ac_ext <<_ACEOF
2474 /* confdefs.h. */
2475 _ACEOF
2476 cat confdefs.h >>conftest.$ac_ext
2477 cat >>conftest.$ac_ext <<_ACEOF
2478 /* end confdefs.h. */
2481 main ()
2483 #ifndef __GNUC__
2484 choke me
2485 #endif
2488 return 0;
2490 _ACEOF
2491 rm -f conftest.$ac_objext
2492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2493 (eval $ac_compile) 2>conftest.er1
2494 ac_status=$?
2495 grep -v '^ *+' conftest.er1 >conftest.err
2496 rm -f conftest.er1
2497 cat conftest.err >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } &&
2500 { ac_try='test -z "$ac_c_werror_flag"
2501 || test ! -s conftest.err'
2502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503 (eval $ac_try) 2>&5
2504 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; } &&
2507 { ac_try='test -s conftest.$ac_objext'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 (eval $ac_try) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; }; then
2513 ac_compiler_gnu=yes
2514 else
2515 echo "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2518 ac_compiler_gnu=no
2520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2521 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2524 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2525 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2526 GCC=`test $ac_compiler_gnu = yes && echo yes`
2527 ac_test_CFLAGS=${CFLAGS+set}
2528 ac_save_CFLAGS=$CFLAGS
2529 CFLAGS="-g"
2530 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2531 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2532 if test "${ac_cv_prog_cc_g+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 else
2535 cat >conftest.$ac_ext <<_ACEOF
2536 /* confdefs.h. */
2537 _ACEOF
2538 cat confdefs.h >>conftest.$ac_ext
2539 cat >>conftest.$ac_ext <<_ACEOF
2540 /* end confdefs.h. */
2543 main ()
2547 return 0;
2549 _ACEOF
2550 rm -f conftest.$ac_objext
2551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2552 (eval $ac_compile) 2>conftest.er1
2553 ac_status=$?
2554 grep -v '^ *+' conftest.er1 >conftest.err
2555 rm -f conftest.er1
2556 cat conftest.err >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); } &&
2559 { ac_try='test -z "$ac_c_werror_flag"
2560 || test ! -s conftest.err'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 (eval $ac_try) 2>&5
2563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; } &&
2566 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2572 ac_cv_prog_cc_g=yes
2573 else
2574 echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2577 ac_cv_prog_cc_g=no
2579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2581 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2582 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2583 if test "$ac_test_CFLAGS" = set; then
2584 CFLAGS=$ac_save_CFLAGS
2585 elif test $ac_cv_prog_cc_g = yes; then
2586 if test "$GCC" = yes; then
2587 CFLAGS="-g -O2"
2588 else
2589 CFLAGS="-g"
2591 else
2592 if test "$GCC" = yes; then
2593 CFLAGS="-O2"
2594 else
2595 CFLAGS=
2598 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2599 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2600 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2602 else
2603 ac_cv_prog_cc_stdc=no
2604 ac_save_CC=$CC
2605 cat >conftest.$ac_ext <<_ACEOF
2606 /* confdefs.h. */
2607 _ACEOF
2608 cat confdefs.h >>conftest.$ac_ext
2609 cat >>conftest.$ac_ext <<_ACEOF
2610 /* end confdefs.h. */
2611 #include <stdarg.h>
2612 #include <stdio.h>
2613 #include <sys/types.h>
2614 #include <sys/stat.h>
2615 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2616 struct buf { int x; };
2617 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2618 static char *e (p, i)
2619 char **p;
2620 int i;
2622 return p[i];
2624 static char *f (char * (*g) (char **, int), char **p, ...)
2626 char *s;
2627 va_list v;
2628 va_start (v,p);
2629 s = g (p, va_arg (v,int));
2630 va_end (v);
2631 return s;
2634 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2635 function prototypes and stuff, but not '\xHH' hex character constants.
2636 These don't provoke an error unfortunately, instead are silently treated
2637 as 'x'. The following induces an error, until -std1 is added to get
2638 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2639 array size at least. It's necessary to write '\x00'==0 to get something
2640 that's true only with -std1. */
2641 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2643 int test (int i, double x);
2644 struct s1 {int (*f) (int a);};
2645 struct s2 {int (*f) (double a);};
2646 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2647 int argc;
2648 char **argv;
2650 main ()
2652 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2654 return 0;
2656 _ACEOF
2657 # Don't try gcc -ansi; that turns off useful extensions and
2658 # breaks some systems' header files.
2659 # AIX -qlanglvl=ansi
2660 # Ultrix and OSF/1 -std1
2661 # HP-UX 10.20 and later -Ae
2662 # HP-UX older versions -Aa -D_HPUX_SOURCE
2663 # SVR4 -Xc -D__EXTENSIONS__
2664 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2666 CC="$ac_save_CC $ac_arg"
2667 rm -f conftest.$ac_objext
2668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2669 (eval $ac_compile) 2>conftest.er1
2670 ac_status=$?
2671 grep -v '^ *+' conftest.er1 >conftest.err
2672 rm -f conftest.er1
2673 cat conftest.err >&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); } &&
2676 { ac_try='test -z "$ac_c_werror_flag"
2677 || test ! -s conftest.err'
2678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 (eval $ac_try) 2>&5
2680 ac_status=$?
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; } &&
2683 { ac_try='test -s conftest.$ac_objext'
2684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685 (eval $ac_try) 2>&5
2686 ac_status=$?
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }; }; then
2689 ac_cv_prog_cc_stdc=$ac_arg
2690 break
2691 else
2692 echo "$as_me: failed program was:" >&5
2693 sed 's/^/| /' conftest.$ac_ext >&5
2696 rm -f conftest.err conftest.$ac_objext
2697 done
2698 rm -f conftest.$ac_ext conftest.$ac_objext
2699 CC=$ac_save_CC
2703 case "x$ac_cv_prog_cc_stdc" in
2704 x|xno)
2705 echo "$as_me:$LINENO: result: none needed" >&5
2706 echo "${ECHO_T}none needed" >&6 ;;
2708 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2709 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2710 CC="$CC $ac_cv_prog_cc_stdc" ;;
2711 esac
2713 # Some people use a C++ compiler to compile C. Since we use `exit',
2714 # in C++ we need to declare it. In case someone uses the same compiler
2715 # for both compiling C and C++ we need to have the C++ compiler decide
2716 # the declaration of exit, since it's the most demanding environment.
2717 cat >conftest.$ac_ext <<_ACEOF
2718 #ifndef __cplusplus
2719 choke me
2720 #endif
2721 _ACEOF
2722 rm -f conftest.$ac_objext
2723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2724 (eval $ac_compile) 2>conftest.er1
2725 ac_status=$?
2726 grep -v '^ *+' conftest.er1 >conftest.err
2727 rm -f conftest.er1
2728 cat conftest.err >&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); } &&
2731 { ac_try='test -z "$ac_c_werror_flag"
2732 || test ! -s conftest.err'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 (eval $ac_try) 2>&5
2735 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; } &&
2738 { ac_try='test -s conftest.$ac_objext'
2739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 (eval $ac_try) 2>&5
2741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; }; then
2744 for ac_declaration in \
2745 '' \
2746 'extern "C" void std::exit (int) throw (); using std::exit;' \
2747 'extern "C" void std::exit (int); using std::exit;' \
2748 'extern "C" void exit (int) throw ();' \
2749 'extern "C" void exit (int);' \
2750 'void exit (int);'
2752 cat >conftest.$ac_ext <<_ACEOF
2753 /* confdefs.h. */
2754 _ACEOF
2755 cat confdefs.h >>conftest.$ac_ext
2756 cat >>conftest.$ac_ext <<_ACEOF
2757 /* end confdefs.h. */
2758 $ac_declaration
2759 #include <stdlib.h>
2761 main ()
2763 exit (42);
2765 return 0;
2767 _ACEOF
2768 rm -f conftest.$ac_objext
2769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770 (eval $ac_compile) 2>conftest.er1
2771 ac_status=$?
2772 grep -v '^ *+' conftest.er1 >conftest.err
2773 rm -f conftest.er1
2774 cat conftest.err >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); } &&
2777 { ac_try='test -z "$ac_c_werror_flag"
2778 || test ! -s conftest.err'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 (eval $ac_try) 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; } &&
2784 { ac_try='test -s conftest.$ac_objext'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 (eval $ac_try) 2>&5
2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; }; then
2791 else
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2795 continue
2797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2798 cat >conftest.$ac_ext <<_ACEOF
2799 /* confdefs.h. */
2800 _ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h. */
2804 $ac_declaration
2806 main ()
2808 exit (42);
2810 return 0;
2812 _ACEOF
2813 rm -f conftest.$ac_objext
2814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2815 (eval $ac_compile) 2>conftest.er1
2816 ac_status=$?
2817 grep -v '^ *+' conftest.er1 >conftest.err
2818 rm -f conftest.er1
2819 cat conftest.err >&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); } &&
2822 { ac_try='test -z "$ac_c_werror_flag"
2823 || test ! -s conftest.err'
2824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825 (eval $ac_try) 2>&5
2826 ac_status=$?
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }; } &&
2829 { ac_try='test -s conftest.$ac_objext'
2830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831 (eval $ac_try) 2>&5
2832 ac_status=$?
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }; }; then
2835 break
2836 else
2837 echo "$as_me: failed program was:" >&5
2838 sed 's/^/| /' conftest.$ac_ext >&5
2841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2842 done
2843 rm -f conftest*
2844 if test -n "$ac_declaration"; then
2845 echo '#ifdef __cplusplus' >>confdefs.h
2846 echo $ac_declaration >>confdefs.h
2847 echo '#endif' >>confdefs.h
2850 else
2851 echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2856 ac_ext=c
2857 ac_cpp='$CPP $CPPFLAGS'
2858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2863 # checks for UNIX variants that set C preprocessor variables
2865 ac_ext=c
2866 ac_cpp='$CPP $CPPFLAGS'
2867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2870 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2871 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2872 # On Suns, sometimes $CPP names a directory.
2873 if test -n "$CPP" && test -d "$CPP"; then
2874 CPP=
2876 if test -z "$CPP"; then
2877 if test "${ac_cv_prog_CPP+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2879 else
2880 # Double quotes because CPP needs to be expanded
2881 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2883 ac_preproc_ok=false
2884 for ac_c_preproc_warn_flag in '' yes
2886 # Use a header file that comes with gcc, so configuring glibc
2887 # with a fresh cross-compiler works.
2888 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2889 # <limits.h> exists even on freestanding compilers.
2890 # On the NeXT, cc -E runs the code through the compiler's parser,
2891 # not just through cpp. "Syntax error" is here to catch this case.
2892 cat >conftest.$ac_ext <<_ACEOF
2893 /* confdefs.h. */
2894 _ACEOF
2895 cat confdefs.h >>conftest.$ac_ext
2896 cat >>conftest.$ac_ext <<_ACEOF
2897 /* end confdefs.h. */
2898 #ifdef __STDC__
2899 # include <limits.h>
2900 #else
2901 # include <assert.h>
2902 #endif
2903 Syntax error
2904 _ACEOF
2905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2907 ac_status=$?
2908 grep -v '^ *+' conftest.er1 >conftest.err
2909 rm -f conftest.er1
2910 cat conftest.err >&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); } >/dev/null; then
2913 if test -s conftest.err; then
2914 ac_cpp_err=$ac_c_preproc_warn_flag
2915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2916 else
2917 ac_cpp_err=
2919 else
2920 ac_cpp_err=yes
2922 if test -z "$ac_cpp_err"; then
2924 else
2925 echo "$as_me: failed program was:" >&5
2926 sed 's/^/| /' conftest.$ac_ext >&5
2928 # Broken: fails on valid input.
2929 continue
2931 rm -f conftest.err conftest.$ac_ext
2933 # OK, works on sane cases. Now check whether non-existent headers
2934 # can be detected and how.
2935 cat >conftest.$ac_ext <<_ACEOF
2936 /* confdefs.h. */
2937 _ACEOF
2938 cat confdefs.h >>conftest.$ac_ext
2939 cat >>conftest.$ac_ext <<_ACEOF
2940 /* end confdefs.h. */
2941 #include <ac_nonexistent.h>
2942 _ACEOF
2943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2945 ac_status=$?
2946 grep -v '^ *+' conftest.er1 >conftest.err
2947 rm -f conftest.er1
2948 cat conftest.err >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } >/dev/null; then
2951 if test -s conftest.err; then
2952 ac_cpp_err=$ac_c_preproc_warn_flag
2953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2954 else
2955 ac_cpp_err=
2957 else
2958 ac_cpp_err=yes
2960 if test -z "$ac_cpp_err"; then
2961 # Broken: success on invalid input.
2962 continue
2963 else
2964 echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2967 # Passes both tests.
2968 ac_preproc_ok=:
2969 break
2971 rm -f conftest.err conftest.$ac_ext
2973 done
2974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2975 rm -f conftest.err conftest.$ac_ext
2976 if $ac_preproc_ok; then
2977 break
2980 done
2981 ac_cv_prog_CPP=$CPP
2984 CPP=$ac_cv_prog_CPP
2985 else
2986 ac_cv_prog_CPP=$CPP
2988 echo "$as_me:$LINENO: result: $CPP" >&5
2989 echo "${ECHO_T}$CPP" >&6
2990 ac_preproc_ok=false
2991 for ac_c_preproc_warn_flag in '' yes
2993 # Use a header file that comes with gcc, so configuring glibc
2994 # with a fresh cross-compiler works.
2995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2996 # <limits.h> exists even on freestanding compilers.
2997 # On the NeXT, cc -E runs the code through the compiler's parser,
2998 # not just through cpp. "Syntax error" is here to catch this case.
2999 cat >conftest.$ac_ext <<_ACEOF
3000 /* confdefs.h. */
3001 _ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h. */
3005 #ifdef __STDC__
3006 # include <limits.h>
3007 #else
3008 # include <assert.h>
3009 #endif
3010 Syntax error
3011 _ACEOF
3012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3014 ac_status=$?
3015 grep -v '^ *+' conftest.er1 >conftest.err
3016 rm -f conftest.er1
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } >/dev/null; then
3020 if test -s conftest.err; then
3021 ac_cpp_err=$ac_c_preproc_warn_flag
3022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3023 else
3024 ac_cpp_err=
3026 else
3027 ac_cpp_err=yes
3029 if test -z "$ac_cpp_err"; then
3031 else
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3035 # Broken: fails on valid input.
3036 continue
3038 rm -f conftest.err conftest.$ac_ext
3040 # OK, works on sane cases. Now check whether non-existent headers
3041 # can be detected and how.
3042 cat >conftest.$ac_ext <<_ACEOF
3043 /* confdefs.h. */
3044 _ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3048 #include <ac_nonexistent.h>
3049 _ACEOF
3050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3052 ac_status=$?
3053 grep -v '^ *+' conftest.er1 >conftest.err
3054 rm -f conftest.er1
3055 cat conftest.err >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } >/dev/null; then
3058 if test -s conftest.err; then
3059 ac_cpp_err=$ac_c_preproc_warn_flag
3060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3061 else
3062 ac_cpp_err=
3064 else
3065 ac_cpp_err=yes
3067 if test -z "$ac_cpp_err"; then
3068 # Broken: success on invalid input.
3069 continue
3070 else
3071 echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3074 # Passes both tests.
3075 ac_preproc_ok=:
3076 break
3078 rm -f conftest.err conftest.$ac_ext
3080 done
3081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3082 rm -f conftest.err conftest.$ac_ext
3083 if $ac_preproc_ok; then
3085 else
3086 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3087 See \`config.log' for more details." >&5
3088 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3089 See \`config.log' for more details." >&2;}
3090 { (exit 1); exit 1; }; }
3093 ac_ext=c
3094 ac_cpp='$CPP $CPPFLAGS'
3095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100 echo "$as_me:$LINENO: checking for egrep" >&5
3101 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3102 if test "${ac_cv_prog_egrep+set}" = set; then
3103 echo $ECHO_N "(cached) $ECHO_C" >&6
3104 else
3105 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3106 then ac_cv_prog_egrep='grep -E'
3107 else ac_cv_prog_egrep='egrep'
3110 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3111 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3112 EGREP=$ac_cv_prog_egrep
3116 echo "$as_me:$LINENO: checking for AIX" >&5
3117 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3118 cat >conftest.$ac_ext <<_ACEOF
3119 /* confdefs.h. */
3120 _ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h. */
3124 #ifdef _AIX
3126 #endif
3128 _ACEOF
3129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3130 $EGREP "yes" >/dev/null 2>&1; then
3131 echo "$as_me:$LINENO: result: yes" >&5
3132 echo "${ECHO_T}yes" >&6
3133 cat >>confdefs.h <<\_ACEOF
3134 #define _ALL_SOURCE 1
3135 _ACEOF
3137 else
3138 echo "$as_me:$LINENO: result: no" >&5
3139 echo "${ECHO_T}no" >&6
3141 rm -f conftest*
3145 # Check for unsupported systems
3146 case $ac_sys_system/$ac_sys_release in
3147 Linux*/1*)
3148 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3149 echo See README for details.
3150 exit 1;;
3151 esac
3154 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3155 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3157 # Check whether --with-suffix or --without-suffix was given.
3158 if test "${with_suffix+set}" = set; then
3159 withval="$with_suffix"
3161 case $withval in
3162 no) EXEEXT=;;
3163 yes) EXEEXT=.exe;;
3164 *) EXEEXT=$withval;;
3165 esac
3167 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3168 echo "${ECHO_T}$EXEEXT" >&6
3170 # Test whether we're running on a non-case-sensitive system, in which
3171 # case we give a warning if no ext is given
3173 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3174 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3175 if test ! -d CaseSensitiveTestDir; then
3176 mkdir CaseSensitiveTestDir
3179 if test -d casesensitivetestdir
3180 then
3181 echo "$as_me:$LINENO: result: yes" >&5
3182 echo "${ECHO_T}yes" >&6
3183 BUILDEXEEXT=.exe
3184 else
3185 echo "$as_me:$LINENO: result: no" >&5
3186 echo "${ECHO_T}no" >&6
3187 BUILDEXEEXT=$EXEEXT
3189 rmdir CaseSensitiveTestDir
3191 case $MACHDEP in
3192 bsdos*)
3193 case $CC in
3194 gcc) CC="$CC -D_HAVE_BSDI";;
3195 esac;;
3196 esac
3198 case $ac_sys_system in
3199 hp*|HP*)
3200 case $CC in
3201 cc|*/cc) CC="$CC -Ae";;
3202 esac;;
3203 Monterey*)
3204 case $CC in
3205 cc) CC="$CC -Wl,-Bexport";;
3206 esac;;
3207 SunOS*)
3208 # Some functions have a prototype only with that define, e.g. confstr
3210 cat >>confdefs.h <<\_ACEOF
3211 #define __EXTENSIONS__ 1
3212 _ACEOF
3215 esac
3219 echo "$as_me:$LINENO: checking LIBRARY" >&5
3220 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3221 if test -z "$LIBRARY"
3222 then
3223 LIBRARY='libpython$(VERSION).a'
3225 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3226 echo "${ECHO_T}$LIBRARY" >&6
3228 # LDLIBRARY is the name of the library to link against (as opposed to the
3229 # name of the library into which to insert object files). BLDLIBRARY is also
3230 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3231 # is blank as the main program is not linked directly against LDLIBRARY.
3232 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3233 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3234 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3235 # DLLLIBRARY is the shared (i.e., DLL) library.
3237 # RUNSHARED is used to run shared python without installed libraries
3239 # INSTSONAME is the name of the shared library that will be use to install
3240 # on the system - some systems like version suffix, others don't
3247 LDLIBRARY="$LIBRARY"
3248 BLDLIBRARY='$(LDLIBRARY)'
3249 INSTSONAME='$(LDLIBRARY)'
3250 DLLLIBRARY=''
3251 LDLIBRARYDIR=''
3252 RUNSHARED=''
3254 # LINKCC is the command that links the python executable -- default is $(CC).
3255 # If CXX is set, and if it is needed to link a main function that was
3256 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3257 # python might then depend on the C++ runtime
3258 # This is altered for AIX in order to build the export list before
3259 # linking.
3261 echo "$as_me:$LINENO: checking LINKCC" >&5
3262 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3263 if test -z "$LINKCC"
3264 then
3265 if test -z "$CXX"; then
3266 LINKCC="\$(PURIFY) \$(CC)"
3267 else
3268 echo 'extern "C" void foo();int main(){foo();}' > conftest_a.cc
3269 $CXX -c conftest_a.cc # 2>&5
3270 echo 'void foo(){}' > conftest_b.$ac_ext
3271 $CC -c conftest_b.$ac_ext # 2>&5
3272 if $CC -o conftest$ac_exeext conftest_a.$ac_objext conftest_b.$ac_objext 2>&5 \
3273 && test -s conftest$ac_exeext && ./conftest$ac_exeext
3274 then
3275 LINKCC="\$(PURIFY) \$(CC)"
3276 else
3277 LINKCC="\$(PURIFY) \$(CXX)"
3279 rm -fr conftest*
3281 case $ac_sys_system in
3282 AIX*)
3283 exp_extra="\"\""
3284 if test $ac_sys_release -ge 5 -o \
3285 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3286 exp_extra="."
3288 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3289 Monterey64*)
3290 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3291 esac
3293 echo "$as_me:$LINENO: result: $LINKCC" >&5
3294 echo "${ECHO_T}$LINKCC" >&6
3296 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3297 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3298 # Check whether --enable-shared or --disable-shared was given.
3299 if test "${enable_shared+set}" = set; then
3300 enableval="$enable_shared"
3304 if test -z "$enable_shared"
3305 then
3306 case $ac_sys_system in
3307 CYGWIN* | atheos*)
3308 enable_shared="yes";;
3310 enable_shared="no";;
3311 esac
3313 echo "$as_me:$LINENO: result: $enable_shared" >&5
3314 echo "${ECHO_T}$enable_shared" >&6
3316 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3317 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3318 # Check whether --enable-profiling or --disable-profiling was given.
3319 if test "${enable_profiling+set}" = set; then
3320 enableval="$enable_profiling"
3321 ac_save_cc="$CC"
3322 CC="$CC -pg"
3323 if test "$cross_compiling" = yes; then
3324 ac_enable_profiling="no"
3325 else
3326 cat >conftest.$ac_ext <<_ACEOF
3327 /* confdefs.h. */
3328 _ACEOF
3329 cat confdefs.h >>conftest.$ac_ext
3330 cat >>conftest.$ac_ext <<_ACEOF
3331 /* end confdefs.h. */
3332 int main() { return 0; }
3333 _ACEOF
3334 rm -f conftest$ac_exeext
3335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3336 (eval $ac_link) 2>&5
3337 ac_status=$?
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3341 (eval $ac_try) 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; }; then
3345 ac_enable_profiling="yes"
3346 else
3347 echo "$as_me: program exited with status $ac_status" >&5
3348 echo "$as_me: failed program was:" >&5
3349 sed 's/^/| /' conftest.$ac_ext >&5
3351 ( exit $ac_status )
3352 ac_enable_profiling="no"
3354 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3356 CC="$ac_save_cc"
3358 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3359 echo "${ECHO_T}$ac_enable_profiling" >&6
3361 case "$ac_enable_profiling" in
3362 "yes")
3363 BASECFLAGS="-pg $BASECFLAGS"
3364 LDFLAGS="-pg $LDFLAGS"
3366 esac
3368 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3369 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3371 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3372 # library that we build, but we do not want to link against it (we
3373 # will find it with a -framework option). For this reason there is an
3374 # extra variable BLDLIBRARY against which Python and the extension
3375 # modules are linked, BLDLIBRARY. This is normally the same as
3376 # LDLIBRARY, but empty for MacOSX framework builds.
3377 if test "$enable_framework"
3378 then
3379 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3380 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
3381 BLDLIBRARY=''
3382 else
3383 BLDLIBRARY='$(LDLIBRARY)'
3386 # Other platforms follow
3387 if test $enable_shared = "yes"; then
3389 cat >>confdefs.h <<\_ACEOF
3390 #define Py_ENABLE_SHARED 1
3391 _ACEOF
3393 case $ac_sys_system in
3394 BeOS*)
3395 LDLIBRARY='libpython$(VERSION).so'
3397 CYGWIN*)
3398 LDLIBRARY='libpython$(VERSION).dll.a'
3399 DLLLIBRARY='libpython$(VERSION).dll'
3401 SunOS*)
3402 LDLIBRARY='libpython$(VERSION).so'
3403 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3404 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3405 INSTSONAME="$LDLIBRARY".$SOVERSION
3407 Linux*|GNU*|NetBSD*|FreeBSD*)
3408 LDLIBRARY='libpython$(VERSION).so'
3409 BLDLIBRARY='-L. -lpython$(VERSION)'
3410 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3411 case $ac_sys_system in
3412 FreeBSD*)
3413 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
3415 esac
3416 INSTSONAME="$LDLIBRARY".$SOVERSION
3418 hp*|HP*)
3419 LDLIBRARY='libpython$(VERSION).sl'
3420 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3421 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
3423 OSF*)
3424 LDLIBRARY='libpython$(VERSION).so'
3425 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3426 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3428 atheos*)
3429 LDLIBRARY='libpython$(VERSION).so'
3430 BLDLIBRARY='-L. -lpython$(VERSION)'
3431 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3433 esac
3434 else # shared is disabled
3435 case $ac_sys_system in
3436 CYGWIN*)
3437 BLDLIBRARY='$(LIBRARY)'
3438 LDLIBRARY='libpython$(VERSION).dll.a'
3440 esac
3443 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3444 echo "${ECHO_T}$LDLIBRARY" >&6
3446 if test -n "$ac_tool_prefix"; then
3447 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3448 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3449 echo "$as_me:$LINENO: checking for $ac_word" >&5
3450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3451 if test "${ac_cv_prog_RANLIB+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3453 else
3454 if test -n "$RANLIB"; then
3455 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3456 else
3457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458 for as_dir in $PATH
3460 IFS=$as_save_IFS
3461 test -z "$as_dir" && as_dir=.
3462 for ac_exec_ext in '' $ac_executable_extensions; do
3463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3464 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3466 break 2
3468 done
3469 done
3473 RANLIB=$ac_cv_prog_RANLIB
3474 if test -n "$RANLIB"; then
3475 echo "$as_me:$LINENO: result: $RANLIB" >&5
3476 echo "${ECHO_T}$RANLIB" >&6
3477 else
3478 echo "$as_me:$LINENO: result: no" >&5
3479 echo "${ECHO_T}no" >&6
3483 if test -z "$ac_cv_prog_RANLIB"; then
3484 ac_ct_RANLIB=$RANLIB
3485 # Extract the first word of "ranlib", so it can be a program name with args.
3486 set dummy ranlib; ac_word=$2
3487 echo "$as_me:$LINENO: checking for $ac_word" >&5
3488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3489 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3490 echo $ECHO_N "(cached) $ECHO_C" >&6
3491 else
3492 if test -n "$ac_ct_RANLIB"; then
3493 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3494 else
3495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3496 for as_dir in $PATH
3498 IFS=$as_save_IFS
3499 test -z "$as_dir" && as_dir=.
3500 for ac_exec_ext in '' $ac_executable_extensions; do
3501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3502 ac_cv_prog_ac_ct_RANLIB="ranlib"
3503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3504 break 2
3506 done
3507 done
3509 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3512 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3513 if test -n "$ac_ct_RANLIB"; then
3514 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3515 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3516 else
3517 echo "$as_me:$LINENO: result: no" >&5
3518 echo "${ECHO_T}no" >&6
3521 RANLIB=$ac_ct_RANLIB
3522 else
3523 RANLIB="$ac_cv_prog_RANLIB"
3527 for ac_prog in ar aal
3529 # Extract the first word of "$ac_prog", so it can be a program name with args.
3530 set dummy $ac_prog; ac_word=$2
3531 echo "$as_me:$LINENO: checking for $ac_word" >&5
3532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3533 if test "${ac_cv_prog_AR+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536 if test -n "$AR"; then
3537 ac_cv_prog_AR="$AR" # Let the user override the test.
3538 else
3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540 for as_dir in $PATH
3542 IFS=$as_save_IFS
3543 test -z "$as_dir" && as_dir=.
3544 for ac_exec_ext in '' $ac_executable_extensions; do
3545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3546 ac_cv_prog_AR="$ac_prog"
3547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3548 break 2
3550 done
3551 done
3555 AR=$ac_cv_prog_AR
3556 if test -n "$AR"; then
3557 echo "$as_me:$LINENO: result: $AR" >&5
3558 echo "${ECHO_T}$AR" >&6
3559 else
3560 echo "$as_me:$LINENO: result: no" >&5
3561 echo "${ECHO_T}no" >&6
3564 test -n "$AR" && break
3565 done
3566 test -n "$AR" || AR="ar"
3569 case $MACHDEP in
3570 bsdos*|hp*|HP*)
3571 # install -d does not work on BSDI or HP-UX
3572 if test -z "$INSTALL"
3573 then
3574 INSTALL="${srcdir}/install-sh -c"
3576 esac
3577 ac_aux_dir=
3578 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3579 if test -f $ac_dir/install-sh; then
3580 ac_aux_dir=$ac_dir
3581 ac_install_sh="$ac_aux_dir/install-sh -c"
3582 break
3583 elif test -f $ac_dir/install.sh; then
3584 ac_aux_dir=$ac_dir
3585 ac_install_sh="$ac_aux_dir/install.sh -c"
3586 break
3587 elif test -f $ac_dir/shtool; then
3588 ac_aux_dir=$ac_dir
3589 ac_install_sh="$ac_aux_dir/shtool install -c"
3590 break
3592 done
3593 if test -z "$ac_aux_dir"; then
3594 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3595 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3596 { (exit 1); exit 1; }; }
3598 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3599 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3600 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3602 # Find a good install program. We prefer a C program (faster),
3603 # so one script is as good as another. But avoid the broken or
3604 # incompatible versions:
3605 # SysV /etc/install, /usr/sbin/install
3606 # SunOS /usr/etc/install
3607 # IRIX /sbin/install
3608 # AIX /bin/install
3609 # AmigaOS /C/install, which installs bootblocks on floppy discs
3610 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3611 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3612 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3613 # OS/2's system install, which has a completely different semantic
3614 # ./install, which can be erroneously created by make from ./install.sh.
3615 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3616 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3617 if test -z "$INSTALL"; then
3618 if test "${ac_cv_path_install+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH
3624 IFS=$as_save_IFS
3625 test -z "$as_dir" && as_dir=.
3626 # Account for people who put trailing slashes in PATH elements.
3627 case $as_dir/ in
3628 ./ | .// | /cC/* | \
3629 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3630 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3631 /usr/ucb/* ) ;;
3633 # OSF1 and SCO ODT 3.0 have their own names for install.
3634 # Don't use installbsd from OSF since it installs stuff as root
3635 # by default.
3636 for ac_prog in ginstall scoinst install; do
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3639 if test $ac_prog = install &&
3640 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3641 # AIX install. It has an incompatible calling convention.
3643 elif test $ac_prog = install &&
3644 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3645 # program-specific install script used by HP pwplus--don't use.
3647 else
3648 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3649 break 3
3652 done
3653 done
3655 esac
3656 done
3660 if test "${ac_cv_path_install+set}" = set; then
3661 INSTALL=$ac_cv_path_install
3662 else
3663 # As a last resort, use the slow shell script. We don't cache a
3664 # path for INSTALL within a source directory, because that will
3665 # break other packages using the cache if that directory is
3666 # removed, or if the path is relative.
3667 INSTALL=$ac_install_sh
3670 echo "$as_me:$LINENO: result: $INSTALL" >&5
3671 echo "${ECHO_T}$INSTALL" >&6
3673 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3674 # It thinks the first close brace ends the variable substitution.
3675 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3677 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3679 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3682 # Not every filesystem supports hard links
3684 if test -z "$LN" ; then
3685 case $ac_sys_system in
3686 BeOS*) LN="ln -s";;
3687 CYGWIN*) LN="ln -s";;
3688 atheos*) LN="ln -s";;
3689 *) LN=ln;;
3690 esac
3693 # Check for --with-pydebug
3694 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3695 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3697 # Check whether --with-pydebug or --without-pydebug was given.
3698 if test "${with_pydebug+set}" = set; then
3699 withval="$with_pydebug"
3701 if test "$withval" != no
3702 then
3704 cat >>confdefs.h <<\_ACEOF
3705 #define Py_DEBUG 1
3706 _ACEOF
3708 echo "$as_me:$LINENO: result: yes" >&5
3709 echo "${ECHO_T}yes" >&6;
3710 Py_DEBUG='true'
3711 else echo "$as_me:$LINENO: result: no" >&5
3712 echo "${ECHO_T}no" >&6; Py_DEBUG='false'
3714 else
3715 echo "$as_me:$LINENO: result: no" >&5
3716 echo "${ECHO_T}no" >&6
3719 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3720 # merged with this chunk of code?
3722 # Optimizer/debugger flags
3723 # ------------------------
3724 # (The following bit of code is complicated enough - please keep things
3725 # indented properly. Just pretend you're editing Python code. ;-)
3727 # There are two parallel sets of case statements below, one that checks to
3728 # see if OPT was set and one that does BASECFLAGS setting based upon
3729 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3730 # user set OPT.
3732 # tweak OPT based on compiler and platform, only if the user didn't set
3733 # it on the command line
3735 if test -z "$OPT"
3736 then
3737 case $GCC in
3738 yes)
3739 case $ac_cv_prog_cc_g in
3740 yes)
3741 if test "$Py_DEBUG" = 'true' ; then
3742 # Optimization messes up debuggers, so turn it off for
3743 # debug builds.
3744 OPT="-g -Wall -Wstrict-prototypes"
3745 else
3746 OPT="-g -O3 -Wall -Wstrict-prototypes"
3750 OPT="-O3 -Wall -Wstrict-prototypes"
3752 esac
3753 case $ac_sys_system in
3754 SCO_SV*) OPT="$OPT -m486 -DSCO5"
3756 esac
3760 OPT="-O"
3762 esac
3764 # The current (beta) Monterey compiler dies with optimizations
3765 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3766 case $ac_sys_system in
3767 Monterey*)
3768 OPT=""
3770 esac
3775 # tweak BASECFLAGS based on compiler and platform
3776 case $GCC in
3777 yes)
3778 # Python violates C99 rules, by casting between incompatible
3779 # pointer types. GCC may generate bad code as a result of that,
3780 # so use -fno-strict-aliasing if supported.
3781 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3782 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3783 ac_save_cc="$CC"
3784 CC="$CC -fno-strict-aliasing"
3785 if test "$cross_compiling" = yes; then
3786 ac_cv_no_strict_aliasing_ok=no
3787 else
3788 cat >conftest.$ac_ext <<_ACEOF
3789 /* confdefs.h. */
3790 _ACEOF
3791 cat confdefs.h >>conftest.$ac_ext
3792 cat >>conftest.$ac_ext <<_ACEOF
3793 /* end confdefs.h. */
3794 int main() { return 0; }
3795 _ACEOF
3796 rm -f conftest$ac_exeext
3797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3798 (eval $ac_link) 2>&5
3799 ac_status=$?
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803 (eval $ac_try) 2>&5
3804 ac_status=$?
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; }; then
3807 ac_cv_no_strict_aliasing_ok=yes
3808 else
3809 echo "$as_me: program exited with status $ac_status" >&5
3810 echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3813 ( exit $ac_status )
3814 ac_cv_no_strict_aliasing_ok=no
3816 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3818 CC="$ac_save_cc"
3819 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3820 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3821 if test $ac_cv_no_strict_aliasing_ok = yes
3822 then
3823 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
3825 case $ac_sys_system in
3826 SCO_SV*)
3827 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
3829 # is there any other compiler on Darwin besides gcc?
3830 Darwin*)
3831 BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3833 esac
3837 case $ac_sys_system in
3838 OpenUNIX*|UnixWare*)
3839 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3841 OSF*)
3842 BASECFLAGS="$BASECFLAGS -ieee -std"
3844 SCO_SV*)
3845 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
3847 esac
3849 esac
3851 if test "$Py_DEBUG" = 'true'; then
3853 else
3854 OPT="-DNDEBUG $OPT"
3857 if test "$ac_arch_flags"
3858 then
3859 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
3862 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3863 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3864 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3866 else
3867 ac_save_cc="$CC"
3868 CC="$CC -OPT:Olimit=0"
3869 if test "$cross_compiling" = yes; then
3870 ac_cv_opt_olimit_ok=no
3871 else
3872 cat >conftest.$ac_ext <<_ACEOF
3873 /* confdefs.h. */
3874 _ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h. */
3878 int main() { return 0; }
3879 _ACEOF
3880 rm -f conftest$ac_exeext
3881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3882 (eval $ac_link) 2>&5
3883 ac_status=$?
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3887 (eval $ac_try) 2>&5
3888 ac_status=$?
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); }; }; then
3891 ac_cv_opt_olimit_ok=yes
3892 else
3893 echo "$as_me: program exited with status $ac_status" >&5
3894 echo "$as_me: failed program was:" >&5
3895 sed 's/^/| /' conftest.$ac_ext >&5
3897 ( exit $ac_status )
3898 ac_cv_opt_olimit_ok=no
3900 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3902 CC="$ac_save_cc"
3905 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3906 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3907 if test $ac_cv_opt_olimit_ok = yes; then
3908 case $ac_sys_system in
3909 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3910 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3911 # environment?
3912 Darwin*)
3915 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
3917 esac
3918 else
3919 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3920 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3921 if test "${ac_cv_olimit_ok+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 else
3924 ac_save_cc="$CC"
3925 CC="$CC -Olimit 1500"
3926 if test "$cross_compiling" = yes; then
3927 ac_cv_olimit_ok=no
3928 else
3929 cat >conftest.$ac_ext <<_ACEOF
3930 /* confdefs.h. */
3931 _ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3935 int main() { return 0; }
3936 _ACEOF
3937 rm -f conftest$ac_exeext
3938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3939 (eval $ac_link) 2>&5
3940 ac_status=$?
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944 (eval $ac_try) 2>&5
3945 ac_status=$?
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; }; then
3948 ac_cv_olimit_ok=yes
3949 else
3950 echo "$as_me: program exited with status $ac_status" >&5
3951 echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3954 ( exit $ac_status )
3955 ac_cv_olimit_ok=no
3957 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3959 CC="$ac_save_cc"
3962 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
3963 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
3964 if test $ac_cv_olimit_ok = yes; then
3965 BASECFLAGS="$BASECFLAGS -Olimit 1500"
3969 # On some compilers, pthreads are available without further options
3970 # (e.g. MacOS X). On some of these systems, the compiler will not
3971 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
3972 # So we have to see first whether pthreads are available without
3973 # options before we can check whether -Kpthread improves anything.
3974 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
3975 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
3976 if test "${ac_cv_pthread_is_default+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 else
3979 if test "$cross_compiling" = yes; then
3980 ac_cv_pthread_is_default=no
3981 else
3982 cat >conftest.$ac_ext <<_ACEOF
3983 /* confdefs.h. */
3984 _ACEOF
3985 cat confdefs.h >>conftest.$ac_ext
3986 cat >>conftest.$ac_ext <<_ACEOF
3987 /* end confdefs.h. */
3989 #include <pthread.h>
3991 void* routine(void* p){return NULL;}
3993 int main(){
3994 pthread_t p;
3995 if(pthread_create(&p,NULL,routine,NULL)!=0)
3996 return 1;
3997 (void)pthread_detach(p);
3998 return 0;
4001 _ACEOF
4002 rm -f conftest$ac_exeext
4003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4004 (eval $ac_link) 2>&5
4005 ac_status=$?
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009 (eval $ac_try) 2>&5
4010 ac_status=$?
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }; }; then
4014 ac_cv_pthread_is_default=yes
4015 ac_cv_kthread=no
4016 ac_cv_pthread=no
4018 else
4019 echo "$as_me: program exited with status $ac_status" >&5
4020 echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4023 ( exit $ac_status )
4024 ac_cv_pthread_is_default=no
4026 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4031 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4032 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4035 if test $ac_cv_pthread_is_default = yes
4036 then
4037 ac_cv_kpthread=no
4038 else
4039 # -Kpthread, if available, provides the right #defines
4040 # and linker options to make pthread_create available
4041 # Some compilers won't report that they do not support -Kpthread,
4042 # so we need to run a program to see whether it really made the
4043 # function available.
4044 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4045 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4046 if test "${ac_cv_kpthread+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049 ac_save_cc="$CC"
4050 CC="$CC -Kpthread"
4051 if test "$cross_compiling" = yes; then
4052 ac_cv_kpthread=no
4053 else
4054 cat >conftest.$ac_ext <<_ACEOF
4055 /* confdefs.h. */
4056 _ACEOF
4057 cat confdefs.h >>conftest.$ac_ext
4058 cat >>conftest.$ac_ext <<_ACEOF
4059 /* end confdefs.h. */
4061 #include <pthread.h>
4063 void* routine(void* p){return NULL;}
4065 int main(){
4066 pthread_t p;
4067 if(pthread_create(&p,NULL,routine,NULL)!=0)
4068 return 1;
4069 (void)pthread_detach(p);
4070 return 0;
4073 _ACEOF
4074 rm -f conftest$ac_exeext
4075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4076 (eval $ac_link) 2>&5
4077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 (eval $ac_try) 2>&5
4082 ac_status=$?
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; }; then
4085 ac_cv_kpthread=yes
4086 else
4087 echo "$as_me: program exited with status $ac_status" >&5
4088 echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4091 ( exit $ac_status )
4092 ac_cv_kpthread=no
4094 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4096 CC="$ac_save_cc"
4099 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4100 echo "${ECHO_T}$ac_cv_kpthread" >&6
4103 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4104 then
4105 # -Kthread, if available, provides the right #defines
4106 # and linker options to make pthread_create available
4107 # Some compilers won't report that they do not support -Kthread,
4108 # so we need to run a program to see whether it really made the
4109 # function available.
4110 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4111 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4112 if test "${ac_cv_kthread+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115 ac_save_cc="$CC"
4116 CC="$CC -Kthread"
4117 if test "$cross_compiling" = yes; then
4118 ac_cv_kthread=no
4119 else
4120 cat >conftest.$ac_ext <<_ACEOF
4121 /* confdefs.h. */
4122 _ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h. */
4127 #include <pthread.h>
4129 void* routine(void* p){return NULL;}
4131 int main(){
4132 pthread_t p;
4133 if(pthread_create(&p,NULL,routine,NULL)!=0)
4134 return 1;
4135 (void)pthread_detach(p);
4136 return 0;
4139 _ACEOF
4140 rm -f conftest$ac_exeext
4141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4142 (eval $ac_link) 2>&5
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4147 (eval $ac_try) 2>&5
4148 ac_status=$?
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; }; then
4151 ac_cv_kthread=yes
4152 else
4153 echo "$as_me: program exited with status $ac_status" >&5
4154 echo "$as_me: failed program was:" >&5
4155 sed 's/^/| /' conftest.$ac_ext >&5
4157 ( exit $ac_status )
4158 ac_cv_kthread=no
4160 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4162 CC="$ac_save_cc"
4165 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4166 echo "${ECHO_T}$ac_cv_kthread" >&6
4169 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
4170 then
4171 # -pthread, if available, provides the right #defines
4172 # and linker options to make pthread_create available
4173 # Some compilers won't report that they do not support -pthread,
4174 # so we need to run a program to see whether it really made the
4175 # function available.
4176 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4177 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4178 if test "${ac_cv_thread+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181 ac_save_cc="$CC"
4182 CC="$CC -pthread"
4183 if test "$cross_compiling" = yes; then
4184 ac_cv_pthread=no
4185 else
4186 cat >conftest.$ac_ext <<_ACEOF
4187 /* confdefs.h. */
4188 _ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4193 #include <pthread.h>
4195 void* routine(void* p){return NULL;}
4197 int main(){
4198 pthread_t p;
4199 if(pthread_create(&p,NULL,routine,NULL)!=0)
4200 return 1;
4201 (void)pthread_detach(p);
4202 return 0;
4205 _ACEOF
4206 rm -f conftest$ac_exeext
4207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4208 (eval $ac_link) 2>&5
4209 ac_status=$?
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213 (eval $ac_try) 2>&5
4214 ac_status=$?
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; }; then
4217 ac_cv_pthread=yes
4218 else
4219 echo "$as_me: program exited with status $ac_status" >&5
4220 echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4223 ( exit $ac_status )
4224 ac_cv_pthread=no
4226 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4228 CC="$ac_save_cc"
4231 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4232 echo "${ECHO_T}$ac_cv_pthread" >&6
4235 # If we have set a CC compiler flag for thread support then
4236 # check if it works for CXX, too.
4237 ac_cv_cxx_thread=no
4238 if test ! -z "$CXX"
4239 then
4240 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4241 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4242 ac_save_cxx="$CXX"
4244 if test "$ac_cv_kpthread" = "yes"
4245 then
4246 CXX="$CXX -Kpthread"
4247 ac_cv_cxx_thread=yes
4248 elif test "$ac_cv_kthread" = "yes"
4249 then
4250 CXX="$CXX -Kthread"
4251 ac_cv_cxx_thread=yes
4252 elif test "$ac_cv_pthread" = "yes"
4253 then
4254 CXX="$CXX -pthread"
4255 ac_cv_cxx_thread=yes
4258 if test $ac_cv_cxx_thread = yes
4259 then
4260 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
4261 $CXX -c conftest.$ac_ext 2>&5
4262 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
4263 && test -s conftest$ac_exeext && ./conftest$ac_exeext
4264 then
4265 ac_cv_cxx_thread=yes
4266 else
4267 ac_cv_cxx_thread=no
4269 rm -fr conftest*
4271 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4272 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4274 CXX="$ac_save_cxx"
4277 # checks for header files
4278 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4279 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4280 if test "${ac_cv_header_stdc+set}" = set; then
4281 echo $ECHO_N "(cached) $ECHO_C" >&6
4282 else
4283 cat >conftest.$ac_ext <<_ACEOF
4284 /* confdefs.h. */
4285 _ACEOF
4286 cat confdefs.h >>conftest.$ac_ext
4287 cat >>conftest.$ac_ext <<_ACEOF
4288 /* end confdefs.h. */
4289 #include <stdlib.h>
4290 #include <stdarg.h>
4291 #include <string.h>
4292 #include <float.h>
4295 main ()
4299 return 0;
4301 _ACEOF
4302 rm -f conftest.$ac_objext
4303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4304 (eval $ac_compile) 2>conftest.er1
4305 ac_status=$?
4306 grep -v '^ *+' conftest.er1 >conftest.err
4307 rm -f conftest.er1
4308 cat conftest.err >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } &&
4311 { ac_try='test -z "$ac_c_werror_flag"
4312 || test ! -s conftest.err'
4313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314 (eval $ac_try) 2>&5
4315 ac_status=$?
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; } &&
4318 { ac_try='test -s conftest.$ac_objext'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4320 (eval $ac_try) 2>&5
4321 ac_status=$?
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 ac_cv_header_stdc=yes
4325 else
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4329 ac_cv_header_stdc=no
4331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4333 if test $ac_cv_header_stdc = yes; then
4334 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4335 cat >conftest.$ac_ext <<_ACEOF
4336 /* confdefs.h. */
4337 _ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h. */
4341 #include <string.h>
4343 _ACEOF
4344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4345 $EGREP "memchr" >/dev/null 2>&1; then
4347 else
4348 ac_cv_header_stdc=no
4350 rm -f conftest*
4354 if test $ac_cv_header_stdc = yes; then
4355 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4356 cat >conftest.$ac_ext <<_ACEOF
4357 /* confdefs.h. */
4358 _ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h. */
4362 #include <stdlib.h>
4364 _ACEOF
4365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4366 $EGREP "free" >/dev/null 2>&1; then
4368 else
4369 ac_cv_header_stdc=no
4371 rm -f conftest*
4375 if test $ac_cv_header_stdc = yes; then
4376 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4377 if test "$cross_compiling" = yes; then
4379 else
4380 cat >conftest.$ac_ext <<_ACEOF
4381 /* confdefs.h. */
4382 _ACEOF
4383 cat confdefs.h >>conftest.$ac_ext
4384 cat >>conftest.$ac_ext <<_ACEOF
4385 /* end confdefs.h. */
4386 #include <ctype.h>
4387 #if ((' ' & 0x0FF) == 0x020)
4388 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4389 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4390 #else
4391 # define ISLOWER(c) \
4392 (('a' <= (c) && (c) <= 'i') \
4393 || ('j' <= (c) && (c) <= 'r') \
4394 || ('s' <= (c) && (c) <= 'z'))
4395 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4396 #endif
4398 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4400 main ()
4402 int i;
4403 for (i = 0; i < 256; i++)
4404 if (XOR (islower (i), ISLOWER (i))
4405 || toupper (i) != TOUPPER (i))
4406 exit(2);
4407 exit (0);
4409 _ACEOF
4410 rm -f conftest$ac_exeext
4411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4412 (eval $ac_link) 2>&5
4413 ac_status=$?
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417 (eval $ac_try) 2>&5
4418 ac_status=$?
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; }; then
4422 else
4423 echo "$as_me: program exited with status $ac_status" >&5
4424 echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.$ac_ext >&5
4427 ( exit $ac_status )
4428 ac_cv_header_stdc=no
4430 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4434 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4435 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4436 if test $ac_cv_header_stdc = yes; then
4438 cat >>confdefs.h <<\_ACEOF
4439 #define STDC_HEADERS 1
4440 _ACEOF
4444 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4454 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4455 inttypes.h stdint.h unistd.h
4457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4458 echo "$as_me:$LINENO: checking for $ac_header" >&5
4459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 else
4463 cat >conftest.$ac_ext <<_ACEOF
4464 /* confdefs.h. */
4465 _ACEOF
4466 cat confdefs.h >>conftest.$ac_ext
4467 cat >>conftest.$ac_ext <<_ACEOF
4468 /* end confdefs.h. */
4469 $ac_includes_default
4471 #include <$ac_header>
4472 _ACEOF
4473 rm -f conftest.$ac_objext
4474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4475 (eval $ac_compile) 2>conftest.er1
4476 ac_status=$?
4477 grep -v '^ *+' conftest.er1 >conftest.err
4478 rm -f conftest.er1
4479 cat conftest.err >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } &&
4482 { ac_try='test -z "$ac_c_werror_flag"
4483 || test ! -s conftest.err'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485 (eval $ac_try) 2>&5
4486 ac_status=$?
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; } &&
4489 { ac_try='test -s conftest.$ac_objext'
4490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491 (eval $ac_try) 2>&5
4492 ac_status=$?
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); }; }; then
4495 eval "$as_ac_Header=yes"
4496 else
4497 echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4500 eval "$as_ac_Header=no"
4502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4507 cat >>confdefs.h <<_ACEOF
4508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4509 _ACEOF
4513 done
4554 for ac_header in curses.h dlfcn.h fcntl.h grp.h shadow.h langinfo.h \
4555 libintl.h ncurses.h poll.h pthread.h \
4556 stropts.h termios.h thread.h \
4557 unistd.h utime.h \
4558 sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
4559 sys/modem.h \
4560 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \
4561 sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
4562 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
4563 bluetooth/bluetooth.h
4565 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4567 echo "$as_me:$LINENO: checking for $ac_header" >&5
4568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4574 else
4575 # Is the header compilable?
4576 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4577 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4578 cat >conftest.$ac_ext <<_ACEOF
4579 /* confdefs.h. */
4580 _ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h. */
4584 $ac_includes_default
4585 #include <$ac_header>
4586 _ACEOF
4587 rm -f conftest.$ac_objext
4588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4589 (eval $ac_compile) 2>conftest.er1
4590 ac_status=$?
4591 grep -v '^ *+' conftest.er1 >conftest.err
4592 rm -f conftest.er1
4593 cat conftest.err >&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); } &&
4596 { ac_try='test -z "$ac_c_werror_flag"
4597 || test ! -s conftest.err'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 (eval $ac_try) 2>&5
4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; } &&
4603 { ac_try='test -s conftest.$ac_objext'
4604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605 (eval $ac_try) 2>&5
4606 ac_status=$?
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; }; then
4609 ac_header_compiler=yes
4610 else
4611 echo "$as_me: failed program was:" >&5
4612 sed 's/^/| /' conftest.$ac_ext >&5
4614 ac_header_compiler=no
4616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4618 echo "${ECHO_T}$ac_header_compiler" >&6
4620 # Is the header present?
4621 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4623 cat >conftest.$ac_ext <<_ACEOF
4624 /* confdefs.h. */
4625 _ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h. */
4629 #include <$ac_header>
4630 _ACEOF
4631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4633 ac_status=$?
4634 grep -v '^ *+' conftest.er1 >conftest.err
4635 rm -f conftest.er1
4636 cat conftest.err >&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); } >/dev/null; then
4639 if test -s conftest.err; then
4640 ac_cpp_err=$ac_c_preproc_warn_flag
4641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4642 else
4643 ac_cpp_err=
4645 else
4646 ac_cpp_err=yes
4648 if test -z "$ac_cpp_err"; then
4649 ac_header_preproc=yes
4650 else
4651 echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.$ac_ext >&5
4654 ac_header_preproc=no
4656 rm -f conftest.err conftest.$ac_ext
4657 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4658 echo "${ECHO_T}$ac_header_preproc" >&6
4660 # So? What about this header?
4661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4662 yes:no: )
4663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4667 ac_header_preproc=yes
4669 no:yes:* )
4670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4683 cat <<\_ASBOX
4684 ## ------------------------------------------------ ##
4685 ## Report this to http://www.python.org/python-bugs ##
4686 ## ------------------------------------------------ ##
4687 _ASBOX
4689 sed "s/^/$as_me: WARNING: /" >&2
4691 esac
4692 echo "$as_me:$LINENO: checking for $ac_header" >&5
4693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 else
4697 eval "$as_ac_Header=\$ac_header_preproc"
4699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4704 cat >>confdefs.h <<_ACEOF
4705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4706 _ACEOF
4710 done
4717 ac_header_dirent=no
4718 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4719 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4720 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4721 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 else
4725 cat >conftest.$ac_ext <<_ACEOF
4726 /* confdefs.h. */
4727 _ACEOF
4728 cat confdefs.h >>conftest.$ac_ext
4729 cat >>conftest.$ac_ext <<_ACEOF
4730 /* end confdefs.h. */
4731 #include <sys/types.h>
4732 #include <$ac_hdr>
4735 main ()
4737 if ((DIR *) 0)
4738 return 0;
4740 return 0;
4742 _ACEOF
4743 rm -f conftest.$ac_objext
4744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4745 (eval $ac_compile) 2>conftest.er1
4746 ac_status=$?
4747 grep -v '^ *+' conftest.er1 >conftest.err
4748 rm -f conftest.er1
4749 cat conftest.err >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); } &&
4752 { ac_try='test -z "$ac_c_werror_flag"
4753 || test ! -s conftest.err'
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755 (eval $ac_try) 2>&5
4756 ac_status=$?
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; } &&
4759 { ac_try='test -s conftest.$ac_objext'
4760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4761 (eval $ac_try) 2>&5
4762 ac_status=$?
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); }; }; then
4765 eval "$as_ac_Header=yes"
4766 else
4767 echo "$as_me: failed program was:" >&5
4768 sed 's/^/| /' conftest.$ac_ext >&5
4770 eval "$as_ac_Header=no"
4772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4777 cat >>confdefs.h <<_ACEOF
4778 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4779 _ACEOF
4781 ac_header_dirent=$ac_hdr; break
4784 done
4785 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4786 if test $ac_header_dirent = dirent.h; then
4787 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4788 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4789 if test "${ac_cv_search_opendir+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4791 else
4792 ac_func_search_save_LIBS=$LIBS
4793 ac_cv_search_opendir=no
4794 cat >conftest.$ac_ext <<_ACEOF
4795 /* confdefs.h. */
4796 _ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h. */
4801 /* Override any gcc2 internal prototype to avoid an error. */
4802 #ifdef __cplusplus
4803 extern "C"
4804 #endif
4805 /* We use char because int might match the return type of a gcc2
4806 builtin and then its argument prototype would still apply. */
4807 char opendir ();
4809 main ()
4811 opendir ();
4813 return 0;
4815 _ACEOF
4816 rm -f conftest.$ac_objext conftest$ac_exeext
4817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4818 (eval $ac_link) 2>conftest.er1
4819 ac_status=$?
4820 grep -v '^ *+' conftest.er1 >conftest.err
4821 rm -f conftest.er1
4822 cat conftest.err >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } &&
4825 { ac_try='test -z "$ac_c_werror_flag"
4826 || test ! -s conftest.err'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 (eval $ac_try) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; } &&
4832 { ac_try='test -s conftest$ac_exeext'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 (eval $ac_try) 2>&5
4835 ac_status=$?
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; }; then
4838 ac_cv_search_opendir="none required"
4839 else
4840 echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4844 rm -f conftest.err conftest.$ac_objext \
4845 conftest$ac_exeext conftest.$ac_ext
4846 if test "$ac_cv_search_opendir" = no; then
4847 for ac_lib in dir; do
4848 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4849 cat >conftest.$ac_ext <<_ACEOF
4850 /* confdefs.h. */
4851 _ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4856 /* Override any gcc2 internal prototype to avoid an error. */
4857 #ifdef __cplusplus
4858 extern "C"
4859 #endif
4860 /* We use char because int might match the return type of a gcc2
4861 builtin and then its argument prototype would still apply. */
4862 char opendir ();
4864 main ()
4866 opendir ();
4868 return 0;
4870 _ACEOF
4871 rm -f conftest.$ac_objext conftest$ac_exeext
4872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4873 (eval $ac_link) 2>conftest.er1
4874 ac_status=$?
4875 grep -v '^ *+' conftest.er1 >conftest.err
4876 rm -f conftest.er1
4877 cat conftest.err >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } &&
4880 { ac_try='test -z "$ac_c_werror_flag"
4881 || test ! -s conftest.err'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 (eval $ac_try) 2>&5
4884 ac_status=$?
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; } &&
4887 { ac_try='test -s conftest$ac_exeext'
4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889 (eval $ac_try) 2>&5
4890 ac_status=$?
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; }; then
4893 ac_cv_search_opendir="-l$ac_lib"
4894 break
4895 else
4896 echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.$ac_ext >&5
4900 rm -f conftest.err conftest.$ac_objext \
4901 conftest$ac_exeext conftest.$ac_ext
4902 done
4904 LIBS=$ac_func_search_save_LIBS
4906 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4907 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4908 if test "$ac_cv_search_opendir" != no; then
4909 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4913 else
4914 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4915 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4916 if test "${ac_cv_search_opendir+set}" = set; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4918 else
4919 ac_func_search_save_LIBS=$LIBS
4920 ac_cv_search_opendir=no
4921 cat >conftest.$ac_ext <<_ACEOF
4922 /* confdefs.h. */
4923 _ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4928 /* Override any gcc2 internal prototype to avoid an error. */
4929 #ifdef __cplusplus
4930 extern "C"
4931 #endif
4932 /* We use char because int might match the return type of a gcc2
4933 builtin and then its argument prototype would still apply. */
4934 char opendir ();
4936 main ()
4938 opendir ();
4940 return 0;
4942 _ACEOF
4943 rm -f conftest.$ac_objext conftest$ac_exeext
4944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4945 (eval $ac_link) 2>conftest.er1
4946 ac_status=$?
4947 grep -v '^ *+' conftest.er1 >conftest.err
4948 rm -f conftest.er1
4949 cat conftest.err >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } &&
4952 { ac_try='test -z "$ac_c_werror_flag"
4953 || test ! -s conftest.err'
4954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955 (eval $ac_try) 2>&5
4956 ac_status=$?
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); }; } &&
4959 { ac_try='test -s conftest$ac_exeext'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961 (eval $ac_try) 2>&5
4962 ac_status=$?
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; }; then
4965 ac_cv_search_opendir="none required"
4966 else
4967 echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4971 rm -f conftest.err conftest.$ac_objext \
4972 conftest$ac_exeext conftest.$ac_ext
4973 if test "$ac_cv_search_opendir" = no; then
4974 for ac_lib in x; do
4975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4976 cat >conftest.$ac_ext <<_ACEOF
4977 /* confdefs.h. */
4978 _ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4983 /* Override any gcc2 internal prototype to avoid an error. */
4984 #ifdef __cplusplus
4985 extern "C"
4986 #endif
4987 /* We use char because int might match the return type of a gcc2
4988 builtin and then its argument prototype would still apply. */
4989 char opendir ();
4991 main ()
4993 opendir ();
4995 return 0;
4997 _ACEOF
4998 rm -f conftest.$ac_objext conftest$ac_exeext
4999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5000 (eval $ac_link) 2>conftest.er1
5001 ac_status=$?
5002 grep -v '^ *+' conftest.er1 >conftest.err
5003 rm -f conftest.er1
5004 cat conftest.err >&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } &&
5007 { ac_try='test -z "$ac_c_werror_flag"
5008 || test ! -s conftest.err'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 (eval $ac_try) 2>&5
5011 ac_status=$?
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; } &&
5014 { ac_try='test -s conftest$ac_exeext'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 (eval $ac_try) 2>&5
5017 ac_status=$?
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5020 ac_cv_search_opendir="-l$ac_lib"
5021 break
5022 else
5023 echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5027 rm -f conftest.err conftest.$ac_objext \
5028 conftest$ac_exeext conftest.$ac_ext
5029 done
5031 LIBS=$ac_func_search_save_LIBS
5033 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5034 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5035 if test "$ac_cv_search_opendir" != no; then
5036 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5042 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5043 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5044 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5046 else
5047 cat >conftest.$ac_ext <<_ACEOF
5048 /* confdefs.h. */
5049 _ACEOF
5050 cat confdefs.h >>conftest.$ac_ext
5051 cat >>conftest.$ac_ext <<_ACEOF
5052 /* end confdefs.h. */
5053 #include <sys/types.h>
5055 main ()
5057 return makedev(0, 0);
5059 return 0;
5061 _ACEOF
5062 rm -f conftest.$ac_objext conftest$ac_exeext
5063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5064 (eval $ac_link) 2>conftest.er1
5065 ac_status=$?
5066 grep -v '^ *+' conftest.er1 >conftest.err
5067 rm -f conftest.er1
5068 cat conftest.err >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); } &&
5071 { ac_try='test -z "$ac_c_werror_flag"
5072 || test ! -s conftest.err'
5073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074 (eval $ac_try) 2>&5
5075 ac_status=$?
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }; } &&
5078 { ac_try='test -s conftest$ac_exeext'
5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080 (eval $ac_try) 2>&5
5081 ac_status=$?
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; }; then
5084 ac_cv_header_sys_types_h_makedev=yes
5085 else
5086 echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.$ac_ext >&5
5089 ac_cv_header_sys_types_h_makedev=no
5091 rm -f conftest.err conftest.$ac_objext \
5092 conftest$ac_exeext conftest.$ac_ext
5095 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5096 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5098 if test $ac_cv_header_sys_types_h_makedev = no; then
5099 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5100 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5101 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5102 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5106 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5107 else
5108 # Is the header compilable?
5109 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5110 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5111 cat >conftest.$ac_ext <<_ACEOF
5112 /* confdefs.h. */
5113 _ACEOF
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h. */
5117 $ac_includes_default
5118 #include <sys/mkdev.h>
5119 _ACEOF
5120 rm -f conftest.$ac_objext
5121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5122 (eval $ac_compile) 2>conftest.er1
5123 ac_status=$?
5124 grep -v '^ *+' conftest.er1 >conftest.err
5125 rm -f conftest.er1
5126 cat conftest.err >&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } &&
5129 { ac_try='test -z "$ac_c_werror_flag"
5130 || test ! -s conftest.err'
5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132 (eval $ac_try) 2>&5
5133 ac_status=$?
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; } &&
5136 { ac_try='test -s conftest.$ac_objext'
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 (eval $ac_try) 2>&5
5139 ac_status=$?
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; }; then
5142 ac_header_compiler=yes
5143 else
5144 echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5147 ac_header_compiler=no
5149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5150 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5151 echo "${ECHO_T}$ac_header_compiler" >&6
5153 # Is the header present?
5154 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5155 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5156 cat >conftest.$ac_ext <<_ACEOF
5157 /* confdefs.h. */
5158 _ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h. */
5162 #include <sys/mkdev.h>
5163 _ACEOF
5164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5166 ac_status=$?
5167 grep -v '^ *+' conftest.er1 >conftest.err
5168 rm -f conftest.er1
5169 cat conftest.err >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); } >/dev/null; then
5172 if test -s conftest.err; then
5173 ac_cpp_err=$ac_c_preproc_warn_flag
5174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5175 else
5176 ac_cpp_err=
5178 else
5179 ac_cpp_err=yes
5181 if test -z "$ac_cpp_err"; then
5182 ac_header_preproc=yes
5183 else
5184 echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.$ac_ext >&5
5187 ac_header_preproc=no
5189 rm -f conftest.err conftest.$ac_ext
5190 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5191 echo "${ECHO_T}$ac_header_preproc" >&6
5193 # So? What about this header?
5194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5195 yes:no: )
5196 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5197 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5198 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5199 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5200 ac_header_preproc=yes
5202 no:yes:* )
5203 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5204 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5205 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5206 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5207 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5208 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5209 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5210 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5211 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5212 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5213 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5214 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5216 cat <<\_ASBOX
5217 ## ------------------------------------------------ ##
5218 ## Report this to http://www.python.org/python-bugs ##
5219 ## ------------------------------------------------ ##
5220 _ASBOX
5222 sed "s/^/$as_me: WARNING: /" >&2
5224 esac
5225 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5226 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5227 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230 ac_cv_header_sys_mkdev_h=$ac_header_preproc
5232 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5233 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5236 if test $ac_cv_header_sys_mkdev_h = yes; then
5238 cat >>confdefs.h <<\_ACEOF
5239 #define MAJOR_IN_MKDEV 1
5240 _ACEOF
5246 if test $ac_cv_header_sys_mkdev_h = no; then
5247 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5248 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5249 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5250 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5253 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5254 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5255 else
5256 # Is the header compilable?
5257 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5258 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5259 cat >conftest.$ac_ext <<_ACEOF
5260 /* confdefs.h. */
5261 _ACEOF
5262 cat confdefs.h >>conftest.$ac_ext
5263 cat >>conftest.$ac_ext <<_ACEOF
5264 /* end confdefs.h. */
5265 $ac_includes_default
5266 #include <sys/sysmacros.h>
5267 _ACEOF
5268 rm -f conftest.$ac_objext
5269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5270 (eval $ac_compile) 2>conftest.er1
5271 ac_status=$?
5272 grep -v '^ *+' conftest.er1 >conftest.err
5273 rm -f conftest.er1
5274 cat conftest.err >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } &&
5277 { ac_try='test -z "$ac_c_werror_flag"
5278 || test ! -s conftest.err'
5279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 (eval $ac_try) 2>&5
5281 ac_status=$?
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }; } &&
5284 { ac_try='test -s conftest.$ac_objext'
5285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286 (eval $ac_try) 2>&5
5287 ac_status=$?
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; }; then
5290 ac_header_compiler=yes
5291 else
5292 echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.$ac_ext >&5
5295 ac_header_compiler=no
5297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5299 echo "${ECHO_T}$ac_header_compiler" >&6
5301 # Is the header present?
5302 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5303 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5304 cat >conftest.$ac_ext <<_ACEOF
5305 /* confdefs.h. */
5306 _ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h. */
5310 #include <sys/sysmacros.h>
5311 _ACEOF
5312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5314 ac_status=$?
5315 grep -v '^ *+' conftest.er1 >conftest.err
5316 rm -f conftest.er1
5317 cat conftest.err >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); } >/dev/null; then
5320 if test -s conftest.err; then
5321 ac_cpp_err=$ac_c_preproc_warn_flag
5322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5323 else
5324 ac_cpp_err=
5326 else
5327 ac_cpp_err=yes
5329 if test -z "$ac_cpp_err"; then
5330 ac_header_preproc=yes
5331 else
5332 echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5335 ac_header_preproc=no
5337 rm -f conftest.err conftest.$ac_ext
5338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5339 echo "${ECHO_T}$ac_header_preproc" >&6
5341 # So? What about this header?
5342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5343 yes:no: )
5344 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5345 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5346 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5347 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5348 ac_header_preproc=yes
5350 no:yes:* )
5351 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5352 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5353 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5354 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5355 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5356 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5357 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5358 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5359 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5360 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5361 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5362 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5364 cat <<\_ASBOX
5365 ## ------------------------------------------------ ##
5366 ## Report this to http://www.python.org/python-bugs ##
5367 ## ------------------------------------------------ ##
5368 _ASBOX
5370 sed "s/^/$as_me: WARNING: /" >&2
5372 esac
5373 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5374 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5375 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 else
5378 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
5380 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5381 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5384 if test $ac_cv_header_sys_sysmacros_h = yes; then
5386 cat >>confdefs.h <<\_ACEOF
5387 #define MAJOR_IN_SYSMACROS 1
5388 _ACEOF
5397 # On Solaris, term.h requires curses.h
5399 for ac_header in term.h
5401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5402 echo "$as_me:$LINENO: checking for $ac_header" >&5
5403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5406 else
5407 cat >conftest.$ac_ext <<_ACEOF
5408 /* confdefs.h. */
5409 _ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5414 #ifdef HAVE_CURSES_H
5415 #include <curses.h>
5416 #endif
5419 #include <$ac_header>
5420 _ACEOF
5421 rm -f conftest.$ac_objext
5422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5423 (eval $ac_compile) 2>conftest.er1
5424 ac_status=$?
5425 grep -v '^ *+' conftest.er1 >conftest.err
5426 rm -f conftest.er1
5427 cat conftest.err >&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } &&
5430 { ac_try='test -z "$ac_c_werror_flag"
5431 || test ! -s conftest.err'
5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433 (eval $ac_try) 2>&5
5434 ac_status=$?
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; } &&
5437 { ac_try='test -s conftest.$ac_objext'
5438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439 (eval $ac_try) 2>&5
5440 ac_status=$?
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); }; }; then
5443 eval "$as_ac_Header=yes"
5444 else
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5448 eval "$as_ac_Header=no"
5450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5455 cat >>confdefs.h <<_ACEOF
5456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5457 _ACEOF
5461 done
5464 # checks for typedefs
5465 was_it_defined=no
5466 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5467 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5468 cat >conftest.$ac_ext <<_ACEOF
5469 /* confdefs.h. */
5470 _ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5474 #include <time.h>
5476 _ACEOF
5477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5478 $EGREP "clock_t" >/dev/null 2>&1; then
5479 was_it_defined=yes
5480 else
5483 cat >>confdefs.h <<\_ACEOF
5484 #define clock_t long
5485 _ACEOF
5489 rm -f conftest*
5491 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5492 echo "${ECHO_T}$was_it_defined" >&6
5494 # Check whether using makedev requires defining _OSF_SOURCE
5495 echo "$as_me:$LINENO: checking for makedev" >&5
5496 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5497 cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h. */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5503 #include <sys/types.h>
5505 main ()
5507 makedev(0, 0)
5509 return 0;
5511 _ACEOF
5512 rm -f conftest.$ac_objext conftest$ac_exeext
5513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5514 (eval $ac_link) 2>conftest.er1
5515 ac_status=$?
5516 grep -v '^ *+' conftest.er1 >conftest.err
5517 rm -f conftest.er1
5518 cat conftest.err >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } &&
5521 { ac_try='test -z "$ac_c_werror_flag"
5522 || test ! -s conftest.err'
5523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5524 (eval $ac_try) 2>&5
5525 ac_status=$?
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; } &&
5528 { ac_try='test -s conftest$ac_exeext'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 (eval $ac_try) 2>&5
5531 ac_status=$?
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; }; then
5534 ac_cv_has_makedev=yes
5535 else
5536 echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5539 ac_cv_has_makedev=no
5541 rm -f conftest.err conftest.$ac_objext \
5542 conftest$ac_exeext conftest.$ac_ext
5543 if test "$ac_cv_has_makedev" = "no"; then
5544 # we didn't link, try if _OSF_SOURCE will allow us to link
5545 cat >conftest.$ac_ext <<_ACEOF
5546 /* confdefs.h. */
5547 _ACEOF
5548 cat confdefs.h >>conftest.$ac_ext
5549 cat >>conftest.$ac_ext <<_ACEOF
5550 /* end confdefs.h. */
5552 #define _OSF_SOURCE 1
5553 #include <sys/types.h>
5556 main ()
5558 makedev(0, 0)
5560 return 0;
5562 _ACEOF
5563 rm -f conftest.$ac_objext conftest$ac_exeext
5564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5565 (eval $ac_link) 2>conftest.er1
5566 ac_status=$?
5567 grep -v '^ *+' conftest.er1 >conftest.err
5568 rm -f conftest.er1
5569 cat conftest.err >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); } &&
5572 { ac_try='test -z "$ac_c_werror_flag"
5573 || test ! -s conftest.err'
5574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5575 (eval $ac_try) 2>&5
5576 ac_status=$?
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }; } &&
5579 { ac_try='test -s conftest$ac_exeext'
5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581 (eval $ac_try) 2>&5
5582 ac_status=$?
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; }; then
5585 ac_cv_has_makedev=yes
5586 else
5587 echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.$ac_ext >&5
5590 ac_cv_has_makedev=no
5592 rm -f conftest.err conftest.$ac_objext \
5593 conftest$ac_exeext conftest.$ac_ext
5594 if test "$ac_cv_has_makedev" = "yes"; then
5596 cat >>confdefs.h <<\_ACEOF
5597 #define _OSF_SOURCE 1
5598 _ACEOF
5602 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5603 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5604 if test "$ac_cv_has_makedev" = "yes"; then
5606 cat >>confdefs.h <<\_ACEOF
5607 #define HAVE_MAKEDEV 1
5608 _ACEOF
5612 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5613 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5614 # defined, but the compiler does not support pragma redefine_extname,
5615 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5616 # structures (such as rlimit64) without declaring them. As a
5617 # work-around, disable LFS on such configurations
5619 use_lfs=yes
5620 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5621 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5622 cat >conftest.$ac_ext <<_ACEOF
5623 /* confdefs.h. */
5624 _ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5629 #define _LARGEFILE_SOURCE 1
5630 #define _FILE_OFFSET_BITS 64
5631 #include <sys/resource.h>
5634 main ()
5636 struct rlimit foo;
5638 return 0;
5640 _ACEOF
5641 rm -f conftest.$ac_objext
5642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5643 (eval $ac_compile) 2>conftest.er1
5644 ac_status=$?
5645 grep -v '^ *+' conftest.er1 >conftest.err
5646 rm -f conftest.er1
5647 cat conftest.err >&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } &&
5650 { ac_try='test -z "$ac_c_werror_flag"
5651 || test ! -s conftest.err'
5652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653 (eval $ac_try) 2>&5
5654 ac_status=$?
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); }; } &&
5657 { ac_try='test -s conftest.$ac_objext'
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659 (eval $ac_try) 2>&5
5660 ac_status=$?
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; }; then
5663 sol_lfs_bug=no
5664 else
5665 echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5668 sol_lfs_bug=yes
5670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5671 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5672 echo "${ECHO_T}$sol_lfs_bug" >&6
5673 if test "$sol_lfs_bug" = "yes"; then
5674 use_lfs=no
5677 if test "$use_lfs" = "yes"; then
5678 # Two defines needed to enable largefile support on various platforms
5679 # These may affect some typedefs
5681 cat >>confdefs.h <<\_ACEOF
5682 #define _LARGEFILE_SOURCE 1
5683 _ACEOF
5686 cat >>confdefs.h <<\_ACEOF
5687 #define _FILE_OFFSET_BITS 64
5688 _ACEOF
5692 # Add some code to confdefs.h so that the test for off_t works on SCO
5693 cat >> confdefs.h <<\EOF
5694 #if defined(SCO_DS)
5695 #undef _OFF_T
5696 #endif
5699 # Type availability checks
5700 echo "$as_me:$LINENO: checking for mode_t" >&5
5701 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5702 if test "${ac_cv_type_mode_t+set}" = set; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
5704 else
5705 cat >conftest.$ac_ext <<_ACEOF
5706 /* confdefs.h. */
5707 _ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h. */
5711 $ac_includes_default
5713 main ()
5715 if ((mode_t *) 0)
5716 return 0;
5717 if (sizeof (mode_t))
5718 return 0;
5720 return 0;
5722 _ACEOF
5723 rm -f conftest.$ac_objext
5724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5725 (eval $ac_compile) 2>conftest.er1
5726 ac_status=$?
5727 grep -v '^ *+' conftest.er1 >conftest.err
5728 rm -f conftest.er1
5729 cat conftest.err >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } &&
5732 { ac_try='test -z "$ac_c_werror_flag"
5733 || test ! -s conftest.err'
5734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735 (eval $ac_try) 2>&5
5736 ac_status=$?
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; } &&
5739 { ac_try='test -s conftest.$ac_objext'
5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741 (eval $ac_try) 2>&5
5742 ac_status=$?
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; }; then
5745 ac_cv_type_mode_t=yes
5746 else
5747 echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5750 ac_cv_type_mode_t=no
5752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5754 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5755 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5756 if test $ac_cv_type_mode_t = yes; then
5758 else
5760 cat >>confdefs.h <<_ACEOF
5761 #define mode_t int
5762 _ACEOF
5766 echo "$as_me:$LINENO: checking for off_t" >&5
5767 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5768 if test "${ac_cv_type_off_t+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771 cat >conftest.$ac_ext <<_ACEOF
5772 /* confdefs.h. */
5773 _ACEOF
5774 cat confdefs.h >>conftest.$ac_ext
5775 cat >>conftest.$ac_ext <<_ACEOF
5776 /* end confdefs.h. */
5777 $ac_includes_default
5779 main ()
5781 if ((off_t *) 0)
5782 return 0;
5783 if (sizeof (off_t))
5784 return 0;
5786 return 0;
5788 _ACEOF
5789 rm -f conftest.$ac_objext
5790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5791 (eval $ac_compile) 2>conftest.er1
5792 ac_status=$?
5793 grep -v '^ *+' conftest.er1 >conftest.err
5794 rm -f conftest.er1
5795 cat conftest.err >&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); } &&
5798 { ac_try='test -z "$ac_c_werror_flag"
5799 || test ! -s conftest.err'
5800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801 (eval $ac_try) 2>&5
5802 ac_status=$?
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }; } &&
5805 { ac_try='test -s conftest.$ac_objext'
5806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807 (eval $ac_try) 2>&5
5808 ac_status=$?
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; }; then
5811 ac_cv_type_off_t=yes
5812 else
5813 echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5816 ac_cv_type_off_t=no
5818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5820 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5821 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5822 if test $ac_cv_type_off_t = yes; then
5824 else
5826 cat >>confdefs.h <<_ACEOF
5827 #define off_t long
5828 _ACEOF
5832 echo "$as_me:$LINENO: checking for pid_t" >&5
5833 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5834 if test "${ac_cv_type_pid_t+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 else
5837 cat >conftest.$ac_ext <<_ACEOF
5838 /* confdefs.h. */
5839 _ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5843 $ac_includes_default
5845 main ()
5847 if ((pid_t *) 0)
5848 return 0;
5849 if (sizeof (pid_t))
5850 return 0;
5852 return 0;
5854 _ACEOF
5855 rm -f conftest.$ac_objext
5856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5857 (eval $ac_compile) 2>conftest.er1
5858 ac_status=$?
5859 grep -v '^ *+' conftest.er1 >conftest.err
5860 rm -f conftest.er1
5861 cat conftest.err >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } &&
5864 { ac_try='test -z "$ac_c_werror_flag"
5865 || test ! -s conftest.err'
5866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 (eval $ac_try) 2>&5
5868 ac_status=$?
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }; } &&
5871 { ac_try='test -s conftest.$ac_objext'
5872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 (eval $ac_try) 2>&5
5874 ac_status=$?
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; }; then
5877 ac_cv_type_pid_t=yes
5878 else
5879 echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.$ac_ext >&5
5882 ac_cv_type_pid_t=no
5884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5886 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5887 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5888 if test $ac_cv_type_pid_t = yes; then
5890 else
5892 cat >>confdefs.h <<_ACEOF
5893 #define pid_t int
5894 _ACEOF
5898 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5899 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5900 if test "${ac_cv_type_signal+set}" = set; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5902 else
5903 cat >conftest.$ac_ext <<_ACEOF
5904 /* confdefs.h. */
5905 _ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h. */
5909 #include <sys/types.h>
5910 #include <signal.h>
5911 #ifdef signal
5912 # undef signal
5913 #endif
5914 #ifdef __cplusplus
5915 extern "C" void (*signal (int, void (*)(int)))(int);
5916 #else
5917 void (*signal ()) ();
5918 #endif
5921 main ()
5923 int i;
5925 return 0;
5927 _ACEOF
5928 rm -f conftest.$ac_objext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930 (eval $ac_compile) 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try='test -z "$ac_c_werror_flag"
5938 || test ! -s conftest.err'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 (eval $ac_try) 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try='test -s conftest.$ac_objext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 ac_cv_type_signal=void
5951 else
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5955 ac_cv_type_signal=int
5957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5959 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5960 echo "${ECHO_T}$ac_cv_type_signal" >&6
5962 cat >>confdefs.h <<_ACEOF
5963 #define RETSIGTYPE $ac_cv_type_signal
5964 _ACEOF
5967 echo "$as_me:$LINENO: checking for size_t" >&5
5968 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5969 if test "${ac_cv_type_size_t+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972 cat >conftest.$ac_ext <<_ACEOF
5973 /* confdefs.h. */
5974 _ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5978 $ac_includes_default
5980 main ()
5982 if ((size_t *) 0)
5983 return 0;
5984 if (sizeof (size_t))
5985 return 0;
5987 return 0;
5989 _ACEOF
5990 rm -f conftest.$ac_objext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5992 (eval $ac_compile) 2>conftest.er1
5993 ac_status=$?
5994 grep -v '^ *+' conftest.er1 >conftest.err
5995 rm -f conftest.er1
5996 cat conftest.err >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } &&
5999 { ac_try='test -z "$ac_c_werror_flag"
6000 || test ! -s conftest.err'
6001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002 (eval $ac_try) 2>&5
6003 ac_status=$?
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; } &&
6006 { ac_try='test -s conftest.$ac_objext'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008 (eval $ac_try) 2>&5
6009 ac_status=$?
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 ac_cv_type_size_t=yes
6013 else
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6017 ac_cv_type_size_t=no
6019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6021 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6022 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6023 if test $ac_cv_type_size_t = yes; then
6025 else
6027 cat >>confdefs.h <<_ACEOF
6028 #define size_t unsigned
6029 _ACEOF
6033 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6034 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6035 if test "${ac_cv_type_uid_t+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6037 else
6038 cat >conftest.$ac_ext <<_ACEOF
6039 /* confdefs.h. */
6040 _ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6044 #include <sys/types.h>
6046 _ACEOF
6047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6048 $EGREP "uid_t" >/dev/null 2>&1; then
6049 ac_cv_type_uid_t=yes
6050 else
6051 ac_cv_type_uid_t=no
6053 rm -f conftest*
6056 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6057 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6058 if test $ac_cv_type_uid_t = no; then
6060 cat >>confdefs.h <<\_ACEOF
6061 #define uid_t int
6062 _ACEOF
6065 cat >>confdefs.h <<\_ACEOF
6066 #define gid_t int
6067 _ACEOF
6072 # Sizes of various common basic types
6073 # ANSI C requires sizeof(char) == 1, so no need to check it
6074 echo "$as_me:$LINENO: checking for int" >&5
6075 echo $ECHO_N "checking for int... $ECHO_C" >&6
6076 if test "${ac_cv_type_int+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6078 else
6079 cat >conftest.$ac_ext <<_ACEOF
6080 /* confdefs.h. */
6081 _ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 $ac_includes_default
6087 main ()
6089 if ((int *) 0)
6090 return 0;
6091 if (sizeof (int))
6092 return 0;
6094 return 0;
6096 _ACEOF
6097 rm -f conftest.$ac_objext
6098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6099 (eval $ac_compile) 2>conftest.er1
6100 ac_status=$?
6101 grep -v '^ *+' conftest.er1 >conftest.err
6102 rm -f conftest.er1
6103 cat conftest.err >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } &&
6106 { ac_try='test -z "$ac_c_werror_flag"
6107 || test ! -s conftest.err'
6108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6109 (eval $ac_try) 2>&5
6110 ac_status=$?
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }; } &&
6113 { ac_try='test -s conftest.$ac_objext'
6114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6115 (eval $ac_try) 2>&5
6116 ac_status=$?
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); }; }; then
6119 ac_cv_type_int=yes
6120 else
6121 echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6124 ac_cv_type_int=no
6126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6128 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6129 echo "${ECHO_T}$ac_cv_type_int" >&6
6131 echo "$as_me:$LINENO: checking size of int" >&5
6132 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6133 if test "${ac_cv_sizeof_int+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 else
6136 if test "$ac_cv_type_int" = yes; then
6137 # The cast to unsigned long works around a bug in the HP C Compiler
6138 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6139 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6140 # This bug is HP SR number 8606223364.
6141 if test "$cross_compiling" = yes; then
6142 # Depending upon the size, compute the lo and hi bounds.
6143 cat >conftest.$ac_ext <<_ACEOF
6144 /* confdefs.h. */
6145 _ACEOF
6146 cat confdefs.h >>conftest.$ac_ext
6147 cat >>conftest.$ac_ext <<_ACEOF
6148 /* end confdefs.h. */
6149 $ac_includes_default
6151 main ()
6153 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6154 test_array [0] = 0
6157 return 0;
6159 _ACEOF
6160 rm -f conftest.$ac_objext
6161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6162 (eval $ac_compile) 2>conftest.er1
6163 ac_status=$?
6164 grep -v '^ *+' conftest.er1 >conftest.err
6165 rm -f conftest.er1
6166 cat conftest.err >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } &&
6169 { ac_try='test -z "$ac_c_werror_flag"
6170 || test ! -s conftest.err'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172 (eval $ac_try) 2>&5
6173 ac_status=$?
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; } &&
6176 { ac_try='test -s conftest.$ac_objext'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178 (eval $ac_try) 2>&5
6179 ac_status=$?
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; }; then
6182 ac_lo=0 ac_mid=0
6183 while :; do
6184 cat >conftest.$ac_ext <<_ACEOF
6185 /* confdefs.h. */
6186 _ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h. */
6190 $ac_includes_default
6192 main ()
6194 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6195 test_array [0] = 0
6198 return 0;
6200 _ACEOF
6201 rm -f conftest.$ac_objext
6202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6203 (eval $ac_compile) 2>conftest.er1
6204 ac_status=$?
6205 grep -v '^ *+' conftest.er1 >conftest.err
6206 rm -f conftest.er1
6207 cat conftest.err >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); } &&
6210 { ac_try='test -z "$ac_c_werror_flag"
6211 || test ! -s conftest.err'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213 (eval $ac_try) 2>&5
6214 ac_status=$?
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; } &&
6217 { ac_try='test -s conftest.$ac_objext'
6218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219 (eval $ac_try) 2>&5
6220 ac_status=$?
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; }; then
6223 ac_hi=$ac_mid; break
6224 else
6225 echo "$as_me: failed program was:" >&5
6226 sed 's/^/| /' conftest.$ac_ext >&5
6228 ac_lo=`expr $ac_mid + 1`
6229 if test $ac_lo -le $ac_mid; then
6230 ac_lo= ac_hi=
6231 break
6233 ac_mid=`expr 2 '*' $ac_mid + 1`
6235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6236 done
6237 else
6238 echo "$as_me: failed program was:" >&5
6239 sed 's/^/| /' conftest.$ac_ext >&5
6241 cat >conftest.$ac_ext <<_ACEOF
6242 /* confdefs.h. */
6243 _ACEOF
6244 cat confdefs.h >>conftest.$ac_ext
6245 cat >>conftest.$ac_ext <<_ACEOF
6246 /* end confdefs.h. */
6247 $ac_includes_default
6249 main ()
6251 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6252 test_array [0] = 0
6255 return 0;
6257 _ACEOF
6258 rm -f conftest.$ac_objext
6259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6260 (eval $ac_compile) 2>conftest.er1
6261 ac_status=$?
6262 grep -v '^ *+' conftest.er1 >conftest.err
6263 rm -f conftest.er1
6264 cat conftest.err >&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } &&
6267 { ac_try='test -z "$ac_c_werror_flag"
6268 || test ! -s conftest.err'
6269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270 (eval $ac_try) 2>&5
6271 ac_status=$?
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; } &&
6274 { ac_try='test -s conftest.$ac_objext'
6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276 (eval $ac_try) 2>&5
6277 ac_status=$?
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; }; then
6280 ac_hi=-1 ac_mid=-1
6281 while :; do
6282 cat >conftest.$ac_ext <<_ACEOF
6283 /* confdefs.h. */
6284 _ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h. */
6288 $ac_includes_default
6290 main ()
6292 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6293 test_array [0] = 0
6296 return 0;
6298 _ACEOF
6299 rm -f conftest.$ac_objext
6300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6301 (eval $ac_compile) 2>conftest.er1
6302 ac_status=$?
6303 grep -v '^ *+' conftest.er1 >conftest.err
6304 rm -f conftest.er1
6305 cat conftest.err >&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); } &&
6308 { ac_try='test -z "$ac_c_werror_flag"
6309 || test ! -s conftest.err'
6310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311 (eval $ac_try) 2>&5
6312 ac_status=$?
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; } &&
6315 { ac_try='test -s conftest.$ac_objext'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317 (eval $ac_try) 2>&5
6318 ac_status=$?
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; }; then
6321 ac_lo=$ac_mid; break
6322 else
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6326 ac_hi=`expr '(' $ac_mid ')' - 1`
6327 if test $ac_mid -le $ac_hi; then
6328 ac_lo= ac_hi=
6329 break
6331 ac_mid=`expr 2 '*' $ac_mid`
6333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6334 done
6335 else
6336 echo "$as_me: failed program was:" >&5
6337 sed 's/^/| /' conftest.$ac_ext >&5
6339 ac_lo= ac_hi=
6341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6344 # Binary search between lo and hi bounds.
6345 while test "x$ac_lo" != "x$ac_hi"; do
6346 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6347 cat >conftest.$ac_ext <<_ACEOF
6348 /* confdefs.h. */
6349 _ACEOF
6350 cat confdefs.h >>conftest.$ac_ext
6351 cat >>conftest.$ac_ext <<_ACEOF
6352 /* end confdefs.h. */
6353 $ac_includes_default
6355 main ()
6357 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6358 test_array [0] = 0
6361 return 0;
6363 _ACEOF
6364 rm -f conftest.$ac_objext
6365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6366 (eval $ac_compile) 2>conftest.er1
6367 ac_status=$?
6368 grep -v '^ *+' conftest.er1 >conftest.err
6369 rm -f conftest.er1
6370 cat conftest.err >&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); } &&
6373 { ac_try='test -z "$ac_c_werror_flag"
6374 || test ! -s conftest.err'
6375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376 (eval $ac_try) 2>&5
6377 ac_status=$?
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); }; } &&
6380 { ac_try='test -s conftest.$ac_objext'
6381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382 (eval $ac_try) 2>&5
6383 ac_status=$?
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; }; then
6386 ac_hi=$ac_mid
6387 else
6388 echo "$as_me: failed program was:" >&5
6389 sed 's/^/| /' conftest.$ac_ext >&5
6391 ac_lo=`expr '(' $ac_mid ')' + 1`
6393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6394 done
6395 case $ac_lo in
6396 ?*) ac_cv_sizeof_int=$ac_lo;;
6397 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6398 See \`config.log' for more details." >&5
6399 echo "$as_me: error: cannot compute sizeof (int), 77
6400 See \`config.log' for more details." >&2;}
6401 { (exit 1); exit 1; }; } ;;
6402 esac
6403 else
6404 if test "$cross_compiling" = yes; then
6405 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6406 See \`config.log' for more details." >&5
6407 echo "$as_me: error: cannot run test program while cross compiling
6408 See \`config.log' for more details." >&2;}
6409 { (exit 1); exit 1; }; }
6410 else
6411 cat >conftest.$ac_ext <<_ACEOF
6412 /* confdefs.h. */
6413 _ACEOF
6414 cat confdefs.h >>conftest.$ac_ext
6415 cat >>conftest.$ac_ext <<_ACEOF
6416 /* end confdefs.h. */
6417 $ac_includes_default
6418 long longval () { return (long) (sizeof (int)); }
6419 unsigned long ulongval () { return (long) (sizeof (int)); }
6420 #include <stdio.h>
6421 #include <stdlib.h>
6423 main ()
6426 FILE *f = fopen ("conftest.val", "w");
6427 if (! f)
6428 exit (1);
6429 if (((long) (sizeof (int))) < 0)
6431 long i = longval ();
6432 if (i != ((long) (sizeof (int))))
6433 exit (1);
6434 fprintf (f, "%ld\n", i);
6436 else
6438 unsigned long i = ulongval ();
6439 if (i != ((long) (sizeof (int))))
6440 exit (1);
6441 fprintf (f, "%lu\n", i);
6443 exit (ferror (f) || fclose (f) != 0);
6446 return 0;
6448 _ACEOF
6449 rm -f conftest$ac_exeext
6450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6451 (eval $ac_link) 2>&5
6452 ac_status=$?
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456 (eval $ac_try) 2>&5
6457 ac_status=$?
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; }; then
6460 ac_cv_sizeof_int=`cat conftest.val`
6461 else
6462 echo "$as_me: program exited with status $ac_status" >&5
6463 echo "$as_me: failed program was:" >&5
6464 sed 's/^/| /' conftest.$ac_ext >&5
6466 ( exit $ac_status )
6467 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6468 See \`config.log' for more details." >&5
6469 echo "$as_me: error: cannot compute sizeof (int), 77
6470 See \`config.log' for more details." >&2;}
6471 { (exit 1); exit 1; }; }
6473 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6476 rm -f conftest.val
6477 else
6478 ac_cv_sizeof_int=0
6481 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6482 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6483 cat >>confdefs.h <<_ACEOF
6484 #define SIZEOF_INT $ac_cv_sizeof_int
6485 _ACEOF
6488 echo "$as_me:$LINENO: checking for long" >&5
6489 echo $ECHO_N "checking for long... $ECHO_C" >&6
6490 if test "${ac_cv_type_long+set}" = set; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6492 else
6493 cat >conftest.$ac_ext <<_ACEOF
6494 /* confdefs.h. */
6495 _ACEOF
6496 cat confdefs.h >>conftest.$ac_ext
6497 cat >>conftest.$ac_ext <<_ACEOF
6498 /* end confdefs.h. */
6499 $ac_includes_default
6501 main ()
6503 if ((long *) 0)
6504 return 0;
6505 if (sizeof (long))
6506 return 0;
6508 return 0;
6510 _ACEOF
6511 rm -f conftest.$ac_objext
6512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6513 (eval $ac_compile) 2>conftest.er1
6514 ac_status=$?
6515 grep -v '^ *+' conftest.er1 >conftest.err
6516 rm -f conftest.er1
6517 cat conftest.err >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } &&
6520 { ac_try='test -z "$ac_c_werror_flag"
6521 || test ! -s conftest.err'
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 (eval $ac_try) 2>&5
6524 ac_status=$?
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; } &&
6527 { ac_try='test -s conftest.$ac_objext'
6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 (eval $ac_try) 2>&5
6530 ac_status=$?
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; }; then
6533 ac_cv_type_long=yes
6534 else
6535 echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.$ac_ext >&5
6538 ac_cv_type_long=no
6540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6542 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6543 echo "${ECHO_T}$ac_cv_type_long" >&6
6545 echo "$as_me:$LINENO: checking size of long" >&5
6546 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6547 if test "${ac_cv_sizeof_long+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6549 else
6550 if test "$ac_cv_type_long" = yes; then
6551 # The cast to unsigned long works around a bug in the HP C Compiler
6552 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6553 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6554 # This bug is HP SR number 8606223364.
6555 if test "$cross_compiling" = yes; then
6556 # Depending upon the size, compute the lo and hi bounds.
6557 cat >conftest.$ac_ext <<_ACEOF
6558 /* confdefs.h. */
6559 _ACEOF
6560 cat confdefs.h >>conftest.$ac_ext
6561 cat >>conftest.$ac_ext <<_ACEOF
6562 /* end confdefs.h. */
6563 $ac_includes_default
6565 main ()
6567 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6568 test_array [0] = 0
6571 return 0;
6573 _ACEOF
6574 rm -f conftest.$ac_objext
6575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6576 (eval $ac_compile) 2>conftest.er1
6577 ac_status=$?
6578 grep -v '^ *+' conftest.er1 >conftest.err
6579 rm -f conftest.er1
6580 cat conftest.err >&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } &&
6583 { ac_try='test -z "$ac_c_werror_flag"
6584 || test ! -s conftest.err'
6585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6586 (eval $ac_try) 2>&5
6587 ac_status=$?
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); }; } &&
6590 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6596 ac_lo=0 ac_mid=0
6597 while :; do
6598 cat >conftest.$ac_ext <<_ACEOF
6599 /* confdefs.h. */
6600 _ACEOF
6601 cat confdefs.h >>conftest.$ac_ext
6602 cat >>conftest.$ac_ext <<_ACEOF
6603 /* end confdefs.h. */
6604 $ac_includes_default
6606 main ()
6608 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6609 test_array [0] = 0
6612 return 0;
6614 _ACEOF
6615 rm -f conftest.$ac_objext
6616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6617 (eval $ac_compile) 2>conftest.er1
6618 ac_status=$?
6619 grep -v '^ *+' conftest.er1 >conftest.err
6620 rm -f conftest.er1
6621 cat conftest.err >&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); } &&
6624 { ac_try='test -z "$ac_c_werror_flag"
6625 || test ! -s conftest.err'
6626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6627 (eval $ac_try) 2>&5
6628 ac_status=$?
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); }; } &&
6631 { ac_try='test -s conftest.$ac_objext'
6632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633 (eval $ac_try) 2>&5
6634 ac_status=$?
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); }; }; then
6637 ac_hi=$ac_mid; break
6638 else
6639 echo "$as_me: failed program was:" >&5
6640 sed 's/^/| /' conftest.$ac_ext >&5
6642 ac_lo=`expr $ac_mid + 1`
6643 if test $ac_lo -le $ac_mid; then
6644 ac_lo= ac_hi=
6645 break
6647 ac_mid=`expr 2 '*' $ac_mid + 1`
6649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6650 done
6651 else
6652 echo "$as_me: failed program was:" >&5
6653 sed 's/^/| /' conftest.$ac_ext >&5
6655 cat >conftest.$ac_ext <<_ACEOF
6656 /* confdefs.h. */
6657 _ACEOF
6658 cat confdefs.h >>conftest.$ac_ext
6659 cat >>conftest.$ac_ext <<_ACEOF
6660 /* end confdefs.h. */
6661 $ac_includes_default
6663 main ()
6665 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6666 test_array [0] = 0
6669 return 0;
6671 _ACEOF
6672 rm -f conftest.$ac_objext
6673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6674 (eval $ac_compile) 2>conftest.er1
6675 ac_status=$?
6676 grep -v '^ *+' conftest.er1 >conftest.err
6677 rm -f conftest.er1
6678 cat conftest.err >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); } &&
6681 { ac_try='test -z "$ac_c_werror_flag"
6682 || test ! -s conftest.err'
6683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684 (eval $ac_try) 2>&5
6685 ac_status=$?
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); }; } &&
6688 { ac_try='test -s conftest.$ac_objext'
6689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690 (eval $ac_try) 2>&5
6691 ac_status=$?
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); }; }; then
6694 ac_hi=-1 ac_mid=-1
6695 while :; do
6696 cat >conftest.$ac_ext <<_ACEOF
6697 /* confdefs.h. */
6698 _ACEOF
6699 cat confdefs.h >>conftest.$ac_ext
6700 cat >>conftest.$ac_ext <<_ACEOF
6701 /* end confdefs.h. */
6702 $ac_includes_default
6704 main ()
6706 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6707 test_array [0] = 0
6710 return 0;
6712 _ACEOF
6713 rm -f conftest.$ac_objext
6714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6715 (eval $ac_compile) 2>conftest.er1
6716 ac_status=$?
6717 grep -v '^ *+' conftest.er1 >conftest.err
6718 rm -f conftest.er1
6719 cat conftest.err >&5
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } &&
6722 { ac_try='test -z "$ac_c_werror_flag"
6723 || test ! -s conftest.err'
6724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725 (eval $ac_try) 2>&5
6726 ac_status=$?
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); }; } &&
6729 { ac_try='test -s conftest.$ac_objext'
6730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6731 (eval $ac_try) 2>&5
6732 ac_status=$?
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); }; }; then
6735 ac_lo=$ac_mid; break
6736 else
6737 echo "$as_me: failed program was:" >&5
6738 sed 's/^/| /' conftest.$ac_ext >&5
6740 ac_hi=`expr '(' $ac_mid ')' - 1`
6741 if test $ac_mid -le $ac_hi; then
6742 ac_lo= ac_hi=
6743 break
6745 ac_mid=`expr 2 '*' $ac_mid`
6747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6748 done
6749 else
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6753 ac_lo= ac_hi=
6755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6758 # Binary search between lo and hi bounds.
6759 while test "x$ac_lo" != "x$ac_hi"; do
6760 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6761 cat >conftest.$ac_ext <<_ACEOF
6762 /* confdefs.h. */
6763 _ACEOF
6764 cat confdefs.h >>conftest.$ac_ext
6765 cat >>conftest.$ac_ext <<_ACEOF
6766 /* end confdefs.h. */
6767 $ac_includes_default
6769 main ()
6771 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6772 test_array [0] = 0
6775 return 0;
6777 _ACEOF
6778 rm -f conftest.$ac_objext
6779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6780 (eval $ac_compile) 2>conftest.er1
6781 ac_status=$?
6782 grep -v '^ *+' conftest.er1 >conftest.err
6783 rm -f conftest.er1
6784 cat conftest.err >&5
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); } &&
6787 { ac_try='test -z "$ac_c_werror_flag"
6788 || test ! -s conftest.err'
6789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6790 (eval $ac_try) 2>&5
6791 ac_status=$?
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); }; } &&
6794 { ac_try='test -s conftest.$ac_objext'
6795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796 (eval $ac_try) 2>&5
6797 ac_status=$?
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); }; }; then
6800 ac_hi=$ac_mid
6801 else
6802 echo "$as_me: failed program was:" >&5
6803 sed 's/^/| /' conftest.$ac_ext >&5
6805 ac_lo=`expr '(' $ac_mid ')' + 1`
6807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6808 done
6809 case $ac_lo in
6810 ?*) ac_cv_sizeof_long=$ac_lo;;
6811 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6812 See \`config.log' for more details." >&5
6813 echo "$as_me: error: cannot compute sizeof (long), 77
6814 See \`config.log' for more details." >&2;}
6815 { (exit 1); exit 1; }; } ;;
6816 esac
6817 else
6818 if test "$cross_compiling" = yes; then
6819 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6820 See \`config.log' for more details." >&5
6821 echo "$as_me: error: cannot run test program while cross compiling
6822 See \`config.log' for more details." >&2;}
6823 { (exit 1); exit 1; }; }
6824 else
6825 cat >conftest.$ac_ext <<_ACEOF
6826 /* confdefs.h. */
6827 _ACEOF
6828 cat confdefs.h >>conftest.$ac_ext
6829 cat >>conftest.$ac_ext <<_ACEOF
6830 /* end confdefs.h. */
6831 $ac_includes_default
6832 long longval () { return (long) (sizeof (long)); }
6833 unsigned long ulongval () { return (long) (sizeof (long)); }
6834 #include <stdio.h>
6835 #include <stdlib.h>
6837 main ()
6840 FILE *f = fopen ("conftest.val", "w");
6841 if (! f)
6842 exit (1);
6843 if (((long) (sizeof (long))) < 0)
6845 long i = longval ();
6846 if (i != ((long) (sizeof (long))))
6847 exit (1);
6848 fprintf (f, "%ld\n", i);
6850 else
6852 unsigned long i = ulongval ();
6853 if (i != ((long) (sizeof (long))))
6854 exit (1);
6855 fprintf (f, "%lu\n", i);
6857 exit (ferror (f) || fclose (f) != 0);
6860 return 0;
6862 _ACEOF
6863 rm -f conftest$ac_exeext
6864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6865 (eval $ac_link) 2>&5
6866 ac_status=$?
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870 (eval $ac_try) 2>&5
6871 ac_status=$?
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); }; }; then
6874 ac_cv_sizeof_long=`cat conftest.val`
6875 else
6876 echo "$as_me: program exited with status $ac_status" >&5
6877 echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6880 ( exit $ac_status )
6881 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6882 See \`config.log' for more details." >&5
6883 echo "$as_me: error: cannot compute sizeof (long), 77
6884 See \`config.log' for more details." >&2;}
6885 { (exit 1); exit 1; }; }
6887 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6890 rm -f conftest.val
6891 else
6892 ac_cv_sizeof_long=0
6895 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6896 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6897 cat >>confdefs.h <<_ACEOF
6898 #define SIZEOF_LONG $ac_cv_sizeof_long
6899 _ACEOF
6902 echo "$as_me:$LINENO: checking for void *" >&5
6903 echo $ECHO_N "checking for void *... $ECHO_C" >&6
6904 if test "${ac_cv_type_void_p+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6906 else
6907 cat >conftest.$ac_ext <<_ACEOF
6908 /* confdefs.h. */
6909 _ACEOF
6910 cat confdefs.h >>conftest.$ac_ext
6911 cat >>conftest.$ac_ext <<_ACEOF
6912 /* end confdefs.h. */
6913 $ac_includes_default
6915 main ()
6917 if ((void * *) 0)
6918 return 0;
6919 if (sizeof (void *))
6920 return 0;
6922 return 0;
6924 _ACEOF
6925 rm -f conftest.$ac_objext
6926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6927 (eval $ac_compile) 2>conftest.er1
6928 ac_status=$?
6929 grep -v '^ *+' conftest.er1 >conftest.err
6930 rm -f conftest.er1
6931 cat conftest.err >&5
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); } &&
6934 { ac_try='test -z "$ac_c_werror_flag"
6935 || test ! -s conftest.err'
6936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6937 (eval $ac_try) 2>&5
6938 ac_status=$?
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); }; } &&
6941 { ac_try='test -s conftest.$ac_objext'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 (eval $ac_try) 2>&5
6944 ac_status=$?
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; }; then
6947 ac_cv_type_void_p=yes
6948 else
6949 echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.$ac_ext >&5
6952 ac_cv_type_void_p=no
6954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6956 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6957 echo "${ECHO_T}$ac_cv_type_void_p" >&6
6959 echo "$as_me:$LINENO: checking size of void *" >&5
6960 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6961 if test "${ac_cv_sizeof_void_p+set}" = set; then
6962 echo $ECHO_N "(cached) $ECHO_C" >&6
6963 else
6964 if test "$ac_cv_type_void_p" = yes; then
6965 # The cast to unsigned long works around a bug in the HP C Compiler
6966 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6967 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6968 # This bug is HP SR number 8606223364.
6969 if test "$cross_compiling" = yes; then
6970 # Depending upon the size, compute the lo and hi bounds.
6971 cat >conftest.$ac_ext <<_ACEOF
6972 /* confdefs.h. */
6973 _ACEOF
6974 cat confdefs.h >>conftest.$ac_ext
6975 cat >>conftest.$ac_ext <<_ACEOF
6976 /* end confdefs.h. */
6977 $ac_includes_default
6979 main ()
6981 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6982 test_array [0] = 0
6985 return 0;
6987 _ACEOF
6988 rm -f conftest.$ac_objext
6989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6990 (eval $ac_compile) 2>conftest.er1
6991 ac_status=$?
6992 grep -v '^ *+' conftest.er1 >conftest.err
6993 rm -f conftest.er1
6994 cat conftest.err >&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); } &&
6997 { ac_try='test -z "$ac_c_werror_flag"
6998 || test ! -s conftest.err'
6999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000 (eval $ac_try) 2>&5
7001 ac_status=$?
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); }; } &&
7004 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7010 ac_lo=0 ac_mid=0
7011 while :; do
7012 cat >conftest.$ac_ext <<_ACEOF
7013 /* confdefs.h. */
7014 _ACEOF
7015 cat confdefs.h >>conftest.$ac_ext
7016 cat >>conftest.$ac_ext <<_ACEOF
7017 /* end confdefs.h. */
7018 $ac_includes_default
7020 main ()
7022 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7023 test_array [0] = 0
7026 return 0;
7028 _ACEOF
7029 rm -f conftest.$ac_objext
7030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7031 (eval $ac_compile) 2>conftest.er1
7032 ac_status=$?
7033 grep -v '^ *+' conftest.er1 >conftest.err
7034 rm -f conftest.er1
7035 cat conftest.err >&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); } &&
7038 { ac_try='test -z "$ac_c_werror_flag"
7039 || test ! -s conftest.err'
7040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041 (eval $ac_try) 2>&5
7042 ac_status=$?
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); }; } &&
7045 { ac_try='test -s conftest.$ac_objext'
7046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047 (eval $ac_try) 2>&5
7048 ac_status=$?
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); }; }; then
7051 ac_hi=$ac_mid; break
7052 else
7053 echo "$as_me: failed program was:" >&5
7054 sed 's/^/| /' conftest.$ac_ext >&5
7056 ac_lo=`expr $ac_mid + 1`
7057 if test $ac_lo -le $ac_mid; then
7058 ac_lo= ac_hi=
7059 break
7061 ac_mid=`expr 2 '*' $ac_mid + 1`
7063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7064 done
7065 else
7066 echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7069 cat >conftest.$ac_ext <<_ACEOF
7070 /* confdefs.h. */
7071 _ACEOF
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
7074 /* end confdefs.h. */
7075 $ac_includes_default
7077 main ()
7079 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7080 test_array [0] = 0
7083 return 0;
7085 _ACEOF
7086 rm -f conftest.$ac_objext
7087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7088 (eval $ac_compile) 2>conftest.er1
7089 ac_status=$?
7090 grep -v '^ *+' conftest.er1 >conftest.err
7091 rm -f conftest.er1
7092 cat conftest.err >&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); } &&
7095 { ac_try='test -z "$ac_c_werror_flag"
7096 || test ! -s conftest.err'
7097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7098 (eval $ac_try) 2>&5
7099 ac_status=$?
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); }; } &&
7102 { ac_try='test -s conftest.$ac_objext'
7103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7104 (eval $ac_try) 2>&5
7105 ac_status=$?
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); }; }; then
7108 ac_hi=-1 ac_mid=-1
7109 while :; do
7110 cat >conftest.$ac_ext <<_ACEOF
7111 /* confdefs.h. */
7112 _ACEOF
7113 cat confdefs.h >>conftest.$ac_ext
7114 cat >>conftest.$ac_ext <<_ACEOF
7115 /* end confdefs.h. */
7116 $ac_includes_default
7118 main ()
7120 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7121 test_array [0] = 0
7124 return 0;
7126 _ACEOF
7127 rm -f conftest.$ac_objext
7128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7129 (eval $ac_compile) 2>conftest.er1
7130 ac_status=$?
7131 grep -v '^ *+' conftest.er1 >conftest.err
7132 rm -f conftest.er1
7133 cat conftest.err >&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); } &&
7136 { ac_try='test -z "$ac_c_werror_flag"
7137 || test ! -s conftest.err'
7138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7139 (eval $ac_try) 2>&5
7140 ac_status=$?
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); }; } &&
7143 { ac_try='test -s conftest.$ac_objext'
7144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7145 (eval $ac_try) 2>&5
7146 ac_status=$?
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); }; }; then
7149 ac_lo=$ac_mid; break
7150 else
7151 echo "$as_me: failed program was:" >&5
7152 sed 's/^/| /' conftest.$ac_ext >&5
7154 ac_hi=`expr '(' $ac_mid ')' - 1`
7155 if test $ac_mid -le $ac_hi; then
7156 ac_lo= ac_hi=
7157 break
7159 ac_mid=`expr 2 '*' $ac_mid`
7161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7162 done
7163 else
7164 echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7167 ac_lo= ac_hi=
7169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7172 # Binary search between lo and hi bounds.
7173 while test "x$ac_lo" != "x$ac_hi"; do
7174 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7175 cat >conftest.$ac_ext <<_ACEOF
7176 /* confdefs.h. */
7177 _ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7181 $ac_includes_default
7183 main ()
7185 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7186 test_array [0] = 0
7189 return 0;
7191 _ACEOF
7192 rm -f conftest.$ac_objext
7193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7194 (eval $ac_compile) 2>conftest.er1
7195 ac_status=$?
7196 grep -v '^ *+' conftest.er1 >conftest.err
7197 rm -f conftest.er1
7198 cat conftest.err >&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); } &&
7201 { ac_try='test -z "$ac_c_werror_flag"
7202 || test ! -s conftest.err'
7203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204 (eval $ac_try) 2>&5
7205 ac_status=$?
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); }; } &&
7208 { ac_try='test -s conftest.$ac_objext'
7209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7210 (eval $ac_try) 2>&5
7211 ac_status=$?
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); }; }; then
7214 ac_hi=$ac_mid
7215 else
7216 echo "$as_me: failed program was:" >&5
7217 sed 's/^/| /' conftest.$ac_ext >&5
7219 ac_lo=`expr '(' $ac_mid ')' + 1`
7221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7222 done
7223 case $ac_lo in
7224 ?*) ac_cv_sizeof_void_p=$ac_lo;;
7225 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7226 See \`config.log' for more details." >&5
7227 echo "$as_me: error: cannot compute sizeof (void *), 77
7228 See \`config.log' for more details." >&2;}
7229 { (exit 1); exit 1; }; } ;;
7230 esac
7231 else
7232 if test "$cross_compiling" = yes; then
7233 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7234 See \`config.log' for more details." >&5
7235 echo "$as_me: error: cannot run test program while cross compiling
7236 See \`config.log' for more details." >&2;}
7237 { (exit 1); exit 1; }; }
7238 else
7239 cat >conftest.$ac_ext <<_ACEOF
7240 /* confdefs.h. */
7241 _ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245 $ac_includes_default
7246 long longval () { return (long) (sizeof (void *)); }
7247 unsigned long ulongval () { return (long) (sizeof (void *)); }
7248 #include <stdio.h>
7249 #include <stdlib.h>
7251 main ()
7254 FILE *f = fopen ("conftest.val", "w");
7255 if (! f)
7256 exit (1);
7257 if (((long) (sizeof (void *))) < 0)
7259 long i = longval ();
7260 if (i != ((long) (sizeof (void *))))
7261 exit (1);
7262 fprintf (f, "%ld\n", i);
7264 else
7266 unsigned long i = ulongval ();
7267 if (i != ((long) (sizeof (void *))))
7268 exit (1);
7269 fprintf (f, "%lu\n", i);
7271 exit (ferror (f) || fclose (f) != 0);
7274 return 0;
7276 _ACEOF
7277 rm -f conftest$ac_exeext
7278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7279 (eval $ac_link) 2>&5
7280 ac_status=$?
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7284 (eval $ac_try) 2>&5
7285 ac_status=$?
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); }; }; then
7288 ac_cv_sizeof_void_p=`cat conftest.val`
7289 else
7290 echo "$as_me: program exited with status $ac_status" >&5
7291 echo "$as_me: failed program was:" >&5
7292 sed 's/^/| /' conftest.$ac_ext >&5
7294 ( exit $ac_status )
7295 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7296 See \`config.log' for more details." >&5
7297 echo "$as_me: error: cannot compute sizeof (void *), 77
7298 See \`config.log' for more details." >&2;}
7299 { (exit 1); exit 1; }; }
7301 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7304 rm -f conftest.val
7305 else
7306 ac_cv_sizeof_void_p=0
7309 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7310 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7311 cat >>confdefs.h <<_ACEOF
7312 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7313 _ACEOF
7316 echo "$as_me:$LINENO: checking for short" >&5
7317 echo $ECHO_N "checking for short... $ECHO_C" >&6
7318 if test "${ac_cv_type_short+set}" = set; then
7319 echo $ECHO_N "(cached) $ECHO_C" >&6
7320 else
7321 cat >conftest.$ac_ext <<_ACEOF
7322 /* confdefs.h. */
7323 _ACEOF
7324 cat confdefs.h >>conftest.$ac_ext
7325 cat >>conftest.$ac_ext <<_ACEOF
7326 /* end confdefs.h. */
7327 $ac_includes_default
7329 main ()
7331 if ((short *) 0)
7332 return 0;
7333 if (sizeof (short))
7334 return 0;
7336 return 0;
7338 _ACEOF
7339 rm -f conftest.$ac_objext
7340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7341 (eval $ac_compile) 2>conftest.er1
7342 ac_status=$?
7343 grep -v '^ *+' conftest.er1 >conftest.err
7344 rm -f conftest.er1
7345 cat conftest.err >&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); } &&
7348 { ac_try='test -z "$ac_c_werror_flag"
7349 || test ! -s conftest.err'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7351 (eval $ac_try) 2>&5
7352 ac_status=$?
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; } &&
7355 { ac_try='test -s conftest.$ac_objext'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357 (eval $ac_try) 2>&5
7358 ac_status=$?
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; }; then
7361 ac_cv_type_short=yes
7362 else
7363 echo "$as_me: failed program was:" >&5
7364 sed 's/^/| /' conftest.$ac_ext >&5
7366 ac_cv_type_short=no
7368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7370 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7371 echo "${ECHO_T}$ac_cv_type_short" >&6
7373 echo "$as_me:$LINENO: checking size of short" >&5
7374 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7375 if test "${ac_cv_sizeof_short+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7377 else
7378 if test "$ac_cv_type_short" = yes; then
7379 # The cast to unsigned long works around a bug in the HP C Compiler
7380 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7381 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7382 # This bug is HP SR number 8606223364.
7383 if test "$cross_compiling" = yes; then
7384 # Depending upon the size, compute the lo and hi bounds.
7385 cat >conftest.$ac_ext <<_ACEOF
7386 /* confdefs.h. */
7387 _ACEOF
7388 cat confdefs.h >>conftest.$ac_ext
7389 cat >>conftest.$ac_ext <<_ACEOF
7390 /* end confdefs.h. */
7391 $ac_includes_default
7393 main ()
7395 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7396 test_array [0] = 0
7399 return 0;
7401 _ACEOF
7402 rm -f conftest.$ac_objext
7403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7404 (eval $ac_compile) 2>conftest.er1
7405 ac_status=$?
7406 grep -v '^ *+' conftest.er1 >conftest.err
7407 rm -f conftest.er1
7408 cat conftest.err >&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); } &&
7411 { ac_try='test -z "$ac_c_werror_flag"
7412 || test ! -s conftest.err'
7413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7414 (eval $ac_try) 2>&5
7415 ac_status=$?
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); }; } &&
7418 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7424 ac_lo=0 ac_mid=0
7425 while :; do
7426 cat >conftest.$ac_ext <<_ACEOF
7427 /* confdefs.h. */
7428 _ACEOF
7429 cat confdefs.h >>conftest.$ac_ext
7430 cat >>conftest.$ac_ext <<_ACEOF
7431 /* end confdefs.h. */
7432 $ac_includes_default
7434 main ()
7436 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7437 test_array [0] = 0
7440 return 0;
7442 _ACEOF
7443 rm -f conftest.$ac_objext
7444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7445 (eval $ac_compile) 2>conftest.er1
7446 ac_status=$?
7447 grep -v '^ *+' conftest.er1 >conftest.err
7448 rm -f conftest.er1
7449 cat conftest.err >&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } &&
7452 { ac_try='test -z "$ac_c_werror_flag"
7453 || test ! -s conftest.err'
7454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455 (eval $ac_try) 2>&5
7456 ac_status=$?
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); }; } &&
7459 { ac_try='test -s conftest.$ac_objext'
7460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461 (eval $ac_try) 2>&5
7462 ac_status=$?
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); }; }; then
7465 ac_hi=$ac_mid; break
7466 else
7467 echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7470 ac_lo=`expr $ac_mid + 1`
7471 if test $ac_lo -le $ac_mid; then
7472 ac_lo= ac_hi=
7473 break
7475 ac_mid=`expr 2 '*' $ac_mid + 1`
7477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7478 done
7479 else
7480 echo "$as_me: failed program was:" >&5
7481 sed 's/^/| /' conftest.$ac_ext >&5
7483 cat >conftest.$ac_ext <<_ACEOF
7484 /* confdefs.h. */
7485 _ACEOF
7486 cat confdefs.h >>conftest.$ac_ext
7487 cat >>conftest.$ac_ext <<_ACEOF
7488 /* end confdefs.h. */
7489 $ac_includes_default
7491 main ()
7493 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7494 test_array [0] = 0
7497 return 0;
7499 _ACEOF
7500 rm -f conftest.$ac_objext
7501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7502 (eval $ac_compile) 2>conftest.er1
7503 ac_status=$?
7504 grep -v '^ *+' conftest.er1 >conftest.err
7505 rm -f conftest.er1
7506 cat conftest.err >&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } &&
7509 { ac_try='test -z "$ac_c_werror_flag"
7510 || test ! -s conftest.err'
7511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7512 (eval $ac_try) 2>&5
7513 ac_status=$?
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); }; } &&
7516 { ac_try='test -s conftest.$ac_objext'
7517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7518 (eval $ac_try) 2>&5
7519 ac_status=$?
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); }; }; then
7522 ac_hi=-1 ac_mid=-1
7523 while :; do
7524 cat >conftest.$ac_ext <<_ACEOF
7525 /* confdefs.h. */
7526 _ACEOF
7527 cat confdefs.h >>conftest.$ac_ext
7528 cat >>conftest.$ac_ext <<_ACEOF
7529 /* end confdefs.h. */
7530 $ac_includes_default
7532 main ()
7534 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7535 test_array [0] = 0
7538 return 0;
7540 _ACEOF
7541 rm -f conftest.$ac_objext
7542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7543 (eval $ac_compile) 2>conftest.er1
7544 ac_status=$?
7545 grep -v '^ *+' conftest.er1 >conftest.err
7546 rm -f conftest.er1
7547 cat conftest.err >&5
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); } &&
7550 { ac_try='test -z "$ac_c_werror_flag"
7551 || test ! -s conftest.err'
7552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7553 (eval $ac_try) 2>&5
7554 ac_status=$?
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); }; } &&
7557 { ac_try='test -s conftest.$ac_objext'
7558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7559 (eval $ac_try) 2>&5
7560 ac_status=$?
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); }; }; then
7563 ac_lo=$ac_mid; break
7564 else
7565 echo "$as_me: failed program was:" >&5
7566 sed 's/^/| /' conftest.$ac_ext >&5
7568 ac_hi=`expr '(' $ac_mid ')' - 1`
7569 if test $ac_mid -le $ac_hi; then
7570 ac_lo= ac_hi=
7571 break
7573 ac_mid=`expr 2 '*' $ac_mid`
7575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7576 done
7577 else
7578 echo "$as_me: failed program was:" >&5
7579 sed 's/^/| /' conftest.$ac_ext >&5
7581 ac_lo= ac_hi=
7583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7586 # Binary search between lo and hi bounds.
7587 while test "x$ac_lo" != "x$ac_hi"; do
7588 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7589 cat >conftest.$ac_ext <<_ACEOF
7590 /* confdefs.h. */
7591 _ACEOF
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h. */
7595 $ac_includes_default
7597 main ()
7599 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7600 test_array [0] = 0
7603 return 0;
7605 _ACEOF
7606 rm -f conftest.$ac_objext
7607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7608 (eval $ac_compile) 2>conftest.er1
7609 ac_status=$?
7610 grep -v '^ *+' conftest.er1 >conftest.err
7611 rm -f conftest.er1
7612 cat conftest.err >&5
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); } &&
7615 { ac_try='test -z "$ac_c_werror_flag"
7616 || test ! -s conftest.err'
7617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618 (eval $ac_try) 2>&5
7619 ac_status=$?
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); }; } &&
7622 { ac_try='test -s conftest.$ac_objext'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 (eval $ac_try) 2>&5
7625 ac_status=$?
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7628 ac_hi=$ac_mid
7629 else
7630 echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7633 ac_lo=`expr '(' $ac_mid ')' + 1`
7635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7636 done
7637 case $ac_lo in
7638 ?*) ac_cv_sizeof_short=$ac_lo;;
7639 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7640 See \`config.log' for more details." >&5
7641 echo "$as_me: error: cannot compute sizeof (short), 77
7642 See \`config.log' for more details." >&2;}
7643 { (exit 1); exit 1; }; } ;;
7644 esac
7645 else
7646 if test "$cross_compiling" = yes; then
7647 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7648 See \`config.log' for more details." >&5
7649 echo "$as_me: error: cannot run test program while cross compiling
7650 See \`config.log' for more details." >&2;}
7651 { (exit 1); exit 1; }; }
7652 else
7653 cat >conftest.$ac_ext <<_ACEOF
7654 /* confdefs.h. */
7655 _ACEOF
7656 cat confdefs.h >>conftest.$ac_ext
7657 cat >>conftest.$ac_ext <<_ACEOF
7658 /* end confdefs.h. */
7659 $ac_includes_default
7660 long longval () { return (long) (sizeof (short)); }
7661 unsigned long ulongval () { return (long) (sizeof (short)); }
7662 #include <stdio.h>
7663 #include <stdlib.h>
7665 main ()
7668 FILE *f = fopen ("conftest.val", "w");
7669 if (! f)
7670 exit (1);
7671 if (((long) (sizeof (short))) < 0)
7673 long i = longval ();
7674 if (i != ((long) (sizeof (short))))
7675 exit (1);
7676 fprintf (f, "%ld\n", i);
7678 else
7680 unsigned long i = ulongval ();
7681 if (i != ((long) (sizeof (short))))
7682 exit (1);
7683 fprintf (f, "%lu\n", i);
7685 exit (ferror (f) || fclose (f) != 0);
7688 return 0;
7690 _ACEOF
7691 rm -f conftest$ac_exeext
7692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7693 (eval $ac_link) 2>&5
7694 ac_status=$?
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7698 (eval $ac_try) 2>&5
7699 ac_status=$?
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); }; }; then
7702 ac_cv_sizeof_short=`cat conftest.val`
7703 else
7704 echo "$as_me: program exited with status $ac_status" >&5
7705 echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.$ac_ext >&5
7708 ( exit $ac_status )
7709 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7710 See \`config.log' for more details." >&5
7711 echo "$as_me: error: cannot compute sizeof (short), 77
7712 See \`config.log' for more details." >&2;}
7713 { (exit 1); exit 1; }; }
7715 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7718 rm -f conftest.val
7719 else
7720 ac_cv_sizeof_short=0
7723 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7724 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7725 cat >>confdefs.h <<_ACEOF
7726 #define SIZEOF_SHORT $ac_cv_sizeof_short
7727 _ACEOF
7730 echo "$as_me:$LINENO: checking for float" >&5
7731 echo $ECHO_N "checking for float... $ECHO_C" >&6
7732 if test "${ac_cv_type_float+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7734 else
7735 cat >conftest.$ac_ext <<_ACEOF
7736 /* confdefs.h. */
7737 _ACEOF
7738 cat confdefs.h >>conftest.$ac_ext
7739 cat >>conftest.$ac_ext <<_ACEOF
7740 /* end confdefs.h. */
7741 $ac_includes_default
7743 main ()
7745 if ((float *) 0)
7746 return 0;
7747 if (sizeof (float))
7748 return 0;
7750 return 0;
7752 _ACEOF
7753 rm -f conftest.$ac_objext
7754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7755 (eval $ac_compile) 2>conftest.er1
7756 ac_status=$?
7757 grep -v '^ *+' conftest.er1 >conftest.err
7758 rm -f conftest.er1
7759 cat conftest.err >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } &&
7762 { ac_try='test -z "$ac_c_werror_flag"
7763 || test ! -s conftest.err'
7764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765 (eval $ac_try) 2>&5
7766 ac_status=$?
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; } &&
7769 { ac_try='test -s conftest.$ac_objext'
7770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 (eval $ac_try) 2>&5
7772 ac_status=$?
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; }; then
7775 ac_cv_type_float=yes
7776 else
7777 echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.$ac_ext >&5
7780 ac_cv_type_float=no
7782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7784 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
7785 echo "${ECHO_T}$ac_cv_type_float" >&6
7787 echo "$as_me:$LINENO: checking size of float" >&5
7788 echo $ECHO_N "checking size of float... $ECHO_C" >&6
7789 if test "${ac_cv_sizeof_float+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 else
7792 if test "$ac_cv_type_float" = yes; then
7793 # The cast to unsigned long works around a bug in the HP C Compiler
7794 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7795 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7796 # This bug is HP SR number 8606223364.
7797 if test "$cross_compiling" = yes; then
7798 # Depending upon the size, compute the lo and hi bounds.
7799 cat >conftest.$ac_ext <<_ACEOF
7800 /* confdefs.h. */
7801 _ACEOF
7802 cat confdefs.h >>conftest.$ac_ext
7803 cat >>conftest.$ac_ext <<_ACEOF
7804 /* end confdefs.h. */
7805 $ac_includes_default
7807 main ()
7809 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
7810 test_array [0] = 0
7813 return 0;
7815 _ACEOF
7816 rm -f conftest.$ac_objext
7817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7818 (eval $ac_compile) 2>conftest.er1
7819 ac_status=$?
7820 grep -v '^ *+' conftest.er1 >conftest.err
7821 rm -f conftest.er1
7822 cat conftest.err >&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); } &&
7825 { ac_try='test -z "$ac_c_werror_flag"
7826 || test ! -s conftest.err'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828 (eval $ac_try) 2>&5
7829 ac_status=$?
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; } &&
7832 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7838 ac_lo=0 ac_mid=0
7839 while :; do
7840 cat >conftest.$ac_ext <<_ACEOF
7841 /* confdefs.h. */
7842 _ACEOF
7843 cat confdefs.h >>conftest.$ac_ext
7844 cat >>conftest.$ac_ext <<_ACEOF
7845 /* end confdefs.h. */
7846 $ac_includes_default
7848 main ()
7850 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
7851 test_array [0] = 0
7854 return 0;
7856 _ACEOF
7857 rm -f conftest.$ac_objext
7858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7859 (eval $ac_compile) 2>conftest.er1
7860 ac_status=$?
7861 grep -v '^ *+' conftest.er1 >conftest.err
7862 rm -f conftest.er1
7863 cat conftest.err >&5
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); } &&
7866 { ac_try='test -z "$ac_c_werror_flag"
7867 || test ! -s conftest.err'
7868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7869 (eval $ac_try) 2>&5
7870 ac_status=$?
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); }; } &&
7873 { ac_try='test -s conftest.$ac_objext'
7874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7875 (eval $ac_try) 2>&5
7876 ac_status=$?
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); }; }; then
7879 ac_hi=$ac_mid; break
7880 else
7881 echo "$as_me: failed program was:" >&5
7882 sed 's/^/| /' conftest.$ac_ext >&5
7884 ac_lo=`expr $ac_mid + 1`
7885 if test $ac_lo -le $ac_mid; then
7886 ac_lo= ac_hi=
7887 break
7889 ac_mid=`expr 2 '*' $ac_mid + 1`
7891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7892 done
7893 else
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7897 cat >conftest.$ac_ext <<_ACEOF
7898 /* confdefs.h. */
7899 _ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7903 $ac_includes_default
7905 main ()
7907 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
7908 test_array [0] = 0
7911 return 0;
7913 _ACEOF
7914 rm -f conftest.$ac_objext
7915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7916 (eval $ac_compile) 2>conftest.er1
7917 ac_status=$?
7918 grep -v '^ *+' conftest.er1 >conftest.err
7919 rm -f conftest.er1
7920 cat conftest.err >&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } &&
7923 { ac_try='test -z "$ac_c_werror_flag"
7924 || test ! -s conftest.err'
7925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7926 (eval $ac_try) 2>&5
7927 ac_status=$?
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; } &&
7930 { ac_try='test -s conftest.$ac_objext'
7931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7932 (eval $ac_try) 2>&5
7933 ac_status=$?
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); }; }; then
7936 ac_hi=-1 ac_mid=-1
7937 while :; do
7938 cat >conftest.$ac_ext <<_ACEOF
7939 /* confdefs.h. */
7940 _ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7944 $ac_includes_default
7946 main ()
7948 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
7949 test_array [0] = 0
7952 return 0;
7954 _ACEOF
7955 rm -f conftest.$ac_objext
7956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7957 (eval $ac_compile) 2>conftest.er1
7958 ac_status=$?
7959 grep -v '^ *+' conftest.er1 >conftest.err
7960 rm -f conftest.er1
7961 cat conftest.err >&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); } &&
7964 { ac_try='test -z "$ac_c_werror_flag"
7965 || test ! -s conftest.err'
7966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967 (eval $ac_try) 2>&5
7968 ac_status=$?
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); }; } &&
7971 { ac_try='test -s conftest.$ac_objext'
7972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973 (eval $ac_try) 2>&5
7974 ac_status=$?
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); }; }; then
7977 ac_lo=$ac_mid; break
7978 else
7979 echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7982 ac_hi=`expr '(' $ac_mid ')' - 1`
7983 if test $ac_mid -le $ac_hi; then
7984 ac_lo= ac_hi=
7985 break
7987 ac_mid=`expr 2 '*' $ac_mid`
7989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7990 done
7991 else
7992 echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7995 ac_lo= ac_hi=
7997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8000 # Binary search between lo and hi bounds.
8001 while test "x$ac_lo" != "x$ac_hi"; do
8002 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8003 cat >conftest.$ac_ext <<_ACEOF
8004 /* confdefs.h. */
8005 _ACEOF
8006 cat confdefs.h >>conftest.$ac_ext
8007 cat >>conftest.$ac_ext <<_ACEOF
8008 /* end confdefs.h. */
8009 $ac_includes_default
8011 main ()
8013 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8014 test_array [0] = 0
8017 return 0;
8019 _ACEOF
8020 rm -f conftest.$ac_objext
8021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8022 (eval $ac_compile) 2>conftest.er1
8023 ac_status=$?
8024 grep -v '^ *+' conftest.er1 >conftest.err
8025 rm -f conftest.er1
8026 cat conftest.err >&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } &&
8029 { ac_try='test -z "$ac_c_werror_flag"
8030 || test ! -s conftest.err'
8031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032 (eval $ac_try) 2>&5
8033 ac_status=$?
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; } &&
8036 { ac_try='test -s conftest.$ac_objext'
8037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8038 (eval $ac_try) 2>&5
8039 ac_status=$?
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); }; }; then
8042 ac_hi=$ac_mid
8043 else
8044 echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.$ac_ext >&5
8047 ac_lo=`expr '(' $ac_mid ')' + 1`
8049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8050 done
8051 case $ac_lo in
8052 ?*) ac_cv_sizeof_float=$ac_lo;;
8053 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8054 See \`config.log' for more details." >&5
8055 echo "$as_me: error: cannot compute sizeof (float), 77
8056 See \`config.log' for more details." >&2;}
8057 { (exit 1); exit 1; }; } ;;
8058 esac
8059 else
8060 if test "$cross_compiling" = yes; then
8061 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8062 See \`config.log' for more details." >&5
8063 echo "$as_me: error: cannot run test program while cross compiling
8064 See \`config.log' for more details." >&2;}
8065 { (exit 1); exit 1; }; }
8066 else
8067 cat >conftest.$ac_ext <<_ACEOF
8068 /* confdefs.h. */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8073 $ac_includes_default
8074 long longval () { return (long) (sizeof (float)); }
8075 unsigned long ulongval () { return (long) (sizeof (float)); }
8076 #include <stdio.h>
8077 #include <stdlib.h>
8079 main ()
8082 FILE *f = fopen ("conftest.val", "w");
8083 if (! f)
8084 exit (1);
8085 if (((long) (sizeof (float))) < 0)
8087 long i = longval ();
8088 if (i != ((long) (sizeof (float))))
8089 exit (1);
8090 fprintf (f, "%ld\n", i);
8092 else
8094 unsigned long i = ulongval ();
8095 if (i != ((long) (sizeof (float))))
8096 exit (1);
8097 fprintf (f, "%lu\n", i);
8099 exit (ferror (f) || fclose (f) != 0);
8102 return 0;
8104 _ACEOF
8105 rm -f conftest$ac_exeext
8106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8107 (eval $ac_link) 2>&5
8108 ac_status=$?
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8112 (eval $ac_try) 2>&5
8113 ac_status=$?
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); }; }; then
8116 ac_cv_sizeof_float=`cat conftest.val`
8117 else
8118 echo "$as_me: program exited with status $ac_status" >&5
8119 echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.$ac_ext >&5
8122 ( exit $ac_status )
8123 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8124 See \`config.log' for more details." >&5
8125 echo "$as_me: error: cannot compute sizeof (float), 77
8126 See \`config.log' for more details." >&2;}
8127 { (exit 1); exit 1; }; }
8129 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8132 rm -f conftest.val
8133 else
8134 ac_cv_sizeof_float=0
8137 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8138 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8139 cat >>confdefs.h <<_ACEOF
8140 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8141 _ACEOF
8144 echo "$as_me:$LINENO: checking for double" >&5
8145 echo $ECHO_N "checking for double... $ECHO_C" >&6
8146 if test "${ac_cv_type_double+set}" = set; then
8147 echo $ECHO_N "(cached) $ECHO_C" >&6
8148 else
8149 cat >conftest.$ac_ext <<_ACEOF
8150 /* confdefs.h. */
8151 _ACEOF
8152 cat confdefs.h >>conftest.$ac_ext
8153 cat >>conftest.$ac_ext <<_ACEOF
8154 /* end confdefs.h. */
8155 $ac_includes_default
8157 main ()
8159 if ((double *) 0)
8160 return 0;
8161 if (sizeof (double))
8162 return 0;
8164 return 0;
8166 _ACEOF
8167 rm -f conftest.$ac_objext
8168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8169 (eval $ac_compile) 2>conftest.er1
8170 ac_status=$?
8171 grep -v '^ *+' conftest.er1 >conftest.err
8172 rm -f conftest.er1
8173 cat conftest.err >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } &&
8176 { ac_try='test -z "$ac_c_werror_flag"
8177 || test ! -s conftest.err'
8178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179 (eval $ac_try) 2>&5
8180 ac_status=$?
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); }; } &&
8183 { ac_try='test -s conftest.$ac_objext'
8184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185 (eval $ac_try) 2>&5
8186 ac_status=$?
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; }; then
8189 ac_cv_type_double=yes
8190 else
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8194 ac_cv_type_double=no
8196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8198 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8199 echo "${ECHO_T}$ac_cv_type_double" >&6
8201 echo "$as_me:$LINENO: checking size of double" >&5
8202 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8203 if test "${ac_cv_sizeof_double+set}" = set; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6
8205 else
8206 if test "$ac_cv_type_double" = yes; then
8207 # The cast to unsigned long works around a bug in the HP C Compiler
8208 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8209 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8210 # This bug is HP SR number 8606223364.
8211 if test "$cross_compiling" = yes; then
8212 # Depending upon the size, compute the lo and hi bounds.
8213 cat >conftest.$ac_ext <<_ACEOF
8214 /* confdefs.h. */
8215 _ACEOF
8216 cat confdefs.h >>conftest.$ac_ext
8217 cat >>conftest.$ac_ext <<_ACEOF
8218 /* end confdefs.h. */
8219 $ac_includes_default
8221 main ()
8223 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8224 test_array [0] = 0
8227 return 0;
8229 _ACEOF
8230 rm -f conftest.$ac_objext
8231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8232 (eval $ac_compile) 2>conftest.er1
8233 ac_status=$?
8234 grep -v '^ *+' conftest.er1 >conftest.err
8235 rm -f conftest.er1
8236 cat conftest.err >&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); } &&
8239 { ac_try='test -z "$ac_c_werror_flag"
8240 || test ! -s conftest.err'
8241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242 (eval $ac_try) 2>&5
8243 ac_status=$?
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); }; } &&
8246 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8252 ac_lo=0 ac_mid=0
8253 while :; do
8254 cat >conftest.$ac_ext <<_ACEOF
8255 /* confdefs.h. */
8256 _ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h. */
8260 $ac_includes_default
8262 main ()
8264 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8265 test_array [0] = 0
8268 return 0;
8270 _ACEOF
8271 rm -f conftest.$ac_objext
8272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8273 (eval $ac_compile) 2>conftest.er1
8274 ac_status=$?
8275 grep -v '^ *+' conftest.er1 >conftest.err
8276 rm -f conftest.er1
8277 cat conftest.err >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); } &&
8280 { ac_try='test -z "$ac_c_werror_flag"
8281 || test ! -s conftest.err'
8282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8283 (eval $ac_try) 2>&5
8284 ac_status=$?
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); }; } &&
8287 { ac_try='test -s conftest.$ac_objext'
8288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8289 (eval $ac_try) 2>&5
8290 ac_status=$?
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); }; }; then
8293 ac_hi=$ac_mid; break
8294 else
8295 echo "$as_me: failed program was:" >&5
8296 sed 's/^/| /' conftest.$ac_ext >&5
8298 ac_lo=`expr $ac_mid + 1`
8299 if test $ac_lo -le $ac_mid; then
8300 ac_lo= ac_hi=
8301 break
8303 ac_mid=`expr 2 '*' $ac_mid + 1`
8305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8306 done
8307 else
8308 echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8311 cat >conftest.$ac_ext <<_ACEOF
8312 /* confdefs.h. */
8313 _ACEOF
8314 cat confdefs.h >>conftest.$ac_ext
8315 cat >>conftest.$ac_ext <<_ACEOF
8316 /* end confdefs.h. */
8317 $ac_includes_default
8319 main ()
8321 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8322 test_array [0] = 0
8325 return 0;
8327 _ACEOF
8328 rm -f conftest.$ac_objext
8329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8330 (eval $ac_compile) 2>conftest.er1
8331 ac_status=$?
8332 grep -v '^ *+' conftest.er1 >conftest.err
8333 rm -f conftest.er1
8334 cat conftest.err >&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } &&
8337 { ac_try='test -z "$ac_c_werror_flag"
8338 || test ! -s conftest.err'
8339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340 (eval $ac_try) 2>&5
8341 ac_status=$?
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; } &&
8344 { ac_try='test -s conftest.$ac_objext'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346 (eval $ac_try) 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; }; then
8350 ac_hi=-1 ac_mid=-1
8351 while :; do
8352 cat >conftest.$ac_ext <<_ACEOF
8353 /* confdefs.h. */
8354 _ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h. */
8358 $ac_includes_default
8360 main ()
8362 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8363 test_array [0] = 0
8366 return 0;
8368 _ACEOF
8369 rm -f conftest.$ac_objext
8370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8371 (eval $ac_compile) 2>conftest.er1
8372 ac_status=$?
8373 grep -v '^ *+' conftest.er1 >conftest.err
8374 rm -f conftest.er1
8375 cat conftest.err >&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); } &&
8378 { ac_try='test -z "$ac_c_werror_flag"
8379 || test ! -s conftest.err'
8380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8381 (eval $ac_try) 2>&5
8382 ac_status=$?
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); }; } &&
8385 { ac_try='test -s conftest.$ac_objext'
8386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 (eval $ac_try) 2>&5
8388 ac_status=$?
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; }; then
8391 ac_lo=$ac_mid; break
8392 else
8393 echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8396 ac_hi=`expr '(' $ac_mid ')' - 1`
8397 if test $ac_mid -le $ac_hi; then
8398 ac_lo= ac_hi=
8399 break
8401 ac_mid=`expr 2 '*' $ac_mid`
8403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8404 done
8405 else
8406 echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.$ac_ext >&5
8409 ac_lo= ac_hi=
8411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8414 # Binary search between lo and hi bounds.
8415 while test "x$ac_lo" != "x$ac_hi"; do
8416 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8417 cat >conftest.$ac_ext <<_ACEOF
8418 /* confdefs.h. */
8419 _ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h. */
8423 $ac_includes_default
8425 main ()
8427 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8428 test_array [0] = 0
8431 return 0;
8433 _ACEOF
8434 rm -f conftest.$ac_objext
8435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8436 (eval $ac_compile) 2>conftest.er1
8437 ac_status=$?
8438 grep -v '^ *+' conftest.er1 >conftest.err
8439 rm -f conftest.er1
8440 cat conftest.err >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } &&
8443 { ac_try='test -z "$ac_c_werror_flag"
8444 || test ! -s conftest.err'
8445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8446 (eval $ac_try) 2>&5
8447 ac_status=$?
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); }; } &&
8450 { ac_try='test -s conftest.$ac_objext'
8451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452 (eval $ac_try) 2>&5
8453 ac_status=$?
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); }; }; then
8456 ac_hi=$ac_mid
8457 else
8458 echo "$as_me: failed program was:" >&5
8459 sed 's/^/| /' conftest.$ac_ext >&5
8461 ac_lo=`expr '(' $ac_mid ')' + 1`
8463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8464 done
8465 case $ac_lo in
8466 ?*) ac_cv_sizeof_double=$ac_lo;;
8467 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8468 See \`config.log' for more details." >&5
8469 echo "$as_me: error: cannot compute sizeof (double), 77
8470 See \`config.log' for more details." >&2;}
8471 { (exit 1); exit 1; }; } ;;
8472 esac
8473 else
8474 if test "$cross_compiling" = yes; then
8475 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8476 See \`config.log' for more details." >&5
8477 echo "$as_me: error: cannot run test program while cross compiling
8478 See \`config.log' for more details." >&2;}
8479 { (exit 1); exit 1; }; }
8480 else
8481 cat >conftest.$ac_ext <<_ACEOF
8482 /* confdefs.h. */
8483 _ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h. */
8487 $ac_includes_default
8488 long longval () { return (long) (sizeof (double)); }
8489 unsigned long ulongval () { return (long) (sizeof (double)); }
8490 #include <stdio.h>
8491 #include <stdlib.h>
8493 main ()
8496 FILE *f = fopen ("conftest.val", "w");
8497 if (! f)
8498 exit (1);
8499 if (((long) (sizeof (double))) < 0)
8501 long i = longval ();
8502 if (i != ((long) (sizeof (double))))
8503 exit (1);
8504 fprintf (f, "%ld\n", i);
8506 else
8508 unsigned long i = ulongval ();
8509 if (i != ((long) (sizeof (double))))
8510 exit (1);
8511 fprintf (f, "%lu\n", i);
8513 exit (ferror (f) || fclose (f) != 0);
8516 return 0;
8518 _ACEOF
8519 rm -f conftest$ac_exeext
8520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8521 (eval $ac_link) 2>&5
8522 ac_status=$?
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 (eval $ac_try) 2>&5
8527 ac_status=$?
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; }; then
8530 ac_cv_sizeof_double=`cat conftest.val`
8531 else
8532 echo "$as_me: program exited with status $ac_status" >&5
8533 echo "$as_me: failed program was:" >&5
8534 sed 's/^/| /' conftest.$ac_ext >&5
8536 ( exit $ac_status )
8537 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8538 See \`config.log' for more details." >&5
8539 echo "$as_me: error: cannot compute sizeof (double), 77
8540 See \`config.log' for more details." >&2;}
8541 { (exit 1); exit 1; }; }
8543 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8546 rm -f conftest.val
8547 else
8548 ac_cv_sizeof_double=0
8551 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8552 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8553 cat >>confdefs.h <<_ACEOF
8554 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8555 _ACEOF
8558 echo "$as_me:$LINENO: checking for fpos_t" >&5
8559 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8560 if test "${ac_cv_type_fpos_t+set}" = set; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8562 else
8563 cat >conftest.$ac_ext <<_ACEOF
8564 /* confdefs.h. */
8565 _ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8569 $ac_includes_default
8571 main ()
8573 if ((fpos_t *) 0)
8574 return 0;
8575 if (sizeof (fpos_t))
8576 return 0;
8578 return 0;
8580 _ACEOF
8581 rm -f conftest.$ac_objext
8582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8583 (eval $ac_compile) 2>conftest.er1
8584 ac_status=$?
8585 grep -v '^ *+' conftest.er1 >conftest.err
8586 rm -f conftest.er1
8587 cat conftest.err >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); } &&
8590 { ac_try='test -z "$ac_c_werror_flag"
8591 || test ! -s conftest.err'
8592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593 (eval $ac_try) 2>&5
8594 ac_status=$?
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; } &&
8597 { ac_try='test -s conftest.$ac_objext'
8598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599 (eval $ac_try) 2>&5
8600 ac_status=$?
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); }; }; then
8603 ac_cv_type_fpos_t=yes
8604 else
8605 echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8608 ac_cv_type_fpos_t=no
8610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8612 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8613 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8615 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8616 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8617 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
8619 else
8620 if test "$ac_cv_type_fpos_t" = yes; then
8621 # The cast to unsigned long works around a bug in the HP C Compiler
8622 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8623 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8624 # This bug is HP SR number 8606223364.
8625 if test "$cross_compiling" = yes; then
8626 # Depending upon the size, compute the lo and hi bounds.
8627 cat >conftest.$ac_ext <<_ACEOF
8628 /* confdefs.h. */
8629 _ACEOF
8630 cat confdefs.h >>conftest.$ac_ext
8631 cat >>conftest.$ac_ext <<_ACEOF
8632 /* end confdefs.h. */
8633 $ac_includes_default
8635 main ()
8637 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8638 test_array [0] = 0
8641 return 0;
8643 _ACEOF
8644 rm -f conftest.$ac_objext
8645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8646 (eval $ac_compile) 2>conftest.er1
8647 ac_status=$?
8648 grep -v '^ *+' conftest.er1 >conftest.err
8649 rm -f conftest.er1
8650 cat conftest.err >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } &&
8653 { ac_try='test -z "$ac_c_werror_flag"
8654 || test ! -s conftest.err'
8655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656 (eval $ac_try) 2>&5
8657 ac_status=$?
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }; } &&
8660 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8666 ac_lo=0 ac_mid=0
8667 while :; do
8668 cat >conftest.$ac_ext <<_ACEOF
8669 /* confdefs.h. */
8670 _ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674 $ac_includes_default
8676 main ()
8678 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8679 test_array [0] = 0
8682 return 0;
8684 _ACEOF
8685 rm -f conftest.$ac_objext
8686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8687 (eval $ac_compile) 2>conftest.er1
8688 ac_status=$?
8689 grep -v '^ *+' conftest.er1 >conftest.err
8690 rm -f conftest.er1
8691 cat conftest.err >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); } &&
8694 { ac_try='test -z "$ac_c_werror_flag"
8695 || test ! -s conftest.err'
8696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697 (eval $ac_try) 2>&5
8698 ac_status=$?
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; } &&
8701 { ac_try='test -s conftest.$ac_objext'
8702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703 (eval $ac_try) 2>&5
8704 ac_status=$?
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); }; }; then
8707 ac_hi=$ac_mid; break
8708 else
8709 echo "$as_me: failed program was:" >&5
8710 sed 's/^/| /' conftest.$ac_ext >&5
8712 ac_lo=`expr $ac_mid + 1`
8713 if test $ac_lo -le $ac_mid; then
8714 ac_lo= ac_hi=
8715 break
8717 ac_mid=`expr 2 '*' $ac_mid + 1`
8719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8720 done
8721 else
8722 echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.$ac_ext >&5
8725 cat >conftest.$ac_ext <<_ACEOF
8726 /* confdefs.h. */
8727 _ACEOF
8728 cat confdefs.h >>conftest.$ac_ext
8729 cat >>conftest.$ac_ext <<_ACEOF
8730 /* end confdefs.h. */
8731 $ac_includes_default
8733 main ()
8735 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8736 test_array [0] = 0
8739 return 0;
8741 _ACEOF
8742 rm -f conftest.$ac_objext
8743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8744 (eval $ac_compile) 2>conftest.er1
8745 ac_status=$?
8746 grep -v '^ *+' conftest.er1 >conftest.err
8747 rm -f conftest.er1
8748 cat conftest.err >&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } &&
8751 { ac_try='test -z "$ac_c_werror_flag"
8752 || test ! -s conftest.err'
8753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8754 (eval $ac_try) 2>&5
8755 ac_status=$?
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); }; } &&
8758 { ac_try='test -s conftest.$ac_objext'
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760 (eval $ac_try) 2>&5
8761 ac_status=$?
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; }; then
8764 ac_hi=-1 ac_mid=-1
8765 while :; do
8766 cat >conftest.$ac_ext <<_ACEOF
8767 /* confdefs.h. */
8768 _ACEOF
8769 cat confdefs.h >>conftest.$ac_ext
8770 cat >>conftest.$ac_ext <<_ACEOF
8771 /* end confdefs.h. */
8772 $ac_includes_default
8774 main ()
8776 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8777 test_array [0] = 0
8780 return 0;
8782 _ACEOF
8783 rm -f conftest.$ac_objext
8784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8785 (eval $ac_compile) 2>conftest.er1
8786 ac_status=$?
8787 grep -v '^ *+' conftest.er1 >conftest.err
8788 rm -f conftest.er1
8789 cat conftest.err >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } &&
8792 { ac_try='test -z "$ac_c_werror_flag"
8793 || test ! -s conftest.err'
8794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8795 (eval $ac_try) 2>&5
8796 ac_status=$?
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); }; } &&
8799 { ac_try='test -s conftest.$ac_objext'
8800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801 (eval $ac_try) 2>&5
8802 ac_status=$?
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); }; }; then
8805 ac_lo=$ac_mid; break
8806 else
8807 echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8810 ac_hi=`expr '(' $ac_mid ')' - 1`
8811 if test $ac_mid -le $ac_hi; then
8812 ac_lo= ac_hi=
8813 break
8815 ac_mid=`expr 2 '*' $ac_mid`
8817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8818 done
8819 else
8820 echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.$ac_ext >&5
8823 ac_lo= ac_hi=
8825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8828 # Binary search between lo and hi bounds.
8829 while test "x$ac_lo" != "x$ac_hi"; do
8830 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8831 cat >conftest.$ac_ext <<_ACEOF
8832 /* confdefs.h. */
8833 _ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h. */
8837 $ac_includes_default
8839 main ()
8841 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8842 test_array [0] = 0
8845 return 0;
8847 _ACEOF
8848 rm -f conftest.$ac_objext
8849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8850 (eval $ac_compile) 2>conftest.er1
8851 ac_status=$?
8852 grep -v '^ *+' conftest.er1 >conftest.err
8853 rm -f conftest.er1
8854 cat conftest.err >&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); } &&
8857 { ac_try='test -z "$ac_c_werror_flag"
8858 || test ! -s conftest.err'
8859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860 (eval $ac_try) 2>&5
8861 ac_status=$?
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }; } &&
8864 { ac_try='test -s conftest.$ac_objext'
8865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8866 (eval $ac_try) 2>&5
8867 ac_status=$?
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); }; }; then
8870 ac_hi=$ac_mid
8871 else
8872 echo "$as_me: failed program was:" >&5
8873 sed 's/^/| /' conftest.$ac_ext >&5
8875 ac_lo=`expr '(' $ac_mid ')' + 1`
8877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8878 done
8879 case $ac_lo in
8880 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
8881 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
8882 See \`config.log' for more details." >&5
8883 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
8884 See \`config.log' for more details." >&2;}
8885 { (exit 1); exit 1; }; } ;;
8886 esac
8887 else
8888 if test "$cross_compiling" = yes; then
8889 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8890 See \`config.log' for more details." >&5
8891 echo "$as_me: error: cannot run test program while cross compiling
8892 See \`config.log' for more details." >&2;}
8893 { (exit 1); exit 1; }; }
8894 else
8895 cat >conftest.$ac_ext <<_ACEOF
8896 /* confdefs.h. */
8897 _ACEOF
8898 cat confdefs.h >>conftest.$ac_ext
8899 cat >>conftest.$ac_ext <<_ACEOF
8900 /* end confdefs.h. */
8901 $ac_includes_default
8902 long longval () { return (long) (sizeof (fpos_t)); }
8903 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
8904 #include <stdio.h>
8905 #include <stdlib.h>
8907 main ()
8910 FILE *f = fopen ("conftest.val", "w");
8911 if (! f)
8912 exit (1);
8913 if (((long) (sizeof (fpos_t))) < 0)
8915 long i = longval ();
8916 if (i != ((long) (sizeof (fpos_t))))
8917 exit (1);
8918 fprintf (f, "%ld\n", i);
8920 else
8922 unsigned long i = ulongval ();
8923 if (i != ((long) (sizeof (fpos_t))))
8924 exit (1);
8925 fprintf (f, "%lu\n", i);
8927 exit (ferror (f) || fclose (f) != 0);
8930 return 0;
8932 _ACEOF
8933 rm -f conftest$ac_exeext
8934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8935 (eval $ac_link) 2>&5
8936 ac_status=$?
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940 (eval $ac_try) 2>&5
8941 ac_status=$?
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); }; }; then
8944 ac_cv_sizeof_fpos_t=`cat conftest.val`
8945 else
8946 echo "$as_me: program exited with status $ac_status" >&5
8947 echo "$as_me: failed program was:" >&5
8948 sed 's/^/| /' conftest.$ac_ext >&5
8950 ( exit $ac_status )
8951 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
8952 See \`config.log' for more details." >&5
8953 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
8954 See \`config.log' for more details." >&2;}
8955 { (exit 1); exit 1; }; }
8957 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8960 rm -f conftest.val
8961 else
8962 ac_cv_sizeof_fpos_t=0
8965 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
8966 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
8967 cat >>confdefs.h <<_ACEOF
8968 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
8969 _ACEOF
8973 echo "$as_me:$LINENO: checking for long long support" >&5
8974 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
8975 have_long_long=no
8976 cat >conftest.$ac_ext <<_ACEOF
8977 /* confdefs.h. */
8978 _ACEOF
8979 cat confdefs.h >>conftest.$ac_ext
8980 cat >>conftest.$ac_ext <<_ACEOF
8981 /* end confdefs.h. */
8984 main ()
8986 long long x; x = (long long)0;
8988 return 0;
8990 _ACEOF
8991 rm -f conftest.$ac_objext
8992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8993 (eval $ac_compile) 2>conftest.er1
8994 ac_status=$?
8995 grep -v '^ *+' conftest.er1 >conftest.err
8996 rm -f conftest.er1
8997 cat conftest.err >&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); } &&
9000 { ac_try='test -z "$ac_c_werror_flag"
9001 || test ! -s conftest.err'
9002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 (eval $ac_try) 2>&5
9004 ac_status=$?
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; } &&
9007 { ac_try='test -s conftest.$ac_objext'
9008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009 (eval $ac_try) 2>&5
9010 ac_status=$?
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; }; then
9015 cat >>confdefs.h <<\_ACEOF
9016 #define HAVE_LONG_LONG 1
9017 _ACEOF
9019 have_long_long=yes
9021 else
9022 echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.$ac_ext >&5
9026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9027 echo "$as_me:$LINENO: result: $have_long_long" >&5
9028 echo "${ECHO_T}$have_long_long" >&6
9029 if test "$have_long_long" = yes ; then
9030 echo "$as_me:$LINENO: checking for long long" >&5
9031 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9032 if test "${ac_cv_type_long_long+set}" = set; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9034 else
9035 cat >conftest.$ac_ext <<_ACEOF
9036 /* confdefs.h. */
9037 _ACEOF
9038 cat confdefs.h >>conftest.$ac_ext
9039 cat >>conftest.$ac_ext <<_ACEOF
9040 /* end confdefs.h. */
9041 $ac_includes_default
9043 main ()
9045 if ((long long *) 0)
9046 return 0;
9047 if (sizeof (long long))
9048 return 0;
9050 return 0;
9052 _ACEOF
9053 rm -f conftest.$ac_objext
9054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9055 (eval $ac_compile) 2>conftest.er1
9056 ac_status=$?
9057 grep -v '^ *+' conftest.er1 >conftest.err
9058 rm -f conftest.er1
9059 cat conftest.err >&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); } &&
9062 { ac_try='test -z "$ac_c_werror_flag"
9063 || test ! -s conftest.err'
9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 (eval $ac_try) 2>&5
9066 ac_status=$?
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; } &&
9069 { ac_try='test -s conftest.$ac_objext'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071 (eval $ac_try) 2>&5
9072 ac_status=$?
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; }; then
9075 ac_cv_type_long_long=yes
9076 else
9077 echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9080 ac_cv_type_long_long=no
9082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9084 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9085 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9087 echo "$as_me:$LINENO: checking size of long long" >&5
9088 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9089 if test "${ac_cv_sizeof_long_long+set}" = set; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9091 else
9092 if test "$ac_cv_type_long_long" = yes; then
9093 # The cast to unsigned long works around a bug in the HP C Compiler
9094 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9095 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9096 # This bug is HP SR number 8606223364.
9097 if test "$cross_compiling" = yes; then
9098 # Depending upon the size, compute the lo and hi bounds.
9099 cat >conftest.$ac_ext <<_ACEOF
9100 /* confdefs.h. */
9101 _ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9105 $ac_includes_default
9107 main ()
9109 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9110 test_array [0] = 0
9113 return 0;
9115 _ACEOF
9116 rm -f conftest.$ac_objext
9117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9118 (eval $ac_compile) 2>conftest.er1
9119 ac_status=$?
9120 grep -v '^ *+' conftest.er1 >conftest.err
9121 rm -f conftest.er1
9122 cat conftest.err >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } &&
9125 { ac_try='test -z "$ac_c_werror_flag"
9126 || test ! -s conftest.err'
9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128 (eval $ac_try) 2>&5
9129 ac_status=$?
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; } &&
9132 { ac_try='test -s conftest.$ac_objext'
9133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134 (eval $ac_try) 2>&5
9135 ac_status=$?
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }; }; then
9138 ac_lo=0 ac_mid=0
9139 while :; do
9140 cat >conftest.$ac_ext <<_ACEOF
9141 /* confdefs.h. */
9142 _ACEOF
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h. */
9146 $ac_includes_default
9148 main ()
9150 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9151 test_array [0] = 0
9154 return 0;
9156 _ACEOF
9157 rm -f conftest.$ac_objext
9158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9159 (eval $ac_compile) 2>conftest.er1
9160 ac_status=$?
9161 grep -v '^ *+' conftest.er1 >conftest.err
9162 rm -f conftest.er1
9163 cat conftest.err >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); } &&
9166 { ac_try='test -z "$ac_c_werror_flag"
9167 || test ! -s conftest.err'
9168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169 (eval $ac_try) 2>&5
9170 ac_status=$?
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); }; } &&
9173 { ac_try='test -s conftest.$ac_objext'
9174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175 (eval $ac_try) 2>&5
9176 ac_status=$?
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); }; }; then
9179 ac_hi=$ac_mid; break
9180 else
9181 echo "$as_me: failed program was:" >&5
9182 sed 's/^/| /' conftest.$ac_ext >&5
9184 ac_lo=`expr $ac_mid + 1`
9185 if test $ac_lo -le $ac_mid; then
9186 ac_lo= ac_hi=
9187 break
9189 ac_mid=`expr 2 '*' $ac_mid + 1`
9191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9192 done
9193 else
9194 echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9197 cat >conftest.$ac_ext <<_ACEOF
9198 /* confdefs.h. */
9199 _ACEOF
9200 cat confdefs.h >>conftest.$ac_ext
9201 cat >>conftest.$ac_ext <<_ACEOF
9202 /* end confdefs.h. */
9203 $ac_includes_default
9205 main ()
9207 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9208 test_array [0] = 0
9211 return 0;
9213 _ACEOF
9214 rm -f conftest.$ac_objext
9215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9216 (eval $ac_compile) 2>conftest.er1
9217 ac_status=$?
9218 grep -v '^ *+' conftest.er1 >conftest.err
9219 rm -f conftest.er1
9220 cat conftest.err >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); } &&
9223 { ac_try='test -z "$ac_c_werror_flag"
9224 || test ! -s conftest.err'
9225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9226 (eval $ac_try) 2>&5
9227 ac_status=$?
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; } &&
9230 { ac_try='test -s conftest.$ac_objext'
9231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232 (eval $ac_try) 2>&5
9233 ac_status=$?
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); }; }; then
9236 ac_hi=-1 ac_mid=-1
9237 while :; do
9238 cat >conftest.$ac_ext <<_ACEOF
9239 /* confdefs.h. */
9240 _ACEOF
9241 cat confdefs.h >>conftest.$ac_ext
9242 cat >>conftest.$ac_ext <<_ACEOF
9243 /* end confdefs.h. */
9244 $ac_includes_default
9246 main ()
9248 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9249 test_array [0] = 0
9252 return 0;
9254 _ACEOF
9255 rm -f conftest.$ac_objext
9256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9257 (eval $ac_compile) 2>conftest.er1
9258 ac_status=$?
9259 grep -v '^ *+' conftest.er1 >conftest.err
9260 rm -f conftest.er1
9261 cat conftest.err >&5
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); } &&
9264 { ac_try='test -z "$ac_c_werror_flag"
9265 || test ! -s conftest.err'
9266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267 (eval $ac_try) 2>&5
9268 ac_status=$?
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); }; } &&
9271 { ac_try='test -s conftest.$ac_objext'
9272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9273 (eval $ac_try) 2>&5
9274 ac_status=$?
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); }; }; then
9277 ac_lo=$ac_mid; break
9278 else
9279 echo "$as_me: failed program was:" >&5
9280 sed 's/^/| /' conftest.$ac_ext >&5
9282 ac_hi=`expr '(' $ac_mid ')' - 1`
9283 if test $ac_mid -le $ac_hi; then
9284 ac_lo= ac_hi=
9285 break
9287 ac_mid=`expr 2 '*' $ac_mid`
9289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9290 done
9291 else
9292 echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9295 ac_lo= ac_hi=
9297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9300 # Binary search between lo and hi bounds.
9301 while test "x$ac_lo" != "x$ac_hi"; do
9302 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9303 cat >conftest.$ac_ext <<_ACEOF
9304 /* confdefs.h. */
9305 _ACEOF
9306 cat confdefs.h >>conftest.$ac_ext
9307 cat >>conftest.$ac_ext <<_ACEOF
9308 /* end confdefs.h. */
9309 $ac_includes_default
9311 main ()
9313 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9314 test_array [0] = 0
9317 return 0;
9319 _ACEOF
9320 rm -f conftest.$ac_objext
9321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9322 (eval $ac_compile) 2>conftest.er1
9323 ac_status=$?
9324 grep -v '^ *+' conftest.er1 >conftest.err
9325 rm -f conftest.er1
9326 cat conftest.err >&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); } &&
9329 { ac_try='test -z "$ac_c_werror_flag"
9330 || test ! -s conftest.err'
9331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332 (eval $ac_try) 2>&5
9333 ac_status=$?
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); }; } &&
9336 { ac_try='test -s conftest.$ac_objext'
9337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338 (eval $ac_try) 2>&5
9339 ac_status=$?
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); }; }; then
9342 ac_hi=$ac_mid
9343 else
9344 echo "$as_me: failed program was:" >&5
9345 sed 's/^/| /' conftest.$ac_ext >&5
9347 ac_lo=`expr '(' $ac_mid ')' + 1`
9349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9350 done
9351 case $ac_lo in
9352 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9353 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9354 See \`config.log' for more details." >&5
9355 echo "$as_me: error: cannot compute sizeof (long long), 77
9356 See \`config.log' for more details." >&2;}
9357 { (exit 1); exit 1; }; } ;;
9358 esac
9359 else
9360 if test "$cross_compiling" = yes; then
9361 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9362 See \`config.log' for more details." >&5
9363 echo "$as_me: error: cannot run test program while cross compiling
9364 See \`config.log' for more details." >&2;}
9365 { (exit 1); exit 1; }; }
9366 else
9367 cat >conftest.$ac_ext <<_ACEOF
9368 /* confdefs.h. */
9369 _ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h. */
9373 $ac_includes_default
9374 long longval () { return (long) (sizeof (long long)); }
9375 unsigned long ulongval () { return (long) (sizeof (long long)); }
9376 #include <stdio.h>
9377 #include <stdlib.h>
9379 main ()
9382 FILE *f = fopen ("conftest.val", "w");
9383 if (! f)
9384 exit (1);
9385 if (((long) (sizeof (long long))) < 0)
9387 long i = longval ();
9388 if (i != ((long) (sizeof (long long))))
9389 exit (1);
9390 fprintf (f, "%ld\n", i);
9392 else
9394 unsigned long i = ulongval ();
9395 if (i != ((long) (sizeof (long long))))
9396 exit (1);
9397 fprintf (f, "%lu\n", i);
9399 exit (ferror (f) || fclose (f) != 0);
9402 return 0;
9404 _ACEOF
9405 rm -f conftest$ac_exeext
9406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9407 (eval $ac_link) 2>&5
9408 ac_status=$?
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412 (eval $ac_try) 2>&5
9413 ac_status=$?
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); }; }; then
9416 ac_cv_sizeof_long_long=`cat conftest.val`
9417 else
9418 echo "$as_me: program exited with status $ac_status" >&5
9419 echo "$as_me: failed program was:" >&5
9420 sed 's/^/| /' conftest.$ac_ext >&5
9422 ( exit $ac_status )
9423 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9424 See \`config.log' for more details." >&5
9425 echo "$as_me: error: cannot compute sizeof (long long), 77
9426 See \`config.log' for more details." >&2;}
9427 { (exit 1); exit 1; }; }
9429 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9432 rm -f conftest.val
9433 else
9434 ac_cv_sizeof_long_long=0
9437 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9438 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
9439 cat >>confdefs.h <<_ACEOF
9440 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9441 _ACEOF
9446 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
9447 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
9448 have_uintptr_t=no
9449 cat >conftest.$ac_ext <<_ACEOF
9450 /* confdefs.h. */
9451 _ACEOF
9452 cat confdefs.h >>conftest.$ac_ext
9453 cat >>conftest.$ac_ext <<_ACEOF
9454 /* end confdefs.h. */
9457 main ()
9459 uintptr_t x; x = (uintptr_t)0;
9461 return 0;
9463 _ACEOF
9464 rm -f conftest.$ac_objext
9465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9466 (eval $ac_compile) 2>conftest.er1
9467 ac_status=$?
9468 grep -v '^ *+' conftest.er1 >conftest.err
9469 rm -f conftest.er1
9470 cat conftest.err >&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); } &&
9473 { ac_try='test -z "$ac_c_werror_flag"
9474 || test ! -s conftest.err'
9475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9476 (eval $ac_try) 2>&5
9477 ac_status=$?
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); }; } &&
9480 { ac_try='test -s conftest.$ac_objext'
9481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482 (eval $ac_try) 2>&5
9483 ac_status=$?
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; }; then
9488 cat >>confdefs.h <<\_ACEOF
9489 #define HAVE_UINTPTR_T 1
9490 _ACEOF
9492 have_uintptr_t=yes
9494 else
9495 echo "$as_me: failed program was:" >&5
9496 sed 's/^/| /' conftest.$ac_ext >&5
9499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9500 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
9501 echo "${ECHO_T}$have_uintptr_t" >&6
9502 if test "$have_uintptr_t" = yes ; then
9503 echo "$as_me:$LINENO: checking for uintptr_t" >&5
9504 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
9505 if test "${ac_cv_type_uintptr_t+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9507 else
9508 cat >conftest.$ac_ext <<_ACEOF
9509 /* confdefs.h. */
9510 _ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9514 $ac_includes_default
9516 main ()
9518 if ((uintptr_t *) 0)
9519 return 0;
9520 if (sizeof (uintptr_t))
9521 return 0;
9523 return 0;
9525 _ACEOF
9526 rm -f conftest.$ac_objext
9527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9528 (eval $ac_compile) 2>conftest.er1
9529 ac_status=$?
9530 grep -v '^ *+' conftest.er1 >conftest.err
9531 rm -f conftest.er1
9532 cat conftest.err >&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); } &&
9535 { ac_try='test -z "$ac_c_werror_flag"
9536 || test ! -s conftest.err'
9537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9538 (eval $ac_try) 2>&5
9539 ac_status=$?
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); }; } &&
9542 { ac_try='test -s conftest.$ac_objext'
9543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544 (eval $ac_try) 2>&5
9545 ac_status=$?
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; }; then
9548 ac_cv_type_uintptr_t=yes
9549 else
9550 echo "$as_me: failed program was:" >&5
9551 sed 's/^/| /' conftest.$ac_ext >&5
9553 ac_cv_type_uintptr_t=no
9555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9557 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
9558 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
9560 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
9561 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
9562 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
9563 echo $ECHO_N "(cached) $ECHO_C" >&6
9564 else
9565 if test "$ac_cv_type_uintptr_t" = yes; then
9566 # The cast to unsigned long works around a bug in the HP C Compiler
9567 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9568 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9569 # This bug is HP SR number 8606223364.
9570 if test "$cross_compiling" = yes; then
9571 # Depending upon the size, compute the lo and hi bounds.
9572 cat >conftest.$ac_ext <<_ACEOF
9573 /* confdefs.h. */
9574 _ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9578 $ac_includes_default
9580 main ()
9582 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
9583 test_array [0] = 0
9586 return 0;
9588 _ACEOF
9589 rm -f conftest.$ac_objext
9590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9591 (eval $ac_compile) 2>conftest.er1
9592 ac_status=$?
9593 grep -v '^ *+' conftest.er1 >conftest.err
9594 rm -f conftest.er1
9595 cat conftest.err >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } &&
9598 { ac_try='test -z "$ac_c_werror_flag"
9599 || test ! -s conftest.err'
9600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9601 (eval $ac_try) 2>&5
9602 ac_status=$?
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); }; } &&
9605 { ac_try='test -s conftest.$ac_objext'
9606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9607 (eval $ac_try) 2>&5
9608 ac_status=$?
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }; }; then
9611 ac_lo=0 ac_mid=0
9612 while :; do
9613 cat >conftest.$ac_ext <<_ACEOF
9614 /* confdefs.h. */
9615 _ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h. */
9619 $ac_includes_default
9621 main ()
9623 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
9624 test_array [0] = 0
9627 return 0;
9629 _ACEOF
9630 rm -f conftest.$ac_objext
9631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9632 (eval $ac_compile) 2>conftest.er1
9633 ac_status=$?
9634 grep -v '^ *+' conftest.er1 >conftest.err
9635 rm -f conftest.er1
9636 cat conftest.err >&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); } &&
9639 { ac_try='test -z "$ac_c_werror_flag"
9640 || test ! -s conftest.err'
9641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9642 (eval $ac_try) 2>&5
9643 ac_status=$?
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); }; } &&
9646 { ac_try='test -s conftest.$ac_objext'
9647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648 (eval $ac_try) 2>&5
9649 ac_status=$?
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; }; then
9652 ac_hi=$ac_mid; break
9653 else
9654 echo "$as_me: failed program was:" >&5
9655 sed 's/^/| /' conftest.$ac_ext >&5
9657 ac_lo=`expr $ac_mid + 1`
9658 if test $ac_lo -le $ac_mid; then
9659 ac_lo= ac_hi=
9660 break
9662 ac_mid=`expr 2 '*' $ac_mid + 1`
9664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9665 done
9666 else
9667 echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9670 cat >conftest.$ac_ext <<_ACEOF
9671 /* confdefs.h. */
9672 _ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9676 $ac_includes_default
9678 main ()
9680 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
9681 test_array [0] = 0
9684 return 0;
9686 _ACEOF
9687 rm -f conftest.$ac_objext
9688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9689 (eval $ac_compile) 2>conftest.er1
9690 ac_status=$?
9691 grep -v '^ *+' conftest.er1 >conftest.err
9692 rm -f conftest.er1
9693 cat conftest.err >&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); } &&
9696 { ac_try='test -z "$ac_c_werror_flag"
9697 || test ! -s conftest.err'
9698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9699 (eval $ac_try) 2>&5
9700 ac_status=$?
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); }; } &&
9703 { ac_try='test -s conftest.$ac_objext'
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9705 (eval $ac_try) 2>&5
9706 ac_status=$?
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; }; then
9709 ac_hi=-1 ac_mid=-1
9710 while :; do
9711 cat >conftest.$ac_ext <<_ACEOF
9712 /* confdefs.h. */
9713 _ACEOF
9714 cat confdefs.h >>conftest.$ac_ext
9715 cat >>conftest.$ac_ext <<_ACEOF
9716 /* end confdefs.h. */
9717 $ac_includes_default
9719 main ()
9721 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
9722 test_array [0] = 0
9725 return 0;
9727 _ACEOF
9728 rm -f conftest.$ac_objext
9729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9730 (eval $ac_compile) 2>conftest.er1
9731 ac_status=$?
9732 grep -v '^ *+' conftest.er1 >conftest.err
9733 rm -f conftest.er1
9734 cat conftest.err >&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); } &&
9737 { ac_try='test -z "$ac_c_werror_flag"
9738 || test ! -s conftest.err'
9739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9740 (eval $ac_try) 2>&5
9741 ac_status=$?
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); }; } &&
9744 { ac_try='test -s conftest.$ac_objext'
9745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746 (eval $ac_try) 2>&5
9747 ac_status=$?
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); }; }; then
9750 ac_lo=$ac_mid; break
9751 else
9752 echo "$as_me: failed program was:" >&5
9753 sed 's/^/| /' conftest.$ac_ext >&5
9755 ac_hi=`expr '(' $ac_mid ')' - 1`
9756 if test $ac_mid -le $ac_hi; then
9757 ac_lo= ac_hi=
9758 break
9760 ac_mid=`expr 2 '*' $ac_mid`
9762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9763 done
9764 else
9765 echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9768 ac_lo= ac_hi=
9770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9773 # Binary search between lo and hi bounds.
9774 while test "x$ac_lo" != "x$ac_hi"; do
9775 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9776 cat >conftest.$ac_ext <<_ACEOF
9777 /* confdefs.h. */
9778 _ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h. */
9782 $ac_includes_default
9784 main ()
9786 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
9787 test_array [0] = 0
9790 return 0;
9792 _ACEOF
9793 rm -f conftest.$ac_objext
9794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9795 (eval $ac_compile) 2>conftest.er1
9796 ac_status=$?
9797 grep -v '^ *+' conftest.er1 >conftest.err
9798 rm -f conftest.er1
9799 cat conftest.err >&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); } &&
9802 { ac_try='test -z "$ac_c_werror_flag"
9803 || test ! -s conftest.err'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805 (eval $ac_try) 2>&5
9806 ac_status=$?
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; } &&
9809 { ac_try='test -s conftest.$ac_objext'
9810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9811 (eval $ac_try) 2>&5
9812 ac_status=$?
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); }; }; then
9815 ac_hi=$ac_mid
9816 else
9817 echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9820 ac_lo=`expr '(' $ac_mid ')' + 1`
9822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9823 done
9824 case $ac_lo in
9825 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
9826 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
9827 See \`config.log' for more details." >&5
9828 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
9829 See \`config.log' for more details." >&2;}
9830 { (exit 1); exit 1; }; } ;;
9831 esac
9832 else
9833 if test "$cross_compiling" = yes; then
9834 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9835 See \`config.log' for more details." >&5
9836 echo "$as_me: error: cannot run test program while cross compiling
9837 See \`config.log' for more details." >&2;}
9838 { (exit 1); exit 1; }; }
9839 else
9840 cat >conftest.$ac_ext <<_ACEOF
9841 /* confdefs.h. */
9842 _ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h. */
9846 $ac_includes_default
9847 long longval () { return (long) (sizeof (uintptr_t)); }
9848 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
9849 #include <stdio.h>
9850 #include <stdlib.h>
9852 main ()
9855 FILE *f = fopen ("conftest.val", "w");
9856 if (! f)
9857 exit (1);
9858 if (((long) (sizeof (uintptr_t))) < 0)
9860 long i = longval ();
9861 if (i != ((long) (sizeof (uintptr_t))))
9862 exit (1);
9863 fprintf (f, "%ld\n", i);
9865 else
9867 unsigned long i = ulongval ();
9868 if (i != ((long) (sizeof (uintptr_t))))
9869 exit (1);
9870 fprintf (f, "%lu\n", i);
9872 exit (ferror (f) || fclose (f) != 0);
9875 return 0;
9877 _ACEOF
9878 rm -f conftest$ac_exeext
9879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9880 (eval $ac_link) 2>&5
9881 ac_status=$?
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9885 (eval $ac_try) 2>&5
9886 ac_status=$?
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; }; then
9889 ac_cv_sizeof_uintptr_t=`cat conftest.val`
9890 else
9891 echo "$as_me: program exited with status $ac_status" >&5
9892 echo "$as_me: failed program was:" >&5
9893 sed 's/^/| /' conftest.$ac_ext >&5
9895 ( exit $ac_status )
9896 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
9897 See \`config.log' for more details." >&5
9898 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
9899 See \`config.log' for more details." >&2;}
9900 { (exit 1); exit 1; }; }
9902 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9905 rm -f conftest.val
9906 else
9907 ac_cv_sizeof_uintptr_t=0
9910 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
9911 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
9912 cat >>confdefs.h <<_ACEOF
9913 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
9914 _ACEOF
9919 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
9920 echo "$as_me:$LINENO: checking size of off_t" >&5
9921 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
9922 if test "${ac_cv_sizeof_off_t+set}" = set; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
9924 else
9925 if test "$cross_compiling" = yes; then
9926 ac_cv_sizeof_off_t=4
9927 else
9928 cat >conftest.$ac_ext <<_ACEOF
9929 /* confdefs.h. */
9930 _ACEOF
9931 cat confdefs.h >>conftest.$ac_ext
9932 cat >>conftest.$ac_ext <<_ACEOF
9933 /* end confdefs.h. */
9934 #include <stdio.h>
9935 #include <sys/types.h>
9936 main()
9938 FILE *f=fopen("conftestval", "w");
9939 if (!f) exit(1);
9940 fprintf(f, "%d\n", sizeof(off_t));
9941 exit(0);
9943 _ACEOF
9944 rm -f conftest$ac_exeext
9945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9946 (eval $ac_link) 2>&5
9947 ac_status=$?
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9951 (eval $ac_try) 2>&5
9952 ac_status=$?
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); }; }; then
9955 ac_cv_sizeof_off_t=`cat conftestval`
9956 else
9957 echo "$as_me: program exited with status $ac_status" >&5
9958 echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.$ac_ext >&5
9961 ( exit $ac_status )
9962 ac_cv_sizeof_off_t=0
9964 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9969 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
9970 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
9972 cat >>confdefs.h <<_ACEOF
9973 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
9974 _ACEOF
9977 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
9978 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
9979 if test "$have_long_long" = yes -a \
9980 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
9981 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
9983 cat >>confdefs.h <<\_ACEOF
9984 #define HAVE_LARGEFILE_SUPPORT 1
9985 _ACEOF
9987 echo "$as_me:$LINENO: result: yes" >&5
9988 echo "${ECHO_T}yes" >&6
9989 else
9990 echo "$as_me:$LINENO: result: no" >&5
9991 echo "${ECHO_T}no" >&6
9994 # AC_CHECK_SIZEOF() doesn't include <time.h>.
9995 echo "$as_me:$LINENO: checking size of time_t" >&5
9996 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
9997 if test "${ac_cv_sizeof_time_t+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 else
10000 if test "$cross_compiling" = yes; then
10001 ac_cv_sizeof_time_t=4
10002 else
10003 cat >conftest.$ac_ext <<_ACEOF
10004 /* confdefs.h. */
10005 _ACEOF
10006 cat confdefs.h >>conftest.$ac_ext
10007 cat >>conftest.$ac_ext <<_ACEOF
10008 /* end confdefs.h. */
10009 #include <stdio.h>
10010 #include <time.h>
10011 main()
10013 FILE *f=fopen("conftestval", "w");
10014 if (!f) exit(1);
10015 fprintf(f, "%d\n", sizeof(time_t));
10016 exit(0);
10018 _ACEOF
10019 rm -f conftest$ac_exeext
10020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10021 (eval $ac_link) 2>&5
10022 ac_status=$?
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10027 ac_status=$?
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; }; then
10030 ac_cv_sizeof_time_t=`cat conftestval`
10031 else
10032 echo "$as_me: program exited with status $ac_status" >&5
10033 echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10036 ( exit $ac_status )
10037 ac_cv_sizeof_time_t=0
10039 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10044 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10045 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10047 cat >>confdefs.h <<_ACEOF
10048 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10049 _ACEOF
10053 # if have pthread_t then define SIZEOF_PTHREAD_T
10054 ac_save_cc="$CC"
10055 if test "$ac_cv_kpthread" = "yes"
10056 then CC="$CC -Kpthread"
10057 elif test "$ac_cv_kthread" = "yes"
10058 then CC="$CC -Kthread"
10059 elif test "$ac_cv_pthread" = "yes"
10060 then CC="$CC -pthread"
10062 echo "$as_me:$LINENO: checking for pthread_t" >&5
10063 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10064 have_pthread_t=no
10065 cat >conftest.$ac_ext <<_ACEOF
10066 /* confdefs.h. */
10067 _ACEOF
10068 cat confdefs.h >>conftest.$ac_ext
10069 cat >>conftest.$ac_ext <<_ACEOF
10070 /* end confdefs.h. */
10071 #include <pthread.h>
10073 main ()
10075 pthread_t x; x = *(pthread_t*)0;
10077 return 0;
10079 _ACEOF
10080 rm -f conftest.$ac_objext
10081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10082 (eval $ac_compile) 2>conftest.er1
10083 ac_status=$?
10084 grep -v '^ *+' conftest.er1 >conftest.err
10085 rm -f conftest.er1
10086 cat conftest.err >&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } &&
10089 { ac_try='test -z "$ac_c_werror_flag"
10090 || test ! -s conftest.err'
10091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092 (eval $ac_try) 2>&5
10093 ac_status=$?
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); }; } &&
10096 { ac_try='test -s conftest.$ac_objext'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10099 ac_status=$?
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; }; then
10102 have_pthread_t=yes
10103 else
10104 echo "$as_me: failed program was:" >&5
10105 sed 's/^/| /' conftest.$ac_ext >&5
10108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10109 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10110 echo "${ECHO_T}$have_pthread_t" >&6
10111 if test "$have_pthread_t" = yes ; then
10112 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10113 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10114 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10115 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10116 echo $ECHO_N "(cached) $ECHO_C" >&6
10117 else
10118 if test "$cross_compiling" = yes; then
10119 ac_cv_sizeof_pthread_t=4
10120 else
10121 cat >conftest.$ac_ext <<_ACEOF
10122 /* confdefs.h. */
10123 _ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h. */
10127 #include <stdio.h>
10128 #include <pthread.h>
10129 main()
10131 FILE *f=fopen("conftestval", "w");
10132 if (!f) exit(1);
10133 fprintf(f, "%d\n", sizeof(pthread_t));
10134 exit(0);
10136 _ACEOF
10137 rm -f conftest$ac_exeext
10138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10139 (eval $ac_link) 2>&5
10140 ac_status=$?
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144 (eval $ac_try) 2>&5
10145 ac_status=$?
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; }; then
10148 ac_cv_sizeof_pthread_t=`cat conftestval`
10149 else
10150 echo "$as_me: program exited with status $ac_status" >&5
10151 echo "$as_me: failed program was:" >&5
10152 sed 's/^/| /' conftest.$ac_ext >&5
10154 ( exit $ac_status )
10155 ac_cv_sizeof_pthread_t=0
10157 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10162 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10163 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10165 cat >>confdefs.h <<_ACEOF
10166 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10167 _ACEOF
10170 CC="$ac_save_cc"
10172 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10173 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10174 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10175 if test "${enable_toolbox_glue+set}" = set; then
10176 enableval="$enable_toolbox_glue"
10180 if test -z "$enable_toolbox_glue"
10181 then
10182 case $ac_sys_system/$ac_sys_release in
10183 Darwin/*)
10184 enable_toolbox_glue="yes";;
10186 enable_toolbox_glue="no";;
10187 esac
10189 case "$enable_toolbox_glue" in
10190 yes)
10191 extra_machdep_objs="Python/mactoolboxglue.o"
10192 extra_undefs="-u _PyMac_Error"
10194 cat >>confdefs.h <<\_ACEOF
10195 #define USE_TOOLBOX_OBJECT_GLUE 1
10196 _ACEOF
10200 extra_machdep_objs=""
10201 extra_undefs=""
10203 esac
10204 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10205 echo "${ECHO_T}$enable_toolbox_glue" >&6
10208 case $ac_sys_system/$ac_sys_release in
10209 Darwin/[01234567].*)
10210 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
10212 Darwin/*)
10213 OTHER_LIBTOOL_OPT=""
10215 esac
10218 case $ac_sys_system/$ac_sys_release in
10219 Darwin/[01234567].*)
10220 LIBTOOL_CRUFT="-framework System -lcc_dynamic -arch_only ppc"
10221 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10222 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10223 Darwin/*)
10224 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10225 if test ${gcc_version} '<' 4.0
10226 then
10227 LIBTOOL_CRUFT="-lcc_dynamic"
10228 else
10229 LIBTOOL_CRUFT=""
10231 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -lSystem -lSystemStubs -arch_only ppc'
10232 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10233 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10234 esac
10236 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10237 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10238 if test "$enable_framework"
10239 then
10240 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
10241 # -F. is needed to allow linking to the framework while
10242 # in the build location.
10244 cat >>confdefs.h <<\_ACEOF
10245 #define WITH_NEXT_FRAMEWORK 1
10246 _ACEOF
10248 echo "$as_me:$LINENO: result: yes" >&5
10249 echo "${ECHO_T}yes" >&6
10250 else
10251 echo "$as_me:$LINENO: result: no" >&5
10252 echo "${ECHO_T}no" >&6
10255 echo "$as_me:$LINENO: checking for dyld" >&5
10256 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10257 case $ac_sys_system/$ac_sys_release in
10258 Darwin/*)
10260 cat >>confdefs.h <<\_ACEOF
10261 #define WITH_DYLD 1
10262 _ACEOF
10264 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10265 echo "${ECHO_T}always on for Darwin" >&6
10268 echo "$as_me:$LINENO: result: no" >&5
10269 echo "${ECHO_T}no" >&6
10271 esac
10273 # Set info about shared libraries.
10279 # SO is the extension of shared libraries `(including the dot!)
10280 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10281 echo "$as_me:$LINENO: checking SO" >&5
10282 echo $ECHO_N "checking SO... $ECHO_C" >&6
10283 if test -z "$SO"
10284 then
10285 case $ac_sys_system in
10286 hp*|HP*) SO=.sl;;
10287 CYGWIN*) SO=.dll;;
10288 *) SO=.so;;
10289 esac
10290 else
10291 # this might also be a termcap variable, see #610332
10292 echo
10293 echo '====================================================================='
10294 echo '+ +'
10295 echo '+ WARNING: You have set SO in your environment. +'
10296 echo '+ Do you really mean to change the extension for shared libraries? +'
10297 echo '+ Continuing in 10 seconds to let you to ponder. +'
10298 echo '+ +'
10299 echo '====================================================================='
10300 sleep 10
10302 echo "$as_me:$LINENO: result: $SO" >&5
10303 echo "${ECHO_T}$SO" >&6
10304 # LDSHARED is the ld *command* used to create shared library
10305 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10306 # (Shared libraries in this instance are shared modules to be loaded into
10307 # Python, as opposed to building Python itself as a shared library.)
10308 echo "$as_me:$LINENO: checking LDSHARED" >&5
10309 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10310 if test -z "$LDSHARED"
10311 then
10312 case $ac_sys_system/$ac_sys_release in
10313 AIX*)
10314 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10315 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10317 BeOS*)
10318 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10319 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10321 IRIX/5*) LDSHARED="ld -shared";;
10322 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
10323 SunOS/5*)
10324 if test "$GCC" = "yes"
10325 then LDSHARED='$(CC) -shared'
10326 else LDSHARED='$(CC) -G';
10327 fi ;;
10328 hp*|HP*) LDSHARED="ld -b";;
10329 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
10330 Darwin/1.3*)
10331 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10332 if test "$enable_framework" ; then
10333 # Link against the framework. All externals should be defined.
10334 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10335 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10336 else
10337 # No framework. Ignore undefined symbols, assuming they come from Python
10338 LDSHARED="$LDSHARED -undefined suppress"
10339 fi ;;
10340 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
10341 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10342 if test "$enable_framework" ; then
10343 # Link against the framework. All externals should be defined.
10344 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10345 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10346 else
10347 # No framework, use the Python app as bundle-loader
10348 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10349 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10350 fi ;;
10351 Darwin/*)
10352 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
10353 # This allows an extension to be used in any Python
10354 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
10355 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
10356 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
10357 then
10358 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
10359 BLDSHARED="$LDSHARED"
10360 else
10361 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10362 if test "$enable_framework" ; then
10363 # Link against the framework. All externals should be defined.
10364 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10365 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10366 else
10367 # No framework, use the Python app as bundle-loader
10368 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10369 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10373 Linux*|GNU*) LDSHARED='$(CC) -shared';;
10374 BSD/OS*/4*) LDSHARED="gcc -shared";;
10375 OpenBSD*|FreeBSD*)
10376 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
10377 then
10378 LDSHARED="$CC -shared ${LDFLAGS}"
10379 else
10380 LDSHARED="ld -Bshareable ${LDFLAGS}"
10381 fi;;
10382 NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";;
10383 OpenUNIX*|UnixWare*)
10384 if test "$GCC" = "yes"
10385 then LDSHARED='$(CC) -shared'
10386 else LDSHARED='$(CC) -G'
10387 fi;;
10388 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
10389 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
10390 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
10391 atheos*) LDSHARED="gcc -shared";;
10392 *) LDSHARED="ld";;
10393 esac
10395 echo "$as_me:$LINENO: result: $LDSHARED" >&5
10396 echo "${ECHO_T}$LDSHARED" >&6
10397 BLDSHARED=${BLDSHARED-$LDSHARED}
10398 # CCSHARED are the C *flags* used to create objects to go into a shared
10399 # library (module) -- this is only needed for a few systems
10400 echo "$as_me:$LINENO: checking CCSHARED" >&5
10401 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
10402 if test -z "$CCSHARED"
10403 then
10404 case $ac_sys_system/$ac_sys_release in
10405 SunOS*) if test "$GCC" = yes;
10406 then CCSHARED="-fPIC";
10407 fi;;
10408 hp*|HP*) if test "$GCC" = yes;
10409 then CCSHARED="-fPIC";
10410 else CCSHARED="+z";
10411 fi;;
10412 Linux*|GNU*) CCSHARED="-fPIC";;
10413 BSD/OS*/4*) CCSHARED="-fpic";;
10414 FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";;
10415 OpenUNIX*|UnixWare*)
10416 if test "$GCC" = "yes"
10417 then CCSHARED="-fPIC"
10418 else CCSHARED="-KPIC"
10419 fi;;
10420 SCO_SV*)
10421 if test "$GCC" = "yes"
10422 then CCSHARED="-fPIC"
10423 else CCSHARED="-Kpic -belf"
10424 fi;;
10425 Monterey*) CCSHARED="-G";;
10426 IRIX*/6*) case $CC in
10427 *gcc*) CCSHARED="-shared";;
10428 *) CCSHARED="";;
10429 esac;;
10430 atheos*) CCSHARED="-fPIC";;
10431 esac
10433 echo "$as_me:$LINENO: result: $CCSHARED" >&5
10434 echo "${ECHO_T}$CCSHARED" >&6
10435 # LINKFORSHARED are the flags passed to the $(CC) command that links
10436 # the python executable -- this is only needed for a few systems
10437 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
10438 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
10439 if test -z "$LINKFORSHARED"
10440 then
10441 case $ac_sys_system/$ac_sys_release in
10442 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
10443 hp*|HP*)
10444 LINKFORSHARED="-Wl,-E -Wl,+s";;
10445 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
10446 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
10447 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
10448 # -u libsys_s pulls in all symbols in libsys
10449 Darwin/*)
10450 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
10451 # which is
10452 # not used by the core itself but which needs to be in the core so
10453 # that dynamically loaded extension modules have access to it.
10454 # -prebind is no longer used, because it actually seems to give a
10455 # slowdown in stead of a speedup, maybe due to the large number of
10456 # dynamic loads Python does.
10458 LINKFORSHARED="$extra_undefs"
10459 if test "$enable_framework"
10460 then
10461 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10463 LINKFORSHARED="$LINKFORSHARED";;
10464 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
10465 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
10466 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
10467 FreeBSD*|NetBSD*|OpenBSD*)
10468 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
10469 then
10470 LINKFORSHARED="-Wl,--export-dynamic"
10471 fi;;
10472 SunOS/5*) case $CC in
10473 *gcc*)
10474 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
10475 then
10476 LINKFORSHARED="-Xlinker --export-dynamic"
10477 fi;;
10478 esac;;
10479 CYGWIN*)
10480 if test $enable_shared = "no"
10481 then
10482 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
10483 fi;;
10484 esac
10486 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
10487 echo "${ECHO_T}$LINKFORSHARED" >&6
10490 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
10491 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
10492 if test ! "$LIBRARY" = "$LDLIBRARY"
10493 then
10494 case $ac_sys_system in
10495 CYGWIN*)
10496 # Cygwin needs CCSHARED when building extension DLLs
10497 # but not when building the interpreter DLL.
10498 CFLAGSFORSHARED='';;
10500 CFLAGSFORSHARED='$(CCSHARED)'
10501 esac
10503 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
10504 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
10506 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
10507 # library (with --enable-shared).
10508 # For platforms on which shared libraries are not allowed to have unresolved
10509 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
10510 # if it is not required, since it creates a dependency of the shared library
10511 # to LIBS. This, in turn, means that applications linking the shared libpython
10512 # don't need to link LIBS explicitly. The default should be only changed
10513 # on systems where this approach causes problems.
10515 echo "$as_me:$LINENO: checking SHLIBS" >&5
10516 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
10517 case "$ac_sys_system" in
10519 SHLIBS='$(LIBS)';;
10520 esac
10521 echo "$as_me:$LINENO: result: $SHLIBS" >&5
10522 echo "${ECHO_T}$SHLIBS" >&6
10525 # checks for libraries
10527 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10528 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10529 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
10531 else
10532 ac_check_lib_save_LIBS=$LIBS
10533 LIBS="-ldl $LIBS"
10534 cat >conftest.$ac_ext <<_ACEOF
10535 /* confdefs.h. */
10536 _ACEOF
10537 cat confdefs.h >>conftest.$ac_ext
10538 cat >>conftest.$ac_ext <<_ACEOF
10539 /* end confdefs.h. */
10541 /* Override any gcc2 internal prototype to avoid an error. */
10542 #ifdef __cplusplus
10543 extern "C"
10544 #endif
10545 /* We use char because int might match the return type of a gcc2
10546 builtin and then its argument prototype would still apply. */
10547 char dlopen ();
10549 main ()
10551 dlopen ();
10553 return 0;
10555 _ACEOF
10556 rm -f conftest.$ac_objext conftest$ac_exeext
10557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10558 (eval $ac_link) 2>conftest.er1
10559 ac_status=$?
10560 grep -v '^ *+' conftest.er1 >conftest.err
10561 rm -f conftest.er1
10562 cat conftest.err >&5
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); } &&
10565 { ac_try='test -z "$ac_c_werror_flag"
10566 || test ! -s conftest.err'
10567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568 (eval $ac_try) 2>&5
10569 ac_status=$?
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); }; } &&
10572 { ac_try='test -s conftest$ac_exeext'
10573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574 (eval $ac_try) 2>&5
10575 ac_status=$?
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); }; }; then
10578 ac_cv_lib_dl_dlopen=yes
10579 else
10580 echo "$as_me: failed program was:" >&5
10581 sed 's/^/| /' conftest.$ac_ext >&5
10583 ac_cv_lib_dl_dlopen=no
10585 rm -f conftest.err conftest.$ac_objext \
10586 conftest$ac_exeext conftest.$ac_ext
10587 LIBS=$ac_check_lib_save_LIBS
10589 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10590 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10591 if test $ac_cv_lib_dl_dlopen = yes; then
10592 cat >>confdefs.h <<_ACEOF
10593 #define HAVE_LIBDL 1
10594 _ACEOF
10596 LIBS="-ldl $LIBS"
10599 # Dynamic linking for SunOS/Solaris and SYSV
10601 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10602 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10603 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10604 echo $ECHO_N "(cached) $ECHO_C" >&6
10605 else
10606 ac_check_lib_save_LIBS=$LIBS
10607 LIBS="-ldld $LIBS"
10608 cat >conftest.$ac_ext <<_ACEOF
10609 /* confdefs.h. */
10610 _ACEOF
10611 cat confdefs.h >>conftest.$ac_ext
10612 cat >>conftest.$ac_ext <<_ACEOF
10613 /* end confdefs.h. */
10615 /* Override any gcc2 internal prototype to avoid an error. */
10616 #ifdef __cplusplus
10617 extern "C"
10618 #endif
10619 /* We use char because int might match the return type of a gcc2
10620 builtin and then its argument prototype would still apply. */
10621 char shl_load ();
10623 main ()
10625 shl_load ();
10627 return 0;
10629 _ACEOF
10630 rm -f conftest.$ac_objext conftest$ac_exeext
10631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10632 (eval $ac_link) 2>conftest.er1
10633 ac_status=$?
10634 grep -v '^ *+' conftest.er1 >conftest.err
10635 rm -f conftest.er1
10636 cat conftest.err >&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } &&
10639 { ac_try='test -z "$ac_c_werror_flag"
10640 || test ! -s conftest.err'
10641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642 (eval $ac_try) 2>&5
10643 ac_status=$?
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; } &&
10646 { ac_try='test -s conftest$ac_exeext'
10647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648 (eval $ac_try) 2>&5
10649 ac_status=$?
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; }; then
10652 ac_cv_lib_dld_shl_load=yes
10653 else
10654 echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10657 ac_cv_lib_dld_shl_load=no
10659 rm -f conftest.err conftest.$ac_objext \
10660 conftest$ac_exeext conftest.$ac_ext
10661 LIBS=$ac_check_lib_save_LIBS
10663 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10664 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10665 if test $ac_cv_lib_dld_shl_load = yes; then
10666 cat >>confdefs.h <<_ACEOF
10667 #define HAVE_LIBDLD 1
10668 _ACEOF
10670 LIBS="-ldld $LIBS"
10673 # Dynamic linking for HP-UX
10675 # only check for sem_ini if thread support is requested
10676 if test "$with_threads" = "yes" -o -z "$with_threads"; then
10677 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
10678 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
10679 if test "${ac_cv_search_sem_init+set}" = set; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10681 else
10682 ac_func_search_save_LIBS=$LIBS
10683 ac_cv_search_sem_init=no
10684 cat >conftest.$ac_ext <<_ACEOF
10685 /* confdefs.h. */
10686 _ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10691 /* Override any gcc2 internal prototype to avoid an error. */
10692 #ifdef __cplusplus
10693 extern "C"
10694 #endif
10695 /* We use char because int might match the return type of a gcc2
10696 builtin and then its argument prototype would still apply. */
10697 char sem_init ();
10699 main ()
10701 sem_init ();
10703 return 0;
10705 _ACEOF
10706 rm -f conftest.$ac_objext conftest$ac_exeext
10707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10708 (eval $ac_link) 2>conftest.er1
10709 ac_status=$?
10710 grep -v '^ *+' conftest.er1 >conftest.err
10711 rm -f conftest.er1
10712 cat conftest.err >&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); } &&
10715 { ac_try='test -z "$ac_c_werror_flag"
10716 || test ! -s conftest.err'
10717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10718 (eval $ac_try) 2>&5
10719 ac_status=$?
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }; } &&
10722 { ac_try='test -s conftest$ac_exeext'
10723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10724 (eval $ac_try) 2>&5
10725 ac_status=$?
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); }; }; then
10728 ac_cv_search_sem_init="none required"
10729 else
10730 echo "$as_me: failed program was:" >&5
10731 sed 's/^/| /' conftest.$ac_ext >&5
10734 rm -f conftest.err conftest.$ac_objext \
10735 conftest$ac_exeext conftest.$ac_ext
10736 if test "$ac_cv_search_sem_init" = no; then
10737 for ac_lib in pthread rt posix4; do
10738 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10739 cat >conftest.$ac_ext <<_ACEOF
10740 /* confdefs.h. */
10741 _ACEOF
10742 cat confdefs.h >>conftest.$ac_ext
10743 cat >>conftest.$ac_ext <<_ACEOF
10744 /* end confdefs.h. */
10746 /* Override any gcc2 internal prototype to avoid an error. */
10747 #ifdef __cplusplus
10748 extern "C"
10749 #endif
10750 /* We use char because int might match the return type of a gcc2
10751 builtin and then its argument prototype would still apply. */
10752 char sem_init ();
10754 main ()
10756 sem_init ();
10758 return 0;
10760 _ACEOF
10761 rm -f conftest.$ac_objext conftest$ac_exeext
10762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10763 (eval $ac_link) 2>conftest.er1
10764 ac_status=$?
10765 grep -v '^ *+' conftest.er1 >conftest.err
10766 rm -f conftest.er1
10767 cat conftest.err >&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } &&
10770 { ac_try='test -z "$ac_c_werror_flag"
10771 || test ! -s conftest.err'
10772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773 (eval $ac_try) 2>&5
10774 ac_status=$?
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); }; } &&
10777 { ac_try='test -s conftest$ac_exeext'
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10780 ac_status=$?
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; }; then
10783 ac_cv_search_sem_init="-l$ac_lib"
10784 break
10785 else
10786 echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10790 rm -f conftest.err conftest.$ac_objext \
10791 conftest$ac_exeext conftest.$ac_ext
10792 done
10794 LIBS=$ac_func_search_save_LIBS
10796 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
10797 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
10798 if test "$ac_cv_search_sem_init" != no; then
10799 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
10802 # 'Real Time' functions on Solaris
10803 # posix4 on Solaris 2.6
10804 # pthread (first!) on Linux
10807 # check if we need libintl for locale functions
10808 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
10809 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
10810 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10812 else
10813 ac_check_lib_save_LIBS=$LIBS
10814 LIBS="-lintl $LIBS"
10815 cat >conftest.$ac_ext <<_ACEOF
10816 /* confdefs.h. */
10817 _ACEOF
10818 cat confdefs.h >>conftest.$ac_ext
10819 cat >>conftest.$ac_ext <<_ACEOF
10820 /* end confdefs.h. */
10822 /* Override any gcc2 internal prototype to avoid an error. */
10823 #ifdef __cplusplus
10824 extern "C"
10825 #endif
10826 /* We use char because int might match the return type of a gcc2
10827 builtin and then its argument prototype would still apply. */
10828 char textdomain ();
10830 main ()
10832 textdomain ();
10834 return 0;
10836 _ACEOF
10837 rm -f conftest.$ac_objext conftest$ac_exeext
10838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10839 (eval $ac_link) 2>conftest.er1
10840 ac_status=$?
10841 grep -v '^ *+' conftest.er1 >conftest.err
10842 rm -f conftest.er1
10843 cat conftest.err >&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); } &&
10846 { ac_try='test -z "$ac_c_werror_flag"
10847 || test ! -s conftest.err'
10848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10849 (eval $ac_try) 2>&5
10850 ac_status=$?
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); }; } &&
10853 { ac_try='test -s conftest$ac_exeext'
10854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10855 (eval $ac_try) 2>&5
10856 ac_status=$?
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); }; }; then
10859 ac_cv_lib_intl_textdomain=yes
10860 else
10861 echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10864 ac_cv_lib_intl_textdomain=no
10866 rm -f conftest.err conftest.$ac_objext \
10867 conftest$ac_exeext conftest.$ac_ext
10868 LIBS=$ac_check_lib_save_LIBS
10870 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
10871 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
10872 if test $ac_cv_lib_intl_textdomain = yes; then
10874 cat >>confdefs.h <<\_ACEOF
10875 #define WITH_LIBINTL 1
10876 _ACEOF
10881 # checks for system dependent C++ extensions support
10882 case "$ac_sys_system" in
10883 AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
10884 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
10885 cat >conftest.$ac_ext <<_ACEOF
10886 /* confdefs.h. */
10887 _ACEOF
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h. */
10891 #include "/usr/lpp/xlC/include/load.h"
10893 main ()
10895 loadAndInit("", 0, "")
10897 return 0;
10899 _ACEOF
10900 rm -f conftest.$ac_objext conftest$ac_exeext
10901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10902 (eval $ac_link) 2>conftest.er1
10903 ac_status=$?
10904 grep -v '^ *+' conftest.er1 >conftest.err
10905 rm -f conftest.er1
10906 cat conftest.err >&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); } &&
10909 { ac_try='test -z "$ac_c_werror_flag"
10910 || test ! -s conftest.err'
10911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10912 (eval $ac_try) 2>&5
10913 ac_status=$?
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); }; } &&
10916 { ac_try='test -s conftest$ac_exeext'
10917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10918 (eval $ac_try) 2>&5
10919 ac_status=$?
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); }; }; then
10923 cat >>confdefs.h <<\_ACEOF
10924 #define AIX_GENUINE_CPLUSPLUS 1
10925 _ACEOF
10927 echo "$as_me:$LINENO: result: yes" >&5
10928 echo "${ECHO_T}yes" >&6
10929 else
10930 echo "$as_me: failed program was:" >&5
10931 sed 's/^/| /' conftest.$ac_ext >&5
10933 echo "$as_me:$LINENO: result: no" >&5
10934 echo "${ECHO_T}no" >&6
10936 rm -f conftest.err conftest.$ac_objext \
10937 conftest$ac_exeext conftest.$ac_ext;;
10938 *) ;;
10939 esac
10941 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
10942 # BeOS' sockets are stashed in libnet.
10943 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
10944 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
10945 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
10947 else
10948 ac_check_lib_save_LIBS=$LIBS
10949 LIBS="-lnsl $LIBS"
10950 cat >conftest.$ac_ext <<_ACEOF
10951 /* confdefs.h. */
10952 _ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h. */
10957 /* Override any gcc2 internal prototype to avoid an error. */
10958 #ifdef __cplusplus
10959 extern "C"
10960 #endif
10961 /* We use char because int might match the return type of a gcc2
10962 builtin and then its argument prototype would still apply. */
10963 char t_open ();
10965 main ()
10967 t_open ();
10969 return 0;
10971 _ACEOF
10972 rm -f conftest.$ac_objext conftest$ac_exeext
10973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10974 (eval $ac_link) 2>conftest.er1
10975 ac_status=$?
10976 grep -v '^ *+' conftest.er1 >conftest.err
10977 rm -f conftest.er1
10978 cat conftest.err >&5
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); } &&
10981 { ac_try='test -z "$ac_c_werror_flag"
10982 || test ! -s conftest.err'
10983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10984 (eval $ac_try) 2>&5
10985 ac_status=$?
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); }; } &&
10988 { ac_try='test -s conftest$ac_exeext'
10989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10990 (eval $ac_try) 2>&5
10991 ac_status=$?
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); }; }; then
10994 ac_cv_lib_nsl_t_open=yes
10995 else
10996 echo "$as_me: failed program was:" >&5
10997 sed 's/^/| /' conftest.$ac_ext >&5
10999 ac_cv_lib_nsl_t_open=no
11001 rm -f conftest.err conftest.$ac_objext \
11002 conftest$ac_exeext conftest.$ac_ext
11003 LIBS=$ac_check_lib_save_LIBS
11005 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11006 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11007 if test $ac_cv_lib_nsl_t_open = yes; then
11008 LIBS="-lnsl $LIBS"
11010 # SVR4
11011 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11012 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11013 if test "${ac_cv_lib_socket_socket+set}" = set; then
11014 echo $ECHO_N "(cached) $ECHO_C" >&6
11015 else
11016 ac_check_lib_save_LIBS=$LIBS
11017 LIBS="-lsocket $LIBS $LIBS"
11018 cat >conftest.$ac_ext <<_ACEOF
11019 /* confdefs.h. */
11020 _ACEOF
11021 cat confdefs.h >>conftest.$ac_ext
11022 cat >>conftest.$ac_ext <<_ACEOF
11023 /* end confdefs.h. */
11025 /* Override any gcc2 internal prototype to avoid an error. */
11026 #ifdef __cplusplus
11027 extern "C"
11028 #endif
11029 /* We use char because int might match the return type of a gcc2
11030 builtin and then its argument prototype would still apply. */
11031 char socket ();
11033 main ()
11035 socket ();
11037 return 0;
11039 _ACEOF
11040 rm -f conftest.$ac_objext conftest$ac_exeext
11041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11042 (eval $ac_link) 2>conftest.er1
11043 ac_status=$?
11044 grep -v '^ *+' conftest.er1 >conftest.err
11045 rm -f conftest.er1
11046 cat conftest.err >&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); } &&
11049 { ac_try='test -z "$ac_c_werror_flag"
11050 || test ! -s conftest.err'
11051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052 (eval $ac_try) 2>&5
11053 ac_status=$?
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); }; } &&
11056 { ac_try='test -s conftest$ac_exeext'
11057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058 (eval $ac_try) 2>&5
11059 ac_status=$?
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 ac_cv_lib_socket_socket=yes
11063 else
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11067 ac_cv_lib_socket_socket=no
11069 rm -f conftest.err conftest.$ac_objext \
11070 conftest$ac_exeext conftest.$ac_ext
11071 LIBS=$ac_check_lib_save_LIBS
11073 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11074 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11075 if test $ac_cv_lib_socket_socket = yes; then
11076 LIBS="-lsocket $LIBS"
11078 # SVR4 sockets
11080 case "$ac_sys_system" in
11081 BeOS*)
11082 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11083 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11084 if test "${ac_cv_lib_net_socket+set}" = set; then
11085 echo $ECHO_N "(cached) $ECHO_C" >&6
11086 else
11087 ac_check_lib_save_LIBS=$LIBS
11088 LIBS="-lnet $LIBS $LIBS"
11089 cat >conftest.$ac_ext <<_ACEOF
11090 /* confdefs.h. */
11091 _ACEOF
11092 cat confdefs.h >>conftest.$ac_ext
11093 cat >>conftest.$ac_ext <<_ACEOF
11094 /* end confdefs.h. */
11096 /* Override any gcc2 internal prototype to avoid an error. */
11097 #ifdef __cplusplus
11098 extern "C"
11099 #endif
11100 /* We use char because int might match the return type of a gcc2
11101 builtin and then its argument prototype would still apply. */
11102 char socket ();
11104 main ()
11106 socket ();
11108 return 0;
11110 _ACEOF
11111 rm -f conftest.$ac_objext conftest$ac_exeext
11112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11113 (eval $ac_link) 2>conftest.er1
11114 ac_status=$?
11115 grep -v '^ *+' conftest.er1 >conftest.err
11116 rm -f conftest.er1
11117 cat conftest.err >&5
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); } &&
11120 { ac_try='test -z "$ac_c_werror_flag"
11121 || test ! -s conftest.err'
11122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11123 (eval $ac_try) 2>&5
11124 ac_status=$?
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); }; } &&
11127 { ac_try='test -s conftest$ac_exeext'
11128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11129 (eval $ac_try) 2>&5
11130 ac_status=$?
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); }; }; then
11133 ac_cv_lib_net_socket=yes
11134 else
11135 echo "$as_me: failed program was:" >&5
11136 sed 's/^/| /' conftest.$ac_ext >&5
11138 ac_cv_lib_net_socket=no
11140 rm -f conftest.err conftest.$ac_objext \
11141 conftest$ac_exeext conftest.$ac_ext
11142 LIBS=$ac_check_lib_save_LIBS
11144 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11145 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11146 if test $ac_cv_lib_net_socket = yes; then
11147 LIBS="-lnet $LIBS"
11149 # BeOS
11151 esac
11153 echo "$as_me:$LINENO: checking for --with-libs" >&5
11154 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11156 # Check whether --with-libs or --without-libs was given.
11157 if test "${with_libs+set}" = set; then
11158 withval="$with_libs"
11160 echo "$as_me:$LINENO: result: $withval" >&5
11161 echo "${ECHO_T}$withval" >&6
11162 LIBS="$withval $LIBS"
11164 else
11165 echo "$as_me:$LINENO: result: no" >&5
11166 echo "${ECHO_T}no" >&6
11169 # Determine if signalmodule should be used.
11172 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11173 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11175 # Check whether --with-signal-module or --without-signal-module was given.
11176 if test "${with_signal_module+set}" = set; then
11177 withval="$with_signal_module"
11181 if test -z "$with_signal_module"
11182 then with_signal_module="yes"
11184 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11185 echo "${ECHO_T}$with_signal_module" >&6
11187 if test "${with_signal_module}" = "yes"; then
11188 USE_SIGNAL_MODULE=""
11189 SIGNAL_OBJS=""
11190 else
11191 USE_SIGNAL_MODULE="#"
11192 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
11195 # This is used to generate Setup.config
11197 USE_THREAD_MODULE=""
11199 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11200 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11203 # Check whether --with-dec-threads or --without-dec-threads was given.
11204 if test "${with_dec_threads+set}" = set; then
11205 withval="$with_dec_threads"
11207 echo "$as_me:$LINENO: result: $withval" >&5
11208 echo "${ECHO_T}$withval" >&6
11209 LDLAST=-threads
11210 if test "${with_thread+set}" != set; then
11211 with_thread="$withval";
11213 else
11214 echo "$as_me:$LINENO: result: no" >&5
11215 echo "${ECHO_T}no" >&6
11218 # Templates for things AC_DEFINEd more than once.
11219 # For a single AC_DEFINE, no template is needed.
11227 echo "$as_me:$LINENO: checking for --with-threads" >&5
11228 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11230 # Check whether --with-threads or --without-threads was given.
11231 if test "${with_threads+set}" = set; then
11232 withval="$with_threads"
11236 # --with-thread is deprecated, but check for it anyway
11238 # Check whether --with-thread or --without-thread was given.
11239 if test "${with_thread+set}" = set; then
11240 withval="$with_thread"
11241 with_threads=$with_thread
11244 if test -z "$with_threads"
11245 then with_threads="yes"
11247 echo "$as_me:$LINENO: result: $with_threads" >&5
11248 echo "${ECHO_T}$with_threads" >&6
11251 if test "$with_threads" = "no"
11252 then
11253 USE_THREAD_MODULE="#"
11254 elif test "$ac_cv_pthread_is_default" = yes
11255 then
11256 cat >>confdefs.h <<\_ACEOF
11257 #define WITH_THREAD 1
11258 _ACEOF
11260 # Defining _REENTRANT on system with POSIX threads should not hurt.
11261 cat >>confdefs.h <<\_ACEOF
11262 #define _REENTRANT 1
11263 _ACEOF
11265 posix_threads=yes
11266 THREADOBJ="Python/thread.o"
11267 elif test "$ac_cv_kpthread" = "yes"
11268 then
11269 CC="$CC -Kpthread"
11270 if test "$ac_cv_cxx_thread" = "yes"; then
11271 CXX="$CXX -Kpthread"
11273 cat >>confdefs.h <<\_ACEOF
11274 #define WITH_THREAD 1
11275 _ACEOF
11277 posix_threads=yes
11278 THREADOBJ="Python/thread.o"
11279 elif test "$ac_cv_kthread" = "yes"
11280 then
11281 CC="$CC -Kthread"
11282 if test "$ac_cv_cxx_thread" = "yes"; then
11283 CXX="$CXX -Kthread"
11285 cat >>confdefs.h <<\_ACEOF
11286 #define WITH_THREAD 1
11287 _ACEOF
11289 posix_threads=yes
11290 THREADOBJ="Python/thread.o"
11291 elif test "$ac_cv_pthread" = "yes"
11292 then
11293 CC="$CC -pthread"
11294 if test "$ac_cv_cxx_thread" = "yes"; then
11295 CXX="$CXX -pthread"
11297 cat >>confdefs.h <<\_ACEOF
11298 #define WITH_THREAD 1
11299 _ACEOF
11301 posix_threads=yes
11302 THREADOBJ="Python/thread.o"
11303 else
11304 if test ! -z "$with_threads" -a -d "$with_threads"
11305 then LDFLAGS="$LDFLAGS -L$with_threads"
11307 if test ! -z "$withval" -a -d "$withval"
11308 then LDFLAGS="$LDFLAGS -L$withval"
11311 # According to the POSIX spec, a pthreads implementation must
11312 # define _POSIX_THREADS in unistd.h. Some apparently don't
11313 # (e.g. gnu pth with pthread emulation)
11314 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
11315 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
11316 cat >conftest.$ac_ext <<_ACEOF
11317 /* confdefs.h. */
11318 _ACEOF
11319 cat confdefs.h >>conftest.$ac_ext
11320 cat >>conftest.$ac_ext <<_ACEOF
11321 /* end confdefs.h. */
11323 #include <unistd.h>
11324 #ifdef _POSIX_THREADS
11326 #endif
11328 _ACEOF
11329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11330 $EGREP "yes" >/dev/null 2>&1; then
11331 unistd_defines_pthreads=yes
11332 else
11333 unistd_defines_pthreads=no
11335 rm -f conftest*
11337 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
11338 echo "${ECHO_T}$unistd_defines_pthreads" >&6
11340 cat >>confdefs.h <<\_ACEOF
11341 #define _REENTRANT 1
11342 _ACEOF
11344 if test "${ac_cv_header_cthreads_h+set}" = set; then
11345 echo "$as_me:$LINENO: checking for cthreads.h" >&5
11346 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
11347 if test "${ac_cv_header_cthreads_h+set}" = set; then
11348 echo $ECHO_N "(cached) $ECHO_C" >&6
11350 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
11351 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
11352 else
11353 # Is the header compilable?
11354 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
11355 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
11356 cat >conftest.$ac_ext <<_ACEOF
11357 /* confdefs.h. */
11358 _ACEOF
11359 cat confdefs.h >>conftest.$ac_ext
11360 cat >>conftest.$ac_ext <<_ACEOF
11361 /* end confdefs.h. */
11362 $ac_includes_default
11363 #include <cthreads.h>
11364 _ACEOF
11365 rm -f conftest.$ac_objext
11366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11367 (eval $ac_compile) 2>conftest.er1
11368 ac_status=$?
11369 grep -v '^ *+' conftest.er1 >conftest.err
11370 rm -f conftest.er1
11371 cat conftest.err >&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); } &&
11374 { ac_try='test -z "$ac_c_werror_flag"
11375 || test ! -s conftest.err'
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11378 ac_status=$?
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; } &&
11381 { ac_try='test -s conftest.$ac_objext'
11382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11383 (eval $ac_try) 2>&5
11384 ac_status=$?
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); }; }; then
11387 ac_header_compiler=yes
11388 else
11389 echo "$as_me: failed program was:" >&5
11390 sed 's/^/| /' conftest.$ac_ext >&5
11392 ac_header_compiler=no
11394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11395 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11396 echo "${ECHO_T}$ac_header_compiler" >&6
11398 # Is the header present?
11399 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
11400 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
11401 cat >conftest.$ac_ext <<_ACEOF
11402 /* confdefs.h. */
11403 _ACEOF
11404 cat confdefs.h >>conftest.$ac_ext
11405 cat >>conftest.$ac_ext <<_ACEOF
11406 /* end confdefs.h. */
11407 #include <cthreads.h>
11408 _ACEOF
11409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11411 ac_status=$?
11412 grep -v '^ *+' conftest.er1 >conftest.err
11413 rm -f conftest.er1
11414 cat conftest.err >&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); } >/dev/null; then
11417 if test -s conftest.err; then
11418 ac_cpp_err=$ac_c_preproc_warn_flag
11419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11420 else
11421 ac_cpp_err=
11423 else
11424 ac_cpp_err=yes
11426 if test -z "$ac_cpp_err"; then
11427 ac_header_preproc=yes
11428 else
11429 echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.$ac_ext >&5
11432 ac_header_preproc=no
11434 rm -f conftest.err conftest.$ac_ext
11435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11436 echo "${ECHO_T}$ac_header_preproc" >&6
11438 # So? What about this header?
11439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11440 yes:no: )
11441 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
11442 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11443 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
11444 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
11445 ac_header_preproc=yes
11447 no:yes:* )
11448 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
11449 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
11450 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
11451 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
11452 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
11453 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
11454 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
11455 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
11456 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
11457 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
11458 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
11459 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
11461 cat <<\_ASBOX
11462 ## ------------------------------------------------ ##
11463 ## Report this to http://www.python.org/python-bugs ##
11464 ## ------------------------------------------------ ##
11465 _ASBOX
11467 sed "s/^/$as_me: WARNING: /" >&2
11469 esac
11470 echo "$as_me:$LINENO: checking for cthreads.h" >&5
11471 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
11472 if test "${ac_cv_header_cthreads_h+set}" = set; then
11473 echo $ECHO_N "(cached) $ECHO_C" >&6
11474 else
11475 ac_cv_header_cthreads_h=$ac_header_preproc
11477 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
11478 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
11481 if test $ac_cv_header_cthreads_h = yes; then
11482 cat >>confdefs.h <<\_ACEOF
11483 #define WITH_THREAD 1
11484 _ACEOF
11486 cat >>confdefs.h <<\_ACEOF
11487 #define C_THREADS 1
11488 _ACEOF
11491 cat >>confdefs.h <<\_ACEOF
11492 #define HURD_C_THREADS 1
11493 _ACEOF
11495 LIBS="$LIBS -lthreads"
11496 THREADOBJ="Python/thread.o"
11497 else
11499 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
11500 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
11501 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
11502 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
11503 echo $ECHO_N "(cached) $ECHO_C" >&6
11505 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
11506 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
11507 else
11508 # Is the header compilable?
11509 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
11510 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
11511 cat >conftest.$ac_ext <<_ACEOF
11512 /* confdefs.h. */
11513 _ACEOF
11514 cat confdefs.h >>conftest.$ac_ext
11515 cat >>conftest.$ac_ext <<_ACEOF
11516 /* end confdefs.h. */
11517 $ac_includes_default
11518 #include <mach/cthreads.h>
11519 _ACEOF
11520 rm -f conftest.$ac_objext
11521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11522 (eval $ac_compile) 2>conftest.er1
11523 ac_status=$?
11524 grep -v '^ *+' conftest.er1 >conftest.err
11525 rm -f conftest.er1
11526 cat conftest.err >&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } &&
11529 { ac_try='test -z "$ac_c_werror_flag"
11530 || test ! -s conftest.err'
11531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532 (eval $ac_try) 2>&5
11533 ac_status=$?
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); }; } &&
11536 { ac_try='test -s conftest.$ac_objext'
11537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11538 (eval $ac_try) 2>&5
11539 ac_status=$?
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; }; then
11542 ac_header_compiler=yes
11543 else
11544 echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.$ac_ext >&5
11547 ac_header_compiler=no
11549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11551 echo "${ECHO_T}$ac_header_compiler" >&6
11553 # Is the header present?
11554 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
11555 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
11556 cat >conftest.$ac_ext <<_ACEOF
11557 /* confdefs.h. */
11558 _ACEOF
11559 cat confdefs.h >>conftest.$ac_ext
11560 cat >>conftest.$ac_ext <<_ACEOF
11561 /* end confdefs.h. */
11562 #include <mach/cthreads.h>
11563 _ACEOF
11564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11566 ac_status=$?
11567 grep -v '^ *+' conftest.er1 >conftest.err
11568 rm -f conftest.er1
11569 cat conftest.err >&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); } >/dev/null; then
11572 if test -s conftest.err; then
11573 ac_cpp_err=$ac_c_preproc_warn_flag
11574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11575 else
11576 ac_cpp_err=
11578 else
11579 ac_cpp_err=yes
11581 if test -z "$ac_cpp_err"; then
11582 ac_header_preproc=yes
11583 else
11584 echo "$as_me: failed program was:" >&5
11585 sed 's/^/| /' conftest.$ac_ext >&5
11587 ac_header_preproc=no
11589 rm -f conftest.err conftest.$ac_ext
11590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11591 echo "${ECHO_T}$ac_header_preproc" >&6
11593 # So? What about this header?
11594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11595 yes:no: )
11596 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
11597 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11598 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
11599 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
11600 ac_header_preproc=yes
11602 no:yes:* )
11603 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
11604 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
11605 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
11606 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
11607 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
11608 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
11609 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
11610 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
11611 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
11612 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
11613 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
11614 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
11616 cat <<\_ASBOX
11617 ## ------------------------------------------------ ##
11618 ## Report this to http://www.python.org/python-bugs ##
11619 ## ------------------------------------------------ ##
11620 _ASBOX
11622 sed "s/^/$as_me: WARNING: /" >&2
11624 esac
11625 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
11626 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
11627 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11629 else
11630 ac_cv_header_mach_cthreads_h=$ac_header_preproc
11632 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
11633 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
11636 if test $ac_cv_header_mach_cthreads_h = yes; then
11637 cat >>confdefs.h <<\_ACEOF
11638 #define WITH_THREAD 1
11639 _ACEOF
11641 cat >>confdefs.h <<\_ACEOF
11642 #define C_THREADS 1
11643 _ACEOF
11646 cat >>confdefs.h <<\_ACEOF
11647 #define MACH_C_THREADS 1
11648 _ACEOF
11650 THREADOBJ="Python/thread.o"
11651 else
11653 echo "$as_me:$LINENO: checking for --with-pth" >&5
11654 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
11656 # Check whether --with-pth or --without-pth was given.
11657 if test "${with_pth+set}" = set; then
11658 withval="$with_pth"
11659 echo "$as_me:$LINENO: result: $withval" >&5
11660 echo "${ECHO_T}$withval" >&6
11661 cat >>confdefs.h <<\_ACEOF
11662 #define WITH_THREAD 1
11663 _ACEOF
11666 cat >>confdefs.h <<\_ACEOF
11667 #define HAVE_PTH 1
11668 _ACEOF
11670 LIBS="-lpth $LIBS"
11671 THREADOBJ="Python/thread.o"
11672 else
11673 echo "$as_me:$LINENO: result: no" >&5
11674 echo "${ECHO_T}no" >&6
11676 # Just looking for pthread_create in libpthread is not enough:
11677 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
11678 # So we really have to include pthread.h, and then link.
11679 _libs=$LIBS
11680 LIBS="$LIBS -lpthread"
11681 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
11682 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
11683 cat >conftest.$ac_ext <<_ACEOF
11684 /* confdefs.h. */
11685 _ACEOF
11686 cat confdefs.h >>conftest.$ac_ext
11687 cat >>conftest.$ac_ext <<_ACEOF
11688 /* end confdefs.h. */
11689 #include <pthread.h>
11691 void * start_routine (void *arg) { exit (0); }
11693 main ()
11696 pthread_create (NULL, NULL, start_routine, NULL)
11698 return 0;
11700 _ACEOF
11701 rm -f conftest.$ac_objext conftest$ac_exeext
11702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11703 (eval $ac_link) 2>conftest.er1
11704 ac_status=$?
11705 grep -v '^ *+' conftest.er1 >conftest.err
11706 rm -f conftest.er1
11707 cat conftest.err >&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } &&
11710 { ac_try='test -z "$ac_c_werror_flag"
11711 || test ! -s conftest.err'
11712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713 (eval $ac_try) 2>&5
11714 ac_status=$?
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; } &&
11717 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11724 echo "$as_me:$LINENO: result: yes" >&5
11725 echo "${ECHO_T}yes" >&6
11726 cat >>confdefs.h <<\_ACEOF
11727 #define WITH_THREAD 1
11728 _ACEOF
11730 posix_threads=yes
11731 THREADOBJ="Python/thread.o"
11732 else
11733 echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11737 LIBS=$_libs
11738 echo "$as_me:$LINENO: checking for pthread_detach" >&5
11739 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
11740 if test "${ac_cv_func_pthread_detach+set}" = set; then
11741 echo $ECHO_N "(cached) $ECHO_C" >&6
11742 else
11743 cat >conftest.$ac_ext <<_ACEOF
11744 /* confdefs.h. */
11745 _ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h. */
11749 /* System header to define __stub macros and hopefully few prototypes,
11750 which can conflict with char pthread_detach (); below.
11751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11752 <limits.h> exists even on freestanding compilers. Under hpux,
11753 including <limits.h> includes <sys/time.h> and causes problems
11754 checking for functions defined therein. */
11755 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
11756 # include <limits.h>
11757 #else
11758 # include <assert.h>
11759 #endif
11760 /* Override any gcc2 internal prototype to avoid an error. */
11761 #ifdef __cplusplus
11762 extern "C"
11764 #endif
11765 /* We use char because int might match the return type of a gcc2
11766 builtin and then its argument prototype would still apply. */
11767 char pthread_detach ();
11768 /* The GNU C library defines this for functions which it implements
11769 to always fail with ENOSYS. Some functions are actually named
11770 something starting with __ and the normal name is an alias. */
11771 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
11772 choke me
11773 #else
11774 char (*f) () = pthread_detach;
11775 #endif
11776 #ifdef __cplusplus
11778 #endif
11781 main ()
11783 return f != pthread_detach;
11785 return 0;
11787 _ACEOF
11788 rm -f conftest.$ac_objext conftest$ac_exeext
11789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11790 (eval $ac_link) 2>conftest.er1
11791 ac_status=$?
11792 grep -v '^ *+' conftest.er1 >conftest.err
11793 rm -f conftest.er1
11794 cat conftest.err >&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); } &&
11797 { ac_try='test -z "$ac_c_werror_flag"
11798 || test ! -s conftest.err'
11799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800 (eval $ac_try) 2>&5
11801 ac_status=$?
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; } &&
11804 { ac_try='test -s conftest$ac_exeext'
11805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11806 (eval $ac_try) 2>&5
11807 ac_status=$?
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); }; }; then
11810 ac_cv_func_pthread_detach=yes
11811 else
11812 echo "$as_me: failed program was:" >&5
11813 sed 's/^/| /' conftest.$ac_ext >&5
11815 ac_cv_func_pthread_detach=no
11817 rm -f conftest.err conftest.$ac_objext \
11818 conftest$ac_exeext conftest.$ac_ext
11820 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
11821 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
11822 if test $ac_cv_func_pthread_detach = yes; then
11823 cat >>confdefs.h <<\_ACEOF
11824 #define WITH_THREAD 1
11825 _ACEOF
11827 posix_threads=yes
11828 THREADOBJ="Python/thread.o"
11829 else
11831 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
11832 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
11833 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
11834 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
11835 echo $ECHO_N "(cached) $ECHO_C" >&6
11837 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
11838 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
11839 else
11840 # Is the header compilable?
11841 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
11842 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
11843 cat >conftest.$ac_ext <<_ACEOF
11844 /* confdefs.h. */
11845 _ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h. */
11849 $ac_includes_default
11850 #include <atheos/threads.h>
11851 _ACEOF
11852 rm -f conftest.$ac_objext
11853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11854 (eval $ac_compile) 2>conftest.er1
11855 ac_status=$?
11856 grep -v '^ *+' conftest.er1 >conftest.err
11857 rm -f conftest.er1
11858 cat conftest.err >&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } &&
11861 { ac_try='test -z "$ac_c_werror_flag"
11862 || test ! -s conftest.err'
11863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5
11865 ac_status=$?
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; } &&
11868 { ac_try='test -s conftest.$ac_objext'
11869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11870 (eval $ac_try) 2>&5
11871 ac_status=$?
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; }; then
11874 ac_header_compiler=yes
11875 else
11876 echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11879 ac_header_compiler=no
11881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11882 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11883 echo "${ECHO_T}$ac_header_compiler" >&6
11885 # Is the header present?
11886 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
11887 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
11888 cat >conftest.$ac_ext <<_ACEOF
11889 /* confdefs.h. */
11890 _ACEOF
11891 cat confdefs.h >>conftest.$ac_ext
11892 cat >>conftest.$ac_ext <<_ACEOF
11893 /* end confdefs.h. */
11894 #include <atheos/threads.h>
11895 _ACEOF
11896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11898 ac_status=$?
11899 grep -v '^ *+' conftest.er1 >conftest.err
11900 rm -f conftest.er1
11901 cat conftest.err >&5
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); } >/dev/null; then
11904 if test -s conftest.err; then
11905 ac_cpp_err=$ac_c_preproc_warn_flag
11906 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11907 else
11908 ac_cpp_err=
11910 else
11911 ac_cpp_err=yes
11913 if test -z "$ac_cpp_err"; then
11914 ac_header_preproc=yes
11915 else
11916 echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11919 ac_header_preproc=no
11921 rm -f conftest.err conftest.$ac_ext
11922 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11923 echo "${ECHO_T}$ac_header_preproc" >&6
11925 # So? What about this header?
11926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11927 yes:no: )
11928 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
11929 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11930 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
11931 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
11932 ac_header_preproc=yes
11934 no:yes:* )
11935 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
11936 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
11937 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
11938 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
11939 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
11940 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
11941 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
11942 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
11943 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
11944 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
11945 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
11946 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
11948 cat <<\_ASBOX
11949 ## ------------------------------------------------ ##
11950 ## Report this to http://www.python.org/python-bugs ##
11951 ## ------------------------------------------------ ##
11952 _ASBOX
11954 sed "s/^/$as_me: WARNING: /" >&2
11956 esac
11957 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
11958 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
11959 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11961 else
11962 ac_cv_header_atheos_threads_h=$ac_header_preproc
11964 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
11965 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
11968 if test $ac_cv_header_atheos_threads_h = yes; then
11969 cat >>confdefs.h <<\_ACEOF
11970 #define WITH_THREAD 1
11971 _ACEOF
11974 cat >>confdefs.h <<\_ACEOF
11975 #define ATHEOS_THREADS 1
11976 _ACEOF
11978 THREADOBJ="Python/thread.o"
11979 else
11981 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
11982 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
11983 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
11984 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11987 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
11988 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
11989 else
11990 # Is the header compilable?
11991 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
11992 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
11993 cat >conftest.$ac_ext <<_ACEOF
11994 /* confdefs.h. */
11995 _ACEOF
11996 cat confdefs.h >>conftest.$ac_ext
11997 cat >>conftest.$ac_ext <<_ACEOF
11998 /* end confdefs.h. */
11999 $ac_includes_default
12000 #include <kernel/OS.h>
12001 _ACEOF
12002 rm -f conftest.$ac_objext
12003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12004 (eval $ac_compile) 2>conftest.er1
12005 ac_status=$?
12006 grep -v '^ *+' conftest.er1 >conftest.err
12007 rm -f conftest.er1
12008 cat conftest.err >&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } &&
12011 { ac_try='test -z "$ac_c_werror_flag"
12012 || test ! -s conftest.err'
12013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014 (eval $ac_try) 2>&5
12015 ac_status=$?
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); }; } &&
12018 { ac_try='test -s conftest.$ac_objext'
12019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12020 (eval $ac_try) 2>&5
12021 ac_status=$?
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; }; then
12024 ac_header_compiler=yes
12025 else
12026 echo "$as_me: failed program was:" >&5
12027 sed 's/^/| /' conftest.$ac_ext >&5
12029 ac_header_compiler=no
12031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12032 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12033 echo "${ECHO_T}$ac_header_compiler" >&6
12035 # Is the header present?
12036 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12037 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12038 cat >conftest.$ac_ext <<_ACEOF
12039 /* confdefs.h. */
12040 _ACEOF
12041 cat confdefs.h >>conftest.$ac_ext
12042 cat >>conftest.$ac_ext <<_ACEOF
12043 /* end confdefs.h. */
12044 #include <kernel/OS.h>
12045 _ACEOF
12046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12048 ac_status=$?
12049 grep -v '^ *+' conftest.er1 >conftest.err
12050 rm -f conftest.er1
12051 cat conftest.err >&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); } >/dev/null; then
12054 if test -s conftest.err; then
12055 ac_cpp_err=$ac_c_preproc_warn_flag
12056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12057 else
12058 ac_cpp_err=
12060 else
12061 ac_cpp_err=yes
12063 if test -z "$ac_cpp_err"; then
12064 ac_header_preproc=yes
12065 else
12066 echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12069 ac_header_preproc=no
12071 rm -f conftest.err conftest.$ac_ext
12072 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12073 echo "${ECHO_T}$ac_header_preproc" >&6
12075 # So? What about this header?
12076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12077 yes:no: )
12078 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12079 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12080 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12081 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12082 ac_header_preproc=yes
12084 no:yes:* )
12085 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12086 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12087 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12088 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12089 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12090 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12091 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12092 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12093 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12094 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12095 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12096 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12098 cat <<\_ASBOX
12099 ## ------------------------------------------------ ##
12100 ## Report this to http://www.python.org/python-bugs ##
12101 ## ------------------------------------------------ ##
12102 _ASBOX
12104 sed "s/^/$as_me: WARNING: /" >&2
12106 esac
12107 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12108 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12109 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12110 echo $ECHO_N "(cached) $ECHO_C" >&6
12111 else
12112 ac_cv_header_kernel_OS_h=$ac_header_preproc
12114 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12115 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12118 if test $ac_cv_header_kernel_OS_h = yes; then
12119 cat >>confdefs.h <<\_ACEOF
12120 #define WITH_THREAD 1
12121 _ACEOF
12124 cat >>confdefs.h <<\_ACEOF
12125 #define BEOS_THREADS 1
12126 _ACEOF
12128 THREADOBJ="Python/thread.o"
12129 else
12131 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12132 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12133 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12134 echo $ECHO_N "(cached) $ECHO_C" >&6
12135 else
12136 ac_check_lib_save_LIBS=$LIBS
12137 LIBS="-lpthreads $LIBS"
12138 cat >conftest.$ac_ext <<_ACEOF
12139 /* confdefs.h. */
12140 _ACEOF
12141 cat confdefs.h >>conftest.$ac_ext
12142 cat >>conftest.$ac_ext <<_ACEOF
12143 /* end confdefs.h. */
12145 /* Override any gcc2 internal prototype to avoid an error. */
12146 #ifdef __cplusplus
12147 extern "C"
12148 #endif
12149 /* We use char because int might match the return type of a gcc2
12150 builtin and then its argument prototype would still apply. */
12151 char pthread_create ();
12153 main ()
12155 pthread_create ();
12157 return 0;
12159 _ACEOF
12160 rm -f conftest.$ac_objext conftest$ac_exeext
12161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12162 (eval $ac_link) 2>conftest.er1
12163 ac_status=$?
12164 grep -v '^ *+' conftest.er1 >conftest.err
12165 rm -f conftest.er1
12166 cat conftest.err >&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); } &&
12169 { ac_try='test -z "$ac_c_werror_flag"
12170 || test ! -s conftest.err'
12171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12172 (eval $ac_try) 2>&5
12173 ac_status=$?
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); }; } &&
12176 { ac_try='test -s conftest$ac_exeext'
12177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12178 (eval $ac_try) 2>&5
12179 ac_status=$?
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); }; }; then
12182 ac_cv_lib_pthreads_pthread_create=yes
12183 else
12184 echo "$as_me: failed program was:" >&5
12185 sed 's/^/| /' conftest.$ac_ext >&5
12187 ac_cv_lib_pthreads_pthread_create=no
12189 rm -f conftest.err conftest.$ac_objext \
12190 conftest$ac_exeext conftest.$ac_ext
12191 LIBS=$ac_check_lib_save_LIBS
12193 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12194 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12195 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12196 cat >>confdefs.h <<\_ACEOF
12197 #define WITH_THREAD 1
12198 _ACEOF
12200 posix_threads=yes
12201 LIBS="$LIBS -lpthreads"
12202 THREADOBJ="Python/thread.o"
12203 else
12205 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12206 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12207 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12209 else
12210 ac_check_lib_save_LIBS=$LIBS
12211 LIBS="-lc_r $LIBS"
12212 cat >conftest.$ac_ext <<_ACEOF
12213 /* confdefs.h. */
12214 _ACEOF
12215 cat confdefs.h >>conftest.$ac_ext
12216 cat >>conftest.$ac_ext <<_ACEOF
12217 /* end confdefs.h. */
12219 /* Override any gcc2 internal prototype to avoid an error. */
12220 #ifdef __cplusplus
12221 extern "C"
12222 #endif
12223 /* We use char because int might match the return type of a gcc2
12224 builtin and then its argument prototype would still apply. */
12225 char pthread_create ();
12227 main ()
12229 pthread_create ();
12231 return 0;
12233 _ACEOF
12234 rm -f conftest.$ac_objext conftest$ac_exeext
12235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12236 (eval $ac_link) 2>conftest.er1
12237 ac_status=$?
12238 grep -v '^ *+' conftest.er1 >conftest.err
12239 rm -f conftest.er1
12240 cat conftest.err >&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); } &&
12243 { ac_try='test -z "$ac_c_werror_flag"
12244 || test ! -s conftest.err'
12245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12246 (eval $ac_try) 2>&5
12247 ac_status=$?
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); }; } &&
12250 { ac_try='test -s conftest$ac_exeext'
12251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12252 (eval $ac_try) 2>&5
12253 ac_status=$?
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); }; }; then
12256 ac_cv_lib_c_r_pthread_create=yes
12257 else
12258 echo "$as_me: failed program was:" >&5
12259 sed 's/^/| /' conftest.$ac_ext >&5
12261 ac_cv_lib_c_r_pthread_create=no
12263 rm -f conftest.err conftest.$ac_objext \
12264 conftest$ac_exeext conftest.$ac_ext
12265 LIBS=$ac_check_lib_save_LIBS
12267 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12268 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12269 if test $ac_cv_lib_c_r_pthread_create = yes; then
12270 cat >>confdefs.h <<\_ACEOF
12271 #define WITH_THREAD 1
12272 _ACEOF
12274 posix_threads=yes
12275 LIBS="$LIBS -lc_r"
12276 THREADOBJ="Python/thread.o"
12277 else
12279 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12280 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12281 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12283 else
12284 ac_check_lib_save_LIBS=$LIBS
12285 LIBS="-lpthread $LIBS"
12286 cat >conftest.$ac_ext <<_ACEOF
12287 /* confdefs.h. */
12288 _ACEOF
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h. */
12293 /* Override any gcc2 internal prototype to avoid an error. */
12294 #ifdef __cplusplus
12295 extern "C"
12296 #endif
12297 /* We use char because int might match the return type of a gcc2
12298 builtin and then its argument prototype would still apply. */
12299 char __pthread_create_system ();
12301 main ()
12303 __pthread_create_system ();
12305 return 0;
12307 _ACEOF
12308 rm -f conftest.$ac_objext conftest$ac_exeext
12309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12310 (eval $ac_link) 2>conftest.er1
12311 ac_status=$?
12312 grep -v '^ *+' conftest.er1 >conftest.err
12313 rm -f conftest.er1
12314 cat conftest.err >&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); } &&
12317 { ac_try='test -z "$ac_c_werror_flag"
12318 || test ! -s conftest.err'
12319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320 (eval $ac_try) 2>&5
12321 ac_status=$?
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }; } &&
12324 { ac_try='test -s conftest$ac_exeext'
12325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326 (eval $ac_try) 2>&5
12327 ac_status=$?
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; }; then
12330 ac_cv_lib_pthread___pthread_create_system=yes
12331 else
12332 echo "$as_me: failed program was:" >&5
12333 sed 's/^/| /' conftest.$ac_ext >&5
12335 ac_cv_lib_pthread___pthread_create_system=no
12337 rm -f conftest.err conftest.$ac_objext \
12338 conftest$ac_exeext conftest.$ac_ext
12339 LIBS=$ac_check_lib_save_LIBS
12341 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
12342 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
12343 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
12344 cat >>confdefs.h <<\_ACEOF
12345 #define WITH_THREAD 1
12346 _ACEOF
12348 posix_threads=yes
12349 LIBS="$LIBS -lpthread"
12350 THREADOBJ="Python/thread.o"
12351 else
12353 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
12354 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
12355 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
12356 echo $ECHO_N "(cached) $ECHO_C" >&6
12357 else
12358 ac_check_lib_save_LIBS=$LIBS
12359 LIBS="-lcma $LIBS"
12360 cat >conftest.$ac_ext <<_ACEOF
12361 /* confdefs.h. */
12362 _ACEOF
12363 cat confdefs.h >>conftest.$ac_ext
12364 cat >>conftest.$ac_ext <<_ACEOF
12365 /* end confdefs.h. */
12367 /* Override any gcc2 internal prototype to avoid an error. */
12368 #ifdef __cplusplus
12369 extern "C"
12370 #endif
12371 /* We use char because int might match the return type of a gcc2
12372 builtin and then its argument prototype would still apply. */
12373 char pthread_create ();
12375 main ()
12377 pthread_create ();
12379 return 0;
12381 _ACEOF
12382 rm -f conftest.$ac_objext conftest$ac_exeext
12383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12384 (eval $ac_link) 2>conftest.er1
12385 ac_status=$?
12386 grep -v '^ *+' conftest.er1 >conftest.err
12387 rm -f conftest.er1
12388 cat conftest.err >&5
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); } &&
12391 { ac_try='test -z "$ac_c_werror_flag"
12392 || test ! -s conftest.err'
12393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394 (eval $ac_try) 2>&5
12395 ac_status=$?
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; } &&
12398 { ac_try='test -s conftest$ac_exeext'
12399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12400 (eval $ac_try) 2>&5
12401 ac_status=$?
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); }; }; then
12404 ac_cv_lib_cma_pthread_create=yes
12405 else
12406 echo "$as_me: failed program was:" >&5
12407 sed 's/^/| /' conftest.$ac_ext >&5
12409 ac_cv_lib_cma_pthread_create=no
12411 rm -f conftest.err conftest.$ac_objext \
12412 conftest$ac_exeext conftest.$ac_ext
12413 LIBS=$ac_check_lib_save_LIBS
12415 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
12416 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
12417 if test $ac_cv_lib_cma_pthread_create = yes; then
12418 cat >>confdefs.h <<\_ACEOF
12419 #define WITH_THREAD 1
12420 _ACEOF
12422 posix_threads=yes
12423 LIBS="$LIBS -lcma"
12424 THREADOBJ="Python/thread.o"
12425 else
12427 USE_THREAD_MODULE="#"
12446 rm -f conftest.err conftest.$ac_objext \
12447 conftest$ac_exeext conftest.$ac_ext
12456 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
12457 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
12458 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
12459 echo $ECHO_N "(cached) $ECHO_C" >&6
12460 else
12461 ac_check_lib_save_LIBS=$LIBS
12462 LIBS="-lmpc $LIBS"
12463 cat >conftest.$ac_ext <<_ACEOF
12464 /* confdefs.h. */
12465 _ACEOF
12466 cat confdefs.h >>conftest.$ac_ext
12467 cat >>conftest.$ac_ext <<_ACEOF
12468 /* end confdefs.h. */
12470 /* Override any gcc2 internal prototype to avoid an error. */
12471 #ifdef __cplusplus
12472 extern "C"
12473 #endif
12474 /* We use char because int might match the return type of a gcc2
12475 builtin and then its argument prototype would still apply. */
12476 char usconfig ();
12478 main ()
12480 usconfig ();
12482 return 0;
12484 _ACEOF
12485 rm -f conftest.$ac_objext conftest$ac_exeext
12486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12487 (eval $ac_link) 2>conftest.er1
12488 ac_status=$?
12489 grep -v '^ *+' conftest.er1 >conftest.err
12490 rm -f conftest.er1
12491 cat conftest.err >&5
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); } &&
12494 { ac_try='test -z "$ac_c_werror_flag"
12495 || test ! -s conftest.err'
12496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497 (eval $ac_try) 2>&5
12498 ac_status=$?
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); }; } &&
12501 { ac_try='test -s conftest$ac_exeext'
12502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503 (eval $ac_try) 2>&5
12504 ac_status=$?
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; }; then
12507 ac_cv_lib_mpc_usconfig=yes
12508 else
12509 echo "$as_me: failed program was:" >&5
12510 sed 's/^/| /' conftest.$ac_ext >&5
12512 ac_cv_lib_mpc_usconfig=no
12514 rm -f conftest.err conftest.$ac_objext \
12515 conftest$ac_exeext conftest.$ac_ext
12516 LIBS=$ac_check_lib_save_LIBS
12518 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
12519 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
12520 if test $ac_cv_lib_mpc_usconfig = yes; then
12521 cat >>confdefs.h <<\_ACEOF
12522 #define WITH_THREAD 1
12523 _ACEOF
12525 LIBS="$LIBS -lmpc"
12526 THREADOBJ="Python/thread.o"
12527 USE_THREAD_MODULE=""
12531 if test "$posix_threads" != "yes"; then
12532 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
12533 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
12534 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
12535 echo $ECHO_N "(cached) $ECHO_C" >&6
12536 else
12537 ac_check_lib_save_LIBS=$LIBS
12538 LIBS="-lthread $LIBS"
12539 cat >conftest.$ac_ext <<_ACEOF
12540 /* confdefs.h. */
12541 _ACEOF
12542 cat confdefs.h >>conftest.$ac_ext
12543 cat >>conftest.$ac_ext <<_ACEOF
12544 /* end confdefs.h. */
12546 /* Override any gcc2 internal prototype to avoid an error. */
12547 #ifdef __cplusplus
12548 extern "C"
12549 #endif
12550 /* We use char because int might match the return type of a gcc2
12551 builtin and then its argument prototype would still apply. */
12552 char thr_create ();
12554 main ()
12556 thr_create ();
12558 return 0;
12560 _ACEOF
12561 rm -f conftest.$ac_objext conftest$ac_exeext
12562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12563 (eval $ac_link) 2>conftest.er1
12564 ac_status=$?
12565 grep -v '^ *+' conftest.er1 >conftest.err
12566 rm -f conftest.er1
12567 cat conftest.err >&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } &&
12570 { ac_try='test -z "$ac_c_werror_flag"
12571 || test ! -s conftest.err'
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12574 ac_status=$?
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; } &&
12577 { ac_try='test -s conftest$ac_exeext'
12578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12579 (eval $ac_try) 2>&5
12580 ac_status=$?
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; }; then
12583 ac_cv_lib_thread_thr_create=yes
12584 else
12585 echo "$as_me: failed program was:" >&5
12586 sed 's/^/| /' conftest.$ac_ext >&5
12588 ac_cv_lib_thread_thr_create=no
12590 rm -f conftest.err conftest.$ac_objext \
12591 conftest$ac_exeext conftest.$ac_ext
12592 LIBS=$ac_check_lib_save_LIBS
12594 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
12595 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
12596 if test $ac_cv_lib_thread_thr_create = yes; then
12597 cat >>confdefs.h <<\_ACEOF
12598 #define WITH_THREAD 1
12599 _ACEOF
12601 LIBS="$LIBS -lthread"
12602 THREADOBJ="Python/thread.o"
12603 USE_THREAD_MODULE=""
12608 if test "$USE_THREAD_MODULE" != "#"
12609 then
12610 # If the above checks didn't disable threads, (at least) OSF1
12611 # needs this '-threads' argument during linking.
12612 case $ac_sys_system in
12613 OSF1) LDLAST=-threads;;
12614 esac
12618 if test "$posix_threads" = "yes"; then
12619 if test "$unistd_defines_pthreads" = "no"; then
12621 cat >>confdefs.h <<\_ACEOF
12622 #define _POSIX_THREADS 1
12623 _ACEOF
12627 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
12628 case $ac_sys_system/$ac_sys_release in
12629 SunOS/5.6)
12630 cat >>confdefs.h <<\_ACEOF
12631 #define HAVE_PTHREAD_DESTRUCTOR 1
12632 _ACEOF
12635 SunOS/5.8)
12636 cat >>confdefs.h <<\_ACEOF
12637 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
12638 _ACEOF
12641 esac
12643 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
12644 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
12645 if test "${ac_cv_pthread_system_supported+set}" = set; then
12646 echo $ECHO_N "(cached) $ECHO_C" >&6
12647 else
12648 if test "$cross_compiling" = yes; then
12649 ac_cv_pthread_system_supported=no
12650 else
12651 cat >conftest.$ac_ext <<_ACEOF
12652 /* confdefs.h. */
12653 _ACEOF
12654 cat confdefs.h >>conftest.$ac_ext
12655 cat >>conftest.$ac_ext <<_ACEOF
12656 /* end confdefs.h. */
12657 #include <pthread.h>
12658 void *foo(void *parm) {
12659 return NULL;
12661 main() {
12662 pthread_attr_t attr;
12663 pthread_t id;
12664 if (pthread_attr_init(&attr)) exit(-1);
12665 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
12666 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
12667 exit(0);
12669 _ACEOF
12670 rm -f conftest$ac_exeext
12671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12672 (eval $ac_link) 2>&5
12673 ac_status=$?
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12678 ac_status=$?
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; }; then
12681 ac_cv_pthread_system_supported=yes
12682 else
12683 echo "$as_me: program exited with status $ac_status" >&5
12684 echo "$as_me: failed program was:" >&5
12685 sed 's/^/| /' conftest.$ac_ext >&5
12687 ( exit $ac_status )
12688 ac_cv_pthread_system_supported=no
12690 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12695 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
12696 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
12697 if test "$ac_cv_pthread_system_supported" = "yes"; then
12699 cat >>confdefs.h <<\_ACEOF
12700 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
12701 _ACEOF
12705 for ac_func in pthread_sigmask
12707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12708 echo "$as_me:$LINENO: checking for $ac_func" >&5
12709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12710 if eval "test \"\${$as_ac_var+set}\" = set"; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
12712 else
12713 cat >conftest.$ac_ext <<_ACEOF
12714 /* confdefs.h. */
12715 _ACEOF
12716 cat confdefs.h >>conftest.$ac_ext
12717 cat >>conftest.$ac_ext <<_ACEOF
12718 /* end confdefs.h. */
12719 /* System header to define __stub macros and hopefully few prototypes,
12720 which can conflict with char $ac_func (); below.
12721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12722 <limits.h> exists even on freestanding compilers. Under hpux,
12723 including <limits.h> includes <sys/time.h> and causes problems
12724 checking for functions defined therein. */
12725 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
12726 # include <limits.h>
12727 #else
12728 # include <assert.h>
12729 #endif
12730 /* Override any gcc2 internal prototype to avoid an error. */
12731 #ifdef __cplusplus
12732 extern "C"
12734 #endif
12735 /* We use char because int might match the return type of a gcc2
12736 builtin and then its argument prototype would still apply. */
12737 char $ac_func ();
12738 /* The GNU C library defines this for functions which it implements
12739 to always fail with ENOSYS. Some functions are actually named
12740 something starting with __ and the normal name is an alias. */
12741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12742 choke me
12743 #else
12744 char (*f) () = $ac_func;
12745 #endif
12746 #ifdef __cplusplus
12748 #endif
12751 main ()
12753 return f != $ac_func;
12755 return 0;
12757 _ACEOF
12758 rm -f conftest.$ac_objext conftest$ac_exeext
12759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12760 (eval $ac_link) 2>conftest.er1
12761 ac_status=$?
12762 grep -v '^ *+' conftest.er1 >conftest.err
12763 rm -f conftest.er1
12764 cat conftest.err >&5
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); } &&
12767 { ac_try='test -z "$ac_c_werror_flag"
12768 || test ! -s conftest.err'
12769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12770 (eval $ac_try) 2>&5
12771 ac_status=$?
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); }; } &&
12774 { ac_try='test -s conftest$ac_exeext'
12775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12776 (eval $ac_try) 2>&5
12777 ac_status=$?
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); }; }; then
12780 eval "$as_ac_var=yes"
12781 else
12782 echo "$as_me: failed program was:" >&5
12783 sed 's/^/| /' conftest.$ac_ext >&5
12785 eval "$as_ac_var=no"
12787 rm -f conftest.err conftest.$ac_objext \
12788 conftest$ac_exeext conftest.$ac_ext
12790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12791 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12792 if test `eval echo '${'$as_ac_var'}'` = yes; then
12793 cat >>confdefs.h <<_ACEOF
12794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12795 _ACEOF
12796 case $ac_sys_system in
12797 CYGWIN*)
12799 cat >>confdefs.h <<\_ACEOF
12800 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
12801 _ACEOF
12804 esac
12806 done
12811 # Check for enable-ipv6
12814 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
12815 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
12816 # Check whether --enable-ipv6 or --disable-ipv6 was given.
12817 if test "${enable_ipv6+set}" = set; then
12818 enableval="$enable_ipv6"
12819 case "$enableval" in
12821 echo "$as_me:$LINENO: result: no" >&5
12822 echo "${ECHO_T}no" >&6
12823 ipv6=no
12825 *) echo "$as_me:$LINENO: result: yes" >&5
12826 echo "${ECHO_T}yes" >&6
12827 cat >>confdefs.h <<\_ACEOF
12828 #define ENABLE_IPV6 1
12829 _ACEOF
12831 ipv6=yes
12833 esac
12834 else
12836 if test "$cross_compiling" = yes; then
12837 echo "$as_me:$LINENO: result: no" >&5
12838 echo "${ECHO_T}no" >&6
12839 ipv6=no
12841 else
12842 cat >conftest.$ac_ext <<_ACEOF
12843 /* confdefs.h. */
12844 _ACEOF
12845 cat confdefs.h >>conftest.$ac_ext
12846 cat >>conftest.$ac_ext <<_ACEOF
12847 /* end confdefs.h. */
12848 /* AF_INET6 available check */
12849 #include <sys/types.h>
12850 #include <sys/socket.h>
12851 main()
12853 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
12854 exit(1);
12855 else
12856 exit(0);
12859 _ACEOF
12860 rm -f conftest$ac_exeext
12861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12862 (eval $ac_link) 2>&5
12863 ac_status=$?
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); } && { ac_try='./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 echo "$as_me:$LINENO: result: yes" >&5
12872 echo "${ECHO_T}yes" >&6
12873 ipv6=yes
12874 else
12875 echo "$as_me: program exited with status $ac_status" >&5
12876 echo "$as_me: failed program was:" >&5
12877 sed 's/^/| /' conftest.$ac_ext >&5
12879 ( exit $ac_status )
12880 echo "$as_me:$LINENO: result: no" >&5
12881 echo "${ECHO_T}no" >&6
12882 ipv6=no
12884 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12887 if test "$ipv6" = "yes"; then
12888 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
12889 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
12890 cat >conftest.$ac_ext <<_ACEOF
12891 /* confdefs.h. */
12892 _ACEOF
12893 cat confdefs.h >>conftest.$ac_ext
12894 cat >>conftest.$ac_ext <<_ACEOF
12895 /* end confdefs.h. */
12896 #include <sys/types.h>
12897 #include <netinet/in.h>
12899 main ()
12901 struct sockaddr_in6 x;
12902 x.sin6_scope_id;
12904 return 0;
12906 _ACEOF
12907 rm -f conftest.$ac_objext
12908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12909 (eval $ac_compile) 2>conftest.er1
12910 ac_status=$?
12911 grep -v '^ *+' conftest.er1 >conftest.err
12912 rm -f conftest.er1
12913 cat conftest.err >&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); } &&
12916 { ac_try='test -z "$ac_c_werror_flag"
12917 || test ! -s conftest.err'
12918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12919 (eval $ac_try) 2>&5
12920 ac_status=$?
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); }; } &&
12923 { ac_try='test -s conftest.$ac_objext'
12924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12925 (eval $ac_try) 2>&5
12926 ac_status=$?
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; }; then
12929 echo "$as_me:$LINENO: result: yes" >&5
12930 echo "${ECHO_T}yes" >&6
12931 ipv6=yes
12932 else
12933 echo "$as_me: failed program was:" >&5
12934 sed 's/^/| /' conftest.$ac_ext >&5
12936 echo "$as_me:$LINENO: result: no" >&5
12937 echo "${ECHO_T}no" >&6
12938 ipv6=no
12940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12943 if test "$ipv6" = "yes"; then
12944 cat >>confdefs.h <<\_ACEOF
12945 #define ENABLE_IPV6 1
12946 _ACEOF
12952 ipv6type=unknown
12953 ipv6lib=none
12954 ipv6trylibc=no
12956 if test "$ipv6" = "yes"; then
12957 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
12958 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
12959 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
12961 case $i in
12962 inria)
12963 cat >conftest.$ac_ext <<_ACEOF
12964 /* confdefs.h. */
12965 _ACEOF
12966 cat confdefs.h >>conftest.$ac_ext
12967 cat >>conftest.$ac_ext <<_ACEOF
12968 /* end confdefs.h. */
12970 #include <netinet/in.h>
12971 #ifdef IPV6_INRIA_VERSION
12973 #endif
12974 _ACEOF
12975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12976 $EGREP "yes" >/dev/null 2>&1; then
12977 ipv6type=$i
12979 rm -f conftest*
12982 kame)
12983 cat >conftest.$ac_ext <<_ACEOF
12984 /* confdefs.h. */
12985 _ACEOF
12986 cat confdefs.h >>conftest.$ac_ext
12987 cat >>conftest.$ac_ext <<_ACEOF
12988 /* end confdefs.h. */
12990 #include <netinet/in.h>
12991 #ifdef __KAME__
12993 #endif
12994 _ACEOF
12995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12996 $EGREP "yes" >/dev/null 2>&1; then
12997 ipv6type=$i;
12998 ipv6lib=inet6
12999 ipv6libdir=/usr/local/v6/lib
13000 ipv6trylibc=yes
13002 rm -f conftest*
13005 linux-glibc)
13006 cat >conftest.$ac_ext <<_ACEOF
13007 /* confdefs.h. */
13008 _ACEOF
13009 cat confdefs.h >>conftest.$ac_ext
13010 cat >>conftest.$ac_ext <<_ACEOF
13011 /* end confdefs.h. */
13013 #include <features.h>
13014 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13016 #endif
13017 _ACEOF
13018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13019 $EGREP "yes" >/dev/null 2>&1; then
13020 ipv6type=$i;
13021 ipv6trylibc=yes
13023 rm -f conftest*
13026 linux-inet6)
13027 if test -d /usr/inet6; then
13028 ipv6type=$i
13029 ipv6lib=inet6
13030 ipv6libdir=/usr/inet6/lib
13031 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
13034 solaris)
13035 if test -f /etc/netconfig; then
13036 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
13037 ipv6type=$i
13038 ipv6trylibc=yes
13042 toshiba)
13043 cat >conftest.$ac_ext <<_ACEOF
13044 /* confdefs.h. */
13045 _ACEOF
13046 cat confdefs.h >>conftest.$ac_ext
13047 cat >>conftest.$ac_ext <<_ACEOF
13048 /* end confdefs.h. */
13050 #include <sys/param.h>
13051 #ifdef _TOSHIBA_INET6
13053 #endif
13054 _ACEOF
13055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13056 $EGREP "yes" >/dev/null 2>&1; then
13057 ipv6type=$i;
13058 ipv6lib=inet6;
13059 ipv6libdir=/usr/local/v6/lib
13061 rm -f conftest*
13064 v6d)
13065 cat >conftest.$ac_ext <<_ACEOF
13066 /* confdefs.h. */
13067 _ACEOF
13068 cat confdefs.h >>conftest.$ac_ext
13069 cat >>conftest.$ac_ext <<_ACEOF
13070 /* end confdefs.h. */
13072 #include </usr/local/v6/include/sys/v6config.h>
13073 #ifdef __V6D__
13075 #endif
13076 _ACEOF
13077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13078 $EGREP "yes" >/dev/null 2>&1; then
13079 ipv6type=$i;
13080 ipv6lib=v6;
13081 ipv6libdir=/usr/local/v6/lib;
13082 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
13084 rm -f conftest*
13087 zeta)
13088 cat >conftest.$ac_ext <<_ACEOF
13089 /* confdefs.h. */
13090 _ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13095 #include <sys/param.h>
13096 #ifdef _ZETA_MINAMI_INET6
13098 #endif
13099 _ACEOF
13100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13101 $EGREP "yes" >/dev/null 2>&1; then
13102 ipv6type=$i;
13103 ipv6lib=inet6;
13104 ipv6libdir=/usr/local/v6/lib
13106 rm -f conftest*
13109 esac
13110 if test "$ipv6type" != "unknown"; then
13111 break
13113 done
13114 echo "$as_me:$LINENO: result: $ipv6type" >&5
13115 echo "${ECHO_T}$ipv6type" >&6
13118 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13119 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
13120 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
13121 echo "using lib$ipv6lib"
13122 else
13123 if test $ipv6trylibc = "yes"; then
13124 echo "using libc"
13125 else
13126 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13127 echo "You need to fetch lib$ipv6lib.a from appropriate"
13128 echo 'ipv6 kit and compile beforehand.'
13129 exit 1
13134 # Check for --with-doc-strings
13135 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13136 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13138 # Check whether --with-doc-strings or --without-doc-strings was given.
13139 if test "${with_doc_strings+set}" = set; then
13140 withval="$with_doc_strings"
13144 if test -z "$with_doc_strings"
13145 then with_doc_strings="yes"
13147 if test "$with_doc_strings" != "no"
13148 then
13150 cat >>confdefs.h <<\_ACEOF
13151 #define WITH_DOC_STRINGS 1
13152 _ACEOF
13155 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13156 echo "${ECHO_T}$with_doc_strings" >&6
13158 # Check for Python-specific malloc support
13159 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13160 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13162 # Check whether --with-tsc or --without-tsc was given.
13163 if test "${with_tsc+set}" = set; then
13164 withval="$with_tsc"
13166 if test "$withval" != no
13167 then
13169 cat >>confdefs.h <<\_ACEOF
13170 #define WITH_TSC 1
13171 _ACEOF
13173 echo "$as_me:$LINENO: result: yes" >&5
13174 echo "${ECHO_T}yes" >&6
13175 else echo "$as_me:$LINENO: result: no" >&5
13176 echo "${ECHO_T}no" >&6
13178 else
13179 echo "$as_me:$LINENO: result: no" >&5
13180 echo "${ECHO_T}no" >&6
13183 # Check for Python-specific malloc support
13184 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13185 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13187 # Check whether --with-pymalloc or --without-pymalloc was given.
13188 if test "${with_pymalloc+set}" = set; then
13189 withval="$with_pymalloc"
13193 if test -z "$with_pymalloc"
13194 then with_pymalloc="yes"
13196 if test "$with_pymalloc" != "no"
13197 then
13199 cat >>confdefs.h <<\_ACEOF
13200 #define WITH_PYMALLOC 1
13201 _ACEOF
13204 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13205 echo "${ECHO_T}$with_pymalloc" >&6
13207 # Check for --with-wctype-functions
13208 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13209 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13211 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13212 if test "${with_wctype_functions+set}" = set; then
13213 withval="$with_wctype_functions"
13215 if test "$withval" != no
13216 then
13218 cat >>confdefs.h <<\_ACEOF
13219 #define WANT_WCTYPE_FUNCTIONS 1
13220 _ACEOF
13222 echo "$as_me:$LINENO: result: yes" >&5
13223 echo "${ECHO_T}yes" >&6
13224 else echo "$as_me:$LINENO: result: no" >&5
13225 echo "${ECHO_T}no" >&6
13227 else
13228 echo "$as_me:$LINENO: result: no" >&5
13229 echo "${ECHO_T}no" >&6
13232 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13234 DLINCLDIR=.
13236 # the dlopen() function means we might want to use dynload_shlib.o. some
13237 # platforms, such as AIX, have dlopen(), but don't want to use it.
13239 for ac_func in dlopen
13241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13242 echo "$as_me:$LINENO: checking for $ac_func" >&5
13243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13244 if eval "test \"\${$as_ac_var+set}\" = set"; then
13245 echo $ECHO_N "(cached) $ECHO_C" >&6
13246 else
13247 cat >conftest.$ac_ext <<_ACEOF
13248 /* confdefs.h. */
13249 _ACEOF
13250 cat confdefs.h >>conftest.$ac_ext
13251 cat >>conftest.$ac_ext <<_ACEOF
13252 /* end confdefs.h. */
13253 /* System header to define __stub macros and hopefully few prototypes,
13254 which can conflict with char $ac_func (); below.
13255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13256 <limits.h> exists even on freestanding compilers. Under hpux,
13257 including <limits.h> includes <sys/time.h> and causes problems
13258 checking for functions defined therein. */
13259 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
13260 # include <limits.h>
13261 #else
13262 # include <assert.h>
13263 #endif
13264 /* Override any gcc2 internal prototype to avoid an error. */
13265 #ifdef __cplusplus
13266 extern "C"
13268 #endif
13269 /* We use char because int might match the return type of a gcc2
13270 builtin and then its argument prototype would still apply. */
13271 char $ac_func ();
13272 /* The GNU C library defines this for functions which it implements
13273 to always fail with ENOSYS. Some functions are actually named
13274 something starting with __ and the normal name is an alias. */
13275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13276 choke me
13277 #else
13278 char (*f) () = $ac_func;
13279 #endif
13280 #ifdef __cplusplus
13282 #endif
13285 main ()
13287 return f != $ac_func;
13289 return 0;
13291 _ACEOF
13292 rm -f conftest.$ac_objext conftest$ac_exeext
13293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13294 (eval $ac_link) 2>conftest.er1
13295 ac_status=$?
13296 grep -v '^ *+' conftest.er1 >conftest.err
13297 rm -f conftest.er1
13298 cat conftest.err >&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); } &&
13301 { ac_try='test -z "$ac_c_werror_flag"
13302 || test ! -s conftest.err'
13303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13304 (eval $ac_try) 2>&5
13305 ac_status=$?
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); }; } &&
13308 { ac_try='test -s conftest$ac_exeext'
13309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310 (eval $ac_try) 2>&5
13311 ac_status=$?
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; }; then
13314 eval "$as_ac_var=yes"
13315 else
13316 echo "$as_me: failed program was:" >&5
13317 sed 's/^/| /' conftest.$ac_ext >&5
13319 eval "$as_ac_var=no"
13321 rm -f conftest.err conftest.$ac_objext \
13322 conftest$ac_exeext conftest.$ac_ext
13324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13325 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13326 if test `eval echo '${'$as_ac_var'}'` = yes; then
13327 cat >>confdefs.h <<_ACEOF
13328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13329 _ACEOF
13332 done
13335 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
13336 # loading of modules.
13338 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
13339 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
13340 if test -z "$DYNLOADFILE"
13341 then
13342 case $ac_sys_system/$ac_sys_release in
13343 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
13344 if test "$ac_cv_func_dlopen" = yes
13345 then DYNLOADFILE="dynload_shlib.o"
13346 else DYNLOADFILE="dynload_aix.o"
13349 BeOS*) DYNLOADFILE="dynload_beos.o";;
13350 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
13351 Darwin/*) DYNLOADFILE="dynload_next.o";;
13352 atheos*) DYNLOADFILE="dynload_atheos.o";;
13354 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
13355 # out any dynamic loading
13356 if test "$ac_cv_func_dlopen" = yes
13357 then DYNLOADFILE="dynload_shlib.o"
13358 else DYNLOADFILE="dynload_stub.o"
13361 esac
13363 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
13364 echo "${ECHO_T}$DYNLOADFILE" >&6
13365 if test "$DYNLOADFILE" != "dynload_stub.o"
13366 then
13368 cat >>confdefs.h <<\_ACEOF
13369 #define HAVE_DYNAMIC_LOADING 1
13370 _ACEOF
13374 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
13377 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
13378 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
13379 if test -z "$MACHDEP_OBJS"
13380 then
13381 MACHDEP_OBJS=$extra_machdep_objs
13382 else
13383 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
13385 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
13386 echo "${ECHO_T}MACHDEP_OBJS" >&6
13388 # checks for library functions
13463 for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \
13464 execv fork fpathconf ftime ftruncate \
13465 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
13466 getpriority getpwent getspnam getspent getsid getwd \
13467 kill killpg lchown lstat mkfifo mknod mktime \
13468 mremap nice pathconf pause plock poll pthread_init \
13469 putenv readlink realpath \
13470 select setegid seteuid setgid \
13471 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
13472 sigaction siginterrupt sigrelse strftime \
13473 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
13474 truncate uname unsetenv utimes waitpid wcscoll _getpty
13476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13477 echo "$as_me:$LINENO: checking for $ac_func" >&5
13478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13479 if eval "test \"\${$as_ac_var+set}\" = set"; then
13480 echo $ECHO_N "(cached) $ECHO_C" >&6
13481 else
13482 cat >conftest.$ac_ext <<_ACEOF
13483 /* confdefs.h. */
13484 _ACEOF
13485 cat confdefs.h >>conftest.$ac_ext
13486 cat >>conftest.$ac_ext <<_ACEOF
13487 /* end confdefs.h. */
13488 /* System header to define __stub macros and hopefully few prototypes,
13489 which can conflict with char $ac_func (); below.
13490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13491 <limits.h> exists even on freestanding compilers. Under hpux,
13492 including <limits.h> includes <sys/time.h> and causes problems
13493 checking for functions defined therein. */
13494 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
13495 # include <limits.h>
13496 #else
13497 # include <assert.h>
13498 #endif
13499 /* Override any gcc2 internal prototype to avoid an error. */
13500 #ifdef __cplusplus
13501 extern "C"
13503 #endif
13504 /* We use char because int might match the return type of a gcc2
13505 builtin and then its argument prototype would still apply. */
13506 char $ac_func ();
13507 /* The GNU C library defines this for functions which it implements
13508 to always fail with ENOSYS. Some functions are actually named
13509 something starting with __ and the normal name is an alias. */
13510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13511 choke me
13512 #else
13513 char (*f) () = $ac_func;
13514 #endif
13515 #ifdef __cplusplus
13517 #endif
13520 main ()
13522 return f != $ac_func;
13524 return 0;
13526 _ACEOF
13527 rm -f conftest.$ac_objext conftest$ac_exeext
13528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13529 (eval $ac_link) 2>conftest.er1
13530 ac_status=$?
13531 grep -v '^ *+' conftest.er1 >conftest.err
13532 rm -f conftest.er1
13533 cat conftest.err >&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); } &&
13536 { ac_try='test -z "$ac_c_werror_flag"
13537 || test ! -s conftest.err'
13538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539 (eval $ac_try) 2>&5
13540 ac_status=$?
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; } &&
13543 { ac_try='test -s conftest$ac_exeext'
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; }; then
13549 eval "$as_ac_var=yes"
13550 else
13551 echo "$as_me: failed program was:" >&5
13552 sed 's/^/| /' conftest.$ac_ext >&5
13554 eval "$as_ac_var=no"
13556 rm -f conftest.err conftest.$ac_objext \
13557 conftest$ac_exeext conftest.$ac_ext
13559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13560 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13561 if test `eval echo '${'$as_ac_var'}'` = yes; then
13562 cat >>confdefs.h <<_ACEOF
13563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13564 _ACEOF
13567 done
13570 # For some functions, having a definition is not sufficient, since
13571 # we want to take their address.
13572 echo "$as_me:$LINENO: checking for chroot" >&5
13573 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
13574 cat >conftest.$ac_ext <<_ACEOF
13575 /* confdefs.h. */
13576 _ACEOF
13577 cat confdefs.h >>conftest.$ac_ext
13578 cat >>conftest.$ac_ext <<_ACEOF
13579 /* end confdefs.h. */
13580 #include <unistd.h>
13582 main ()
13584 void *x=chroot
13586 return 0;
13588 _ACEOF
13589 rm -f conftest.$ac_objext
13590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13591 (eval $ac_compile) 2>conftest.er1
13592 ac_status=$?
13593 grep -v '^ *+' conftest.er1 >conftest.err
13594 rm -f conftest.er1
13595 cat conftest.err >&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); } &&
13598 { ac_try='test -z "$ac_c_werror_flag"
13599 || test ! -s conftest.err'
13600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13601 (eval $ac_try) 2>&5
13602 ac_status=$?
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }; } &&
13605 { ac_try='test -s conftest.$ac_objext'
13606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607 (eval $ac_try) 2>&5
13608 ac_status=$?
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; }; then
13612 cat >>confdefs.h <<\_ACEOF
13613 #define HAVE_CHROOT 1
13614 _ACEOF
13616 echo "$as_me:$LINENO: result: yes" >&5
13617 echo "${ECHO_T}yes" >&6
13618 else
13619 echo "$as_me: failed program was:" >&5
13620 sed 's/^/| /' conftest.$ac_ext >&5
13622 echo "$as_me:$LINENO: result: no" >&5
13623 echo "${ECHO_T}no" >&6
13626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13627 echo "$as_me:$LINENO: checking for link" >&5
13628 echo $ECHO_N "checking for link... $ECHO_C" >&6
13629 cat >conftest.$ac_ext <<_ACEOF
13630 /* confdefs.h. */
13631 _ACEOF
13632 cat confdefs.h >>conftest.$ac_ext
13633 cat >>conftest.$ac_ext <<_ACEOF
13634 /* end confdefs.h. */
13635 #include <unistd.h>
13637 main ()
13639 void *x=link
13641 return 0;
13643 _ACEOF
13644 rm -f conftest.$ac_objext
13645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13646 (eval $ac_compile) 2>conftest.er1
13647 ac_status=$?
13648 grep -v '^ *+' conftest.er1 >conftest.err
13649 rm -f conftest.er1
13650 cat conftest.err >&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } &&
13653 { ac_try='test -z "$ac_c_werror_flag"
13654 || test ! -s conftest.err'
13655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656 (eval $ac_try) 2>&5
13657 ac_status=$?
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; } &&
13660 { ac_try='test -s conftest.$ac_objext'
13661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662 (eval $ac_try) 2>&5
13663 ac_status=$?
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); }; }; then
13667 cat >>confdefs.h <<\_ACEOF
13668 #define HAVE_LINK 1
13669 _ACEOF
13671 echo "$as_me:$LINENO: result: yes" >&5
13672 echo "${ECHO_T}yes" >&6
13673 else
13674 echo "$as_me: failed program was:" >&5
13675 sed 's/^/| /' conftest.$ac_ext >&5
13677 echo "$as_me:$LINENO: result: no" >&5
13678 echo "${ECHO_T}no" >&6
13681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13682 echo "$as_me:$LINENO: checking for symlink" >&5
13683 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
13684 cat >conftest.$ac_ext <<_ACEOF
13685 /* confdefs.h. */
13686 _ACEOF
13687 cat confdefs.h >>conftest.$ac_ext
13688 cat >>conftest.$ac_ext <<_ACEOF
13689 /* end confdefs.h. */
13690 #include <unistd.h>
13692 main ()
13694 void *x=symlink
13696 return 0;
13698 _ACEOF
13699 rm -f conftest.$ac_objext
13700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13701 (eval $ac_compile) 2>conftest.er1
13702 ac_status=$?
13703 grep -v '^ *+' conftest.er1 >conftest.err
13704 rm -f conftest.er1
13705 cat conftest.err >&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); } &&
13708 { ac_try='test -z "$ac_c_werror_flag"
13709 || test ! -s conftest.err'
13710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13711 (eval $ac_try) 2>&5
13712 ac_status=$?
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); }; } &&
13715 { ac_try='test -s conftest.$ac_objext'
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13718 ac_status=$?
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; }; then
13722 cat >>confdefs.h <<\_ACEOF
13723 #define HAVE_SYMLINK 1
13724 _ACEOF
13726 echo "$as_me:$LINENO: result: yes" >&5
13727 echo "${ECHO_T}yes" >&6
13728 else
13729 echo "$as_me: failed program was:" >&5
13730 sed 's/^/| /' conftest.$ac_ext >&5
13732 echo "$as_me:$LINENO: result: no" >&5
13733 echo "${ECHO_T}no" >&6
13736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13737 echo "$as_me:$LINENO: checking for fchdir" >&5
13738 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
13739 cat >conftest.$ac_ext <<_ACEOF
13740 /* confdefs.h. */
13741 _ACEOF
13742 cat confdefs.h >>conftest.$ac_ext
13743 cat >>conftest.$ac_ext <<_ACEOF
13744 /* end confdefs.h. */
13745 #include <unistd.h>
13747 main ()
13749 void *x=fchdir
13751 return 0;
13753 _ACEOF
13754 rm -f conftest.$ac_objext
13755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13756 (eval $ac_compile) 2>conftest.er1
13757 ac_status=$?
13758 grep -v '^ *+' conftest.er1 >conftest.err
13759 rm -f conftest.er1
13760 cat conftest.err >&5
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); } &&
13763 { ac_try='test -z "$ac_c_werror_flag"
13764 || test ! -s conftest.err'
13765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13766 (eval $ac_try) 2>&5
13767 ac_status=$?
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; } &&
13770 { ac_try='test -s conftest.$ac_objext'
13771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772 (eval $ac_try) 2>&5
13773 ac_status=$?
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); }; }; then
13777 cat >>confdefs.h <<\_ACEOF
13778 #define HAVE_FCHDIR 1
13779 _ACEOF
13781 echo "$as_me:$LINENO: result: yes" >&5
13782 echo "${ECHO_T}yes" >&6
13783 else
13784 echo "$as_me: failed program was:" >&5
13785 sed 's/^/| /' conftest.$ac_ext >&5
13787 echo "$as_me:$LINENO: result: no" >&5
13788 echo "${ECHO_T}no" >&6
13791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13792 echo "$as_me:$LINENO: checking for fsync" >&5
13793 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
13794 cat >conftest.$ac_ext <<_ACEOF
13795 /* confdefs.h. */
13796 _ACEOF
13797 cat confdefs.h >>conftest.$ac_ext
13798 cat >>conftest.$ac_ext <<_ACEOF
13799 /* end confdefs.h. */
13800 #include <unistd.h>
13802 main ()
13804 void *x=fsync
13806 return 0;
13808 _ACEOF
13809 rm -f conftest.$ac_objext
13810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13811 (eval $ac_compile) 2>conftest.er1
13812 ac_status=$?
13813 grep -v '^ *+' conftest.er1 >conftest.err
13814 rm -f conftest.er1
13815 cat conftest.err >&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); } &&
13818 { ac_try='test -z "$ac_c_werror_flag"
13819 || test ! -s conftest.err'
13820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821 (eval $ac_try) 2>&5
13822 ac_status=$?
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); }; } &&
13825 { ac_try='test -s conftest.$ac_objext'
13826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827 (eval $ac_try) 2>&5
13828 ac_status=$?
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); }; }; then
13832 cat >>confdefs.h <<\_ACEOF
13833 #define HAVE_FSYNC 1
13834 _ACEOF
13836 echo "$as_me:$LINENO: result: yes" >&5
13837 echo "${ECHO_T}yes" >&6
13838 else
13839 echo "$as_me: failed program was:" >&5
13840 sed 's/^/| /' conftest.$ac_ext >&5
13842 echo "$as_me:$LINENO: result: no" >&5
13843 echo "${ECHO_T}no" >&6
13846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13847 echo "$as_me:$LINENO: checking for fdatasync" >&5
13848 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
13849 cat >conftest.$ac_ext <<_ACEOF
13850 /* confdefs.h. */
13851 _ACEOF
13852 cat confdefs.h >>conftest.$ac_ext
13853 cat >>conftest.$ac_ext <<_ACEOF
13854 /* end confdefs.h. */
13855 #include <unistd.h>
13857 main ()
13859 void *x=fdatasync
13861 return 0;
13863 _ACEOF
13864 rm -f conftest.$ac_objext
13865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13866 (eval $ac_compile) 2>conftest.er1
13867 ac_status=$?
13868 grep -v '^ *+' conftest.er1 >conftest.err
13869 rm -f conftest.er1
13870 cat conftest.err >&5
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); } &&
13873 { ac_try='test -z "$ac_c_werror_flag"
13874 || test ! -s conftest.err'
13875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876 (eval $ac_try) 2>&5
13877 ac_status=$?
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; } &&
13880 { ac_try='test -s conftest.$ac_objext'
13881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13882 (eval $ac_try) 2>&5
13883 ac_status=$?
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); }; }; then
13887 cat >>confdefs.h <<\_ACEOF
13888 #define HAVE_FDATASYNC 1
13889 _ACEOF
13891 echo "$as_me:$LINENO: result: yes" >&5
13892 echo "${ECHO_T}yes" >&6
13893 else
13894 echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13897 echo "$as_me:$LINENO: result: no" >&5
13898 echo "${ECHO_T}no" >&6
13901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13903 # On some systems (eg. FreeBSD 5), we would find a definition of the
13904 # functions ctermid_r, setgroups in the library, but no prototype
13905 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
13906 # address to avoid compiler warnings and potential miscompilations
13907 # because of the missing prototypes.
13909 echo "$as_me:$LINENO: checking for ctermid_r" >&5
13910 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
13911 cat >conftest.$ac_ext <<_ACEOF
13912 /* confdefs.h. */
13913 _ACEOF
13914 cat confdefs.h >>conftest.$ac_ext
13915 cat >>conftest.$ac_ext <<_ACEOF
13916 /* end confdefs.h. */
13918 #include "confdefs.h"
13919 #include <stdio.h>
13922 main ()
13924 void* p = ctermid_r
13926 return 0;
13928 _ACEOF
13929 rm -f conftest.$ac_objext
13930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13931 (eval $ac_compile) 2>conftest.er1
13932 ac_status=$?
13933 grep -v '^ *+' conftest.er1 >conftest.err
13934 rm -f conftest.er1
13935 cat conftest.err >&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); } &&
13938 { ac_try='test -z "$ac_c_werror_flag"
13939 || test ! -s conftest.err'
13940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941 (eval $ac_try) 2>&5
13942 ac_status=$?
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; } &&
13945 { ac_try='test -s conftest.$ac_objext'
13946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13947 (eval $ac_try) 2>&5
13948 ac_status=$?
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); }; }; then
13952 cat >>confdefs.h <<\_ACEOF
13953 #define HAVE_CTERMID_R 1
13954 _ACEOF
13956 echo "$as_me:$LINENO: result: yes" >&5
13957 echo "${ECHO_T}yes" >&6
13958 else
13959 echo "$as_me: failed program was:" >&5
13960 sed 's/^/| /' conftest.$ac_ext >&5
13962 echo "$as_me:$LINENO: result: no" >&5
13963 echo "${ECHO_T}no" >&6
13966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13968 echo "$as_me:$LINENO: checking for flock" >&5
13969 echo $ECHO_N "checking for flock... $ECHO_C" >&6
13970 cat >conftest.$ac_ext <<_ACEOF
13971 /* confdefs.h. */
13972 _ACEOF
13973 cat confdefs.h >>conftest.$ac_ext
13974 cat >>conftest.$ac_ext <<_ACEOF
13975 /* end confdefs.h. */
13977 #include "confdefs.h"
13978 #include <sys/file.h>
13981 main ()
13983 void* p = flock
13985 return 0;
13987 _ACEOF
13988 rm -f conftest.$ac_objext
13989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13990 (eval $ac_compile) 2>conftest.er1
13991 ac_status=$?
13992 grep -v '^ *+' conftest.er1 >conftest.err
13993 rm -f conftest.er1
13994 cat conftest.err >&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); } &&
13997 { ac_try='test -z "$ac_c_werror_flag"
13998 || test ! -s conftest.err'
13999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14000 (eval $ac_try) 2>&5
14001 ac_status=$?
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); }; } &&
14004 { ac_try='test -s conftest.$ac_objext'
14005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006 (eval $ac_try) 2>&5
14007 ac_status=$?
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; }; then
14011 cat >>confdefs.h <<\_ACEOF
14012 #define HAVE_FLOCK 1
14013 _ACEOF
14015 echo "$as_me:$LINENO: result: yes" >&5
14016 echo "${ECHO_T}yes" >&6
14017 else
14018 echo "$as_me: failed program was:" >&5
14019 sed 's/^/| /' conftest.$ac_ext >&5
14021 echo "$as_me:$LINENO: result: no" >&5
14022 echo "${ECHO_T}no" >&6
14025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14027 echo "$as_me:$LINENO: checking for getpagesize" >&5
14028 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14029 cat >conftest.$ac_ext <<_ACEOF
14030 /* confdefs.h. */
14031 _ACEOF
14032 cat confdefs.h >>conftest.$ac_ext
14033 cat >>conftest.$ac_ext <<_ACEOF
14034 /* end confdefs.h. */
14036 #include "confdefs.h"
14037 #include <unistd.h>
14040 main ()
14042 void* p = getpagesize
14044 return 0;
14046 _ACEOF
14047 rm -f conftest.$ac_objext
14048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14049 (eval $ac_compile) 2>conftest.er1
14050 ac_status=$?
14051 grep -v '^ *+' conftest.er1 >conftest.err
14052 rm -f conftest.er1
14053 cat conftest.err >&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); } &&
14056 { ac_try='test -z "$ac_c_werror_flag"
14057 || test ! -s conftest.err'
14058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059 (eval $ac_try) 2>&5
14060 ac_status=$?
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); }; } &&
14063 { ac_try='test -s conftest.$ac_objext'
14064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14065 (eval $ac_try) 2>&5
14066 ac_status=$?
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); }; }; then
14070 cat >>confdefs.h <<\_ACEOF
14071 #define HAVE_GETPAGESIZE 1
14072 _ACEOF
14074 echo "$as_me:$LINENO: result: yes" >&5
14075 echo "${ECHO_T}yes" >&6
14076 else
14077 echo "$as_me: failed program was:" >&5
14078 sed 's/^/| /' conftest.$ac_ext >&5
14080 echo "$as_me:$LINENO: result: no" >&5
14081 echo "${ECHO_T}no" >&6
14084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14086 for ac_prog in true
14088 # Extract the first word of "$ac_prog", so it can be a program name with args.
14089 set dummy $ac_prog; ac_word=$2
14090 echo "$as_me:$LINENO: checking for $ac_word" >&5
14091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14092 if test "${ac_cv_prog_TRUE+set}" = set; then
14093 echo $ECHO_N "(cached) $ECHO_C" >&6
14094 else
14095 if test -n "$TRUE"; then
14096 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
14097 else
14098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14099 for as_dir in $PATH
14101 IFS=$as_save_IFS
14102 test -z "$as_dir" && as_dir=.
14103 for ac_exec_ext in '' $ac_executable_extensions; do
14104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14105 ac_cv_prog_TRUE="$ac_prog"
14106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14107 break 2
14109 done
14110 done
14114 TRUE=$ac_cv_prog_TRUE
14115 if test -n "$TRUE"; then
14116 echo "$as_me:$LINENO: result: $TRUE" >&5
14117 echo "${ECHO_T}$TRUE" >&6
14118 else
14119 echo "$as_me:$LINENO: result: no" >&5
14120 echo "${ECHO_T}no" >&6
14123 test -n "$TRUE" && break
14124 done
14125 test -n "$TRUE" || TRUE="/bin/true"
14128 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14129 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14130 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14132 else
14133 ac_check_lib_save_LIBS=$LIBS
14134 LIBS="-lc $LIBS"
14135 cat >conftest.$ac_ext <<_ACEOF
14136 /* confdefs.h. */
14137 _ACEOF
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h. */
14142 /* Override any gcc2 internal prototype to avoid an error. */
14143 #ifdef __cplusplus
14144 extern "C"
14145 #endif
14146 /* We use char because int might match the return type of a gcc2
14147 builtin and then its argument prototype would still apply. */
14148 char inet_aton ();
14150 main ()
14152 inet_aton ();
14154 return 0;
14156 _ACEOF
14157 rm -f conftest.$ac_objext conftest$ac_exeext
14158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14159 (eval $ac_link) 2>conftest.er1
14160 ac_status=$?
14161 grep -v '^ *+' conftest.er1 >conftest.err
14162 rm -f conftest.er1
14163 cat conftest.err >&5
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); } &&
14166 { ac_try='test -z "$ac_c_werror_flag"
14167 || test ! -s conftest.err'
14168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14169 (eval $ac_try) 2>&5
14170 ac_status=$?
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); }; } &&
14173 { ac_try='test -s conftest$ac_exeext'
14174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175 (eval $ac_try) 2>&5
14176 ac_status=$?
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); }; }; then
14179 ac_cv_lib_c_inet_aton=yes
14180 else
14181 echo "$as_me: failed program was:" >&5
14182 sed 's/^/| /' conftest.$ac_ext >&5
14184 ac_cv_lib_c_inet_aton=no
14186 rm -f conftest.err conftest.$ac_objext \
14187 conftest$ac_exeext conftest.$ac_ext
14188 LIBS=$ac_check_lib_save_LIBS
14190 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14191 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14192 if test $ac_cv_lib_c_inet_aton = yes; then
14193 $ac_cv_prog_TRUE
14194 else
14196 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14197 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14198 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14199 echo $ECHO_N "(cached) $ECHO_C" >&6
14200 else
14201 ac_check_lib_save_LIBS=$LIBS
14202 LIBS="-lresolv $LIBS"
14203 cat >conftest.$ac_ext <<_ACEOF
14204 /* confdefs.h. */
14205 _ACEOF
14206 cat confdefs.h >>conftest.$ac_ext
14207 cat >>conftest.$ac_ext <<_ACEOF
14208 /* end confdefs.h. */
14210 /* Override any gcc2 internal prototype to avoid an error. */
14211 #ifdef __cplusplus
14212 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 inet_aton ();
14218 main ()
14220 inet_aton ();
14222 return 0;
14224 _ACEOF
14225 rm -f conftest.$ac_objext conftest$ac_exeext
14226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14227 (eval $ac_link) 2>conftest.er1
14228 ac_status=$?
14229 grep -v '^ *+' conftest.er1 >conftest.err
14230 rm -f conftest.er1
14231 cat conftest.err >&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); } &&
14234 { ac_try='test -z "$ac_c_werror_flag"
14235 || test ! -s conftest.err'
14236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237 (eval $ac_try) 2>&5
14238 ac_status=$?
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; } &&
14241 { ac_try='test -s conftest$ac_exeext'
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14244 ac_status=$?
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; }; then
14247 ac_cv_lib_resolv_inet_aton=yes
14248 else
14249 echo "$as_me: failed program was:" >&5
14250 sed 's/^/| /' conftest.$ac_ext >&5
14252 ac_cv_lib_resolv_inet_aton=no
14254 rm -f conftest.err conftest.$ac_objext \
14255 conftest$ac_exeext conftest.$ac_ext
14256 LIBS=$ac_check_lib_save_LIBS
14258 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14259 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14260 if test $ac_cv_lib_resolv_inet_aton = yes; then
14261 cat >>confdefs.h <<_ACEOF
14262 #define HAVE_LIBRESOLV 1
14263 _ACEOF
14265 LIBS="-lresolv $LIBS"
14273 echo "$as_me:$LINENO: checking for hstrerror" >&5
14274 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
14275 cat >conftest.$ac_ext <<_ACEOF
14276 /* confdefs.h. */
14277 _ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h. */
14282 #include "confdefs.h"
14283 #include <netdb.h>
14286 main ()
14288 void* p = hstrerror; hstrerror(0)
14290 return 0;
14292 _ACEOF
14293 rm -f conftest.$ac_objext conftest$ac_exeext
14294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14295 (eval $ac_link) 2>conftest.er1
14296 ac_status=$?
14297 grep -v '^ *+' conftest.er1 >conftest.err
14298 rm -f conftest.er1
14299 cat conftest.err >&5
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); } &&
14302 { ac_try='test -z "$ac_c_werror_flag"
14303 || test ! -s conftest.err'
14304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14305 (eval $ac_try) 2>&5
14306 ac_status=$?
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; } &&
14309 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14316 cat >>confdefs.h <<\_ACEOF
14317 #define HAVE_HSTRERROR 1
14318 _ACEOF
14320 echo "$as_me:$LINENO: result: yes" >&5
14321 echo "${ECHO_T}yes" >&6
14322 else
14323 echo "$as_me: failed program was:" >&5
14324 sed 's/^/| /' conftest.$ac_ext >&5
14326 echo "$as_me:$LINENO: result: no" >&5
14327 echo "${ECHO_T}no" >&6
14330 rm -f conftest.err conftest.$ac_objext \
14331 conftest$ac_exeext conftest.$ac_ext
14333 echo "$as_me:$LINENO: checking for inet_aton" >&5
14334 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
14335 cat >conftest.$ac_ext <<_ACEOF
14336 /* confdefs.h. */
14337 _ACEOF
14338 cat confdefs.h >>conftest.$ac_ext
14339 cat >>conftest.$ac_ext <<_ACEOF
14340 /* end confdefs.h. */
14342 #include "confdefs.h"
14343 #include <sys/socket.h>
14344 #include <netinet/in.h>
14345 #include <arpa/inet.h>
14348 main ()
14350 void* p = inet_aton;inet_aton(0,0)
14352 return 0;
14354 _ACEOF
14355 rm -f conftest.$ac_objext conftest$ac_exeext
14356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14357 (eval $ac_link) 2>conftest.er1
14358 ac_status=$?
14359 grep -v '^ *+' conftest.er1 >conftest.err
14360 rm -f conftest.er1
14361 cat conftest.err >&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } &&
14364 { ac_try='test -z "$ac_c_werror_flag"
14365 || test ! -s conftest.err'
14366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367 (eval $ac_try) 2>&5
14368 ac_status=$?
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; } &&
14371 { ac_try='test -s conftest$ac_exeext'
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14374 ac_status=$?
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; }; then
14378 cat >>confdefs.h <<\_ACEOF
14379 #define HAVE_INET_ATON 1
14380 _ACEOF
14382 echo "$as_me:$LINENO: result: yes" >&5
14383 echo "${ECHO_T}yes" >&6
14384 else
14385 echo "$as_me: failed program was:" >&5
14386 sed 's/^/| /' conftest.$ac_ext >&5
14388 echo "$as_me:$LINENO: result: no" >&5
14389 echo "${ECHO_T}no" >&6
14392 rm -f conftest.err conftest.$ac_objext \
14393 conftest$ac_exeext conftest.$ac_ext
14395 echo "$as_me:$LINENO: checking for inet_pton" >&5
14396 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
14397 cat >conftest.$ac_ext <<_ACEOF
14398 /* confdefs.h. */
14399 _ACEOF
14400 cat confdefs.h >>conftest.$ac_ext
14401 cat >>conftest.$ac_ext <<_ACEOF
14402 /* end confdefs.h. */
14404 #include "confdefs.h"
14405 #include <sys/types.h>
14406 #include <sys/socket.h>
14407 #include <netinet/in.h>
14408 #include <arpa/inet.h>
14411 main ()
14413 void* p = inet_pton
14415 return 0;
14417 _ACEOF
14418 rm -f conftest.$ac_objext
14419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14420 (eval $ac_compile) 2>conftest.er1
14421 ac_status=$?
14422 grep -v '^ *+' conftest.er1 >conftest.err
14423 rm -f conftest.er1
14424 cat conftest.err >&5
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); } &&
14427 { ac_try='test -z "$ac_c_werror_flag"
14428 || test ! -s conftest.err'
14429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14430 (eval $ac_try) 2>&5
14431 ac_status=$?
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); }; } &&
14434 { ac_try='test -s conftest.$ac_objext'
14435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14436 (eval $ac_try) 2>&5
14437 ac_status=$?
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); }; }; then
14441 cat >>confdefs.h <<\_ACEOF
14442 #define HAVE_INET_PTON 1
14443 _ACEOF
14445 echo "$as_me:$LINENO: result: yes" >&5
14446 echo "${ECHO_T}yes" >&6
14447 else
14448 echo "$as_me: failed program was:" >&5
14449 sed 's/^/| /' conftest.$ac_ext >&5
14451 echo "$as_me:$LINENO: result: no" >&5
14452 echo "${ECHO_T}no" >&6
14455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14457 # On some systems, setgroups is in unistd.h, on others, in grp.h
14458 echo "$as_me:$LINENO: checking for setgroups" >&5
14459 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
14460 cat >conftest.$ac_ext <<_ACEOF
14461 /* confdefs.h. */
14462 _ACEOF
14463 cat confdefs.h >>conftest.$ac_ext
14464 cat >>conftest.$ac_ext <<_ACEOF
14465 /* end confdefs.h. */
14467 #include "confdefs.h"
14468 #include <unistd.h>
14469 #ifdef HAVE_GRP_H
14470 #include <grp.h>
14471 #endif
14474 main ()
14476 void* p = setgroups
14478 return 0;
14480 _ACEOF
14481 rm -f conftest.$ac_objext
14482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14483 (eval $ac_compile) 2>conftest.er1
14484 ac_status=$?
14485 grep -v '^ *+' conftest.er1 >conftest.err
14486 rm -f conftest.er1
14487 cat conftest.err >&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); } &&
14490 { ac_try='test -z "$ac_c_werror_flag"
14491 || test ! -s conftest.err'
14492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493 (eval $ac_try) 2>&5
14494 ac_status=$?
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; } &&
14497 { ac_try='test -s conftest.$ac_objext'
14498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499 (eval $ac_try) 2>&5
14500 ac_status=$?
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); }; }; then
14504 cat >>confdefs.h <<\_ACEOF
14505 #define HAVE_SETGROUPS 1
14506 _ACEOF
14508 echo "$as_me:$LINENO: result: yes" >&5
14509 echo "${ECHO_T}yes" >&6
14510 else
14511 echo "$as_me: failed program was:" >&5
14512 sed 's/^/| /' conftest.$ac_ext >&5
14514 echo "$as_me:$LINENO: result: no" >&5
14515 echo "${ECHO_T}no" >&6
14518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14520 # check for openpty and forkpty
14523 for ac_func in openpty
14525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14526 echo "$as_me:$LINENO: checking for $ac_func" >&5
14527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14528 if eval "test \"\${$as_ac_var+set}\" = set"; then
14529 echo $ECHO_N "(cached) $ECHO_C" >&6
14530 else
14531 cat >conftest.$ac_ext <<_ACEOF
14532 /* confdefs.h. */
14533 _ACEOF
14534 cat confdefs.h >>conftest.$ac_ext
14535 cat >>conftest.$ac_ext <<_ACEOF
14536 /* end confdefs.h. */
14537 /* System header to define __stub macros and hopefully few prototypes,
14538 which can conflict with char $ac_func (); below.
14539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14540 <limits.h> exists even on freestanding compilers. Under hpux,
14541 including <limits.h> includes <sys/time.h> and causes problems
14542 checking for functions defined therein. */
14543 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
14544 # include <limits.h>
14545 #else
14546 # include <assert.h>
14547 #endif
14548 /* Override any gcc2 internal prototype to avoid an error. */
14549 #ifdef __cplusplus
14550 extern "C"
14552 #endif
14553 /* We use char because int might match the return type of a gcc2
14554 builtin and then its argument prototype would still apply. */
14555 char $ac_func ();
14556 /* The GNU C library defines this for functions which it implements
14557 to always fail with ENOSYS. Some functions are actually named
14558 something starting with __ and the normal name is an alias. */
14559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14560 choke me
14561 #else
14562 char (*f) () = $ac_func;
14563 #endif
14564 #ifdef __cplusplus
14566 #endif
14569 main ()
14571 return f != $ac_func;
14573 return 0;
14575 _ACEOF
14576 rm -f conftest.$ac_objext conftest$ac_exeext
14577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14578 (eval $ac_link) 2>conftest.er1
14579 ac_status=$?
14580 grep -v '^ *+' conftest.er1 >conftest.err
14581 rm -f conftest.er1
14582 cat conftest.err >&5
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); } &&
14585 { ac_try='test -z "$ac_c_werror_flag"
14586 || test ! -s conftest.err'
14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14589 ac_status=$?
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; } &&
14592 { ac_try='test -s conftest$ac_exeext'
14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14595 ac_status=$?
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; }; then
14598 eval "$as_ac_var=yes"
14599 else
14600 echo "$as_me: failed program was:" >&5
14601 sed 's/^/| /' conftest.$ac_ext >&5
14603 eval "$as_ac_var=no"
14605 rm -f conftest.err conftest.$ac_objext \
14606 conftest$ac_exeext conftest.$ac_ext
14608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14609 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14610 if test `eval echo '${'$as_ac_var'}'` = yes; then
14611 cat >>confdefs.h <<_ACEOF
14612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14613 _ACEOF
14615 else
14616 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
14617 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
14618 if test "${ac_cv_lib_util_openpty+set}" = set; then
14619 echo $ECHO_N "(cached) $ECHO_C" >&6
14620 else
14621 ac_check_lib_save_LIBS=$LIBS
14622 LIBS="-lutil $LIBS"
14623 cat >conftest.$ac_ext <<_ACEOF
14624 /* confdefs.h. */
14625 _ACEOF
14626 cat confdefs.h >>conftest.$ac_ext
14627 cat >>conftest.$ac_ext <<_ACEOF
14628 /* end confdefs.h. */
14630 /* Override any gcc2 internal prototype to avoid an error. */
14631 #ifdef __cplusplus
14632 extern "C"
14633 #endif
14634 /* We use char because int might match the return type of a gcc2
14635 builtin and then its argument prototype would still apply. */
14636 char openpty ();
14638 main ()
14640 openpty ();
14642 return 0;
14644 _ACEOF
14645 rm -f conftest.$ac_objext conftest$ac_exeext
14646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14647 (eval $ac_link) 2>conftest.er1
14648 ac_status=$?
14649 grep -v '^ *+' conftest.er1 >conftest.err
14650 rm -f conftest.er1
14651 cat conftest.err >&5
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); } &&
14654 { ac_try='test -z "$ac_c_werror_flag"
14655 || test ! -s conftest.err'
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); }; } &&
14661 { ac_try='test -s conftest$ac_exeext'
14662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14663 (eval $ac_try) 2>&5
14664 ac_status=$?
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); }; }; then
14667 ac_cv_lib_util_openpty=yes
14668 else
14669 echo "$as_me: failed program was:" >&5
14670 sed 's/^/| /' conftest.$ac_ext >&5
14672 ac_cv_lib_util_openpty=no
14674 rm -f conftest.err conftest.$ac_objext \
14675 conftest$ac_exeext conftest.$ac_ext
14676 LIBS=$ac_check_lib_save_LIBS
14678 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
14679 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
14680 if test $ac_cv_lib_util_openpty = yes; then
14681 cat >>confdefs.h <<\_ACEOF
14682 #define HAVE_OPENPTY 1
14683 _ACEOF
14684 LIBS="$LIBS -lutil"
14688 done
14691 for ac_func in forkpty
14693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14694 echo "$as_me:$LINENO: checking for $ac_func" >&5
14695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14696 if eval "test \"\${$as_ac_var+set}\" = set"; then
14697 echo $ECHO_N "(cached) $ECHO_C" >&6
14698 else
14699 cat >conftest.$ac_ext <<_ACEOF
14700 /* confdefs.h. */
14701 _ACEOF
14702 cat confdefs.h >>conftest.$ac_ext
14703 cat >>conftest.$ac_ext <<_ACEOF
14704 /* end confdefs.h. */
14705 /* System header to define __stub macros and hopefully few prototypes,
14706 which can conflict with char $ac_func (); below.
14707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14708 <limits.h> exists even on freestanding compilers. Under hpux,
14709 including <limits.h> includes <sys/time.h> and causes problems
14710 checking for functions defined therein. */
14711 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
14712 # include <limits.h>
14713 #else
14714 # include <assert.h>
14715 #endif
14716 /* Override any gcc2 internal prototype to avoid an error. */
14717 #ifdef __cplusplus
14718 extern "C"
14720 #endif
14721 /* We use char because int might match the return type of a gcc2
14722 builtin and then its argument prototype would still apply. */
14723 char $ac_func ();
14724 /* The GNU C library defines this for functions which it implements
14725 to always fail with ENOSYS. Some functions are actually named
14726 something starting with __ and the normal name is an alias. */
14727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14728 choke me
14729 #else
14730 char (*f) () = $ac_func;
14731 #endif
14732 #ifdef __cplusplus
14734 #endif
14737 main ()
14739 return f != $ac_func;
14741 return 0;
14743 _ACEOF
14744 rm -f conftest.$ac_objext conftest$ac_exeext
14745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14746 (eval $ac_link) 2>conftest.er1
14747 ac_status=$?
14748 grep -v '^ *+' conftest.er1 >conftest.err
14749 rm -f conftest.er1
14750 cat conftest.err >&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); } &&
14753 { ac_try='test -z "$ac_c_werror_flag"
14754 || test ! -s conftest.err'
14755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14756 (eval $ac_try) 2>&5
14757 ac_status=$?
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); }; } &&
14760 { ac_try='test -s conftest$ac_exeext'
14761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14762 (eval $ac_try) 2>&5
14763 ac_status=$?
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); }; }; then
14766 eval "$as_ac_var=yes"
14767 else
14768 echo "$as_me: failed program was:" >&5
14769 sed 's/^/| /' conftest.$ac_ext >&5
14771 eval "$as_ac_var=no"
14773 rm -f conftest.err conftest.$ac_objext \
14774 conftest$ac_exeext conftest.$ac_ext
14776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14778 if test `eval echo '${'$as_ac_var'}'` = yes; then
14779 cat >>confdefs.h <<_ACEOF
14780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14781 _ACEOF
14783 else
14784 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
14785 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
14786 if test "${ac_cv_lib_util_forkpty+set}" = set; then
14787 echo $ECHO_N "(cached) $ECHO_C" >&6
14788 else
14789 ac_check_lib_save_LIBS=$LIBS
14790 LIBS="-lutil $LIBS"
14791 cat >conftest.$ac_ext <<_ACEOF
14792 /* confdefs.h. */
14793 _ACEOF
14794 cat confdefs.h >>conftest.$ac_ext
14795 cat >>conftest.$ac_ext <<_ACEOF
14796 /* end confdefs.h. */
14798 /* Override any gcc2 internal prototype to avoid an error. */
14799 #ifdef __cplusplus
14800 extern "C"
14801 #endif
14802 /* We use char because int might match the return type of a gcc2
14803 builtin and then its argument prototype would still apply. */
14804 char forkpty ();
14806 main ()
14808 forkpty ();
14810 return 0;
14812 _ACEOF
14813 rm -f conftest.$ac_objext conftest$ac_exeext
14814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14815 (eval $ac_link) 2>conftest.er1
14816 ac_status=$?
14817 grep -v '^ *+' conftest.er1 >conftest.err
14818 rm -f conftest.er1
14819 cat conftest.err >&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } &&
14822 { ac_try='test -z "$ac_c_werror_flag"
14823 || test ! -s conftest.err'
14824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14825 (eval $ac_try) 2>&5
14826 ac_status=$?
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); }; } &&
14829 { ac_try='test -s conftest$ac_exeext'
14830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14831 (eval $ac_try) 2>&5
14832 ac_status=$?
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); }; }; then
14835 ac_cv_lib_util_forkpty=yes
14836 else
14837 echo "$as_me: failed program was:" >&5
14838 sed 's/^/| /' conftest.$ac_ext >&5
14840 ac_cv_lib_util_forkpty=no
14842 rm -f conftest.err conftest.$ac_objext \
14843 conftest$ac_exeext conftest.$ac_ext
14844 LIBS=$ac_check_lib_save_LIBS
14846 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
14847 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
14848 if test $ac_cv_lib_util_forkpty = yes; then
14849 cat >>confdefs.h <<\_ACEOF
14850 #define HAVE_FORKPTY 1
14851 _ACEOF
14852 LIBS="$LIBS -lutil"
14856 done
14859 # check for long file support functions
14866 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
14868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14869 echo "$as_me:$LINENO: checking for $ac_func" >&5
14870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14871 if eval "test \"\${$as_ac_var+set}\" = set"; then
14872 echo $ECHO_N "(cached) $ECHO_C" >&6
14873 else
14874 cat >conftest.$ac_ext <<_ACEOF
14875 /* confdefs.h. */
14876 _ACEOF
14877 cat confdefs.h >>conftest.$ac_ext
14878 cat >>conftest.$ac_ext <<_ACEOF
14879 /* end confdefs.h. */
14880 /* System header to define __stub macros and hopefully few prototypes,
14881 which can conflict with char $ac_func (); below.
14882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14883 <limits.h> exists even on freestanding compilers. Under hpux,
14884 including <limits.h> includes <sys/time.h> and causes problems
14885 checking for functions defined therein. */
14886 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
14887 # include <limits.h>
14888 #else
14889 # include <assert.h>
14890 #endif
14891 /* Override any gcc2 internal prototype to avoid an error. */
14892 #ifdef __cplusplus
14893 extern "C"
14895 #endif
14896 /* We use char because int might match the return type of a gcc2
14897 builtin and then its argument prototype would still apply. */
14898 char $ac_func ();
14899 /* The GNU C library defines this for functions which it implements
14900 to always fail with ENOSYS. Some functions are actually named
14901 something starting with __ and the normal name is an alias. */
14902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14903 choke me
14904 #else
14905 char (*f) () = $ac_func;
14906 #endif
14907 #ifdef __cplusplus
14909 #endif
14912 main ()
14914 return f != $ac_func;
14916 return 0;
14918 _ACEOF
14919 rm -f conftest.$ac_objext conftest$ac_exeext
14920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14921 (eval $ac_link) 2>conftest.er1
14922 ac_status=$?
14923 grep -v '^ *+' conftest.er1 >conftest.err
14924 rm -f conftest.er1
14925 cat conftest.err >&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); } &&
14928 { ac_try='test -z "$ac_c_werror_flag"
14929 || test ! -s conftest.err'
14930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931 (eval $ac_try) 2>&5
14932 ac_status=$?
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; } &&
14935 { ac_try='test -s conftest$ac_exeext'
14936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937 (eval $ac_try) 2>&5
14938 ac_status=$?
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); }; }; then
14941 eval "$as_ac_var=yes"
14942 else
14943 echo "$as_me: failed program was:" >&5
14944 sed 's/^/| /' conftest.$ac_ext >&5
14946 eval "$as_ac_var=no"
14948 rm -f conftest.err conftest.$ac_objext \
14949 conftest$ac_exeext conftest.$ac_ext
14951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14952 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14953 if test `eval echo '${'$as_ac_var'}'` = yes; then
14954 cat >>confdefs.h <<_ACEOF
14955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14956 _ACEOF
14959 done
14967 for ac_func in dup2 getcwd strdup strerror memmove
14969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14970 echo "$as_me:$LINENO: checking for $ac_func" >&5
14971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14972 if eval "test \"\${$as_ac_var+set}\" = set"; then
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
14974 else
14975 cat >conftest.$ac_ext <<_ACEOF
14976 /* confdefs.h. */
14977 _ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14981 /* System header to define __stub macros and hopefully few prototypes,
14982 which can conflict with char $ac_func (); below.
14983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14984 <limits.h> exists even on freestanding compilers. Under hpux,
14985 including <limits.h> includes <sys/time.h> and causes problems
14986 checking for functions defined therein. */
14987 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
14988 # include <limits.h>
14989 #else
14990 # include <assert.h>
14991 #endif
14992 /* Override any gcc2 internal prototype to avoid an error. */
14993 #ifdef __cplusplus
14994 extern "C"
14996 #endif
14997 /* We use char because int might match the return type of a gcc2
14998 builtin and then its argument prototype would still apply. */
14999 char $ac_func ();
15000 /* The GNU C library defines this for functions which it implements
15001 to always fail with ENOSYS. Some functions are actually named
15002 something starting with __ and the normal name is an alias. */
15003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15004 choke me
15005 #else
15006 char (*f) () = $ac_func;
15007 #endif
15008 #ifdef __cplusplus
15010 #endif
15013 main ()
15015 return f != $ac_func;
15017 return 0;
15019 _ACEOF
15020 rm -f conftest.$ac_objext conftest$ac_exeext
15021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15022 (eval $ac_link) 2>conftest.er1
15023 ac_status=$?
15024 grep -v '^ *+' conftest.er1 >conftest.err
15025 rm -f conftest.er1
15026 cat conftest.err >&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } &&
15029 { ac_try='test -z "$ac_c_werror_flag"
15030 || test ! -s conftest.err'
15031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15032 (eval $ac_try) 2>&5
15033 ac_status=$?
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; } &&
15036 { ac_try='test -s conftest$ac_exeext'
15037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038 (eval $ac_try) 2>&5
15039 ac_status=$?
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; }; then
15042 eval "$as_ac_var=yes"
15043 else
15044 echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.$ac_ext >&5
15047 eval "$as_ac_var=no"
15049 rm -f conftest.err conftest.$ac_objext \
15050 conftest$ac_exeext conftest.$ac_ext
15052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15054 if test `eval echo '${'$as_ac_var'}'` = yes; then
15055 cat >>confdefs.h <<_ACEOF
15056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15057 _ACEOF
15059 else
15060 case $LIBOBJS in
15061 "$ac_func.$ac_objext" | \
15062 *" $ac_func.$ac_objext" | \
15063 "$ac_func.$ac_objext "* | \
15064 *" $ac_func.$ac_objext "* ) ;;
15065 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15066 esac
15069 done
15073 for ac_func in getpgrp
15075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15076 echo "$as_me:$LINENO: checking for $ac_func" >&5
15077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15078 if eval "test \"\${$as_ac_var+set}\" = set"; then
15079 echo $ECHO_N "(cached) $ECHO_C" >&6
15080 else
15081 cat >conftest.$ac_ext <<_ACEOF
15082 /* confdefs.h. */
15083 _ACEOF
15084 cat confdefs.h >>conftest.$ac_ext
15085 cat >>conftest.$ac_ext <<_ACEOF
15086 /* end confdefs.h. */
15087 /* System header to define __stub macros and hopefully few prototypes,
15088 which can conflict with char $ac_func (); below.
15089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15090 <limits.h> exists even on freestanding compilers. Under hpux,
15091 including <limits.h> includes <sys/time.h> and causes problems
15092 checking for functions defined therein. */
15093 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
15094 # include <limits.h>
15095 #else
15096 # include <assert.h>
15097 #endif
15098 /* Override any gcc2 internal prototype to avoid an error. */
15099 #ifdef __cplusplus
15100 extern "C"
15102 #endif
15103 /* We use char because int might match the return type of a gcc2
15104 builtin and then its argument prototype would still apply. */
15105 char $ac_func ();
15106 /* The GNU C library defines this for functions which it implements
15107 to always fail with ENOSYS. Some functions are actually named
15108 something starting with __ and the normal name is an alias. */
15109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15110 choke me
15111 #else
15112 char (*f) () = $ac_func;
15113 #endif
15114 #ifdef __cplusplus
15116 #endif
15119 main ()
15121 return f != $ac_func;
15123 return 0;
15125 _ACEOF
15126 rm -f conftest.$ac_objext conftest$ac_exeext
15127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15128 (eval $ac_link) 2>conftest.er1
15129 ac_status=$?
15130 grep -v '^ *+' conftest.er1 >conftest.err
15131 rm -f conftest.er1
15132 cat conftest.err >&5
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); } &&
15135 { ac_try='test -z "$ac_c_werror_flag"
15136 || test ! -s conftest.err'
15137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15138 (eval $ac_try) 2>&5
15139 ac_status=$?
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); }; } &&
15142 { ac_try='test -s conftest$ac_exeext'
15143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15144 (eval $ac_try) 2>&5
15145 ac_status=$?
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); }; }; then
15148 eval "$as_ac_var=yes"
15149 else
15150 echo "$as_me: failed program was:" >&5
15151 sed 's/^/| /' conftest.$ac_ext >&5
15153 eval "$as_ac_var=no"
15155 rm -f conftest.err conftest.$ac_objext \
15156 conftest$ac_exeext conftest.$ac_ext
15158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15159 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15160 if test `eval echo '${'$as_ac_var'}'` = yes; then
15161 cat >>confdefs.h <<_ACEOF
15162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15163 _ACEOF
15164 cat >conftest.$ac_ext <<_ACEOF
15165 /* confdefs.h. */
15166 _ACEOF
15167 cat confdefs.h >>conftest.$ac_ext
15168 cat >>conftest.$ac_ext <<_ACEOF
15169 /* end confdefs.h. */
15170 #include <unistd.h>
15172 main ()
15174 getpgrp(0);
15176 return 0;
15178 _ACEOF
15179 rm -f conftest.$ac_objext
15180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15181 (eval $ac_compile) 2>conftest.er1
15182 ac_status=$?
15183 grep -v '^ *+' conftest.er1 >conftest.err
15184 rm -f conftest.er1
15185 cat conftest.err >&5
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); } &&
15188 { ac_try='test -z "$ac_c_werror_flag"
15189 || test ! -s conftest.err'
15190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191 (eval $ac_try) 2>&5
15192 ac_status=$?
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); }; } &&
15195 { ac_try='test -s conftest.$ac_objext'
15196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197 (eval $ac_try) 2>&5
15198 ac_status=$?
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); }; }; then
15202 cat >>confdefs.h <<\_ACEOF
15203 #define GETPGRP_HAVE_ARG 1
15204 _ACEOF
15207 else
15208 echo "$as_me: failed program was:" >&5
15209 sed 's/^/| /' conftest.$ac_ext >&5
15212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15215 done
15218 for ac_func in setpgrp
15220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15221 echo "$as_me:$LINENO: checking for $ac_func" >&5
15222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15223 if eval "test \"\${$as_ac_var+set}\" = set"; then
15224 echo $ECHO_N "(cached) $ECHO_C" >&6
15225 else
15226 cat >conftest.$ac_ext <<_ACEOF
15227 /* confdefs.h. */
15228 _ACEOF
15229 cat confdefs.h >>conftest.$ac_ext
15230 cat >>conftest.$ac_ext <<_ACEOF
15231 /* end confdefs.h. */
15232 /* System header to define __stub macros and hopefully few prototypes,
15233 which can conflict with char $ac_func (); below.
15234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15235 <limits.h> exists even on freestanding compilers. Under hpux,
15236 including <limits.h> includes <sys/time.h> and causes problems
15237 checking for functions defined therein. */
15238 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
15239 # include <limits.h>
15240 #else
15241 # include <assert.h>
15242 #endif
15243 /* Override any gcc2 internal prototype to avoid an error. */
15244 #ifdef __cplusplus
15245 extern "C"
15247 #endif
15248 /* We use char because int might match the return type of a gcc2
15249 builtin and then its argument prototype would still apply. */
15250 char $ac_func ();
15251 /* The GNU C library defines this for functions which it implements
15252 to always fail with ENOSYS. Some functions are actually named
15253 something starting with __ and the normal name is an alias. */
15254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15255 choke me
15256 #else
15257 char (*f) () = $ac_func;
15258 #endif
15259 #ifdef __cplusplus
15261 #endif
15264 main ()
15266 return f != $ac_func;
15268 return 0;
15270 _ACEOF
15271 rm -f conftest.$ac_objext conftest$ac_exeext
15272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15273 (eval $ac_link) 2>conftest.er1
15274 ac_status=$?
15275 grep -v '^ *+' conftest.er1 >conftest.err
15276 rm -f conftest.er1
15277 cat conftest.err >&5
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); } &&
15280 { ac_try='test -z "$ac_c_werror_flag"
15281 || test ! -s conftest.err'
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); }; } &&
15287 { ac_try='test -s conftest$ac_exeext'
15288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15289 (eval $ac_try) 2>&5
15290 ac_status=$?
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); }; }; then
15293 eval "$as_ac_var=yes"
15294 else
15295 echo "$as_me: failed program was:" >&5
15296 sed 's/^/| /' conftest.$ac_ext >&5
15298 eval "$as_ac_var=no"
15300 rm -f conftest.err conftest.$ac_objext \
15301 conftest$ac_exeext conftest.$ac_ext
15303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15304 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15305 if test `eval echo '${'$as_ac_var'}'` = yes; then
15306 cat >>confdefs.h <<_ACEOF
15307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15308 _ACEOF
15309 cat >conftest.$ac_ext <<_ACEOF
15310 /* confdefs.h. */
15311 _ACEOF
15312 cat confdefs.h >>conftest.$ac_ext
15313 cat >>conftest.$ac_ext <<_ACEOF
15314 /* end confdefs.h. */
15315 #include <unistd.h>
15317 main ()
15319 setpgrp(0,0);
15321 return 0;
15323 _ACEOF
15324 rm -f conftest.$ac_objext
15325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15326 (eval $ac_compile) 2>conftest.er1
15327 ac_status=$?
15328 grep -v '^ *+' conftest.er1 >conftest.err
15329 rm -f conftest.er1
15330 cat conftest.err >&5
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); } &&
15333 { ac_try='test -z "$ac_c_werror_flag"
15334 || test ! -s conftest.err'
15335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15336 (eval $ac_try) 2>&5
15337 ac_status=$?
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); }; } &&
15340 { ac_try='test -s conftest.$ac_objext'
15341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15342 (eval $ac_try) 2>&5
15343 ac_status=$?
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); }; }; then
15347 cat >>confdefs.h <<\_ACEOF
15348 #define SETPGRP_HAVE_ARG 1
15349 _ACEOF
15352 else
15353 echo "$as_me: failed program was:" >&5
15354 sed 's/^/| /' conftest.$ac_ext >&5
15357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15360 done
15363 for ac_func in gettimeofday
15365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15366 echo "$as_me:$LINENO: checking for $ac_func" >&5
15367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15368 if eval "test \"\${$as_ac_var+set}\" = set"; then
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
15370 else
15371 cat >conftest.$ac_ext <<_ACEOF
15372 /* confdefs.h. */
15373 _ACEOF
15374 cat confdefs.h >>conftest.$ac_ext
15375 cat >>conftest.$ac_ext <<_ACEOF
15376 /* end confdefs.h. */
15377 /* System header to define __stub macros and hopefully few prototypes,
15378 which can conflict with char $ac_func (); below.
15379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15380 <limits.h> exists even on freestanding compilers. Under hpux,
15381 including <limits.h> includes <sys/time.h> and causes problems
15382 checking for functions defined therein. */
15383 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
15384 # include <limits.h>
15385 #else
15386 # include <assert.h>
15387 #endif
15388 /* Override any gcc2 internal prototype to avoid an error. */
15389 #ifdef __cplusplus
15390 extern "C"
15392 #endif
15393 /* We use char because int might match the return type of a gcc2
15394 builtin and then its argument prototype would still apply. */
15395 char $ac_func ();
15396 /* The GNU C library defines this for functions which it implements
15397 to always fail with ENOSYS. Some functions are actually named
15398 something starting with __ and the normal name is an alias. */
15399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15400 choke me
15401 #else
15402 char (*f) () = $ac_func;
15403 #endif
15404 #ifdef __cplusplus
15406 #endif
15409 main ()
15411 return f != $ac_func;
15413 return 0;
15415 _ACEOF
15416 rm -f conftest.$ac_objext conftest$ac_exeext
15417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15418 (eval $ac_link) 2>conftest.er1
15419 ac_status=$?
15420 grep -v '^ *+' conftest.er1 >conftest.err
15421 rm -f conftest.er1
15422 cat conftest.err >&5
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); } &&
15425 { ac_try='test -z "$ac_c_werror_flag"
15426 || test ! -s conftest.err'
15427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428 (eval $ac_try) 2>&5
15429 ac_status=$?
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; } &&
15432 { ac_try='test -s conftest$ac_exeext'
15433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15434 (eval $ac_try) 2>&5
15435 ac_status=$?
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); }; }; then
15438 eval "$as_ac_var=yes"
15439 else
15440 echo "$as_me: failed program was:" >&5
15441 sed 's/^/| /' conftest.$ac_ext >&5
15443 eval "$as_ac_var=no"
15445 rm -f conftest.err conftest.$ac_objext \
15446 conftest$ac_exeext conftest.$ac_ext
15448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15450 if test `eval echo '${'$as_ac_var'}'` = yes; then
15451 cat >>confdefs.h <<_ACEOF
15452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15453 _ACEOF
15454 cat >conftest.$ac_ext <<_ACEOF
15455 /* confdefs.h. */
15456 _ACEOF
15457 cat confdefs.h >>conftest.$ac_ext
15458 cat >>conftest.$ac_ext <<_ACEOF
15459 /* end confdefs.h. */
15460 #include <sys/time.h>
15462 main ()
15464 gettimeofday((struct timeval*)0,(struct timezone*)0);
15466 return 0;
15468 _ACEOF
15469 rm -f conftest.$ac_objext
15470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15471 (eval $ac_compile) 2>conftest.er1
15472 ac_status=$?
15473 grep -v '^ *+' conftest.er1 >conftest.err
15474 rm -f conftest.er1
15475 cat conftest.err >&5
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); } &&
15478 { ac_try='test -z "$ac_c_werror_flag"
15479 || test ! -s conftest.err'
15480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15481 (eval $ac_try) 2>&5
15482 ac_status=$?
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); }; } &&
15485 { ac_try='test -s conftest.$ac_objext'
15486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487 (eval $ac_try) 2>&5
15488 ac_status=$?
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); }; }; then
15492 else
15493 echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.$ac_ext >&5
15497 cat >>confdefs.h <<\_ACEOF
15498 #define GETTIMEOFDAY_NO_TZ 1
15499 _ACEOF
15503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15506 done
15509 echo "$as_me:$LINENO: checking for major" >&5
15510 echo $ECHO_N "checking for major... $ECHO_C" >&6
15511 cat >conftest.$ac_ext <<_ACEOF
15512 /* confdefs.h. */
15513 _ACEOF
15514 cat confdefs.h >>conftest.$ac_ext
15515 cat >>conftest.$ac_ext <<_ACEOF
15516 /* end confdefs.h. */
15518 #if defined(MAJOR_IN_MKDEV)
15519 #include <sys/mkdev.h>
15520 #elif defined(MAJOR_IN_SYSMACROS)
15521 #include <sys/sysmacros.h>
15522 #else
15523 #include <sys/types.h>
15524 #endif
15527 main ()
15530 makedev(major(0),minor(0));
15533 return 0;
15535 _ACEOF
15536 rm -f conftest.$ac_objext conftest$ac_exeext
15537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15538 (eval $ac_link) 2>conftest.er1
15539 ac_status=$?
15540 grep -v '^ *+' conftest.er1 >conftest.err
15541 rm -f conftest.er1
15542 cat conftest.err >&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } &&
15545 { ac_try='test -z "$ac_c_werror_flag"
15546 || test ! -s conftest.err'
15547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15548 (eval $ac_try) 2>&5
15549 ac_status=$?
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); }; } &&
15552 { ac_try='test -s conftest$ac_exeext'
15553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15554 (eval $ac_try) 2>&5
15555 ac_status=$?
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; }; then
15560 cat >>confdefs.h <<\_ACEOF
15561 #define HAVE_DEVICE_MACROS 1
15562 _ACEOF
15564 echo "$as_me:$LINENO: result: yes" >&5
15565 echo "${ECHO_T}yes" >&6
15567 else
15568 echo "$as_me: failed program was:" >&5
15569 sed 's/^/| /' conftest.$ac_ext >&5
15572 echo "$as_me:$LINENO: result: no" >&5
15573 echo "${ECHO_T}no" >&6
15576 rm -f conftest.err conftest.$ac_objext \
15577 conftest$ac_exeext conftest.$ac_ext
15579 # On OSF/1 V5.1, getaddrinfo is available, but a define
15580 # for [no]getaddrinfo in netdb.h.
15581 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
15582 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
15583 cat >conftest.$ac_ext <<_ACEOF
15584 /* confdefs.h. */
15585 _ACEOF
15586 cat confdefs.h >>conftest.$ac_ext
15587 cat >>conftest.$ac_ext <<_ACEOF
15588 /* end confdefs.h. */
15590 #include <sys/types.h>
15591 #include <sys/socket.h>
15592 #include <netdb.h>
15593 #include <stdio.h>
15596 main ()
15599 getaddrinfo(NULL, NULL, NULL, NULL);
15602 return 0;
15604 _ACEOF
15605 rm -f conftest.$ac_objext conftest$ac_exeext
15606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15607 (eval $ac_link) 2>conftest.er1
15608 ac_status=$?
15609 grep -v '^ *+' conftest.er1 >conftest.err
15610 rm -f conftest.er1
15611 cat conftest.err >&5
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); } &&
15614 { ac_try='test -z "$ac_c_werror_flag"
15615 || test ! -s conftest.err'
15616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15617 (eval $ac_try) 2>&5
15618 ac_status=$?
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); }; } &&
15621 { ac_try='test -s conftest$ac_exeext'
15622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623 (eval $ac_try) 2>&5
15624 ac_status=$?
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; }; then
15628 echo "$as_me:$LINENO: result: yes" >&5
15629 echo "${ECHO_T}yes" >&6
15630 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
15631 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
15632 if test "$cross_compiling" = yes; then
15633 echo "$as_me:$LINENO: result: buggy" >&5
15634 echo "${ECHO_T}buggy" >&6
15635 buggygetaddrinfo=yes
15636 else
15637 cat >conftest.$ac_ext <<_ACEOF
15638 /* confdefs.h. */
15639 _ACEOF
15640 cat confdefs.h >>conftest.$ac_ext
15641 cat >>conftest.$ac_ext <<_ACEOF
15642 /* end confdefs.h. */
15644 #include <sys/types.h>
15645 #include <netdb.h>
15646 #include <string.h>
15647 #include <sys/socket.h>
15648 #include <netinet/in.h>
15650 main()
15652 int passive, gaierr, inet4 = 0, inet6 = 0;
15653 struct addrinfo hints, *ai, *aitop;
15654 char straddr[INET6_ADDRSTRLEN], strport[16];
15656 for (passive = 0; passive <= 1; passive++) {
15657 memset(&hints, 0, sizeof(hints));
15658 hints.ai_family = AF_UNSPEC;
15659 hints.ai_flags = passive ? AI_PASSIVE : 0;
15660 hints.ai_socktype = SOCK_STREAM;
15661 hints.ai_protocol = IPPROTO_TCP;
15662 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
15663 (void)gai_strerror(gaierr);
15664 goto bad;
15666 for (ai = aitop; ai; ai = ai->ai_next) {
15667 if (ai->ai_addr == NULL ||
15668 ai->ai_addrlen == 0 ||
15669 getnameinfo(ai->ai_addr, ai->ai_addrlen,
15670 straddr, sizeof(straddr), strport, sizeof(strport),
15671 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
15672 goto bad;
15674 switch (ai->ai_family) {
15675 case AF_INET:
15676 if (strcmp(strport, "54321") != 0) {
15677 goto bad;
15679 if (passive) {
15680 if (strcmp(straddr, "0.0.0.0") != 0) {
15681 goto bad;
15683 } else {
15684 if (strcmp(straddr, "127.0.0.1") != 0) {
15685 goto bad;
15688 inet4++;
15689 break;
15690 case AF_INET6:
15691 if (strcmp(strport, "54321") != 0) {
15692 goto bad;
15694 if (passive) {
15695 if (strcmp(straddr, "::") != 0) {
15696 goto bad;
15698 } else {
15699 if (strcmp(straddr, "::1") != 0) {
15700 goto bad;
15703 inet6++;
15704 break;
15705 case AF_UNSPEC:
15706 goto bad;
15707 break;
15708 default:
15709 /* another family support? */
15710 break;
15715 if (!(inet4 == 0 || inet4 == 2))
15716 goto bad;
15717 if (!(inet6 == 0 || inet6 == 2))
15718 goto bad;
15720 if (aitop)
15721 freeaddrinfo(aitop);
15722 exit(0);
15724 bad:
15725 if (aitop)
15726 freeaddrinfo(aitop);
15727 exit(1);
15730 _ACEOF
15731 rm -f conftest$ac_exeext
15732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15733 (eval $ac_link) 2>&5
15734 ac_status=$?
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738 (eval $ac_try) 2>&5
15739 ac_status=$?
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; }; then
15742 echo "$as_me:$LINENO: result: good" >&5
15743 echo "${ECHO_T}good" >&6
15744 buggygetaddrinfo=no
15745 else
15746 echo "$as_me: program exited with status $ac_status" >&5
15747 echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15750 ( exit $ac_status )
15751 echo "$as_me:$LINENO: result: buggy" >&5
15752 echo "${ECHO_T}buggy" >&6
15753 buggygetaddrinfo=yes
15755 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15757 else
15758 echo "$as_me: failed program was:" >&5
15759 sed 's/^/| /' conftest.$ac_ext >&5
15762 echo "$as_me:$LINENO: result: no" >&5
15763 echo "${ECHO_T}no" >&6
15764 buggygetaddrinfo=yes
15767 rm -f conftest.err conftest.$ac_objext \
15768 conftest$ac_exeext conftest.$ac_ext
15770 if test "$buggygetaddrinfo" = "yes"; then
15771 if test "$ipv6" = "yes"; then
15772 echo 'Fatal: You must get working getaddrinfo() function.'
15773 echo ' or you can specify "--disable-ipv6"'.
15774 exit 1
15776 else
15778 cat >>confdefs.h <<\_ACEOF
15779 #define HAVE_GETADDRINFO 1
15780 _ACEOF
15784 for ac_func in getnameinfo
15786 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15787 echo "$as_me:$LINENO: checking for $ac_func" >&5
15788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15789 if eval "test \"\${$as_ac_var+set}\" = set"; then
15790 echo $ECHO_N "(cached) $ECHO_C" >&6
15791 else
15792 cat >conftest.$ac_ext <<_ACEOF
15793 /* confdefs.h. */
15794 _ACEOF
15795 cat confdefs.h >>conftest.$ac_ext
15796 cat >>conftest.$ac_ext <<_ACEOF
15797 /* end confdefs.h. */
15798 /* System header to define __stub macros and hopefully few prototypes,
15799 which can conflict with char $ac_func (); below.
15800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15801 <limits.h> exists even on freestanding compilers. Under hpux,
15802 including <limits.h> includes <sys/time.h> and causes problems
15803 checking for functions defined therein. */
15804 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
15805 # include <limits.h>
15806 #else
15807 # include <assert.h>
15808 #endif
15809 /* Override any gcc2 internal prototype to avoid an error. */
15810 #ifdef __cplusplus
15811 extern "C"
15813 #endif
15814 /* We use char because int might match the return type of a gcc2
15815 builtin and then its argument prototype would still apply. */
15816 char $ac_func ();
15817 /* The GNU C library defines this for functions which it implements
15818 to always fail with ENOSYS. Some functions are actually named
15819 something starting with __ and the normal name is an alias. */
15820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15821 choke me
15822 #else
15823 char (*f) () = $ac_func;
15824 #endif
15825 #ifdef __cplusplus
15827 #endif
15830 main ()
15832 return f != $ac_func;
15834 return 0;
15836 _ACEOF
15837 rm -f conftest.$ac_objext conftest$ac_exeext
15838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15839 (eval $ac_link) 2>conftest.er1
15840 ac_status=$?
15841 grep -v '^ *+' conftest.er1 >conftest.err
15842 rm -f conftest.er1
15843 cat conftest.err >&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); } &&
15846 { ac_try='test -z "$ac_c_werror_flag"
15847 || test ! -s conftest.err'
15848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15849 (eval $ac_try) 2>&5
15850 ac_status=$?
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); }; } &&
15853 { ac_try='test -s conftest$ac_exeext'
15854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15855 (eval $ac_try) 2>&5
15856 ac_status=$?
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; }; then
15859 eval "$as_ac_var=yes"
15860 else
15861 echo "$as_me: failed program was:" >&5
15862 sed 's/^/| /' conftest.$ac_ext >&5
15864 eval "$as_ac_var=no"
15866 rm -f conftest.err conftest.$ac_objext \
15867 conftest$ac_exeext conftest.$ac_ext
15869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15871 if test `eval echo '${'$as_ac_var'}'` = yes; then
15872 cat >>confdefs.h <<_ACEOF
15873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15874 _ACEOF
15877 done
15880 # checks for structures
15881 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15882 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
15883 if test "${ac_cv_header_time+set}" = set; then
15884 echo $ECHO_N "(cached) $ECHO_C" >&6
15885 else
15886 cat >conftest.$ac_ext <<_ACEOF
15887 /* confdefs.h. */
15888 _ACEOF
15889 cat confdefs.h >>conftest.$ac_ext
15890 cat >>conftest.$ac_ext <<_ACEOF
15891 /* end confdefs.h. */
15892 #include <sys/types.h>
15893 #include <sys/time.h>
15894 #include <time.h>
15897 main ()
15899 if ((struct tm *) 0)
15900 return 0;
15902 return 0;
15904 _ACEOF
15905 rm -f conftest.$ac_objext
15906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15907 (eval $ac_compile) 2>conftest.er1
15908 ac_status=$?
15909 grep -v '^ *+' conftest.er1 >conftest.err
15910 rm -f conftest.er1
15911 cat conftest.err >&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } &&
15914 { ac_try='test -z "$ac_c_werror_flag"
15915 || test ! -s conftest.err'
15916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15917 (eval $ac_try) 2>&5
15918 ac_status=$?
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); }; } &&
15921 { ac_try='test -s conftest.$ac_objext'
15922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15923 (eval $ac_try) 2>&5
15924 ac_status=$?
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; }; then
15927 ac_cv_header_time=yes
15928 else
15929 echo "$as_me: failed program was:" >&5
15930 sed 's/^/| /' conftest.$ac_ext >&5
15932 ac_cv_header_time=no
15934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15936 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15937 echo "${ECHO_T}$ac_cv_header_time" >&6
15938 if test $ac_cv_header_time = yes; then
15940 cat >>confdefs.h <<\_ACEOF
15941 #define TIME_WITH_SYS_TIME 1
15942 _ACEOF
15946 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
15947 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
15948 if test "${ac_cv_struct_tm+set}" = set; then
15949 echo $ECHO_N "(cached) $ECHO_C" >&6
15950 else
15951 cat >conftest.$ac_ext <<_ACEOF
15952 /* confdefs.h. */
15953 _ACEOF
15954 cat confdefs.h >>conftest.$ac_ext
15955 cat >>conftest.$ac_ext <<_ACEOF
15956 /* end confdefs.h. */
15957 #include <sys/types.h>
15958 #include <time.h>
15961 main ()
15963 struct tm *tp; tp->tm_sec;
15965 return 0;
15967 _ACEOF
15968 rm -f conftest.$ac_objext
15969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15970 (eval $ac_compile) 2>conftest.er1
15971 ac_status=$?
15972 grep -v '^ *+' conftest.er1 >conftest.err
15973 rm -f conftest.er1
15974 cat conftest.err >&5
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); } &&
15977 { ac_try='test -z "$ac_c_werror_flag"
15978 || test ! -s conftest.err'
15979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15980 (eval $ac_try) 2>&5
15981 ac_status=$?
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); }; } &&
15984 { ac_try='test -s conftest.$ac_objext'
15985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15986 (eval $ac_try) 2>&5
15987 ac_status=$?
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); }; }; then
15990 ac_cv_struct_tm=time.h
15991 else
15992 echo "$as_me: failed program was:" >&5
15993 sed 's/^/| /' conftest.$ac_ext >&5
15995 ac_cv_struct_tm=sys/time.h
15997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15999 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16000 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16001 if test $ac_cv_struct_tm = sys/time.h; then
16003 cat >>confdefs.h <<\_ACEOF
16004 #define TM_IN_SYS_TIME 1
16005 _ACEOF
16009 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16010 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16011 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16012 echo $ECHO_N "(cached) $ECHO_C" >&6
16013 else
16014 cat >conftest.$ac_ext <<_ACEOF
16015 /* confdefs.h. */
16016 _ACEOF
16017 cat confdefs.h >>conftest.$ac_ext
16018 cat >>conftest.$ac_ext <<_ACEOF
16019 /* end confdefs.h. */
16020 #include <sys/types.h>
16021 #include <$ac_cv_struct_tm>
16025 main ()
16027 static struct tm ac_aggr;
16028 if (ac_aggr.tm_zone)
16029 return 0;
16031 return 0;
16033 _ACEOF
16034 rm -f conftest.$ac_objext
16035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16036 (eval $ac_compile) 2>conftest.er1
16037 ac_status=$?
16038 grep -v '^ *+' conftest.er1 >conftest.err
16039 rm -f conftest.er1
16040 cat conftest.err >&5
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); } &&
16043 { ac_try='test -z "$ac_c_werror_flag"
16044 || test ! -s conftest.err'
16045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16046 (eval $ac_try) 2>&5
16047 ac_status=$?
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); }; } &&
16050 { ac_try='test -s conftest.$ac_objext'
16051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16052 (eval $ac_try) 2>&5
16053 ac_status=$?
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; }; then
16056 ac_cv_member_struct_tm_tm_zone=yes
16057 else
16058 echo "$as_me: failed program was:" >&5
16059 sed 's/^/| /' conftest.$ac_ext >&5
16061 cat >conftest.$ac_ext <<_ACEOF
16062 /* confdefs.h. */
16063 _ACEOF
16064 cat confdefs.h >>conftest.$ac_ext
16065 cat >>conftest.$ac_ext <<_ACEOF
16066 /* end confdefs.h. */
16067 #include <sys/types.h>
16068 #include <$ac_cv_struct_tm>
16072 main ()
16074 static struct tm ac_aggr;
16075 if (sizeof ac_aggr.tm_zone)
16076 return 0;
16078 return 0;
16080 _ACEOF
16081 rm -f conftest.$ac_objext
16082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16083 (eval $ac_compile) 2>conftest.er1
16084 ac_status=$?
16085 grep -v '^ *+' conftest.er1 >conftest.err
16086 rm -f conftest.er1
16087 cat conftest.err >&5
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); } &&
16090 { ac_try='test -z "$ac_c_werror_flag"
16091 || test ! -s conftest.err'
16092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16093 (eval $ac_try) 2>&5
16094 ac_status=$?
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); }; } &&
16097 { ac_try='test -s conftest.$ac_objext'
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16100 ac_status=$?
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; }; then
16103 ac_cv_member_struct_tm_tm_zone=yes
16104 else
16105 echo "$as_me: failed program was:" >&5
16106 sed 's/^/| /' conftest.$ac_ext >&5
16108 ac_cv_member_struct_tm_tm_zone=no
16110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16114 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16115 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16116 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16118 cat >>confdefs.h <<_ACEOF
16119 #define HAVE_STRUCT_TM_TM_ZONE 1
16120 _ACEOF
16125 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16127 cat >>confdefs.h <<\_ACEOF
16128 #define HAVE_TM_ZONE 1
16129 _ACEOF
16131 else
16132 echo "$as_me:$LINENO: checking for tzname" >&5
16133 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16134 if test "${ac_cv_var_tzname+set}" = set; then
16135 echo $ECHO_N "(cached) $ECHO_C" >&6
16136 else
16137 cat >conftest.$ac_ext <<_ACEOF
16138 /* confdefs.h. */
16139 _ACEOF
16140 cat confdefs.h >>conftest.$ac_ext
16141 cat >>conftest.$ac_ext <<_ACEOF
16142 /* end confdefs.h. */
16143 #include <time.h>
16144 #ifndef tzname /* For SGI. */
16145 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16146 #endif
16149 main ()
16151 atoi(*tzname);
16153 return 0;
16155 _ACEOF
16156 rm -f conftest.$ac_objext conftest$ac_exeext
16157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16158 (eval $ac_link) 2>conftest.er1
16159 ac_status=$?
16160 grep -v '^ *+' conftest.er1 >conftest.err
16161 rm -f conftest.er1
16162 cat conftest.err >&5
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); } &&
16165 { ac_try='test -z "$ac_c_werror_flag"
16166 || test ! -s conftest.err'
16167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16168 (eval $ac_try) 2>&5
16169 ac_status=$?
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); }; } &&
16172 { ac_try='test -s conftest$ac_exeext'
16173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16174 (eval $ac_try) 2>&5
16175 ac_status=$?
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); }; }; then
16178 ac_cv_var_tzname=yes
16179 else
16180 echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.$ac_ext >&5
16183 ac_cv_var_tzname=no
16185 rm -f conftest.err conftest.$ac_objext \
16186 conftest$ac_exeext conftest.$ac_ext
16188 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
16189 echo "${ECHO_T}$ac_cv_var_tzname" >&6
16190 if test $ac_cv_var_tzname = yes; then
16192 cat >>confdefs.h <<\_ACEOF
16193 #define HAVE_TZNAME 1
16194 _ACEOF
16199 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
16200 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
16201 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
16202 echo $ECHO_N "(cached) $ECHO_C" >&6
16203 else
16204 cat >conftest.$ac_ext <<_ACEOF
16205 /* confdefs.h. */
16206 _ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h. */
16210 $ac_includes_default
16212 main ()
16214 static struct stat ac_aggr;
16215 if (ac_aggr.st_rdev)
16216 return 0;
16218 return 0;
16220 _ACEOF
16221 rm -f conftest.$ac_objext
16222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16223 (eval $ac_compile) 2>conftest.er1
16224 ac_status=$?
16225 grep -v '^ *+' conftest.er1 >conftest.err
16226 rm -f conftest.er1
16227 cat conftest.err >&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } &&
16230 { ac_try='test -z "$ac_c_werror_flag"
16231 || test ! -s conftest.err'
16232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16233 (eval $ac_try) 2>&5
16234 ac_status=$?
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; } &&
16237 { ac_try='test -s conftest.$ac_objext'
16238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239 (eval $ac_try) 2>&5
16240 ac_status=$?
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); }; }; then
16243 ac_cv_member_struct_stat_st_rdev=yes
16244 else
16245 echo "$as_me: failed program was:" >&5
16246 sed 's/^/| /' conftest.$ac_ext >&5
16248 cat >conftest.$ac_ext <<_ACEOF
16249 /* confdefs.h. */
16250 _ACEOF
16251 cat confdefs.h >>conftest.$ac_ext
16252 cat >>conftest.$ac_ext <<_ACEOF
16253 /* end confdefs.h. */
16254 $ac_includes_default
16256 main ()
16258 static struct stat ac_aggr;
16259 if (sizeof ac_aggr.st_rdev)
16260 return 0;
16262 return 0;
16264 _ACEOF
16265 rm -f conftest.$ac_objext
16266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16267 (eval $ac_compile) 2>conftest.er1
16268 ac_status=$?
16269 grep -v '^ *+' conftest.er1 >conftest.err
16270 rm -f conftest.er1
16271 cat conftest.err >&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } &&
16274 { ac_try='test -z "$ac_c_werror_flag"
16275 || test ! -s conftest.err'
16276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16277 (eval $ac_try) 2>&5
16278 ac_status=$?
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; } &&
16281 { ac_try='test -s conftest.$ac_objext'
16282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16283 (eval $ac_try) 2>&5
16284 ac_status=$?
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); }; }; then
16287 ac_cv_member_struct_stat_st_rdev=yes
16288 else
16289 echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.$ac_ext >&5
16292 ac_cv_member_struct_stat_st_rdev=no
16294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16298 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
16299 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
16300 if test $ac_cv_member_struct_stat_st_rdev = yes; then
16302 cat >>confdefs.h <<_ACEOF
16303 #define HAVE_STRUCT_STAT_ST_RDEV 1
16304 _ACEOF
16309 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
16310 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
16311 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
16312 echo $ECHO_N "(cached) $ECHO_C" >&6
16313 else
16314 cat >conftest.$ac_ext <<_ACEOF
16315 /* confdefs.h. */
16316 _ACEOF
16317 cat confdefs.h >>conftest.$ac_ext
16318 cat >>conftest.$ac_ext <<_ACEOF
16319 /* end confdefs.h. */
16320 $ac_includes_default
16322 main ()
16324 static struct stat ac_aggr;
16325 if (ac_aggr.st_blksize)
16326 return 0;
16328 return 0;
16330 _ACEOF
16331 rm -f conftest.$ac_objext
16332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16333 (eval $ac_compile) 2>conftest.er1
16334 ac_status=$?
16335 grep -v '^ *+' conftest.er1 >conftest.err
16336 rm -f conftest.er1
16337 cat conftest.err >&5
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); } &&
16340 { ac_try='test -z "$ac_c_werror_flag"
16341 || test ! -s conftest.err'
16342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16343 (eval $ac_try) 2>&5
16344 ac_status=$?
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); }; } &&
16347 { ac_try='test -s conftest.$ac_objext'
16348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16349 (eval $ac_try) 2>&5
16350 ac_status=$?
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); }; }; then
16353 ac_cv_member_struct_stat_st_blksize=yes
16354 else
16355 echo "$as_me: failed program was:" >&5
16356 sed 's/^/| /' conftest.$ac_ext >&5
16358 cat >conftest.$ac_ext <<_ACEOF
16359 /* confdefs.h. */
16360 _ACEOF
16361 cat confdefs.h >>conftest.$ac_ext
16362 cat >>conftest.$ac_ext <<_ACEOF
16363 /* end confdefs.h. */
16364 $ac_includes_default
16366 main ()
16368 static struct stat ac_aggr;
16369 if (sizeof ac_aggr.st_blksize)
16370 return 0;
16372 return 0;
16374 _ACEOF
16375 rm -f conftest.$ac_objext
16376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16377 (eval $ac_compile) 2>conftest.er1
16378 ac_status=$?
16379 grep -v '^ *+' conftest.er1 >conftest.err
16380 rm -f conftest.er1
16381 cat conftest.err >&5
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); } &&
16384 { ac_try='test -z "$ac_c_werror_flag"
16385 || test ! -s conftest.err'
16386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16387 (eval $ac_try) 2>&5
16388 ac_status=$?
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); }; } &&
16391 { ac_try='test -s conftest.$ac_objext'
16392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16393 (eval $ac_try) 2>&5
16394 ac_status=$?
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); }; }; then
16397 ac_cv_member_struct_stat_st_blksize=yes
16398 else
16399 echo "$as_me: failed program was:" >&5
16400 sed 's/^/| /' conftest.$ac_ext >&5
16402 ac_cv_member_struct_stat_st_blksize=no
16404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16408 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
16409 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
16410 if test $ac_cv_member_struct_stat_st_blksize = yes; then
16412 cat >>confdefs.h <<_ACEOF
16413 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16414 _ACEOF
16419 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
16420 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
16421 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
16422 echo $ECHO_N "(cached) $ECHO_C" >&6
16423 else
16424 cat >conftest.$ac_ext <<_ACEOF
16425 /* confdefs.h. */
16426 _ACEOF
16427 cat confdefs.h >>conftest.$ac_ext
16428 cat >>conftest.$ac_ext <<_ACEOF
16429 /* end confdefs.h. */
16430 $ac_includes_default
16432 main ()
16434 static struct stat ac_aggr;
16435 if (ac_aggr.st_flags)
16436 return 0;
16438 return 0;
16440 _ACEOF
16441 rm -f conftest.$ac_objext
16442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16443 (eval $ac_compile) 2>conftest.er1
16444 ac_status=$?
16445 grep -v '^ *+' conftest.er1 >conftest.err
16446 rm -f conftest.er1
16447 cat conftest.err >&5
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); } &&
16450 { ac_try='test -z "$ac_c_werror_flag"
16451 || test ! -s conftest.err'
16452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16453 (eval $ac_try) 2>&5
16454 ac_status=$?
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); }; } &&
16457 { ac_try='test -s conftest.$ac_objext'
16458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16459 (eval $ac_try) 2>&5
16460 ac_status=$?
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); }; }; then
16463 ac_cv_member_struct_stat_st_flags=yes
16464 else
16465 echo "$as_me: failed program was:" >&5
16466 sed 's/^/| /' conftest.$ac_ext >&5
16468 cat >conftest.$ac_ext <<_ACEOF
16469 /* confdefs.h. */
16470 _ACEOF
16471 cat confdefs.h >>conftest.$ac_ext
16472 cat >>conftest.$ac_ext <<_ACEOF
16473 /* end confdefs.h. */
16474 $ac_includes_default
16476 main ()
16478 static struct stat ac_aggr;
16479 if (sizeof ac_aggr.st_flags)
16480 return 0;
16482 return 0;
16484 _ACEOF
16485 rm -f conftest.$ac_objext
16486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16487 (eval $ac_compile) 2>conftest.er1
16488 ac_status=$?
16489 grep -v '^ *+' conftest.er1 >conftest.err
16490 rm -f conftest.er1
16491 cat conftest.err >&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); } &&
16494 { ac_try='test -z "$ac_c_werror_flag"
16495 || test ! -s conftest.err'
16496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497 (eval $ac_try) 2>&5
16498 ac_status=$?
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; } &&
16501 { ac_try='test -s conftest.$ac_objext'
16502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16503 (eval $ac_try) 2>&5
16504 ac_status=$?
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); }; }; then
16507 ac_cv_member_struct_stat_st_flags=yes
16508 else
16509 echo "$as_me: failed program was:" >&5
16510 sed 's/^/| /' conftest.$ac_ext >&5
16512 ac_cv_member_struct_stat_st_flags=no
16514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16518 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
16519 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
16520 if test $ac_cv_member_struct_stat_st_flags = yes; then
16522 cat >>confdefs.h <<_ACEOF
16523 #define HAVE_STRUCT_STAT_ST_FLAGS 1
16524 _ACEOF
16529 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
16530 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
16531 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
16532 echo $ECHO_N "(cached) $ECHO_C" >&6
16533 else
16534 cat >conftest.$ac_ext <<_ACEOF
16535 /* confdefs.h. */
16536 _ACEOF
16537 cat confdefs.h >>conftest.$ac_ext
16538 cat >>conftest.$ac_ext <<_ACEOF
16539 /* end confdefs.h. */
16540 $ac_includes_default
16542 main ()
16544 static struct stat ac_aggr;
16545 if (ac_aggr.st_gen)
16546 return 0;
16548 return 0;
16550 _ACEOF
16551 rm -f conftest.$ac_objext
16552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16553 (eval $ac_compile) 2>conftest.er1
16554 ac_status=$?
16555 grep -v '^ *+' conftest.er1 >conftest.err
16556 rm -f conftest.er1
16557 cat conftest.err >&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); } &&
16560 { ac_try='test -z "$ac_c_werror_flag"
16561 || test ! -s conftest.err'
16562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16563 (eval $ac_try) 2>&5
16564 ac_status=$?
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); }; } &&
16567 { ac_try='test -s conftest.$ac_objext'
16568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16569 (eval $ac_try) 2>&5
16570 ac_status=$?
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); }; }; then
16573 ac_cv_member_struct_stat_st_gen=yes
16574 else
16575 echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.$ac_ext >&5
16578 cat >conftest.$ac_ext <<_ACEOF
16579 /* confdefs.h. */
16580 _ACEOF
16581 cat confdefs.h >>conftest.$ac_ext
16582 cat >>conftest.$ac_ext <<_ACEOF
16583 /* end confdefs.h. */
16584 $ac_includes_default
16586 main ()
16588 static struct stat ac_aggr;
16589 if (sizeof ac_aggr.st_gen)
16590 return 0;
16592 return 0;
16594 _ACEOF
16595 rm -f conftest.$ac_objext
16596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16597 (eval $ac_compile) 2>conftest.er1
16598 ac_status=$?
16599 grep -v '^ *+' conftest.er1 >conftest.err
16600 rm -f conftest.er1
16601 cat conftest.err >&5
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); } &&
16604 { ac_try='test -z "$ac_c_werror_flag"
16605 || test ! -s conftest.err'
16606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16607 (eval $ac_try) 2>&5
16608 ac_status=$?
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); }; } &&
16611 { ac_try='test -s conftest.$ac_objext'
16612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16613 (eval $ac_try) 2>&5
16614 ac_status=$?
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }; }; then
16617 ac_cv_member_struct_stat_st_gen=yes
16618 else
16619 echo "$as_me: failed program was:" >&5
16620 sed 's/^/| /' conftest.$ac_ext >&5
16622 ac_cv_member_struct_stat_st_gen=no
16624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16628 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
16629 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
16630 if test $ac_cv_member_struct_stat_st_gen = yes; then
16632 cat >>confdefs.h <<_ACEOF
16633 #define HAVE_STRUCT_STAT_ST_GEN 1
16634 _ACEOF
16639 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
16640 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
16641 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
16642 echo $ECHO_N "(cached) $ECHO_C" >&6
16643 else
16644 cat >conftest.$ac_ext <<_ACEOF
16645 /* confdefs.h. */
16646 _ACEOF
16647 cat confdefs.h >>conftest.$ac_ext
16648 cat >>conftest.$ac_ext <<_ACEOF
16649 /* end confdefs.h. */
16650 $ac_includes_default
16652 main ()
16654 static struct stat ac_aggr;
16655 if (ac_aggr.st_birthtime)
16656 return 0;
16658 return 0;
16660 _ACEOF
16661 rm -f conftest.$ac_objext
16662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16663 (eval $ac_compile) 2>conftest.er1
16664 ac_status=$?
16665 grep -v '^ *+' conftest.er1 >conftest.err
16666 rm -f conftest.er1
16667 cat conftest.err >&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); } &&
16670 { ac_try='test -z "$ac_c_werror_flag"
16671 || test ! -s conftest.err'
16672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16673 (eval $ac_try) 2>&5
16674 ac_status=$?
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); }; } &&
16677 { ac_try='test -s conftest.$ac_objext'
16678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16679 (eval $ac_try) 2>&5
16680 ac_status=$?
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); }; }; then
16683 ac_cv_member_struct_stat_st_birthtime=yes
16684 else
16685 echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16688 cat >conftest.$ac_ext <<_ACEOF
16689 /* confdefs.h. */
16690 _ACEOF
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h. */
16694 $ac_includes_default
16696 main ()
16698 static struct stat ac_aggr;
16699 if (sizeof ac_aggr.st_birthtime)
16700 return 0;
16702 return 0;
16704 _ACEOF
16705 rm -f conftest.$ac_objext
16706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16707 (eval $ac_compile) 2>conftest.er1
16708 ac_status=$?
16709 grep -v '^ *+' conftest.er1 >conftest.err
16710 rm -f conftest.er1
16711 cat conftest.err >&5
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); } &&
16714 { ac_try='test -z "$ac_c_werror_flag"
16715 || test ! -s conftest.err'
16716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717 (eval $ac_try) 2>&5
16718 ac_status=$?
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; } &&
16721 { ac_try='test -s conftest.$ac_objext'
16722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16723 (eval $ac_try) 2>&5
16724 ac_status=$?
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); }; }; then
16727 ac_cv_member_struct_stat_st_birthtime=yes
16728 else
16729 echo "$as_me: failed program was:" >&5
16730 sed 's/^/| /' conftest.$ac_ext >&5
16732 ac_cv_member_struct_stat_st_birthtime=no
16734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16738 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
16739 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
16740 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
16742 cat >>confdefs.h <<_ACEOF
16743 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
16744 _ACEOF
16749 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16750 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
16751 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16752 echo $ECHO_N "(cached) $ECHO_C" >&6
16753 else
16754 cat >conftest.$ac_ext <<_ACEOF
16755 /* confdefs.h. */
16756 _ACEOF
16757 cat confdefs.h >>conftest.$ac_ext
16758 cat >>conftest.$ac_ext <<_ACEOF
16759 /* end confdefs.h. */
16760 $ac_includes_default
16762 main ()
16764 static struct stat ac_aggr;
16765 if (ac_aggr.st_blocks)
16766 return 0;
16768 return 0;
16770 _ACEOF
16771 rm -f conftest.$ac_objext
16772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16773 (eval $ac_compile) 2>conftest.er1
16774 ac_status=$?
16775 grep -v '^ *+' conftest.er1 >conftest.err
16776 rm -f conftest.er1
16777 cat conftest.err >&5
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); } &&
16780 { ac_try='test -z "$ac_c_werror_flag"
16781 || test ! -s conftest.err'
16782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16783 (eval $ac_try) 2>&5
16784 ac_status=$?
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); }; } &&
16787 { ac_try='test -s conftest.$ac_objext'
16788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16789 (eval $ac_try) 2>&5
16790 ac_status=$?
16791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); }; }; then
16793 ac_cv_member_struct_stat_st_blocks=yes
16794 else
16795 echo "$as_me: failed program was:" >&5
16796 sed 's/^/| /' conftest.$ac_ext >&5
16798 cat >conftest.$ac_ext <<_ACEOF
16799 /* confdefs.h. */
16800 _ACEOF
16801 cat confdefs.h >>conftest.$ac_ext
16802 cat >>conftest.$ac_ext <<_ACEOF
16803 /* end confdefs.h. */
16804 $ac_includes_default
16806 main ()
16808 static struct stat ac_aggr;
16809 if (sizeof ac_aggr.st_blocks)
16810 return 0;
16812 return 0;
16814 _ACEOF
16815 rm -f conftest.$ac_objext
16816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16817 (eval $ac_compile) 2>conftest.er1
16818 ac_status=$?
16819 grep -v '^ *+' conftest.er1 >conftest.err
16820 rm -f conftest.er1
16821 cat conftest.err >&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } &&
16824 { ac_try='test -z "$ac_c_werror_flag"
16825 || test ! -s conftest.err'
16826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16827 (eval $ac_try) 2>&5
16828 ac_status=$?
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); }; } &&
16831 { ac_try='test -s conftest.$ac_objext'
16832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833 (eval $ac_try) 2>&5
16834 ac_status=$?
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; }; then
16837 ac_cv_member_struct_stat_st_blocks=yes
16838 else
16839 echo "$as_me: failed program was:" >&5
16840 sed 's/^/| /' conftest.$ac_ext >&5
16842 ac_cv_member_struct_stat_st_blocks=no
16844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16848 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16849 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
16850 if test $ac_cv_member_struct_stat_st_blocks = yes; then
16852 cat >>confdefs.h <<_ACEOF
16853 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16854 _ACEOF
16857 cat >>confdefs.h <<\_ACEOF
16858 #define HAVE_ST_BLOCKS 1
16859 _ACEOF
16861 else
16862 case $LIBOBJS in
16863 "fileblocks.$ac_objext" | \
16864 *" fileblocks.$ac_objext" | \
16865 "fileblocks.$ac_objext "* | \
16866 *" fileblocks.$ac_objext "* ) ;;
16867 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
16868 esac
16874 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
16875 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
16876 if test "${ac_cv_header_time_altzone+set}" = set; then
16877 echo $ECHO_N "(cached) $ECHO_C" >&6
16878 else
16879 cat >conftest.$ac_ext <<_ACEOF
16880 /* confdefs.h. */
16881 _ACEOF
16882 cat confdefs.h >>conftest.$ac_ext
16883 cat >>conftest.$ac_ext <<_ACEOF
16884 /* end confdefs.h. */
16885 #include <time.h>
16887 main ()
16889 return altzone;
16891 return 0;
16893 _ACEOF
16894 rm -f conftest.$ac_objext
16895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16896 (eval $ac_compile) 2>conftest.er1
16897 ac_status=$?
16898 grep -v '^ *+' conftest.er1 >conftest.err
16899 rm -f conftest.er1
16900 cat conftest.err >&5
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); } &&
16903 { ac_try='test -z "$ac_c_werror_flag"
16904 || test ! -s conftest.err'
16905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16906 (eval $ac_try) 2>&5
16907 ac_status=$?
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); }; } &&
16910 { ac_try='test -s conftest.$ac_objext'
16911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16912 (eval $ac_try) 2>&5
16913 ac_status=$?
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); }; }; then
16916 ac_cv_header_time_altzone=yes
16917 else
16918 echo "$as_me: failed program was:" >&5
16919 sed 's/^/| /' conftest.$ac_ext >&5
16921 ac_cv_header_time_altzone=no
16923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16926 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
16927 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
16928 if test $ac_cv_header_time_altzone = yes; then
16930 cat >>confdefs.h <<\_ACEOF
16931 #define HAVE_ALTZONE 1
16932 _ACEOF
16936 was_it_defined=no
16937 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
16938 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
16939 cat >conftest.$ac_ext <<_ACEOF
16940 /* confdefs.h. */
16941 _ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h. */
16946 #include <sys/types.h>
16947 #include <sys/select.h>
16948 #include <sys/time.h>
16951 main ()
16955 return 0;
16957 _ACEOF
16958 rm -f conftest.$ac_objext
16959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16960 (eval $ac_compile) 2>conftest.er1
16961 ac_status=$?
16962 grep -v '^ *+' conftest.er1 >conftest.err
16963 rm -f conftest.er1
16964 cat conftest.err >&5
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); } &&
16967 { ac_try='test -z "$ac_c_werror_flag"
16968 || test ! -s conftest.err'
16969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16970 (eval $ac_try) 2>&5
16971 ac_status=$?
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); }; } &&
16974 { ac_try='test -s conftest.$ac_objext'
16975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16976 (eval $ac_try) 2>&5
16977 ac_status=$?
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); }; }; then
16982 cat >>confdefs.h <<\_ACEOF
16983 #define SYS_SELECT_WITH_SYS_TIME 1
16984 _ACEOF
16986 was_it_defined=yes
16988 else
16989 echo "$as_me: failed program was:" >&5
16990 sed 's/^/| /' conftest.$ac_ext >&5
16993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16994 echo "$as_me:$LINENO: result: $was_it_defined" >&5
16995 echo "${ECHO_T}$was_it_defined" >&6
16997 echo "$as_me:$LINENO: checking for addrinfo" >&5
16998 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
16999 if test "${ac_cv_struct_addrinfo+set}" = set; then
17000 echo $ECHO_N "(cached) $ECHO_C" >&6
17001 else
17002 cat >conftest.$ac_ext <<_ACEOF
17003 /* confdefs.h. */
17004 _ACEOF
17005 cat confdefs.h >>conftest.$ac_ext
17006 cat >>conftest.$ac_ext <<_ACEOF
17007 /* end confdefs.h. */
17009 # include <netdb.h>
17011 main ()
17013 struct addrinfo a
17015 return 0;
17017 _ACEOF
17018 rm -f conftest.$ac_objext
17019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17020 (eval $ac_compile) 2>conftest.er1
17021 ac_status=$?
17022 grep -v '^ *+' conftest.er1 >conftest.err
17023 rm -f conftest.er1
17024 cat conftest.err >&5
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); } &&
17027 { ac_try='test -z "$ac_c_werror_flag"
17028 || test ! -s conftest.err'
17029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17030 (eval $ac_try) 2>&5
17031 ac_status=$?
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); }; } &&
17034 { ac_try='test -s conftest.$ac_objext'
17035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036 (eval $ac_try) 2>&5
17037 ac_status=$?
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }; }; then
17040 ac_cv_struct_addrinfo=yes
17041 else
17042 echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17045 ac_cv_struct_addrinfo=no
17047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17050 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
17051 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
17052 if test $ac_cv_struct_addrinfo = yes; then
17054 cat >>confdefs.h <<\_ACEOF
17055 #define HAVE_ADDRINFO 1
17056 _ACEOF
17060 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
17061 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
17062 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
17063 echo $ECHO_N "(cached) $ECHO_C" >&6
17064 else
17065 cat >conftest.$ac_ext <<_ACEOF
17066 /* confdefs.h. */
17067 _ACEOF
17068 cat confdefs.h >>conftest.$ac_ext
17069 cat >>conftest.$ac_ext <<_ACEOF
17070 /* end confdefs.h. */
17072 # include <sys/types.h>
17073 # include <sys/socket.h>
17075 main ()
17077 struct sockaddr_storage s
17079 return 0;
17081 _ACEOF
17082 rm -f conftest.$ac_objext
17083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17084 (eval $ac_compile) 2>conftest.er1
17085 ac_status=$?
17086 grep -v '^ *+' conftest.er1 >conftest.err
17087 rm -f conftest.er1
17088 cat conftest.err >&5
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); } &&
17091 { ac_try='test -z "$ac_c_werror_flag"
17092 || test ! -s conftest.err'
17093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17094 (eval $ac_try) 2>&5
17095 ac_status=$?
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); }; } &&
17098 { ac_try='test -s conftest.$ac_objext'
17099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17100 (eval $ac_try) 2>&5
17101 ac_status=$?
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; }; then
17104 ac_cv_struct_sockaddr_storage=yes
17105 else
17106 echo "$as_me: failed program was:" >&5
17107 sed 's/^/| /' conftest.$ac_ext >&5
17109 ac_cv_struct_sockaddr_storage=no
17111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17114 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
17115 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
17116 if test $ac_cv_struct_sockaddr_storage = yes; then
17118 cat >>confdefs.h <<\_ACEOF
17119 #define HAVE_SOCKADDR_STORAGE 1
17120 _ACEOF
17124 # checks for compiler characteristics
17127 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
17128 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
17129 if test "${ac_cv_c_char_unsigned+set}" = set; then
17130 echo $ECHO_N "(cached) $ECHO_C" >&6
17131 else
17132 cat >conftest.$ac_ext <<_ACEOF
17133 /* confdefs.h. */
17134 _ACEOF
17135 cat confdefs.h >>conftest.$ac_ext
17136 cat >>conftest.$ac_ext <<_ACEOF
17137 /* end confdefs.h. */
17138 $ac_includes_default
17140 main ()
17142 static int test_array [1 - 2 * !(((char) -1) < 0)];
17143 test_array [0] = 0
17146 return 0;
17148 _ACEOF
17149 rm -f conftest.$ac_objext
17150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17151 (eval $ac_compile) 2>conftest.er1
17152 ac_status=$?
17153 grep -v '^ *+' conftest.er1 >conftest.err
17154 rm -f conftest.er1
17155 cat conftest.err >&5
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); } &&
17158 { ac_try='test -z "$ac_c_werror_flag"
17159 || test ! -s conftest.err'
17160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17161 (eval $ac_try) 2>&5
17162 ac_status=$?
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); }; } &&
17165 { ac_try='test -s conftest.$ac_objext'
17166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167 (eval $ac_try) 2>&5
17168 ac_status=$?
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); }; }; then
17171 ac_cv_c_char_unsigned=no
17172 else
17173 echo "$as_me: failed program was:" >&5
17174 sed 's/^/| /' conftest.$ac_ext >&5
17176 ac_cv_c_char_unsigned=yes
17178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17180 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
17181 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
17182 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
17183 cat >>confdefs.h <<\_ACEOF
17184 #define __CHAR_UNSIGNED__ 1
17185 _ACEOF
17189 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17190 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17191 if test "${ac_cv_c_const+set}" = set; then
17192 echo $ECHO_N "(cached) $ECHO_C" >&6
17193 else
17194 cat >conftest.$ac_ext <<_ACEOF
17195 /* confdefs.h. */
17196 _ACEOF
17197 cat confdefs.h >>conftest.$ac_ext
17198 cat >>conftest.$ac_ext <<_ACEOF
17199 /* end confdefs.h. */
17202 main ()
17204 /* FIXME: Include the comments suggested by Paul. */
17205 #ifndef __cplusplus
17206 /* Ultrix mips cc rejects this. */
17207 typedef int charset[2];
17208 const charset x;
17209 /* SunOS 4.1.1 cc rejects this. */
17210 char const *const *ccp;
17211 char **p;
17212 /* NEC SVR4.0.2 mips cc rejects this. */
17213 struct point {int x, y;};
17214 static struct point const zero = {0,0};
17215 /* AIX XL C 1.02.0.0 rejects this.
17216 It does not let you subtract one const X* pointer from another in
17217 an arm of an if-expression whose if-part is not a constant
17218 expression */
17219 const char *g = "string";
17220 ccp = &g + (g ? g-g : 0);
17221 /* HPUX 7.0 cc rejects these. */
17222 ++ccp;
17223 p = (char**) ccp;
17224 ccp = (char const *const *) p;
17225 { /* SCO 3.2v4 cc rejects this. */
17226 char *t;
17227 char const *s = 0 ? (char *) 0 : (char const *) 0;
17229 *t++ = 0;
17231 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17232 int x[] = {25, 17};
17233 const int *foo = &x[0];
17234 ++foo;
17236 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17237 typedef const int *iptr;
17238 iptr p = 0;
17239 ++p;
17241 { /* AIX XL C 1.02.0.0 rejects this saying
17242 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17243 struct s { int j; const int *ap[3]; };
17244 struct s *b; b->j = 5;
17246 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17247 const int foo = 10;
17249 #endif
17252 return 0;
17254 _ACEOF
17255 rm -f conftest.$ac_objext
17256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17257 (eval $ac_compile) 2>conftest.er1
17258 ac_status=$?
17259 grep -v '^ *+' conftest.er1 >conftest.err
17260 rm -f conftest.er1
17261 cat conftest.err >&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); } &&
17264 { ac_try='test -z "$ac_c_werror_flag"
17265 || test ! -s conftest.err'
17266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267 (eval $ac_try) 2>&5
17268 ac_status=$?
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); }; } &&
17271 { ac_try='test -s conftest.$ac_objext'
17272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17273 (eval $ac_try) 2>&5
17274 ac_status=$?
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); }; }; then
17277 ac_cv_c_const=yes
17278 else
17279 echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17282 ac_cv_c_const=no
17284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17286 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17287 echo "${ECHO_T}$ac_cv_c_const" >&6
17288 if test $ac_cv_c_const = no; then
17290 cat >>confdefs.h <<\_ACEOF
17291 #define const
17292 _ACEOF
17297 works=no
17298 echo "$as_me:$LINENO: checking for working volatile" >&5
17299 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
17300 cat >conftest.$ac_ext <<_ACEOF
17301 /* confdefs.h. */
17302 _ACEOF
17303 cat confdefs.h >>conftest.$ac_ext
17304 cat >>conftest.$ac_ext <<_ACEOF
17305 /* end confdefs.h. */
17308 main ()
17310 volatile int x; x = 0;
17312 return 0;
17314 _ACEOF
17315 rm -f conftest.$ac_objext
17316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17317 (eval $ac_compile) 2>conftest.er1
17318 ac_status=$?
17319 grep -v '^ *+' conftest.er1 >conftest.err
17320 rm -f conftest.er1
17321 cat conftest.err >&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } &&
17324 { ac_try='test -z "$ac_c_werror_flag"
17325 || test ! -s conftest.err'
17326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17327 (eval $ac_try) 2>&5
17328 ac_status=$?
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); }; } &&
17331 { ac_try='test -s conftest.$ac_objext'
17332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333 (eval $ac_try) 2>&5
17334 ac_status=$?
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; }; then
17337 works=yes
17338 else
17339 echo "$as_me: failed program was:" >&5
17340 sed 's/^/| /' conftest.$ac_ext >&5
17343 cat >>confdefs.h <<\_ACEOF
17344 #define volatile
17345 _ACEOF
17349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17350 echo "$as_me:$LINENO: result: $works" >&5
17351 echo "${ECHO_T}$works" >&6
17353 works=no
17354 echo "$as_me:$LINENO: checking for working signed char" >&5
17355 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
17356 cat >conftest.$ac_ext <<_ACEOF
17357 /* confdefs.h. */
17358 _ACEOF
17359 cat confdefs.h >>conftest.$ac_ext
17360 cat >>conftest.$ac_ext <<_ACEOF
17361 /* end confdefs.h. */
17364 main ()
17366 signed char c;
17368 return 0;
17370 _ACEOF
17371 rm -f conftest.$ac_objext
17372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17373 (eval $ac_compile) 2>conftest.er1
17374 ac_status=$?
17375 grep -v '^ *+' conftest.er1 >conftest.err
17376 rm -f conftest.er1
17377 cat conftest.err >&5
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); } &&
17380 { ac_try='test -z "$ac_c_werror_flag"
17381 || test ! -s conftest.err'
17382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17383 (eval $ac_try) 2>&5
17384 ac_status=$?
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); }; } &&
17387 { ac_try='test -s conftest.$ac_objext'
17388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17389 (eval $ac_try) 2>&5
17390 ac_status=$?
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); }; }; then
17393 works=yes
17394 else
17395 echo "$as_me: failed program was:" >&5
17396 sed 's/^/| /' conftest.$ac_ext >&5
17399 cat >>confdefs.h <<\_ACEOF
17400 #define signed
17401 _ACEOF
17405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17406 echo "$as_me:$LINENO: result: $works" >&5
17407 echo "${ECHO_T}$works" >&6
17409 have_prototypes=no
17410 echo "$as_me:$LINENO: checking for prototypes" >&5
17411 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
17412 cat >conftest.$ac_ext <<_ACEOF
17413 /* confdefs.h. */
17414 _ACEOF
17415 cat confdefs.h >>conftest.$ac_ext
17416 cat >>conftest.$ac_ext <<_ACEOF
17417 /* end confdefs.h. */
17418 int foo(int x) { return 0; }
17420 main ()
17422 return foo(10);
17424 return 0;
17426 _ACEOF
17427 rm -f conftest.$ac_objext
17428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17429 (eval $ac_compile) 2>conftest.er1
17430 ac_status=$?
17431 grep -v '^ *+' conftest.er1 >conftest.err
17432 rm -f conftest.er1
17433 cat conftest.err >&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } &&
17436 { ac_try='test -z "$ac_c_werror_flag"
17437 || test ! -s conftest.err'
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); }; } &&
17443 { ac_try='test -s conftest.$ac_objext'
17444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17445 (eval $ac_try) 2>&5
17446 ac_status=$?
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); }; }; then
17451 cat >>confdefs.h <<\_ACEOF
17452 #define HAVE_PROTOTYPES 1
17453 _ACEOF
17455 have_prototypes=yes
17457 else
17458 echo "$as_me: failed program was:" >&5
17459 sed 's/^/| /' conftest.$ac_ext >&5
17462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17463 echo "$as_me:$LINENO: result: $have_prototypes" >&5
17464 echo "${ECHO_T}$have_prototypes" >&6
17466 works=no
17467 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
17468 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
17469 cat >conftest.$ac_ext <<_ACEOF
17470 /* confdefs.h. */
17471 _ACEOF
17472 cat confdefs.h >>conftest.$ac_ext
17473 cat >>conftest.$ac_ext <<_ACEOF
17474 /* end confdefs.h. */
17476 #include <stdarg.h>
17477 int foo(int x, ...) {
17478 va_list va;
17479 va_start(va, x);
17480 va_arg(va, int);
17481 va_arg(va, char *);
17482 va_arg(va, double);
17483 return 0;
17487 main ()
17489 return foo(10, "", 3.14);
17491 return 0;
17493 _ACEOF
17494 rm -f conftest.$ac_objext
17495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17496 (eval $ac_compile) 2>conftest.er1
17497 ac_status=$?
17498 grep -v '^ *+' conftest.er1 >conftest.err
17499 rm -f conftest.er1
17500 cat conftest.err >&5
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); } &&
17503 { ac_try='test -z "$ac_c_werror_flag"
17504 || test ! -s conftest.err'
17505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17506 (eval $ac_try) 2>&5
17507 ac_status=$?
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); }; } &&
17510 { ac_try='test -s conftest.$ac_objext'
17511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17512 (eval $ac_try) 2>&5
17513 ac_status=$?
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); }; }; then
17518 cat >>confdefs.h <<\_ACEOF
17519 #define HAVE_STDARG_PROTOTYPES 1
17520 _ACEOF
17522 works=yes
17524 else
17525 echo "$as_me: failed program was:" >&5
17526 sed 's/^/| /' conftest.$ac_ext >&5
17529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17530 echo "$as_me:$LINENO: result: $works" >&5
17531 echo "${ECHO_T}$works" >&6
17533 # check for socketpair
17534 echo "$as_me:$LINENO: checking for socketpair" >&5
17535 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
17536 cat >conftest.$ac_ext <<_ACEOF
17537 /* confdefs.h. */
17538 _ACEOF
17539 cat confdefs.h >>conftest.$ac_ext
17540 cat >>conftest.$ac_ext <<_ACEOF
17541 /* end confdefs.h. */
17543 #include <sys/types.h>
17544 #include <sys/socket.h>
17547 main ()
17549 void *x=socketpair
17551 return 0;
17553 _ACEOF
17554 rm -f conftest.$ac_objext
17555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17556 (eval $ac_compile) 2>conftest.er1
17557 ac_status=$?
17558 grep -v '^ *+' conftest.er1 >conftest.err
17559 rm -f conftest.er1
17560 cat conftest.err >&5
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); } &&
17563 { ac_try='test -z "$ac_c_werror_flag"
17564 || test ! -s conftest.err'
17565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566 (eval $ac_try) 2>&5
17567 ac_status=$?
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; } &&
17570 { ac_try='test -s conftest.$ac_objext'
17571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572 (eval $ac_try) 2>&5
17573 ac_status=$?
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; }; then
17577 cat >>confdefs.h <<\_ACEOF
17578 #define HAVE_SOCKETPAIR 1
17579 _ACEOF
17581 echo "$as_me:$LINENO: result: yes" >&5
17582 echo "${ECHO_T}yes" >&6
17583 else
17584 echo "$as_me: failed program was:" >&5
17585 sed 's/^/| /' conftest.$ac_ext >&5
17587 echo "$as_me:$LINENO: result: no" >&5
17588 echo "${ECHO_T}no" >&6
17591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17593 # check if sockaddr has sa_len member
17594 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
17595 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
17596 cat >conftest.$ac_ext <<_ACEOF
17597 /* confdefs.h. */
17598 _ACEOF
17599 cat confdefs.h >>conftest.$ac_ext
17600 cat >>conftest.$ac_ext <<_ACEOF
17601 /* end confdefs.h. */
17602 #include <sys/types.h>
17603 #include <sys/socket.h>
17605 main ()
17607 struct sockaddr x;
17608 x.sa_len = 0;
17610 return 0;
17612 _ACEOF
17613 rm -f conftest.$ac_objext
17614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17615 (eval $ac_compile) 2>conftest.er1
17616 ac_status=$?
17617 grep -v '^ *+' conftest.er1 >conftest.err
17618 rm -f conftest.er1
17619 cat conftest.err >&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); } &&
17622 { ac_try='test -z "$ac_c_werror_flag"
17623 || test ! -s conftest.err'
17624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17625 (eval $ac_try) 2>&5
17626 ac_status=$?
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); }; } &&
17629 { ac_try='test -s conftest.$ac_objext'
17630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17631 (eval $ac_try) 2>&5
17632 ac_status=$?
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); }; }; then
17635 echo "$as_me:$LINENO: result: yes" >&5
17636 echo "${ECHO_T}yes" >&6
17638 cat >>confdefs.h <<\_ACEOF
17639 #define HAVE_SOCKADDR_SA_LEN 1
17640 _ACEOF
17642 else
17643 echo "$as_me: failed program was:" >&5
17644 sed 's/^/| /' conftest.$ac_ext >&5
17646 echo "$as_me:$LINENO: result: no" >&5
17647 echo "${ECHO_T}no" >&6
17649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17651 va_list_is_array=no
17652 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
17653 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
17654 cat >conftest.$ac_ext <<_ACEOF
17655 /* confdefs.h. */
17656 _ACEOF
17657 cat confdefs.h >>conftest.$ac_ext
17658 cat >>conftest.$ac_ext <<_ACEOF
17659 /* end confdefs.h. */
17661 #ifdef HAVE_STDARG_PROTOTYPES
17662 #include <stdarg.h>
17663 #else
17664 #include <varargs.h>
17665 #endif
17668 main ()
17670 va_list list1, list2; list1 = list2;
17672 return 0;
17674 _ACEOF
17675 rm -f conftest.$ac_objext
17676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17677 (eval $ac_compile) 2>conftest.er1
17678 ac_status=$?
17679 grep -v '^ *+' conftest.er1 >conftest.err
17680 rm -f conftest.er1
17681 cat conftest.err >&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); } &&
17684 { ac_try='test -z "$ac_c_werror_flag"
17685 || test ! -s conftest.err'
17686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17687 (eval $ac_try) 2>&5
17688 ac_status=$?
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); }; } &&
17691 { ac_try='test -s conftest.$ac_objext'
17692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693 (eval $ac_try) 2>&5
17694 ac_status=$?
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; }; then
17698 else
17699 echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.$ac_ext >&5
17704 cat >>confdefs.h <<\_ACEOF
17705 #define VA_LIST_IS_ARRAY 1
17706 _ACEOF
17708 va_list_is_array=yes
17711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17712 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
17713 echo "${ECHO_T}$va_list_is_array" >&6
17715 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
17719 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
17720 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
17721 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
17722 echo $ECHO_N "(cached) $ECHO_C" >&6
17723 else
17724 cat >conftest.$ac_ext <<_ACEOF
17725 /* confdefs.h. */
17726 _ACEOF
17727 cat confdefs.h >>conftest.$ac_ext
17728 cat >>conftest.$ac_ext <<_ACEOF
17729 /* end confdefs.h. */
17730 /* System header to define __stub macros and hopefully few prototypes,
17731 which can conflict with char gethostbyname_r (); below.
17732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17733 <limits.h> exists even on freestanding compilers. Under hpux,
17734 including <limits.h> includes <sys/time.h> and causes problems
17735 checking for functions defined therein. */
17736 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
17737 # include <limits.h>
17738 #else
17739 # include <assert.h>
17740 #endif
17741 /* Override any gcc2 internal prototype to avoid an error. */
17742 #ifdef __cplusplus
17743 extern "C"
17745 #endif
17746 /* We use char because int might match the return type of a gcc2
17747 builtin and then its argument prototype would still apply. */
17748 char gethostbyname_r ();
17749 /* The GNU C library defines this for functions which it implements
17750 to always fail with ENOSYS. Some functions are actually named
17751 something starting with __ and the normal name is an alias. */
17752 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
17753 choke me
17754 #else
17755 char (*f) () = gethostbyname_r;
17756 #endif
17757 #ifdef __cplusplus
17759 #endif
17762 main ()
17764 return f != gethostbyname_r;
17766 return 0;
17768 _ACEOF
17769 rm -f conftest.$ac_objext conftest$ac_exeext
17770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17771 (eval $ac_link) 2>conftest.er1
17772 ac_status=$?
17773 grep -v '^ *+' conftest.er1 >conftest.err
17774 rm -f conftest.er1
17775 cat conftest.err >&5
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); } &&
17778 { ac_try='test -z "$ac_c_werror_flag"
17779 || test ! -s conftest.err'
17780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17781 (eval $ac_try) 2>&5
17782 ac_status=$?
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); }; } &&
17785 { ac_try='test -s conftest$ac_exeext'
17786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17787 (eval $ac_try) 2>&5
17788 ac_status=$?
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); }; }; then
17791 ac_cv_func_gethostbyname_r=yes
17792 else
17793 echo "$as_me: failed program was:" >&5
17794 sed 's/^/| /' conftest.$ac_ext >&5
17796 ac_cv_func_gethostbyname_r=no
17798 rm -f conftest.err conftest.$ac_objext \
17799 conftest$ac_exeext conftest.$ac_ext
17801 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
17802 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
17803 if test $ac_cv_func_gethostbyname_r = yes; then
17805 cat >>confdefs.h <<\_ACEOF
17806 #define HAVE_GETHOSTBYNAME_R 1
17807 _ACEOF
17809 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
17810 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
17811 OLD_CFLAGS=$CFLAGS
17812 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
17813 cat >conftest.$ac_ext <<_ACEOF
17814 /* confdefs.h. */
17815 _ACEOF
17816 cat confdefs.h >>conftest.$ac_ext
17817 cat >>conftest.$ac_ext <<_ACEOF
17818 /* end confdefs.h. */
17820 # include <netdb.h>
17823 main ()
17826 char *name;
17827 struct hostent *he, *res;
17828 char buffer[2048];
17829 int buflen = 2048;
17830 int h_errnop;
17832 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
17835 return 0;
17837 _ACEOF
17838 rm -f conftest.$ac_objext
17839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17840 (eval $ac_compile) 2>conftest.er1
17841 ac_status=$?
17842 grep -v '^ *+' conftest.er1 >conftest.err
17843 rm -f conftest.er1
17844 cat conftest.err >&5
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); } &&
17847 { ac_try='test -z "$ac_c_werror_flag"
17848 || test ! -s conftest.err'
17849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850 (eval $ac_try) 2>&5
17851 ac_status=$?
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; } &&
17854 { ac_try='test -s conftest.$ac_objext'
17855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856 (eval $ac_try) 2>&5
17857 ac_status=$?
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; }; then
17861 cat >>confdefs.h <<\_ACEOF
17862 #define HAVE_GETHOSTBYNAME_R 1
17863 _ACEOF
17866 cat >>confdefs.h <<\_ACEOF
17867 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
17868 _ACEOF
17870 echo "$as_me:$LINENO: result: yes" >&5
17871 echo "${ECHO_T}yes" >&6
17873 else
17874 echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17878 echo "$as_me:$LINENO: result: no" >&5
17879 echo "${ECHO_T}no" >&6
17880 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
17881 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
17882 cat >conftest.$ac_ext <<_ACEOF
17883 /* confdefs.h. */
17884 _ACEOF
17885 cat confdefs.h >>conftest.$ac_ext
17886 cat >>conftest.$ac_ext <<_ACEOF
17887 /* end confdefs.h. */
17889 # include <netdb.h>
17892 main ()
17895 char *name;
17896 struct hostent *he;
17897 char buffer[2048];
17898 int buflen = 2048;
17899 int h_errnop;
17901 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
17904 return 0;
17906 _ACEOF
17907 rm -f conftest.$ac_objext
17908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17909 (eval $ac_compile) 2>conftest.er1
17910 ac_status=$?
17911 grep -v '^ *+' conftest.er1 >conftest.err
17912 rm -f conftest.er1
17913 cat conftest.err >&5
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); } &&
17916 { ac_try='test -z "$ac_c_werror_flag"
17917 || test ! -s conftest.err'
17918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17919 (eval $ac_try) 2>&5
17920 ac_status=$?
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); }; } &&
17923 { ac_try='test -s conftest.$ac_objext'
17924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17925 (eval $ac_try) 2>&5
17926 ac_status=$?
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); }; }; then
17930 cat >>confdefs.h <<\_ACEOF
17931 #define HAVE_GETHOSTBYNAME_R 1
17932 _ACEOF
17935 cat >>confdefs.h <<\_ACEOF
17936 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
17937 _ACEOF
17939 echo "$as_me:$LINENO: result: yes" >&5
17940 echo "${ECHO_T}yes" >&6
17942 else
17943 echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17947 echo "$as_me:$LINENO: result: no" >&5
17948 echo "${ECHO_T}no" >&6
17949 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
17950 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
17951 cat >conftest.$ac_ext <<_ACEOF
17952 /* confdefs.h. */
17953 _ACEOF
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h. */
17958 # include <netdb.h>
17961 main ()
17964 char *name;
17965 struct hostent *he;
17966 struct hostent_data data;
17968 (void) gethostbyname_r(name, he, &data);
17971 return 0;
17973 _ACEOF
17974 rm -f conftest.$ac_objext
17975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17976 (eval $ac_compile) 2>conftest.er1
17977 ac_status=$?
17978 grep -v '^ *+' conftest.er1 >conftest.err
17979 rm -f conftest.er1
17980 cat conftest.err >&5
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); } &&
17983 { ac_try='test -z "$ac_c_werror_flag"
17984 || test ! -s conftest.err'
17985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17986 (eval $ac_try) 2>&5
17987 ac_status=$?
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); }; } &&
17990 { ac_try='test -s conftest.$ac_objext'
17991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17992 (eval $ac_try) 2>&5
17993 ac_status=$?
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); }; }; then
17997 cat >>confdefs.h <<\_ACEOF
17998 #define HAVE_GETHOSTBYNAME_R 1
17999 _ACEOF
18002 cat >>confdefs.h <<\_ACEOF
18003 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
18004 _ACEOF
18006 echo "$as_me:$LINENO: result: yes" >&5
18007 echo "${ECHO_T}yes" >&6
18009 else
18010 echo "$as_me: failed program was:" >&5
18011 sed 's/^/| /' conftest.$ac_ext >&5
18014 echo "$as_me:$LINENO: result: no" >&5
18015 echo "${ECHO_T}no" >&6
18018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18025 CFLAGS=$OLD_CFLAGS
18027 else
18030 for ac_func in gethostbyname
18032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18033 echo "$as_me:$LINENO: checking for $ac_func" >&5
18034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18035 if eval "test \"\${$as_ac_var+set}\" = set"; then
18036 echo $ECHO_N "(cached) $ECHO_C" >&6
18037 else
18038 cat >conftest.$ac_ext <<_ACEOF
18039 /* confdefs.h. */
18040 _ACEOF
18041 cat confdefs.h >>conftest.$ac_ext
18042 cat >>conftest.$ac_ext <<_ACEOF
18043 /* end confdefs.h. */
18044 /* System header to define __stub macros and hopefully few prototypes,
18045 which can conflict with char $ac_func (); below.
18046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18047 <limits.h> exists even on freestanding compilers. Under hpux,
18048 including <limits.h> includes <sys/time.h> and causes problems
18049 checking for functions defined therein. */
18050 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
18051 # include <limits.h>
18052 #else
18053 # include <assert.h>
18054 #endif
18055 /* Override any gcc2 internal prototype to avoid an error. */
18056 #ifdef __cplusplus
18057 extern "C"
18059 #endif
18060 /* We use char because int might match the return type of a gcc2
18061 builtin and then its argument prototype would still apply. */
18062 char $ac_func ();
18063 /* The GNU C library defines this for functions which it implements
18064 to always fail with ENOSYS. Some functions are actually named
18065 something starting with __ and the normal name is an alias. */
18066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18067 choke me
18068 #else
18069 char (*f) () = $ac_func;
18070 #endif
18071 #ifdef __cplusplus
18073 #endif
18076 main ()
18078 return f != $ac_func;
18080 return 0;
18082 _ACEOF
18083 rm -f conftest.$ac_objext conftest$ac_exeext
18084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18085 (eval $ac_link) 2>conftest.er1
18086 ac_status=$?
18087 grep -v '^ *+' conftest.er1 >conftest.err
18088 rm -f conftest.er1
18089 cat conftest.err >&5
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); } &&
18092 { ac_try='test -z "$ac_c_werror_flag"
18093 || test ! -s conftest.err'
18094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18095 (eval $ac_try) 2>&5
18096 ac_status=$?
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); }; } &&
18099 { ac_try='test -s conftest$ac_exeext'
18100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18101 (eval $ac_try) 2>&5
18102 ac_status=$?
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); }; }; then
18105 eval "$as_ac_var=yes"
18106 else
18107 echo "$as_me: failed program was:" >&5
18108 sed 's/^/| /' conftest.$ac_ext >&5
18110 eval "$as_ac_var=no"
18112 rm -f conftest.err conftest.$ac_objext \
18113 conftest$ac_exeext conftest.$ac_ext
18115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18116 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18117 if test `eval echo '${'$as_ac_var'}'` = yes; then
18118 cat >>confdefs.h <<_ACEOF
18119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18120 _ACEOF
18123 done
18134 # checks for system services
18135 # (none yet)
18137 # Linux requires this for correct f.p. operations
18138 echo "$as_me:$LINENO: checking for __fpu_control" >&5
18139 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
18140 if test "${ac_cv_func___fpu_control+set}" = set; then
18141 echo $ECHO_N "(cached) $ECHO_C" >&6
18142 else
18143 cat >conftest.$ac_ext <<_ACEOF
18144 /* confdefs.h. */
18145 _ACEOF
18146 cat confdefs.h >>conftest.$ac_ext
18147 cat >>conftest.$ac_ext <<_ACEOF
18148 /* end confdefs.h. */
18149 /* System header to define __stub macros and hopefully few prototypes,
18150 which can conflict with char __fpu_control (); below.
18151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18152 <limits.h> exists even on freestanding compilers. Under hpux,
18153 including <limits.h> includes <sys/time.h> and causes problems
18154 checking for functions defined therein. */
18155 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
18156 # include <limits.h>
18157 #else
18158 # include <assert.h>
18159 #endif
18160 /* Override any gcc2 internal prototype to avoid an error. */
18161 #ifdef __cplusplus
18162 extern "C"
18164 #endif
18165 /* We use char because int might match the return type of a gcc2
18166 builtin and then its argument prototype would still apply. */
18167 char __fpu_control ();
18168 /* The GNU C library defines this for functions which it implements
18169 to always fail with ENOSYS. Some functions are actually named
18170 something starting with __ and the normal name is an alias. */
18171 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
18172 choke me
18173 #else
18174 char (*f) () = __fpu_control;
18175 #endif
18176 #ifdef __cplusplus
18178 #endif
18181 main ()
18183 return f != __fpu_control;
18185 return 0;
18187 _ACEOF
18188 rm -f conftest.$ac_objext conftest$ac_exeext
18189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18190 (eval $ac_link) 2>conftest.er1
18191 ac_status=$?
18192 grep -v '^ *+' conftest.er1 >conftest.err
18193 rm -f conftest.er1
18194 cat conftest.err >&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); } &&
18197 { ac_try='test -z "$ac_c_werror_flag"
18198 || test ! -s conftest.err'
18199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18200 (eval $ac_try) 2>&5
18201 ac_status=$?
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; } &&
18204 { ac_try='test -s conftest$ac_exeext'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; }; then
18210 ac_cv_func___fpu_control=yes
18211 else
18212 echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.$ac_ext >&5
18215 ac_cv_func___fpu_control=no
18217 rm -f conftest.err conftest.$ac_objext \
18218 conftest$ac_exeext conftest.$ac_ext
18220 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
18221 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
18222 if test $ac_cv_func___fpu_control = yes; then
18224 else
18226 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
18227 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
18228 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
18229 echo $ECHO_N "(cached) $ECHO_C" >&6
18230 else
18231 ac_check_lib_save_LIBS=$LIBS
18232 LIBS="-lieee $LIBS"
18233 cat >conftest.$ac_ext <<_ACEOF
18234 /* confdefs.h. */
18235 _ACEOF
18236 cat confdefs.h >>conftest.$ac_ext
18237 cat >>conftest.$ac_ext <<_ACEOF
18238 /* end confdefs.h. */
18240 /* Override any gcc2 internal prototype to avoid an error. */
18241 #ifdef __cplusplus
18242 extern "C"
18243 #endif
18244 /* We use char because int might match the return type of a gcc2
18245 builtin and then its argument prototype would still apply. */
18246 char __fpu_control ();
18248 main ()
18250 __fpu_control ();
18252 return 0;
18254 _ACEOF
18255 rm -f conftest.$ac_objext conftest$ac_exeext
18256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18257 (eval $ac_link) 2>conftest.er1
18258 ac_status=$?
18259 grep -v '^ *+' conftest.er1 >conftest.err
18260 rm -f conftest.er1
18261 cat conftest.err >&5
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); } &&
18264 { ac_try='test -z "$ac_c_werror_flag"
18265 || test ! -s conftest.err'
18266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18267 (eval $ac_try) 2>&5
18268 ac_status=$?
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); }; } &&
18271 { ac_try='test -s conftest$ac_exeext'
18272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18273 (eval $ac_try) 2>&5
18274 ac_status=$?
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); }; }; then
18277 ac_cv_lib_ieee___fpu_control=yes
18278 else
18279 echo "$as_me: failed program was:" >&5
18280 sed 's/^/| /' conftest.$ac_ext >&5
18282 ac_cv_lib_ieee___fpu_control=no
18284 rm -f conftest.err conftest.$ac_objext \
18285 conftest$ac_exeext conftest.$ac_ext
18286 LIBS=$ac_check_lib_save_LIBS
18288 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
18289 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
18290 if test $ac_cv_lib_ieee___fpu_control = yes; then
18291 cat >>confdefs.h <<_ACEOF
18292 #define HAVE_LIBIEEE 1
18293 _ACEOF
18295 LIBS="-lieee $LIBS"
18303 # Check for --with-fpectl
18304 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
18305 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
18307 # Check whether --with-fpectl or --without-fpectl was given.
18308 if test "${with_fpectl+set}" = set; then
18309 withval="$with_fpectl"
18311 if test "$withval" != no
18312 then
18314 cat >>confdefs.h <<\_ACEOF
18315 #define WANT_SIGFPE_HANDLER 1
18316 _ACEOF
18318 echo "$as_me:$LINENO: result: yes" >&5
18319 echo "${ECHO_T}yes" >&6
18320 else echo "$as_me:$LINENO: result: no" >&5
18321 echo "${ECHO_T}no" >&6
18323 else
18324 echo "$as_me:$LINENO: result: no" >&5
18325 echo "${ECHO_T}no" >&6
18328 # check for --with-libm=...
18330 case $ac_sys_system in
18331 Darwin) ;;
18332 BeOS) ;;
18333 *) LIBM=-lm
18334 esac
18335 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
18336 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
18338 # Check whether --with-libm or --without-libm was given.
18339 if test "${with_libm+set}" = set; then
18340 withval="$with_libm"
18342 if test "$withval" = no
18343 then LIBM=
18344 echo "$as_me:$LINENO: result: force LIBM empty" >&5
18345 echo "${ECHO_T}force LIBM empty" >&6
18346 elif test "$withval" != yes
18347 then LIBM=$withval
18348 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
18349 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
18350 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
18351 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
18352 { (exit 1); exit 1; }; }
18354 else
18355 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
18356 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
18359 # check for --with-libc=...
18361 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
18362 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
18364 # Check whether --with-libc or --without-libc was given.
18365 if test "${with_libc+set}" = set; then
18366 withval="$with_libc"
18368 if test "$withval" = no
18369 then LIBC=
18370 echo "$as_me:$LINENO: result: force LIBC empty" >&5
18371 echo "${ECHO_T}force LIBC empty" >&6
18372 elif test "$withval" != yes
18373 then LIBC=$withval
18374 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
18375 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
18376 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
18377 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
18378 { (exit 1); exit 1; }; }
18380 else
18381 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
18382 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
18385 # check for hypot() in math library
18386 LIBS_SAVE=$LIBS
18387 LIBS="$LIBS $LIBM"
18389 for ac_func in hypot
18391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18392 echo "$as_me:$LINENO: checking for $ac_func" >&5
18393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18394 if eval "test \"\${$as_ac_var+set}\" = set"; then
18395 echo $ECHO_N "(cached) $ECHO_C" >&6
18396 else
18397 cat >conftest.$ac_ext <<_ACEOF
18398 /* confdefs.h. */
18399 _ACEOF
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h. */
18403 /* System header to define __stub macros and hopefully few prototypes,
18404 which can conflict with char $ac_func (); below.
18405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18406 <limits.h> exists even on freestanding compilers. Under hpux,
18407 including <limits.h> includes <sys/time.h> and causes problems
18408 checking for functions defined therein. */
18409 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
18410 # include <limits.h>
18411 #else
18412 # include <assert.h>
18413 #endif
18414 /* Override any gcc2 internal prototype to avoid an error. */
18415 #ifdef __cplusplus
18416 extern "C"
18418 #endif
18419 /* We use char because int might match the return type of a gcc2
18420 builtin and then its argument prototype would still apply. */
18421 char $ac_func ();
18422 /* The GNU C library defines this for functions which it implements
18423 to always fail with ENOSYS. Some functions are actually named
18424 something starting with __ and the normal name is an alias. */
18425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18426 choke me
18427 #else
18428 char (*f) () = $ac_func;
18429 #endif
18430 #ifdef __cplusplus
18432 #endif
18435 main ()
18437 return f != $ac_func;
18439 return 0;
18441 _ACEOF
18442 rm -f conftest.$ac_objext conftest$ac_exeext
18443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18444 (eval $ac_link) 2>conftest.er1
18445 ac_status=$?
18446 grep -v '^ *+' conftest.er1 >conftest.err
18447 rm -f conftest.er1
18448 cat conftest.err >&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } &&
18451 { ac_try='test -z "$ac_c_werror_flag"
18452 || test ! -s conftest.err'
18453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18454 (eval $ac_try) 2>&5
18455 ac_status=$?
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); }; } &&
18458 { ac_try='test -s conftest$ac_exeext'
18459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460 (eval $ac_try) 2>&5
18461 ac_status=$?
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; }; then
18464 eval "$as_ac_var=yes"
18465 else
18466 echo "$as_me: failed program was:" >&5
18467 sed 's/^/| /' conftest.$ac_ext >&5
18469 eval "$as_ac_var=no"
18471 rm -f conftest.err conftest.$ac_objext \
18472 conftest$ac_exeext conftest.$ac_ext
18474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18476 if test `eval echo '${'$as_ac_var'}'` = yes; then
18477 cat >>confdefs.h <<_ACEOF
18478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18479 _ACEOF
18481 else
18482 case $LIBOBJS in
18483 "$ac_func.$ac_objext" | \
18484 *" $ac_func.$ac_objext" | \
18485 "$ac_func.$ac_objext "* | \
18486 *" $ac_func.$ac_objext "* ) ;;
18487 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
18488 esac
18491 done
18494 LIBS=$LIBS_SAVE
18496 # check for wchar.h
18497 if test "${ac_cv_header_wchar_h+set}" = set; then
18498 echo "$as_me:$LINENO: checking for wchar.h" >&5
18499 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
18500 if test "${ac_cv_header_wchar_h+set}" = set; then
18501 echo $ECHO_N "(cached) $ECHO_C" >&6
18503 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
18504 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
18505 else
18506 # Is the header compilable?
18507 echo "$as_me:$LINENO: checking wchar.h usability" >&5
18508 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
18509 cat >conftest.$ac_ext <<_ACEOF
18510 /* confdefs.h. */
18511 _ACEOF
18512 cat confdefs.h >>conftest.$ac_ext
18513 cat >>conftest.$ac_ext <<_ACEOF
18514 /* end confdefs.h. */
18515 $ac_includes_default
18516 #include <wchar.h>
18517 _ACEOF
18518 rm -f conftest.$ac_objext
18519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18520 (eval $ac_compile) 2>conftest.er1
18521 ac_status=$?
18522 grep -v '^ *+' conftest.er1 >conftest.err
18523 rm -f conftest.er1
18524 cat conftest.err >&5
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); } &&
18527 { ac_try='test -z "$ac_c_werror_flag"
18528 || test ! -s conftest.err'
18529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18530 (eval $ac_try) 2>&5
18531 ac_status=$?
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); }; } &&
18534 { ac_try='test -s conftest.$ac_objext'
18535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18536 (eval $ac_try) 2>&5
18537 ac_status=$?
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); }; }; then
18540 ac_header_compiler=yes
18541 else
18542 echo "$as_me: failed program was:" >&5
18543 sed 's/^/| /' conftest.$ac_ext >&5
18545 ac_header_compiler=no
18547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18548 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18549 echo "${ECHO_T}$ac_header_compiler" >&6
18551 # Is the header present?
18552 echo "$as_me:$LINENO: checking wchar.h presence" >&5
18553 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
18554 cat >conftest.$ac_ext <<_ACEOF
18555 /* confdefs.h. */
18556 _ACEOF
18557 cat confdefs.h >>conftest.$ac_ext
18558 cat >>conftest.$ac_ext <<_ACEOF
18559 /* end confdefs.h. */
18560 #include <wchar.h>
18561 _ACEOF
18562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18564 ac_status=$?
18565 grep -v '^ *+' conftest.er1 >conftest.err
18566 rm -f conftest.er1
18567 cat conftest.err >&5
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); } >/dev/null; then
18570 if test -s conftest.err; then
18571 ac_cpp_err=$ac_c_preproc_warn_flag
18572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18573 else
18574 ac_cpp_err=
18576 else
18577 ac_cpp_err=yes
18579 if test -z "$ac_cpp_err"; then
18580 ac_header_preproc=yes
18581 else
18582 echo "$as_me: failed program was:" >&5
18583 sed 's/^/| /' conftest.$ac_ext >&5
18585 ac_header_preproc=no
18587 rm -f conftest.err conftest.$ac_ext
18588 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18589 echo "${ECHO_T}$ac_header_preproc" >&6
18591 # So? What about this header?
18592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18593 yes:no: )
18594 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
18595 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18596 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
18597 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
18598 ac_header_preproc=yes
18600 no:yes:* )
18601 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
18602 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
18603 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
18604 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
18605 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
18606 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
18607 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
18608 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
18609 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
18610 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
18611 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
18612 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
18614 cat <<\_ASBOX
18615 ## ------------------------------------------------ ##
18616 ## Report this to http://www.python.org/python-bugs ##
18617 ## ------------------------------------------------ ##
18618 _ASBOX
18620 sed "s/^/$as_me: WARNING: /" >&2
18622 esac
18623 echo "$as_me:$LINENO: checking for wchar.h" >&5
18624 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
18625 if test "${ac_cv_header_wchar_h+set}" = set; then
18626 echo $ECHO_N "(cached) $ECHO_C" >&6
18627 else
18628 ac_cv_header_wchar_h=$ac_header_preproc
18630 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
18631 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
18634 if test $ac_cv_header_wchar_h = yes; then
18637 cat >>confdefs.h <<\_ACEOF
18638 #define HAVE_WCHAR_H 1
18639 _ACEOF
18641 wchar_h="yes"
18643 else
18644 wchar_h="no"
18650 # determine wchar_t size
18651 if test "$wchar_h" = yes
18652 then
18653 echo "$as_me:$LINENO: checking for wchar_t" >&5
18654 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
18655 if test "${ac_cv_type_wchar_t+set}" = set; then
18656 echo $ECHO_N "(cached) $ECHO_C" >&6
18657 else
18658 cat >conftest.$ac_ext <<_ACEOF
18659 /* confdefs.h. */
18660 _ACEOF
18661 cat confdefs.h >>conftest.$ac_ext
18662 cat >>conftest.$ac_ext <<_ACEOF
18663 /* end confdefs.h. */
18664 #include <wchar.h>
18667 main ()
18669 if ((wchar_t *) 0)
18670 return 0;
18671 if (sizeof (wchar_t))
18672 return 0;
18674 return 0;
18676 _ACEOF
18677 rm -f conftest.$ac_objext
18678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18679 (eval $ac_compile) 2>conftest.er1
18680 ac_status=$?
18681 grep -v '^ *+' conftest.er1 >conftest.err
18682 rm -f conftest.er1
18683 cat conftest.err >&5
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); } &&
18686 { ac_try='test -z "$ac_c_werror_flag"
18687 || test ! -s conftest.err'
18688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689 (eval $ac_try) 2>&5
18690 ac_status=$?
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); }; } &&
18693 { ac_try='test -s conftest.$ac_objext'
18694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18695 (eval $ac_try) 2>&5
18696 ac_status=$?
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; }; then
18699 ac_cv_type_wchar_t=yes
18700 else
18701 echo "$as_me: failed program was:" >&5
18702 sed 's/^/| /' conftest.$ac_ext >&5
18704 ac_cv_type_wchar_t=no
18706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18708 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
18709 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
18711 echo "$as_me:$LINENO: checking size of wchar_t" >&5
18712 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18713 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
18714 echo $ECHO_N "(cached) $ECHO_C" >&6
18715 else
18716 if test "$ac_cv_type_wchar_t" = yes; then
18717 # The cast to unsigned long works around a bug in the HP C Compiler
18718 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18719 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18720 # This bug is HP SR number 8606223364.
18721 if test "$cross_compiling" = yes; then
18722 # Depending upon the size, compute the lo and hi bounds.
18723 cat >conftest.$ac_ext <<_ACEOF
18724 /* confdefs.h. */
18725 _ACEOF
18726 cat confdefs.h >>conftest.$ac_ext
18727 cat >>conftest.$ac_ext <<_ACEOF
18728 /* end confdefs.h. */
18729 #include <wchar.h>
18732 main ()
18734 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
18735 test_array [0] = 0
18738 return 0;
18740 _ACEOF
18741 rm -f conftest.$ac_objext
18742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18743 (eval $ac_compile) 2>conftest.er1
18744 ac_status=$?
18745 grep -v '^ *+' conftest.er1 >conftest.err
18746 rm -f conftest.er1
18747 cat conftest.err >&5
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); } &&
18750 { ac_try='test -z "$ac_c_werror_flag"
18751 || test ! -s conftest.err'
18752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18753 (eval $ac_try) 2>&5
18754 ac_status=$?
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); }; } &&
18757 { ac_try='test -s conftest.$ac_objext'
18758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18759 (eval $ac_try) 2>&5
18760 ac_status=$?
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); }; }; then
18763 ac_lo=0 ac_mid=0
18764 while :; do
18765 cat >conftest.$ac_ext <<_ACEOF
18766 /* confdefs.h. */
18767 _ACEOF
18768 cat confdefs.h >>conftest.$ac_ext
18769 cat >>conftest.$ac_ext <<_ACEOF
18770 /* end confdefs.h. */
18771 #include <wchar.h>
18774 main ()
18776 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
18777 test_array [0] = 0
18780 return 0;
18782 _ACEOF
18783 rm -f conftest.$ac_objext
18784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18785 (eval $ac_compile) 2>conftest.er1
18786 ac_status=$?
18787 grep -v '^ *+' conftest.er1 >conftest.err
18788 rm -f conftest.er1
18789 cat conftest.err >&5
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); } &&
18792 { ac_try='test -z "$ac_c_werror_flag"
18793 || test ! -s conftest.err'
18794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18795 (eval $ac_try) 2>&5
18796 ac_status=$?
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); }; } &&
18799 { ac_try='test -s conftest.$ac_objext'
18800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18801 (eval $ac_try) 2>&5
18802 ac_status=$?
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); }; }; then
18805 ac_hi=$ac_mid; break
18806 else
18807 echo "$as_me: failed program was:" >&5
18808 sed 's/^/| /' conftest.$ac_ext >&5
18810 ac_lo=`expr $ac_mid + 1`
18811 if test $ac_lo -le $ac_mid; then
18812 ac_lo= ac_hi=
18813 break
18815 ac_mid=`expr 2 '*' $ac_mid + 1`
18817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18818 done
18819 else
18820 echo "$as_me: failed program was:" >&5
18821 sed 's/^/| /' conftest.$ac_ext >&5
18823 cat >conftest.$ac_ext <<_ACEOF
18824 /* confdefs.h. */
18825 _ACEOF
18826 cat confdefs.h >>conftest.$ac_ext
18827 cat >>conftest.$ac_ext <<_ACEOF
18828 /* end confdefs.h. */
18829 #include <wchar.h>
18832 main ()
18834 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
18835 test_array [0] = 0
18838 return 0;
18840 _ACEOF
18841 rm -f conftest.$ac_objext
18842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18843 (eval $ac_compile) 2>conftest.er1
18844 ac_status=$?
18845 grep -v '^ *+' conftest.er1 >conftest.err
18846 rm -f conftest.er1
18847 cat conftest.err >&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); } &&
18850 { ac_try='test -z "$ac_c_werror_flag"
18851 || test ! -s conftest.err'
18852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18853 (eval $ac_try) 2>&5
18854 ac_status=$?
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); }; } &&
18857 { ac_try='test -s conftest.$ac_objext'
18858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18859 (eval $ac_try) 2>&5
18860 ac_status=$?
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); }; }; then
18863 ac_hi=-1 ac_mid=-1
18864 while :; do
18865 cat >conftest.$ac_ext <<_ACEOF
18866 /* confdefs.h. */
18867 _ACEOF
18868 cat confdefs.h >>conftest.$ac_ext
18869 cat >>conftest.$ac_ext <<_ACEOF
18870 /* end confdefs.h. */
18871 #include <wchar.h>
18874 main ()
18876 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
18877 test_array [0] = 0
18880 return 0;
18882 _ACEOF
18883 rm -f conftest.$ac_objext
18884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18885 (eval $ac_compile) 2>conftest.er1
18886 ac_status=$?
18887 grep -v '^ *+' conftest.er1 >conftest.err
18888 rm -f conftest.er1
18889 cat conftest.err >&5
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); } &&
18892 { ac_try='test -z "$ac_c_werror_flag"
18893 || test ! -s conftest.err'
18894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895 (eval $ac_try) 2>&5
18896 ac_status=$?
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; } &&
18899 { ac_try='test -s conftest.$ac_objext'
18900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18901 (eval $ac_try) 2>&5
18902 ac_status=$?
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); }; }; then
18905 ac_lo=$ac_mid; break
18906 else
18907 echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18910 ac_hi=`expr '(' $ac_mid ')' - 1`
18911 if test $ac_mid -le $ac_hi; then
18912 ac_lo= ac_hi=
18913 break
18915 ac_mid=`expr 2 '*' $ac_mid`
18917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18918 done
18919 else
18920 echo "$as_me: failed program was:" >&5
18921 sed 's/^/| /' conftest.$ac_ext >&5
18923 ac_lo= ac_hi=
18925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18928 # Binary search between lo and hi bounds.
18929 while test "x$ac_lo" != "x$ac_hi"; do
18930 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18931 cat >conftest.$ac_ext <<_ACEOF
18932 /* confdefs.h. */
18933 _ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h. */
18937 #include <wchar.h>
18940 main ()
18942 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
18943 test_array [0] = 0
18946 return 0;
18948 _ACEOF
18949 rm -f conftest.$ac_objext
18950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18951 (eval $ac_compile) 2>conftest.er1
18952 ac_status=$?
18953 grep -v '^ *+' conftest.er1 >conftest.err
18954 rm -f conftest.er1
18955 cat conftest.err >&5
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); } &&
18958 { ac_try='test -z "$ac_c_werror_flag"
18959 || test ! -s conftest.err'
18960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18961 (eval $ac_try) 2>&5
18962 ac_status=$?
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); }; } &&
18965 { ac_try='test -s conftest.$ac_objext'
18966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18967 (eval $ac_try) 2>&5
18968 ac_status=$?
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); }; }; then
18971 ac_hi=$ac_mid
18972 else
18973 echo "$as_me: failed program was:" >&5
18974 sed 's/^/| /' conftest.$ac_ext >&5
18976 ac_lo=`expr '(' $ac_mid ')' + 1`
18978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18979 done
18980 case $ac_lo in
18981 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
18982 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
18983 See \`config.log' for more details." >&5
18984 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
18985 See \`config.log' for more details." >&2;}
18986 { (exit 1); exit 1; }; } ;;
18987 esac
18988 else
18989 if test "$cross_compiling" = yes; then
18990 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18991 See \`config.log' for more details." >&5
18992 echo "$as_me: error: cannot run test program while cross compiling
18993 See \`config.log' for more details." >&2;}
18994 { (exit 1); exit 1; }; }
18995 else
18996 cat >conftest.$ac_ext <<_ACEOF
18997 /* confdefs.h. */
18998 _ACEOF
18999 cat confdefs.h >>conftest.$ac_ext
19000 cat >>conftest.$ac_ext <<_ACEOF
19001 /* end confdefs.h. */
19002 #include <wchar.h>
19004 long longval () { return (long) (sizeof (wchar_t)); }
19005 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19006 #include <stdio.h>
19007 #include <stdlib.h>
19009 main ()
19012 FILE *f = fopen ("conftest.val", "w");
19013 if (! f)
19014 exit (1);
19015 if (((long) (sizeof (wchar_t))) < 0)
19017 long i = longval ();
19018 if (i != ((long) (sizeof (wchar_t))))
19019 exit (1);
19020 fprintf (f, "%ld\n", i);
19022 else
19024 unsigned long i = ulongval ();
19025 if (i != ((long) (sizeof (wchar_t))))
19026 exit (1);
19027 fprintf (f, "%lu\n", i);
19029 exit (ferror (f) || fclose (f) != 0);
19032 return 0;
19034 _ACEOF
19035 rm -f conftest$ac_exeext
19036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19037 (eval $ac_link) 2>&5
19038 ac_status=$?
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042 (eval $ac_try) 2>&5
19043 ac_status=$?
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); }; }; then
19046 ac_cv_sizeof_wchar_t=`cat conftest.val`
19047 else
19048 echo "$as_me: program exited with status $ac_status" >&5
19049 echo "$as_me: failed program was:" >&5
19050 sed 's/^/| /' conftest.$ac_ext >&5
19052 ( exit $ac_status )
19053 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19054 See \`config.log' for more details." >&5
19055 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19056 See \`config.log' for more details." >&2;}
19057 { (exit 1); exit 1; }; }
19059 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19062 rm -f conftest.val
19063 else
19064 ac_cv_sizeof_wchar_t=0
19067 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19068 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
19069 cat >>confdefs.h <<_ACEOF
19070 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
19071 _ACEOF
19076 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
19077 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
19078 have_ucs4_tcl=no
19079 cat >conftest.$ac_ext <<_ACEOF
19080 /* confdefs.h. */
19081 _ACEOF
19082 cat confdefs.h >>conftest.$ac_ext
19083 cat >>conftest.$ac_ext <<_ACEOF
19084 /* end confdefs.h. */
19086 #include <tcl.h>
19087 #if TCL_UTF_MAX != 6
19088 # error "NOT UCS4_TCL"
19089 #endif
19091 main ()
19095 return 0;
19097 _ACEOF
19098 rm -f conftest.$ac_objext
19099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19100 (eval $ac_compile) 2>conftest.er1
19101 ac_status=$?
19102 grep -v '^ *+' conftest.er1 >conftest.err
19103 rm -f conftest.er1
19104 cat conftest.err >&5
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); } &&
19107 { ac_try='test -z "$ac_c_werror_flag"
19108 || test ! -s conftest.err'
19109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110 (eval $ac_try) 2>&5
19111 ac_status=$?
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; } &&
19114 { ac_try='test -s conftest.$ac_objext'
19115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19116 (eval $ac_try) 2>&5
19117 ac_status=$?
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); }; }; then
19122 cat >>confdefs.h <<\_ACEOF
19123 #define HAVE_UCS4_TCL 1
19124 _ACEOF
19126 have_ucs4_tcl=yes
19128 else
19129 echo "$as_me: failed program was:" >&5
19130 sed 's/^/| /' conftest.$ac_ext >&5
19133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19134 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
19135 echo "${ECHO_T}$have_ucs4_tcl" >&6
19137 # check whether wchar_t is signed or not
19138 if test "$wchar_h" = yes
19139 then
19140 # check whether wchar_t is signed or not
19141 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
19142 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
19143 if test "${ac_cv_wchar_t_signed+set}" = set; then
19144 echo $ECHO_N "(cached) $ECHO_C" >&6
19145 else
19147 if test "$cross_compiling" = yes; then
19148 ac_cv_wchar_t_signed=yes
19149 else
19150 cat >conftest.$ac_ext <<_ACEOF
19151 /* confdefs.h. */
19152 _ACEOF
19153 cat confdefs.h >>conftest.$ac_ext
19154 cat >>conftest.$ac_ext <<_ACEOF
19155 /* end confdefs.h. */
19157 #include <wchar.h>
19158 int main()
19160 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 1 : 0);
19163 _ACEOF
19164 rm -f conftest$ac_exeext
19165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19166 (eval $ac_link) 2>&5
19167 ac_status=$?
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19171 (eval $ac_try) 2>&5
19172 ac_status=$?
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); }; }; then
19175 ac_cv_wchar_t_signed=yes
19176 else
19177 echo "$as_me: program exited with status $ac_status" >&5
19178 echo "$as_me: failed program was:" >&5
19179 sed 's/^/| /' conftest.$ac_ext >&5
19181 ( exit $ac_status )
19182 ac_cv_wchar_t_signed=no
19184 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19188 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
19189 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
19192 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
19193 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
19194 # Check whether --enable-unicode or --disable-unicode was given.
19195 if test "${enable_unicode+set}" = set; then
19196 enableval="$enable_unicode"
19198 else
19199 enable_unicode=yes
19202 if test $enable_unicode = yes
19203 then
19204 # Without any arguments, Py_UNICODE defaults to two-byte mode
19205 case "$have_ucs4_tcl" in
19206 yes) enable_unicode="ucs4"
19208 *) enable_unicode="ucs2"
19210 esac
19215 case "$enable_unicode" in
19216 ucs2) unicode_size="2"
19217 cat >>confdefs.h <<\_ACEOF
19218 #define Py_UNICODE_SIZE 2
19219 _ACEOF
19222 ucs4) unicode_size="4"
19223 cat >>confdefs.h <<\_ACEOF
19224 #define Py_UNICODE_SIZE 4
19225 _ACEOF
19228 esac
19234 if test "$enable_unicode" = "no"
19235 then
19236 UNICODE_OBJS=""
19237 echo "$as_me:$LINENO: result: not used" >&5
19238 echo "${ECHO_T}not used" >&6
19239 else
19240 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
19242 cat >>confdefs.h <<\_ACEOF
19243 #define Py_USING_UNICODE 1
19244 _ACEOF
19247 # wchar_t is only usable if it maps to an unsigned type
19248 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
19249 -a "$ac_cv_wchar_t_signed" = "no"
19250 then
19251 PY_UNICODE_TYPE="wchar_t"
19253 cat >>confdefs.h <<\_ACEOF
19254 #define HAVE_USABLE_WCHAR_T 1
19255 _ACEOF
19257 cat >>confdefs.h <<\_ACEOF
19258 #define PY_UNICODE_TYPE wchar_t
19259 _ACEOF
19261 elif test "$ac_cv_sizeof_short" = "$unicode_size"
19262 then
19263 PY_UNICODE_TYPE="unsigned short"
19264 cat >>confdefs.h <<\_ACEOF
19265 #define PY_UNICODE_TYPE unsigned short
19266 _ACEOF
19268 elif test "$ac_cv_sizeof_long" = "$unicode_size"
19269 then
19270 PY_UNICODE_TYPE="unsigned long"
19271 cat >>confdefs.h <<\_ACEOF
19272 #define PY_UNICODE_TYPE unsigned long
19273 _ACEOF
19275 else
19276 PY_UNICODE_TYPE="no type found"
19278 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
19279 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
19282 # check for endianness
19283 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19284 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19285 if test "${ac_cv_c_bigendian+set}" = set; then
19286 echo $ECHO_N "(cached) $ECHO_C" >&6
19287 else
19288 # See if sys/param.h defines the BYTE_ORDER macro.
19289 cat >conftest.$ac_ext <<_ACEOF
19290 /* confdefs.h. */
19291 _ACEOF
19292 cat confdefs.h >>conftest.$ac_ext
19293 cat >>conftest.$ac_ext <<_ACEOF
19294 /* end confdefs.h. */
19295 #include <sys/types.h>
19296 #include <sys/param.h>
19299 main ()
19301 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19302 bogus endian macros
19303 #endif
19306 return 0;
19308 _ACEOF
19309 rm -f conftest.$ac_objext
19310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19311 (eval $ac_compile) 2>conftest.er1
19312 ac_status=$?
19313 grep -v '^ *+' conftest.er1 >conftest.err
19314 rm -f conftest.er1
19315 cat conftest.err >&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); } &&
19318 { ac_try='test -z "$ac_c_werror_flag"
19319 || test ! -s conftest.err'
19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321 (eval $ac_try) 2>&5
19322 ac_status=$?
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; } &&
19325 { ac_try='test -s conftest.$ac_objext'
19326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19327 (eval $ac_try) 2>&5
19328 ac_status=$?
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); }; }; then
19331 # It does; now see whether it defined to BIG_ENDIAN or not.
19332 cat >conftest.$ac_ext <<_ACEOF
19333 /* confdefs.h. */
19334 _ACEOF
19335 cat confdefs.h >>conftest.$ac_ext
19336 cat >>conftest.$ac_ext <<_ACEOF
19337 /* end confdefs.h. */
19338 #include <sys/types.h>
19339 #include <sys/param.h>
19342 main ()
19344 #if BYTE_ORDER != BIG_ENDIAN
19345 not big endian
19346 #endif
19349 return 0;
19351 _ACEOF
19352 rm -f conftest.$ac_objext
19353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19354 (eval $ac_compile) 2>conftest.er1
19355 ac_status=$?
19356 grep -v '^ *+' conftest.er1 >conftest.err
19357 rm -f conftest.er1
19358 cat conftest.err >&5
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); } &&
19361 { ac_try='test -z "$ac_c_werror_flag"
19362 || test ! -s conftest.err'
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19365 ac_status=$?
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; } &&
19368 { ac_try='test -s conftest.$ac_objext'
19369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370 (eval $ac_try) 2>&5
19371 ac_status=$?
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; }; then
19374 ac_cv_c_bigendian=yes
19375 else
19376 echo "$as_me: failed program was:" >&5
19377 sed 's/^/| /' conftest.$ac_ext >&5
19379 ac_cv_c_bigendian=no
19381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19382 else
19383 echo "$as_me: failed program was:" >&5
19384 sed 's/^/| /' conftest.$ac_ext >&5
19386 # It does not; compile a test program.
19387 if test "$cross_compiling" = yes; then
19388 # try to guess the endianness by grepping values into an object file
19389 ac_cv_c_bigendian=unknown
19390 cat >conftest.$ac_ext <<_ACEOF
19391 /* confdefs.h. */
19392 _ACEOF
19393 cat confdefs.h >>conftest.$ac_ext
19394 cat >>conftest.$ac_ext <<_ACEOF
19395 /* end confdefs.h. */
19396 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19397 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19398 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19399 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19400 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19401 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19403 main ()
19405 _ascii (); _ebcdic ();
19407 return 0;
19409 _ACEOF
19410 rm -f conftest.$ac_objext
19411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19412 (eval $ac_compile) 2>conftest.er1
19413 ac_status=$?
19414 grep -v '^ *+' conftest.er1 >conftest.err
19415 rm -f conftest.er1
19416 cat conftest.err >&5
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); } &&
19419 { ac_try='test -z "$ac_c_werror_flag"
19420 || test ! -s conftest.err'
19421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19422 (eval $ac_try) 2>&5
19423 ac_status=$?
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); }; } &&
19426 { ac_try='test -s conftest.$ac_objext'
19427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428 (eval $ac_try) 2>&5
19429 ac_status=$?
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; }; then
19432 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19433 ac_cv_c_bigendian=yes
19435 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19436 if test "$ac_cv_c_bigendian" = unknown; then
19437 ac_cv_c_bigendian=no
19438 else
19439 # finding both strings is unlikely to happen, but who knows?
19440 ac_cv_c_bigendian=unknown
19443 else
19444 echo "$as_me: failed program was:" >&5
19445 sed 's/^/| /' conftest.$ac_ext >&5
19448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19449 else
19450 cat >conftest.$ac_ext <<_ACEOF
19451 /* confdefs.h. */
19452 _ACEOF
19453 cat confdefs.h >>conftest.$ac_ext
19454 cat >>conftest.$ac_ext <<_ACEOF
19455 /* end confdefs.h. */
19457 main ()
19459 /* Are we little or big endian? From Harbison&Steele. */
19460 union
19462 long l;
19463 char c[sizeof (long)];
19464 } u;
19465 u.l = 1;
19466 exit (u.c[sizeof (long) - 1] == 1);
19468 _ACEOF
19469 rm -f conftest$ac_exeext
19470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19471 (eval $ac_link) 2>&5
19472 ac_status=$?
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19476 (eval $ac_try) 2>&5
19477 ac_status=$?
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); }; }; then
19480 ac_cv_c_bigendian=no
19481 else
19482 echo "$as_me: program exited with status $ac_status" >&5
19483 echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19486 ( exit $ac_status )
19487 ac_cv_c_bigendian=yes
19489 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19494 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19495 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19496 case $ac_cv_c_bigendian in
19497 yes)
19499 cat >>confdefs.h <<\_ACEOF
19500 #define WORDS_BIGENDIAN 1
19501 _ACEOF
19506 { { echo "$as_me:$LINENO: error: unknown endianness
19507 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19508 echo "$as_me: error: unknown endianness
19509 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19510 { (exit 1); exit 1; }; } ;;
19511 esac
19514 # Check whether right shifting a negative integer extends the sign bit
19515 # or fills with zeros (like the Cray J90, according to Tim Peters).
19516 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
19517 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
19518 if test "${ac_cv_rshift_extends_sign+set}" = set; then
19519 echo $ECHO_N "(cached) $ECHO_C" >&6
19520 else
19522 if test "$cross_compiling" = yes; then
19523 ac_cv_rshift_extends_sign=yes
19524 else
19525 cat >conftest.$ac_ext <<_ACEOF
19526 /* confdefs.h. */
19527 _ACEOF
19528 cat confdefs.h >>conftest.$ac_ext
19529 cat >>conftest.$ac_ext <<_ACEOF
19530 /* end confdefs.h. */
19532 int main()
19534 exit(((-1)>>3 == -1) ? 0 : 1);
19537 _ACEOF
19538 rm -f conftest$ac_exeext
19539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19540 (eval $ac_link) 2>&5
19541 ac_status=$?
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19545 (eval $ac_try) 2>&5
19546 ac_status=$?
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); }; }; then
19549 ac_cv_rshift_extends_sign=yes
19550 else
19551 echo "$as_me: program exited with status $ac_status" >&5
19552 echo "$as_me: failed program was:" >&5
19553 sed 's/^/| /' conftest.$ac_ext >&5
19555 ( exit $ac_status )
19556 ac_cv_rshift_extends_sign=no
19558 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19562 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
19563 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
19564 if test "$ac_cv_rshift_extends_sign" = no
19565 then
19567 cat >>confdefs.h <<\_ACEOF
19568 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
19569 _ACEOF
19573 # check for getc_unlocked and related locking functions
19574 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
19575 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
19576 if test "${ac_cv_have_getc_unlocked+set}" = set; then
19577 echo $ECHO_N "(cached) $ECHO_C" >&6
19578 else
19580 cat >conftest.$ac_ext <<_ACEOF
19581 /* confdefs.h. */
19582 _ACEOF
19583 cat confdefs.h >>conftest.$ac_ext
19584 cat >>conftest.$ac_ext <<_ACEOF
19585 /* end confdefs.h. */
19586 #include <stdio.h>
19588 main ()
19591 FILE *f = fopen("/dev/null", "r");
19592 flockfile(f);
19593 getc_unlocked(f);
19594 funlockfile(f);
19597 return 0;
19599 _ACEOF
19600 rm -f conftest.$ac_objext conftest$ac_exeext
19601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19602 (eval $ac_link) 2>conftest.er1
19603 ac_status=$?
19604 grep -v '^ *+' conftest.er1 >conftest.err
19605 rm -f conftest.er1
19606 cat conftest.err >&5
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); } &&
19609 { ac_try='test -z "$ac_c_werror_flag"
19610 || test ! -s conftest.err'
19611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19612 (eval $ac_try) 2>&5
19613 ac_status=$?
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); }; } &&
19616 { ac_try='test -s conftest$ac_exeext'
19617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19618 (eval $ac_try) 2>&5
19619 ac_status=$?
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); }; }; then
19622 ac_cv_have_getc_unlocked=yes
19623 else
19624 echo "$as_me: failed program was:" >&5
19625 sed 's/^/| /' conftest.$ac_ext >&5
19627 ac_cv_have_getc_unlocked=no
19629 rm -f conftest.err conftest.$ac_objext \
19630 conftest$ac_exeext conftest.$ac_ext
19633 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
19634 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
19635 if test "$ac_cv_have_getc_unlocked" = yes
19636 then
19638 cat >>confdefs.h <<\_ACEOF
19639 #define HAVE_GETC_UNLOCKED 1
19640 _ACEOF
19644 # check for readline 2.1
19645 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
19646 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
19647 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
19648 echo $ECHO_N "(cached) $ECHO_C" >&6
19649 else
19650 ac_check_lib_save_LIBS=$LIBS
19651 LIBS="-lreadline -ltermcap $LIBS"
19652 cat >conftest.$ac_ext <<_ACEOF
19653 /* confdefs.h. */
19654 _ACEOF
19655 cat confdefs.h >>conftest.$ac_ext
19656 cat >>conftest.$ac_ext <<_ACEOF
19657 /* end confdefs.h. */
19659 /* Override any gcc2 internal prototype to avoid an error. */
19660 #ifdef __cplusplus
19661 extern "C"
19662 #endif
19663 /* We use char because int might match the return type of a gcc2
19664 builtin and then its argument prototype would still apply. */
19665 char rl_callback_handler_install ();
19667 main ()
19669 rl_callback_handler_install ();
19671 return 0;
19673 _ACEOF
19674 rm -f conftest.$ac_objext conftest$ac_exeext
19675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19676 (eval $ac_link) 2>conftest.er1
19677 ac_status=$?
19678 grep -v '^ *+' conftest.er1 >conftest.err
19679 rm -f conftest.er1
19680 cat conftest.err >&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); } &&
19683 { ac_try='test -z "$ac_c_werror_flag"
19684 || test ! -s conftest.err'
19685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686 (eval $ac_try) 2>&5
19687 ac_status=$?
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); }; } &&
19690 { ac_try='test -s conftest$ac_exeext'
19691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692 (eval $ac_try) 2>&5
19693 ac_status=$?
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); }; }; then
19696 ac_cv_lib_readline_rl_callback_handler_install=yes
19697 else
19698 echo "$as_me: failed program was:" >&5
19699 sed 's/^/| /' conftest.$ac_ext >&5
19701 ac_cv_lib_readline_rl_callback_handler_install=no
19703 rm -f conftest.err conftest.$ac_objext \
19704 conftest$ac_exeext conftest.$ac_ext
19705 LIBS=$ac_check_lib_save_LIBS
19707 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
19708 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
19709 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
19711 cat >>confdefs.h <<\_ACEOF
19712 #define HAVE_RL_CALLBACK 1
19713 _ACEOF
19718 # check for readline 2.2
19719 cat >conftest.$ac_ext <<_ACEOF
19720 /* confdefs.h. */
19721 _ACEOF
19722 cat confdefs.h >>conftest.$ac_ext
19723 cat >>conftest.$ac_ext <<_ACEOF
19724 /* end confdefs.h. */
19725 #include <readline/readline.h>
19726 _ACEOF
19727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19729 ac_status=$?
19730 grep -v '^ *+' conftest.er1 >conftest.err
19731 rm -f conftest.er1
19732 cat conftest.err >&5
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); } >/dev/null; then
19735 if test -s conftest.err; then
19736 ac_cpp_err=$ac_c_preproc_warn_flag
19737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19738 else
19739 ac_cpp_err=
19741 else
19742 ac_cpp_err=yes
19744 if test -z "$ac_cpp_err"; then
19745 have_readline=yes
19746 else
19747 echo "$as_me: failed program was:" >&5
19748 sed 's/^/| /' conftest.$ac_ext >&5
19750 have_readline=no
19752 rm -f conftest.err conftest.$ac_ext
19753 if test $have_readline = yes
19754 then
19755 cat >conftest.$ac_ext <<_ACEOF
19756 /* confdefs.h. */
19757 _ACEOF
19758 cat confdefs.h >>conftest.$ac_ext
19759 cat >>conftest.$ac_ext <<_ACEOF
19760 /* end confdefs.h. */
19761 #include <readline/readline.h>
19763 _ACEOF
19764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19765 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
19767 cat >>confdefs.h <<\_ACEOF
19768 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
19769 _ACEOF
19772 rm -f conftest*
19776 # check for readline 4.0
19777 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
19778 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
19779 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
19780 echo $ECHO_N "(cached) $ECHO_C" >&6
19781 else
19782 ac_check_lib_save_LIBS=$LIBS
19783 LIBS="-lreadline -ltermcap $LIBS"
19784 cat >conftest.$ac_ext <<_ACEOF
19785 /* confdefs.h. */
19786 _ACEOF
19787 cat confdefs.h >>conftest.$ac_ext
19788 cat >>conftest.$ac_ext <<_ACEOF
19789 /* end confdefs.h. */
19791 /* Override any gcc2 internal prototype to avoid an error. */
19792 #ifdef __cplusplus
19793 extern "C"
19794 #endif
19795 /* We use char because int might match the return type of a gcc2
19796 builtin and then its argument prototype would still apply. */
19797 char rl_pre_input_hook ();
19799 main ()
19801 rl_pre_input_hook ();
19803 return 0;
19805 _ACEOF
19806 rm -f conftest.$ac_objext conftest$ac_exeext
19807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19808 (eval $ac_link) 2>conftest.er1
19809 ac_status=$?
19810 grep -v '^ *+' conftest.er1 >conftest.err
19811 rm -f conftest.er1
19812 cat conftest.err >&5
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); } &&
19815 { ac_try='test -z "$ac_c_werror_flag"
19816 || test ! -s conftest.err'
19817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19818 (eval $ac_try) 2>&5
19819 ac_status=$?
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); }; } &&
19822 { ac_try='test -s conftest$ac_exeext'
19823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19824 (eval $ac_try) 2>&5
19825 ac_status=$?
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); }; }; then
19828 ac_cv_lib_readline_rl_pre_input_hook=yes
19829 else
19830 echo "$as_me: failed program was:" >&5
19831 sed 's/^/| /' conftest.$ac_ext >&5
19833 ac_cv_lib_readline_rl_pre_input_hook=no
19835 rm -f conftest.err conftest.$ac_objext \
19836 conftest$ac_exeext conftest.$ac_ext
19837 LIBS=$ac_check_lib_save_LIBS
19839 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
19840 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
19841 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
19843 cat >>confdefs.h <<\_ACEOF
19844 #define HAVE_RL_PRE_INPUT_HOOK 1
19845 _ACEOF
19850 # check for readline 4.2
19851 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
19852 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
19853 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
19854 echo $ECHO_N "(cached) $ECHO_C" >&6
19855 else
19856 ac_check_lib_save_LIBS=$LIBS
19857 LIBS="-lreadline -ltermcap $LIBS"
19858 cat >conftest.$ac_ext <<_ACEOF
19859 /* confdefs.h. */
19860 _ACEOF
19861 cat confdefs.h >>conftest.$ac_ext
19862 cat >>conftest.$ac_ext <<_ACEOF
19863 /* end confdefs.h. */
19865 /* Override any gcc2 internal prototype to avoid an error. */
19866 #ifdef __cplusplus
19867 extern "C"
19868 #endif
19869 /* We use char because int might match the return type of a gcc2
19870 builtin and then its argument prototype would still apply. */
19871 char rl_completion_matches ();
19873 main ()
19875 rl_completion_matches ();
19877 return 0;
19879 _ACEOF
19880 rm -f conftest.$ac_objext conftest$ac_exeext
19881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19882 (eval $ac_link) 2>conftest.er1
19883 ac_status=$?
19884 grep -v '^ *+' conftest.er1 >conftest.err
19885 rm -f conftest.er1
19886 cat conftest.err >&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); } &&
19889 { ac_try='test -z "$ac_c_werror_flag"
19890 || test ! -s conftest.err'
19891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19892 (eval $ac_try) 2>&5
19893 ac_status=$?
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); }; } &&
19896 { ac_try='test -s conftest$ac_exeext'
19897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19898 (eval $ac_try) 2>&5
19899 ac_status=$?
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); }; }; then
19902 ac_cv_lib_readline_rl_completion_matches=yes
19903 else
19904 echo "$as_me: failed program was:" >&5
19905 sed 's/^/| /' conftest.$ac_ext >&5
19907 ac_cv_lib_readline_rl_completion_matches=no
19909 rm -f conftest.err conftest.$ac_objext \
19910 conftest$ac_exeext conftest.$ac_ext
19911 LIBS=$ac_check_lib_save_LIBS
19913 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
19914 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
19915 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
19917 cat >>confdefs.h <<\_ACEOF
19918 #define HAVE_RL_COMPLETION_MATCHES 1
19919 _ACEOF
19924 # also in readline 4.2
19925 cat >conftest.$ac_ext <<_ACEOF
19926 /* confdefs.h. */
19927 _ACEOF
19928 cat confdefs.h >>conftest.$ac_ext
19929 cat >>conftest.$ac_ext <<_ACEOF
19930 /* end confdefs.h. */
19931 #include <readline/readline.h>
19932 _ACEOF
19933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19935 ac_status=$?
19936 grep -v '^ *+' conftest.er1 >conftest.err
19937 rm -f conftest.er1
19938 cat conftest.err >&5
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); } >/dev/null; then
19941 if test -s conftest.err; then
19942 ac_cpp_err=$ac_c_preproc_warn_flag
19943 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19944 else
19945 ac_cpp_err=
19947 else
19948 ac_cpp_err=yes
19950 if test -z "$ac_cpp_err"; then
19951 have_readline=yes
19952 else
19953 echo "$as_me: failed program was:" >&5
19954 sed 's/^/| /' conftest.$ac_ext >&5
19956 have_readline=no
19958 rm -f conftest.err conftest.$ac_ext
19959 if test $have_readline = yes
19960 then
19961 cat >conftest.$ac_ext <<_ACEOF
19962 /* confdefs.h. */
19963 _ACEOF
19964 cat confdefs.h >>conftest.$ac_ext
19965 cat >>conftest.$ac_ext <<_ACEOF
19966 /* end confdefs.h. */
19967 #include <readline/readline.h>
19969 _ACEOF
19970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19971 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
19973 cat >>confdefs.h <<\_ACEOF
19974 #define HAVE_RL_CATCH_SIGNAL 1
19975 _ACEOF
19978 rm -f conftest*
19982 echo "$as_me:$LINENO: checking for broken nice()" >&5
19983 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
19984 if test "${ac_cv_broken_nice+set}" = set; then
19985 echo $ECHO_N "(cached) $ECHO_C" >&6
19986 else
19988 if test "$cross_compiling" = yes; then
19989 ac_cv_broken_nice=no
19990 else
19991 cat >conftest.$ac_ext <<_ACEOF
19992 /* confdefs.h. */
19993 _ACEOF
19994 cat confdefs.h >>conftest.$ac_ext
19995 cat >>conftest.$ac_ext <<_ACEOF
19996 /* end confdefs.h. */
19998 int main()
20000 int val1 = nice(1);
20001 if (val1 != -1 && val1 == nice(2))
20002 exit(0);
20003 exit(1);
20006 _ACEOF
20007 rm -f conftest$ac_exeext
20008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20009 (eval $ac_link) 2>&5
20010 ac_status=$?
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20014 (eval $ac_try) 2>&5
20015 ac_status=$?
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); }; }; then
20018 ac_cv_broken_nice=yes
20019 else
20020 echo "$as_me: program exited with status $ac_status" >&5
20021 echo "$as_me: failed program was:" >&5
20022 sed 's/^/| /' conftest.$ac_ext >&5
20024 ( exit $ac_status )
20025 ac_cv_broken_nice=no
20027 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20031 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
20032 echo "${ECHO_T}$ac_cv_broken_nice" >&6
20033 if test "$ac_cv_broken_nice" = yes
20034 then
20036 cat >>confdefs.h <<\_ACEOF
20037 #define HAVE_BROKEN_NICE 1
20038 _ACEOF
20042 echo "$as_me:$LINENO: checking for broken poll()" >&5
20043 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
20044 if test "$cross_compiling" = yes; then
20045 ac_cv_broken_poll=no
20046 else
20047 cat >conftest.$ac_ext <<_ACEOF
20048 /* confdefs.h. */
20049 _ACEOF
20050 cat confdefs.h >>conftest.$ac_ext
20051 cat >>conftest.$ac_ext <<_ACEOF
20052 /* end confdefs.h. */
20054 #include <poll.h>
20056 int main (void)
20058 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
20060 close (42);
20062 int poll_test = poll (&poll_struct, 1, 0);
20064 if (poll_test < 0)
20066 exit(0);
20068 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
20070 exit(0);
20072 else
20074 exit(1);
20078 _ACEOF
20079 rm -f conftest$ac_exeext
20080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20081 (eval $ac_link) 2>&5
20082 ac_status=$?
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20086 (eval $ac_try) 2>&5
20087 ac_status=$?
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); }; }; then
20090 ac_cv_broken_poll=yes
20091 else
20092 echo "$as_me: program exited with status $ac_status" >&5
20093 echo "$as_me: failed program was:" >&5
20094 sed 's/^/| /' conftest.$ac_ext >&5
20096 ( exit $ac_status )
20097 ac_cv_broken_poll=no
20099 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20101 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
20102 echo "${ECHO_T}$ac_cv_broken_poll" >&6
20103 if test "$ac_cv_broken_poll" = yes
20104 then
20106 cat >>confdefs.h <<\_ACEOF
20107 #define HAVE_BROKEN_POLL 1
20108 _ACEOF
20112 # Before we can test tzset, we need to check if struct tm has a tm_zone
20113 # (which is not required by ISO C or UNIX spec) and/or if we support
20114 # tzname[]
20115 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20116 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20117 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20118 echo $ECHO_N "(cached) $ECHO_C" >&6
20119 else
20120 cat >conftest.$ac_ext <<_ACEOF
20121 /* confdefs.h. */
20122 _ACEOF
20123 cat confdefs.h >>conftest.$ac_ext
20124 cat >>conftest.$ac_ext <<_ACEOF
20125 /* end confdefs.h. */
20126 #include <sys/types.h>
20127 #include <$ac_cv_struct_tm>
20131 main ()
20133 static struct tm ac_aggr;
20134 if (ac_aggr.tm_zone)
20135 return 0;
20137 return 0;
20139 _ACEOF
20140 rm -f conftest.$ac_objext
20141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20142 (eval $ac_compile) 2>conftest.er1
20143 ac_status=$?
20144 grep -v '^ *+' conftest.er1 >conftest.err
20145 rm -f conftest.er1
20146 cat conftest.err >&5
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } &&
20149 { ac_try='test -z "$ac_c_werror_flag"
20150 || test ! -s conftest.err'
20151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20152 (eval $ac_try) 2>&5
20153 ac_status=$?
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); }; } &&
20156 { ac_try='test -s conftest.$ac_objext'
20157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20158 (eval $ac_try) 2>&5
20159 ac_status=$?
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); }; }; then
20162 ac_cv_member_struct_tm_tm_zone=yes
20163 else
20164 echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20167 cat >conftest.$ac_ext <<_ACEOF
20168 /* confdefs.h. */
20169 _ACEOF
20170 cat confdefs.h >>conftest.$ac_ext
20171 cat >>conftest.$ac_ext <<_ACEOF
20172 /* end confdefs.h. */
20173 #include <sys/types.h>
20174 #include <$ac_cv_struct_tm>
20178 main ()
20180 static struct tm ac_aggr;
20181 if (sizeof ac_aggr.tm_zone)
20182 return 0;
20184 return 0;
20186 _ACEOF
20187 rm -f conftest.$ac_objext
20188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20189 (eval $ac_compile) 2>conftest.er1
20190 ac_status=$?
20191 grep -v '^ *+' conftest.er1 >conftest.err
20192 rm -f conftest.er1
20193 cat conftest.err >&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } &&
20196 { ac_try='test -z "$ac_c_werror_flag"
20197 || test ! -s conftest.err'
20198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20199 (eval $ac_try) 2>&5
20200 ac_status=$?
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); }; } &&
20203 { ac_try='test -s conftest.$ac_objext'
20204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20205 (eval $ac_try) 2>&5
20206 ac_status=$?
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); }; }; then
20209 ac_cv_member_struct_tm_tm_zone=yes
20210 else
20211 echo "$as_me: failed program was:" >&5
20212 sed 's/^/| /' conftest.$ac_ext >&5
20214 ac_cv_member_struct_tm_tm_zone=no
20216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20220 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20221 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20222 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20224 cat >>confdefs.h <<_ACEOF
20225 #define HAVE_STRUCT_TM_TM_ZONE 1
20226 _ACEOF
20231 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20233 cat >>confdefs.h <<\_ACEOF
20234 #define HAVE_TM_ZONE 1
20235 _ACEOF
20237 else
20238 echo "$as_me:$LINENO: checking for tzname" >&5
20239 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20240 if test "${ac_cv_var_tzname+set}" = set; then
20241 echo $ECHO_N "(cached) $ECHO_C" >&6
20242 else
20243 cat >conftest.$ac_ext <<_ACEOF
20244 /* confdefs.h. */
20245 _ACEOF
20246 cat confdefs.h >>conftest.$ac_ext
20247 cat >>conftest.$ac_ext <<_ACEOF
20248 /* end confdefs.h. */
20249 #include <time.h>
20250 #ifndef tzname /* For SGI. */
20251 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20252 #endif
20255 main ()
20257 atoi(*tzname);
20259 return 0;
20261 _ACEOF
20262 rm -f conftest.$ac_objext conftest$ac_exeext
20263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20264 (eval $ac_link) 2>conftest.er1
20265 ac_status=$?
20266 grep -v '^ *+' conftest.er1 >conftest.err
20267 rm -f conftest.er1
20268 cat conftest.err >&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } &&
20271 { ac_try='test -z "$ac_c_werror_flag"
20272 || test ! -s conftest.err'
20273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20274 (eval $ac_try) 2>&5
20275 ac_status=$?
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); }; } &&
20278 { ac_try='test -s conftest$ac_exeext'
20279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20280 (eval $ac_try) 2>&5
20281 ac_status=$?
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); }; }; then
20284 ac_cv_var_tzname=yes
20285 else
20286 echo "$as_me: failed program was:" >&5
20287 sed 's/^/| /' conftest.$ac_ext >&5
20289 ac_cv_var_tzname=no
20291 rm -f conftest.err conftest.$ac_objext \
20292 conftest$ac_exeext conftest.$ac_ext
20294 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20295 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20296 if test $ac_cv_var_tzname = yes; then
20298 cat >>confdefs.h <<\_ACEOF
20299 #define HAVE_TZNAME 1
20300 _ACEOF
20306 # check tzset(3) exists and works like we expect it to
20307 echo "$as_me:$LINENO: checking for working tzset()" >&5
20308 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
20309 if test "${ac_cv_working_tzset+set}" = set; then
20310 echo $ECHO_N "(cached) $ECHO_C" >&6
20311 else
20313 if test "$cross_compiling" = yes; then
20314 ac_cv_working_tzset=no
20315 else
20316 cat >conftest.$ac_ext <<_ACEOF
20317 /* confdefs.h. */
20318 _ACEOF
20319 cat confdefs.h >>conftest.$ac_ext
20320 cat >>conftest.$ac_ext <<_ACEOF
20321 /* end confdefs.h. */
20323 #include <stdlib.h>
20324 #include <time.h>
20325 #include <string.h>
20327 #if HAVE_TZNAME
20328 extern char *tzname[];
20329 #endif
20331 int main()
20333 /* Note that we need to ensure that not only does tzset(3)
20334 do 'something' with localtime, but it works as documented
20335 in the library reference and as expected by the test suite.
20336 This includes making sure that tzname is set properly if
20337 tm->tm_zone does not exist since it is the alternative way
20338 of getting timezone info.
20340 Red Hat 6.2 doesn't understand the southern hemisphere
20341 after New Year's Day.
20344 time_t groundhogday = 1044144000; /* GMT-based */
20345 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
20347 putenv("TZ=UTC+0");
20348 tzset();
20349 if (localtime(&groundhogday)->tm_hour != 0)
20350 exit(1);
20351 #if HAVE_TZNAME
20352 /* For UTC, tzname[1] is sometimes "", sometimes " " */
20353 if (strcmp(tzname[0], "UTC") ||
20354 (tzname[1][0] != 0 && tzname[1][0] != ' '))
20355 exit(1);
20356 #endif
20358 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
20359 tzset();
20360 if (localtime(&groundhogday)->tm_hour != 19)
20361 exit(1);
20362 #if HAVE_TZNAME
20363 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
20364 exit(1);
20365 #endif
20367 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
20368 tzset();
20369 if (localtime(&groundhogday)->tm_hour != 11)
20370 exit(1);
20371 #if HAVE_TZNAME
20372 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
20373 exit(1);
20374 #endif
20376 #if HAVE_STRUCT_TM_TM_ZONE
20377 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
20378 exit(1);
20379 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
20380 exit(1);
20381 #endif
20383 exit(0);
20386 _ACEOF
20387 rm -f conftest$ac_exeext
20388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20389 (eval $ac_link) 2>&5
20390 ac_status=$?
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20394 (eval $ac_try) 2>&5
20395 ac_status=$?
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); }; }; then
20398 ac_cv_working_tzset=yes
20399 else
20400 echo "$as_me: program exited with status $ac_status" >&5
20401 echo "$as_me: failed program was:" >&5
20402 sed 's/^/| /' conftest.$ac_ext >&5
20404 ( exit $ac_status )
20405 ac_cv_working_tzset=no
20407 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20411 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
20412 echo "${ECHO_T}$ac_cv_working_tzset" >&6
20413 if test "$ac_cv_working_tzset" = yes
20414 then
20416 cat >>confdefs.h <<\_ACEOF
20417 #define HAVE_WORKING_TZSET 1
20418 _ACEOF
20422 # Look for subsecond timestamps in struct stat
20423 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
20424 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
20425 if test "${ac_cv_stat_tv_nsec+set}" = set; then
20426 echo $ECHO_N "(cached) $ECHO_C" >&6
20427 else
20428 cat >conftest.$ac_ext <<_ACEOF
20429 /* confdefs.h. */
20430 _ACEOF
20431 cat confdefs.h >>conftest.$ac_ext
20432 cat >>conftest.$ac_ext <<_ACEOF
20433 /* end confdefs.h. */
20434 #include <sys/stat.h>
20436 main ()
20439 struct stat st;
20440 st.st_mtim.tv_nsec = 1;
20443 return 0;
20445 _ACEOF
20446 rm -f conftest.$ac_objext
20447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20448 (eval $ac_compile) 2>conftest.er1
20449 ac_status=$?
20450 grep -v '^ *+' conftest.er1 >conftest.err
20451 rm -f conftest.er1
20452 cat conftest.err >&5
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); } &&
20455 { ac_try='test -z "$ac_c_werror_flag"
20456 || test ! -s conftest.err'
20457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20458 (eval $ac_try) 2>&5
20459 ac_status=$?
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); }; } &&
20462 { ac_try='test -s conftest.$ac_objext'
20463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20464 (eval $ac_try) 2>&5
20465 ac_status=$?
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); }; }; then
20468 ac_cv_stat_tv_nsec=yes
20469 else
20470 echo "$as_me: failed program was:" >&5
20471 sed 's/^/| /' conftest.$ac_ext >&5
20473 ac_cv_stat_tv_nsec=no
20475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20478 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
20479 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
20480 if test "$ac_cv_stat_tv_nsec" = yes
20481 then
20483 cat >>confdefs.h <<\_ACEOF
20484 #define HAVE_STAT_TV_NSEC 1
20485 _ACEOF
20489 # Look for BSD style subsecond timestamps in struct stat
20490 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
20491 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
20492 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
20493 echo $ECHO_N "(cached) $ECHO_C" >&6
20494 else
20495 cat >conftest.$ac_ext <<_ACEOF
20496 /* confdefs.h. */
20497 _ACEOF
20498 cat confdefs.h >>conftest.$ac_ext
20499 cat >>conftest.$ac_ext <<_ACEOF
20500 /* end confdefs.h. */
20501 #include <sys/stat.h>
20503 main ()
20506 struct stat st;
20507 st.st_mtimespec.tv_nsec = 1;
20510 return 0;
20512 _ACEOF
20513 rm -f conftest.$ac_objext
20514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20515 (eval $ac_compile) 2>conftest.er1
20516 ac_status=$?
20517 grep -v '^ *+' conftest.er1 >conftest.err
20518 rm -f conftest.er1
20519 cat conftest.err >&5
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); } &&
20522 { ac_try='test -z "$ac_c_werror_flag"
20523 || test ! -s conftest.err'
20524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20525 (eval $ac_try) 2>&5
20526 ac_status=$?
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); }; } &&
20529 { ac_try='test -s conftest.$ac_objext'
20530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20531 (eval $ac_try) 2>&5
20532 ac_status=$?
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); }; }; then
20535 ac_cv_stat_tv_nsec2=yes
20536 else
20537 echo "$as_me: failed program was:" >&5
20538 sed 's/^/| /' conftest.$ac_ext >&5
20540 ac_cv_stat_tv_nsec2=no
20542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20545 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
20546 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
20547 if test "$ac_cv_stat_tv_nsec2" = yes
20548 then
20550 cat >>confdefs.h <<\_ACEOF
20551 #define HAVE_STAT_TV_NSEC2 1
20552 _ACEOF
20556 # On HP/UX 11.0, mvwdelch is a block with a return statement
20557 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
20558 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
20559 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
20560 echo $ECHO_N "(cached) $ECHO_C" >&6
20561 else
20562 cat >conftest.$ac_ext <<_ACEOF
20563 /* confdefs.h. */
20564 _ACEOF
20565 cat confdefs.h >>conftest.$ac_ext
20566 cat >>conftest.$ac_ext <<_ACEOF
20567 /* end confdefs.h. */
20568 #include <curses.h>
20570 main ()
20573 int rtn;
20574 rtn = mvwdelch(0,0,0);
20577 return 0;
20579 _ACEOF
20580 rm -f conftest.$ac_objext
20581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20582 (eval $ac_compile) 2>conftest.er1
20583 ac_status=$?
20584 grep -v '^ *+' conftest.er1 >conftest.err
20585 rm -f conftest.er1
20586 cat conftest.err >&5
20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588 (exit $ac_status); } &&
20589 { ac_try='test -z "$ac_c_werror_flag"
20590 || test ! -s conftest.err'
20591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20592 (eval $ac_try) 2>&5
20593 ac_status=$?
20594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595 (exit $ac_status); }; } &&
20596 { ac_try='test -s conftest.$ac_objext'
20597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20598 (eval $ac_try) 2>&5
20599 ac_status=$?
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); }; }; then
20602 ac_cv_mvwdelch_is_expression=yes
20603 else
20604 echo "$as_me: failed program was:" >&5
20605 sed 's/^/| /' conftest.$ac_ext >&5
20607 ac_cv_mvwdelch_is_expression=no
20609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20612 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
20613 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
20615 if test "$ac_cv_mvwdelch_is_expression" = yes
20616 then
20618 cat >>confdefs.h <<\_ACEOF
20619 #define MVWDELCH_IS_EXPRESSION 1
20620 _ACEOF
20624 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
20625 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
20626 if test "${ac_cv_window_has_flags+set}" = set; then
20627 echo $ECHO_N "(cached) $ECHO_C" >&6
20628 else
20629 cat >conftest.$ac_ext <<_ACEOF
20630 /* confdefs.h. */
20631 _ACEOF
20632 cat confdefs.h >>conftest.$ac_ext
20633 cat >>conftest.$ac_ext <<_ACEOF
20634 /* end confdefs.h. */
20635 #include <curses.h>
20637 main ()
20640 WINDOW *w;
20641 w->_flags = 0;
20644 return 0;
20646 _ACEOF
20647 rm -f conftest.$ac_objext
20648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20649 (eval $ac_compile) 2>conftest.er1
20650 ac_status=$?
20651 grep -v '^ *+' conftest.er1 >conftest.err
20652 rm -f conftest.er1
20653 cat conftest.err >&5
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); } &&
20656 { ac_try='test -z "$ac_c_werror_flag"
20657 || test ! -s conftest.err'
20658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20659 (eval $ac_try) 2>&5
20660 ac_status=$?
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); }; } &&
20663 { ac_try='test -s conftest.$ac_objext'
20664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20665 (eval $ac_try) 2>&5
20666 ac_status=$?
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); }; }; then
20669 ac_cv_window_has_flags=yes
20670 else
20671 echo "$as_me: failed program was:" >&5
20672 sed 's/^/| /' conftest.$ac_ext >&5
20674 ac_cv_window_has_flags=no
20676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20679 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
20680 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
20683 if test "$ac_cv_window_has_flags" = yes
20684 then
20686 cat >>confdefs.h <<\_ACEOF
20687 #define WINDOW_HAS_FLAGS 1
20688 _ACEOF
20692 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
20693 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
20695 if test -e /dev/ptmx
20696 then
20697 echo "$as_me:$LINENO: result: yes" >&5
20698 echo "${ECHO_T}yes" >&6
20700 cat >>confdefs.h <<\_ACEOF
20701 #define HAVE_DEV_PTMX 1
20702 _ACEOF
20704 else
20705 echo "$as_me:$LINENO: result: no" >&5
20706 echo "${ECHO_T}no" >&6
20709 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
20710 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
20712 if test -e /dev/ptc
20713 then
20714 echo "$as_me:$LINENO: result: yes" >&5
20715 echo "${ECHO_T}yes" >&6
20717 cat >>confdefs.h <<\_ACEOF
20718 #define HAVE_DEV_PTC 1
20719 _ACEOF
20721 else
20722 echo "$as_me:$LINENO: result: no" >&5
20723 echo "${ECHO_T}no" >&6
20726 echo "$as_me:$LINENO: checking for socklen_t" >&5
20727 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
20728 if test "${ac_cv_type_socklen_t+set}" = set; then
20729 echo $ECHO_N "(cached) $ECHO_C" >&6
20730 else
20731 cat >conftest.$ac_ext <<_ACEOF
20732 /* confdefs.h. */
20733 _ACEOF
20734 cat confdefs.h >>conftest.$ac_ext
20735 cat >>conftest.$ac_ext <<_ACEOF
20736 /* end confdefs.h. */
20738 #ifdef HAVE_SYS_TYPES_H
20739 #include <sys/types.h>
20740 #endif
20741 #ifdef HAVE_SYS_SOCKET_H
20742 #include <sys/socket.h>
20743 #endif
20747 main ()
20749 if ((socklen_t *) 0)
20750 return 0;
20751 if (sizeof (socklen_t))
20752 return 0;
20754 return 0;
20756 _ACEOF
20757 rm -f conftest.$ac_objext
20758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20759 (eval $ac_compile) 2>conftest.er1
20760 ac_status=$?
20761 grep -v '^ *+' conftest.er1 >conftest.err
20762 rm -f conftest.er1
20763 cat conftest.err >&5
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); } &&
20766 { ac_try='test -z "$ac_c_werror_flag"
20767 || test ! -s conftest.err'
20768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20769 (eval $ac_try) 2>&5
20770 ac_status=$?
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); }; } &&
20773 { ac_try='test -s conftest.$ac_objext'
20774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20775 (eval $ac_try) 2>&5
20776 ac_status=$?
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); }; }; then
20779 ac_cv_type_socklen_t=yes
20780 else
20781 echo "$as_me: failed program was:" >&5
20782 sed 's/^/| /' conftest.$ac_ext >&5
20784 ac_cv_type_socklen_t=no
20786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20788 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
20789 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
20790 if test $ac_cv_type_socklen_t = yes; then
20792 else
20794 cat >>confdefs.h <<\_ACEOF
20795 #define socklen_t int
20796 _ACEOF
20803 for h in `(cd $srcdir;echo Python/thread_*.h)`
20805 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
20806 done
20809 SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python"
20810 echo "$as_me:$LINENO: checking for build directories" >&5
20811 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
20812 for dir in $SRCDIRS; do
20813 if test ! -d $dir; then
20814 mkdir $dir
20816 done
20817 echo "$as_me:$LINENO: result: done" >&5
20818 echo "${ECHO_T}done" >&6
20820 # generate output files
20821 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
20823 cat >confcache <<\_ACEOF
20824 # This file is a shell script that caches the results of configure
20825 # tests run on this system so they can be shared between configure
20826 # scripts and configure runs, see configure's option --config-cache.
20827 # It is not useful on other systems. If it contains results you don't
20828 # want to keep, you may remove or edit it.
20830 # config.status only pays attention to the cache file if you give it
20831 # the --recheck option to rerun configure.
20833 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20834 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20835 # following values.
20837 _ACEOF
20839 # The following way of writing the cache mishandles newlines in values,
20840 # but we know of no workaround that is simple, portable, and efficient.
20841 # So, don't put newlines in cache variables' values.
20842 # Ultrix sh set writes to stderr and can't be redirected directly,
20843 # and sets the high bit in the cache file unless we assign to the vars.
20845 (set) 2>&1 |
20846 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20847 *ac_space=\ *)
20848 # `set' does not quote correctly, so add quotes (double-quote
20849 # substitution turns \\\\ into \\, and sed turns \\ into \).
20850 sed -n \
20851 "s/'/'\\\\''/g;
20852 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20855 # `set' quotes correctly as required by POSIX, so do not add quotes.
20856 sed -n \
20857 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20859 esac;
20861 sed '
20862 t clear
20863 : clear
20864 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20865 t end
20866 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20867 : end' >>confcache
20868 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20869 if test -w $cache_file; then
20870 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20871 cat confcache >$cache_file
20872 else
20873 echo "not updating unwritable cache $cache_file"
20876 rm -f confcache
20878 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20879 # Let make expand exec_prefix.
20880 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20882 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20883 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20884 # trailing colons and then remove the whole line if VPATH becomes empty
20885 # (actually we leave an empty line to preserve line numbers).
20886 if test "x$srcdir" = x.; then
20887 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20888 s/:*\$(srcdir):*/:/;
20889 s/:*\${srcdir}:*/:/;
20890 s/:*@srcdir@:*/:/;
20891 s/^\([^=]*=[ ]*\):*/\1/;
20892 s/:*$//;
20893 s/^[^=]*=[ ]*$//;
20897 DEFS=-DHAVE_CONFIG_H
20899 ac_libobjs=
20900 ac_ltlibobjs=
20901 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20902 # 1. Remove the extension, and $U if already installed.
20903 ac_i=`echo "$ac_i" |
20904 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20905 # 2. Add them.
20906 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20907 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20908 done
20909 LIBOBJS=$ac_libobjs
20911 LTLIBOBJS=$ac_ltlibobjs
20915 : ${CONFIG_STATUS=./config.status}
20916 ac_clean_files_save=$ac_clean_files
20917 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20918 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20919 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20920 cat >$CONFIG_STATUS <<_ACEOF
20921 #! $SHELL
20922 # Generated by $as_me.
20923 # Run this file to recreate the current configuration.
20924 # Compiler output produced by configure, useful for debugging
20925 # configure, is in config.log if it exists.
20927 debug=false
20928 ac_cs_recheck=false
20929 ac_cs_silent=false
20930 SHELL=\${CONFIG_SHELL-$SHELL}
20931 _ACEOF
20933 cat >>$CONFIG_STATUS <<\_ACEOF
20934 ## --------------------- ##
20935 ## M4sh Initialization. ##
20936 ## --------------------- ##
20938 # Be Bourne compatible
20939 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20940 emulate sh
20941 NULLCMD=:
20942 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20943 # is contrary to our usage. Disable this feature.
20944 alias -g '${1+"$@"}'='"$@"'
20945 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20946 set -o posix
20948 DUALCASE=1; export DUALCASE # for MKS sh
20950 # Support unset when possible.
20951 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20952 as_unset=unset
20953 else
20954 as_unset=false
20958 # Work around bugs in pre-3.0 UWIN ksh.
20959 $as_unset ENV MAIL MAILPATH
20960 PS1='$ '
20961 PS2='> '
20962 PS4='+ '
20964 # NLS nuisances.
20965 for as_var in \
20966 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20967 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20968 LC_TELEPHONE LC_TIME
20970 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20971 eval $as_var=C; export $as_var
20972 else
20973 $as_unset $as_var
20975 done
20977 # Required to use basename.
20978 if expr a : '\(a\)' >/dev/null 2>&1; then
20979 as_expr=expr
20980 else
20981 as_expr=false
20984 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20985 as_basename=basename
20986 else
20987 as_basename=false
20991 # Name of the executable.
20992 as_me=`$as_basename "$0" ||
20993 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20994 X"$0" : 'X\(//\)$' \| \
20995 X"$0" : 'X\(/\)$' \| \
20996 . : '\(.\)' 2>/dev/null ||
20997 echo X/"$0" |
20998 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20999 /^X\/\(\/\/\)$/{ s//\1/; q; }
21000 /^X\/\(\/\).*/{ s//\1/; q; }
21001 s/.*/./; q'`
21004 # PATH needs CR, and LINENO needs CR and PATH.
21005 # Avoid depending upon Character Ranges.
21006 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21007 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21008 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21009 as_cr_digits='0123456789'
21010 as_cr_alnum=$as_cr_Letters$as_cr_digits
21012 # The user is always right.
21013 if test "${PATH_SEPARATOR+set}" != set; then
21014 echo "#! /bin/sh" >conf$$.sh
21015 echo "exit 0" >>conf$$.sh
21016 chmod +x conf$$.sh
21017 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21018 PATH_SEPARATOR=';'
21019 else
21020 PATH_SEPARATOR=:
21022 rm -f conf$$.sh
21026 as_lineno_1=$LINENO
21027 as_lineno_2=$LINENO
21028 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21029 test "x$as_lineno_1" != "x$as_lineno_2" &&
21030 test "x$as_lineno_3" = "x$as_lineno_2" || {
21031 # Find who we are. Look in the path if we contain no path at all
21032 # relative or not.
21033 case $0 in
21034 *[\\/]* ) as_myself=$0 ;;
21035 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21036 for as_dir in $PATH
21038 IFS=$as_save_IFS
21039 test -z "$as_dir" && as_dir=.
21040 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21041 done
21044 esac
21045 # We did not find ourselves, most probably we were run as `sh COMMAND'
21046 # in which case we are not to be found in the path.
21047 if test "x$as_myself" = x; then
21048 as_myself=$0
21050 if test ! -f "$as_myself"; then
21051 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21052 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21053 { (exit 1); exit 1; }; }
21055 case $CONFIG_SHELL in
21057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21058 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21060 IFS=$as_save_IFS
21061 test -z "$as_dir" && as_dir=.
21062 for as_base in sh bash ksh sh5; do
21063 case $as_dir in
21065 if ("$as_dir/$as_base" -c '
21066 as_lineno_1=$LINENO
21067 as_lineno_2=$LINENO
21068 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21069 test "x$as_lineno_1" != "x$as_lineno_2" &&
21070 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21071 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21072 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21073 CONFIG_SHELL=$as_dir/$as_base
21074 export CONFIG_SHELL
21075 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21076 fi;;
21077 esac
21078 done
21079 done
21081 esac
21083 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21084 # uniformly replaced by the line number. The first 'sed' inserts a
21085 # line-number line before each line; the second 'sed' does the real
21086 # work. The second script uses 'N' to pair each line-number line
21087 # with the numbered line, and appends trailing '-' during
21088 # substitution so that $LINENO is not a special case at line end.
21089 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21090 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21091 sed '=' <$as_myself |
21092 sed '
21094 s,$,-,
21095 : loop
21096 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21097 t loop
21098 s,-$,,
21099 s,^['$as_cr_digits']*\n,,
21100 ' >$as_me.lineno &&
21101 chmod +x $as_me.lineno ||
21102 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21103 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21104 { (exit 1); exit 1; }; }
21106 # Don't try to exec as it changes $[0], causing all sort of problems
21107 # (the dirname of $[0] is not the place where we might find the
21108 # original and so on. Autoconf is especially sensible to this).
21109 . ./$as_me.lineno
21110 # Exit status is that of the last command.
21111 exit
21115 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21116 *c*,-n*) ECHO_N= ECHO_C='
21117 ' ECHO_T=' ' ;;
21118 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21119 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21120 esac
21122 if expr a : '\(a\)' >/dev/null 2>&1; then
21123 as_expr=expr
21124 else
21125 as_expr=false
21128 rm -f conf$$ conf$$.exe conf$$.file
21129 echo >conf$$.file
21130 if ln -s conf$$.file conf$$ 2>/dev/null; then
21131 # We could just check for DJGPP; but this test a) works b) is more generic
21132 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21133 if test -f conf$$.exe; then
21134 # Don't use ln at all; we don't have any links
21135 as_ln_s='cp -p'
21136 else
21137 as_ln_s='ln -s'
21139 elif ln conf$$.file conf$$ 2>/dev/null; then
21140 as_ln_s=ln
21141 else
21142 as_ln_s='cp -p'
21144 rm -f conf$$ conf$$.exe conf$$.file
21146 if mkdir -p . 2>/dev/null; then
21147 as_mkdir_p=:
21148 else
21149 test -d ./-p && rmdir ./-p
21150 as_mkdir_p=false
21153 as_executable_p="test -f"
21155 # Sed expression to map a string onto a valid CPP name.
21156 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21158 # Sed expression to map a string onto a valid variable name.
21159 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21162 # IFS
21163 # We need space, tab and new line, in precisely that order.
21164 as_nl='
21166 IFS=" $as_nl"
21168 # CDPATH.
21169 $as_unset CDPATH
21171 exec 6>&1
21173 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21174 # report actual input values of CONFIG_FILES etc. instead of their
21175 # values after options handling. Logging --version etc. is OK.
21176 exec 5>>config.log
21178 echo
21179 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21180 ## Running $as_me. ##
21181 _ASBOX
21182 } >&5
21183 cat >&5 <<_CSEOF
21185 This file was extended by python $as_me 2.5, which was
21186 generated by GNU Autoconf 2.59. Invocation command line was
21188 CONFIG_FILES = $CONFIG_FILES
21189 CONFIG_HEADERS = $CONFIG_HEADERS
21190 CONFIG_LINKS = $CONFIG_LINKS
21191 CONFIG_COMMANDS = $CONFIG_COMMANDS
21192 $ $0 $@
21194 _CSEOF
21195 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21196 echo >&5
21197 _ACEOF
21199 # Files that config.status was made for.
21200 if test -n "$ac_config_files"; then
21201 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21204 if test -n "$ac_config_headers"; then
21205 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21208 if test -n "$ac_config_links"; then
21209 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21212 if test -n "$ac_config_commands"; then
21213 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21216 cat >>$CONFIG_STATUS <<\_ACEOF
21218 ac_cs_usage="\
21219 \`$as_me' instantiates files from templates according to the
21220 current configuration.
21222 Usage: $0 [OPTIONS] [FILE]...
21224 -h, --help print this help, then exit
21225 -V, --version print version number, then exit
21226 -q, --quiet do not print progress messages
21227 -d, --debug don't remove temporary files
21228 --recheck update $as_me by reconfiguring in the same conditions
21229 --file=FILE[:TEMPLATE]
21230 instantiate the configuration file FILE
21231 --header=FILE[:TEMPLATE]
21232 instantiate the configuration header FILE
21234 Configuration files:
21235 $config_files
21237 Configuration headers:
21238 $config_headers
21240 Report bugs to <bug-autoconf@gnu.org>."
21241 _ACEOF
21243 cat >>$CONFIG_STATUS <<_ACEOF
21244 ac_cs_version="\\
21245 python config.status 2.5
21246 configured by $0, generated by GNU Autoconf 2.59,
21247 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21249 Copyright (C) 2003 Free Software Foundation, Inc.
21250 This config.status script is free software; the Free Software Foundation
21251 gives unlimited permission to copy, distribute and modify it."
21252 srcdir=$srcdir
21253 INSTALL="$INSTALL"
21254 _ACEOF
21256 cat >>$CONFIG_STATUS <<\_ACEOF
21257 # If no file are specified by the user, then we need to provide default
21258 # value. By we need to know if files were specified by the user.
21259 ac_need_defaults=:
21260 while test $# != 0
21262 case $1 in
21263 --*=*)
21264 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21265 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21266 ac_shift=:
21269 ac_option=$1
21270 ac_optarg=$2
21271 ac_shift=shift
21273 *) # This is not an option, so the user has probably given explicit
21274 # arguments.
21275 ac_option=$1
21276 ac_need_defaults=false;;
21277 esac
21279 case $ac_option in
21280 # Handling of the options.
21281 _ACEOF
21282 cat >>$CONFIG_STATUS <<\_ACEOF
21283 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21284 ac_cs_recheck=: ;;
21285 --version | --vers* | -V )
21286 echo "$ac_cs_version"; exit 0 ;;
21287 --he | --h)
21288 # Conflict between --help and --header
21289 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21290 Try \`$0 --help' for more information." >&5
21291 echo "$as_me: error: ambiguous option: $1
21292 Try \`$0 --help' for more information." >&2;}
21293 { (exit 1); exit 1; }; };;
21294 --help | --hel | -h )
21295 echo "$ac_cs_usage"; exit 0 ;;
21296 --debug | --d* | -d )
21297 debug=: ;;
21298 --file | --fil | --fi | --f )
21299 $ac_shift
21300 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21301 ac_need_defaults=false;;
21302 --header | --heade | --head | --hea )
21303 $ac_shift
21304 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21305 ac_need_defaults=false;;
21306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21307 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21308 ac_cs_silent=: ;;
21310 # This is an error.
21311 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21312 Try \`$0 --help' for more information." >&5
21313 echo "$as_me: error: unrecognized option: $1
21314 Try \`$0 --help' for more information." >&2;}
21315 { (exit 1); exit 1; }; } ;;
21317 *) ac_config_targets="$ac_config_targets $1" ;;
21319 esac
21320 shift
21321 done
21323 ac_configure_extra_args=
21325 if $ac_cs_silent; then
21326 exec 6>/dev/null
21327 ac_configure_extra_args="$ac_configure_extra_args --silent"
21330 _ACEOF
21331 cat >>$CONFIG_STATUS <<_ACEOF
21332 if \$ac_cs_recheck; then
21333 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21334 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21337 _ACEOF
21343 cat >>$CONFIG_STATUS <<\_ACEOF
21344 for ac_config_target in $ac_config_targets
21346 case "$ac_config_target" in
21347 # Handling of arguments.
21348 "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
21349 "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
21350 "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
21351 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21352 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21353 { (exit 1); exit 1; }; };;
21354 esac
21355 done
21357 # If the user did not use the arguments to specify the items to instantiate,
21358 # then the envvar interface is used. Set only those that are not.
21359 # We use the long form for the default assignment because of an extremely
21360 # bizarre bug on SunOS 4.1.3.
21361 if $ac_need_defaults; then
21362 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21363 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21366 # Have a temporary directory for convenience. Make it in the build tree
21367 # simply because there is no reason to put it here, and in addition,
21368 # creating and moving files from /tmp can sometimes cause problems.
21369 # Create a temporary directory, and hook for its removal unless debugging.
21370 $debug ||
21372 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21373 trap '{ (exit 1); exit 1; }' 1 2 13 15
21376 # Create a (secure) tmp directory for tmp files.
21379 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21380 test -n "$tmp" && test -d "$tmp"
21381 } ||
21383 tmp=./confstat$$-$RANDOM
21384 (umask 077 && mkdir $tmp)
21385 } ||
21387 echo "$me: cannot create a temporary directory in ." >&2
21388 { (exit 1); exit 1; }
21391 _ACEOF
21393 cat >>$CONFIG_STATUS <<_ACEOF
21396 # CONFIG_FILES section.
21399 # No need to generate the scripts if there are no CONFIG_FILES.
21400 # This happens for instance when ./config.status config.h
21401 if test -n "\$CONFIG_FILES"; then
21402 # Protect against being on the right side of a sed subst in config.status.
21403 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21404 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21405 s,@SHELL@,$SHELL,;t t
21406 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21407 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21408 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21409 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21410 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21411 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21412 s,@exec_prefix@,$exec_prefix,;t t
21413 s,@prefix@,$prefix,;t t
21414 s,@program_transform_name@,$program_transform_name,;t t
21415 s,@bindir@,$bindir,;t t
21416 s,@sbindir@,$sbindir,;t t
21417 s,@libexecdir@,$libexecdir,;t t
21418 s,@datadir@,$datadir,;t t
21419 s,@sysconfdir@,$sysconfdir,;t t
21420 s,@sharedstatedir@,$sharedstatedir,;t t
21421 s,@localstatedir@,$localstatedir,;t t
21422 s,@libdir@,$libdir,;t t
21423 s,@includedir@,$includedir,;t t
21424 s,@oldincludedir@,$oldincludedir,;t t
21425 s,@infodir@,$infodir,;t t
21426 s,@mandir@,$mandir,;t t
21427 s,@build_alias@,$build_alias,;t t
21428 s,@host_alias@,$host_alias,;t t
21429 s,@target_alias@,$target_alias,;t t
21430 s,@DEFS@,$DEFS,;t t
21431 s,@ECHO_C@,$ECHO_C,;t t
21432 s,@ECHO_N@,$ECHO_N,;t t
21433 s,@ECHO_T@,$ECHO_T,;t t
21434 s,@LIBS@,$LIBS,;t t
21435 s,@VERSION@,$VERSION,;t t
21436 s,@SOVERSION@,$SOVERSION,;t t
21437 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
21438 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
21439 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
21440 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
21441 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
21442 s,@MACHDEP@,$MACHDEP,;t t
21443 s,@SGI_ABI@,$SGI_ABI,;t t
21444 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
21445 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
21446 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
21447 s,@CXX@,$CXX,;t t
21448 s,@MAINOBJ@,$MAINOBJ,;t t
21449 s,@EXEEXT@,$EXEEXT,;t t
21450 s,@CC@,$CC,;t t
21451 s,@CFLAGS@,$CFLAGS,;t t
21452 s,@LDFLAGS@,$LDFLAGS,;t t
21453 s,@CPPFLAGS@,$CPPFLAGS,;t t
21454 s,@ac_ct_CC@,$ac_ct_CC,;t t
21455 s,@OBJEXT@,$OBJEXT,;t t
21456 s,@CPP@,$CPP,;t t
21457 s,@EGREP@,$EGREP,;t t
21458 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
21459 s,@LIBRARY@,$LIBRARY,;t t
21460 s,@LDLIBRARY@,$LDLIBRARY,;t t
21461 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
21462 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
21463 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
21464 s,@INSTSONAME@,$INSTSONAME,;t t
21465 s,@RUNSHARED@,$RUNSHARED,;t t
21466 s,@LINKCC@,$LINKCC,;t t
21467 s,@RANLIB@,$RANLIB,;t t
21468 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21469 s,@AR@,$AR,;t t
21470 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21471 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21472 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21473 s,@LN@,$LN,;t t
21474 s,@OPT@,$OPT,;t t
21475 s,@BASECFLAGS@,$BASECFLAGS,;t t
21476 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
21477 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
21478 s,@SO@,$SO,;t t
21479 s,@LDSHARED@,$LDSHARED,;t t
21480 s,@BLDSHARED@,$BLDSHARED,;t t
21481 s,@CCSHARED@,$CCSHARED,;t t
21482 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
21483 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
21484 s,@SHLIBS@,$SHLIBS,;t t
21485 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
21486 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
21487 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
21488 s,@LDLAST@,$LDLAST,;t t
21489 s,@THREADOBJ@,$THREADOBJ,;t t
21490 s,@DLINCLDIR@,$DLINCLDIR,;t t
21491 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
21492 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
21493 s,@TRUE@,$TRUE,;t t
21494 s,@LIBOBJS@,$LIBOBJS,;t t
21495 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
21496 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
21497 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
21498 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
21499 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
21500 s,@LIBM@,$LIBM,;t t
21501 s,@LIBC@,$LIBC,;t t
21502 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
21503 s,@THREADHEADERS@,$THREADHEADERS,;t t
21504 s,@SRCDIRS@,$SRCDIRS,;t t
21505 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21506 CEOF
21508 _ACEOF
21510 cat >>$CONFIG_STATUS <<\_ACEOF
21511 # Split the substitutions into bite-sized pieces for seds with
21512 # small command number limits, like on Digital OSF/1 and HP-UX.
21513 ac_max_sed_lines=48
21514 ac_sed_frag=1 # Number of current file.
21515 ac_beg=1 # First line for current file.
21516 ac_end=$ac_max_sed_lines # Line after last line for current file.
21517 ac_more_lines=:
21518 ac_sed_cmds=
21519 while $ac_more_lines; do
21520 if test $ac_beg -gt 1; then
21521 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21522 else
21523 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21525 if test ! -s $tmp/subs.frag; then
21526 ac_more_lines=false
21527 else
21528 # The purpose of the label and of the branching condition is to
21529 # speed up the sed processing (if there are no `@' at all, there
21530 # is no need to browse any of the substitutions).
21531 # These are the two extra sed commands mentioned above.
21532 (echo ':t
21533 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21534 if test -z "$ac_sed_cmds"; then
21535 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21536 else
21537 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21539 ac_sed_frag=`expr $ac_sed_frag + 1`
21540 ac_beg=$ac_end
21541 ac_end=`expr $ac_end + $ac_max_sed_lines`
21543 done
21544 if test -z "$ac_sed_cmds"; then
21545 ac_sed_cmds=cat
21547 fi # test -n "$CONFIG_FILES"
21549 _ACEOF
21550 cat >>$CONFIG_STATUS <<\_ACEOF
21551 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21552 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21553 case $ac_file in
21554 - | *:- | *:-:* ) # input from stdin
21555 cat >$tmp/stdin
21556 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21557 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21558 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21559 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21560 * ) ac_file_in=$ac_file.in ;;
21561 esac
21563 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21564 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21565 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21566 X"$ac_file" : 'X\(//\)[^/]' \| \
21567 X"$ac_file" : 'X\(//\)$' \| \
21568 X"$ac_file" : 'X\(/\)' \| \
21569 . : '\(.\)' 2>/dev/null ||
21570 echo X"$ac_file" |
21571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21572 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21573 /^X\(\/\/\)$/{ s//\1/; q; }
21574 /^X\(\/\).*/{ s//\1/; q; }
21575 s/.*/./; q'`
21576 { if $as_mkdir_p; then
21577 mkdir -p "$ac_dir"
21578 else
21579 as_dir="$ac_dir"
21580 as_dirs=
21581 while test ! -d "$as_dir"; do
21582 as_dirs="$as_dir $as_dirs"
21583 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21584 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21585 X"$as_dir" : 'X\(//\)[^/]' \| \
21586 X"$as_dir" : 'X\(//\)$' \| \
21587 X"$as_dir" : 'X\(/\)' \| \
21588 . : '\(.\)' 2>/dev/null ||
21589 echo X"$as_dir" |
21590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21591 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21592 /^X\(\/\/\)$/{ s//\1/; q; }
21593 /^X\(\/\).*/{ s//\1/; q; }
21594 s/.*/./; q'`
21595 done
21596 test ! -n "$as_dirs" || mkdir $as_dirs
21597 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21598 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21599 { (exit 1); exit 1; }; }; }
21601 ac_builddir=.
21603 if test "$ac_dir" != .; then
21604 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21605 # A "../" for each directory in $ac_dir_suffix.
21606 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21607 else
21608 ac_dir_suffix= ac_top_builddir=
21611 case $srcdir in
21612 .) # No --srcdir option. We are building in place.
21613 ac_srcdir=.
21614 if test -z "$ac_top_builddir"; then
21615 ac_top_srcdir=.
21616 else
21617 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21618 fi ;;
21619 [\\/]* | ?:[\\/]* ) # Absolute path.
21620 ac_srcdir=$srcdir$ac_dir_suffix;
21621 ac_top_srcdir=$srcdir ;;
21622 *) # Relative path.
21623 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21624 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21625 esac
21627 # Do not use `cd foo && pwd` to compute absolute paths, because
21628 # the directories may not exist.
21629 case `pwd` in
21630 .) ac_abs_builddir="$ac_dir";;
21632 case "$ac_dir" in
21633 .) ac_abs_builddir=`pwd`;;
21634 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21635 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21636 esac;;
21637 esac
21638 case $ac_abs_builddir in
21639 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21641 case ${ac_top_builddir}. in
21642 .) ac_abs_top_builddir=$ac_abs_builddir;;
21643 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21644 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21645 esac;;
21646 esac
21647 case $ac_abs_builddir in
21648 .) ac_abs_srcdir=$ac_srcdir;;
21650 case $ac_srcdir in
21651 .) ac_abs_srcdir=$ac_abs_builddir;;
21652 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21653 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21654 esac;;
21655 esac
21656 case $ac_abs_builddir in
21657 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21659 case $ac_top_srcdir in
21660 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21661 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21662 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21663 esac;;
21664 esac
21667 case $INSTALL in
21668 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21669 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21670 esac
21672 if test x"$ac_file" != x-; then
21673 { echo "$as_me:$LINENO: creating $ac_file" >&5
21674 echo "$as_me: creating $ac_file" >&6;}
21675 rm -f "$ac_file"
21677 # Let's still pretend it is `configure' which instantiates (i.e., don't
21678 # use $as_me), people would be surprised to read:
21679 # /* config.h. Generated by config.status. */
21680 if test x"$ac_file" = x-; then
21681 configure_input=
21682 else
21683 configure_input="$ac_file. "
21685 configure_input=$configure_input"Generated from `echo $ac_file_in |
21686 sed 's,.*/,,'` by configure."
21688 # First look for the input files in the build tree, otherwise in the
21689 # src tree.
21690 ac_file_inputs=`IFS=:
21691 for f in $ac_file_in; do
21692 case $f in
21693 -) echo $tmp/stdin ;;
21694 [\\/$]*)
21695 # Absolute (can't be DOS-style, as IFS=:)
21696 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21697 echo "$as_me: error: cannot find input file: $f" >&2;}
21698 { (exit 1); exit 1; }; }
21699 echo "$f";;
21700 *) # Relative
21701 if test -f "$f"; then
21702 # Build tree
21703 echo "$f"
21704 elif test -f "$srcdir/$f"; then
21705 # Source tree
21706 echo "$srcdir/$f"
21707 else
21708 # /dev/null tree
21709 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21710 echo "$as_me: error: cannot find input file: $f" >&2;}
21711 { (exit 1); exit 1; }; }
21712 fi;;
21713 esac
21714 done` || { (exit 1); exit 1; }
21715 _ACEOF
21716 cat >>$CONFIG_STATUS <<_ACEOF
21717 sed "$ac_vpsub
21718 $extrasub
21719 _ACEOF
21720 cat >>$CONFIG_STATUS <<\_ACEOF
21722 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21723 s,@configure_input@,$configure_input,;t t
21724 s,@srcdir@,$ac_srcdir,;t t
21725 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21726 s,@top_srcdir@,$ac_top_srcdir,;t t
21727 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21728 s,@builddir@,$ac_builddir,;t t
21729 s,@abs_builddir@,$ac_abs_builddir,;t t
21730 s,@top_builddir@,$ac_top_builddir,;t t
21731 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21732 s,@INSTALL@,$ac_INSTALL,;t t
21733 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21734 rm -f $tmp/stdin
21735 if test x"$ac_file" != x-; then
21736 mv $tmp/out $ac_file
21737 else
21738 cat $tmp/out
21739 rm -f $tmp/out
21742 done
21743 _ACEOF
21744 cat >>$CONFIG_STATUS <<\_ACEOF
21747 # CONFIG_HEADER section.
21750 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21751 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21753 # ac_d sets the value in "#define NAME VALUE" lines.
21754 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21755 ac_dB='[ ].*$,\1#\2'
21756 ac_dC=' '
21757 ac_dD=',;t'
21758 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21759 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21760 ac_uB='$,\1#\2define\3'
21761 ac_uC=' '
21762 ac_uD=',;t'
21764 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21765 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21766 case $ac_file in
21767 - | *:- | *:-:* ) # input from stdin
21768 cat >$tmp/stdin
21769 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21770 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21771 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21772 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21773 * ) ac_file_in=$ac_file.in ;;
21774 esac
21776 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21777 echo "$as_me: creating $ac_file" >&6;}
21779 # First look for the input files in the build tree, otherwise in the
21780 # src tree.
21781 ac_file_inputs=`IFS=:
21782 for f in $ac_file_in; do
21783 case $f in
21784 -) echo $tmp/stdin ;;
21785 [\\/$]*)
21786 # Absolute (can't be DOS-style, as IFS=:)
21787 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21788 echo "$as_me: error: cannot find input file: $f" >&2;}
21789 { (exit 1); exit 1; }; }
21790 # Do quote $f, to prevent DOS paths from being IFS'd.
21791 echo "$f";;
21792 *) # Relative
21793 if test -f "$f"; then
21794 # Build tree
21795 echo "$f"
21796 elif test -f "$srcdir/$f"; then
21797 # Source tree
21798 echo "$srcdir/$f"
21799 else
21800 # /dev/null tree
21801 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21802 echo "$as_me: error: cannot find input file: $f" >&2;}
21803 { (exit 1); exit 1; }; }
21804 fi;;
21805 esac
21806 done` || { (exit 1); exit 1; }
21807 # Remove the trailing spaces.
21808 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21810 _ACEOF
21812 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21813 # `conftest.undefs', that substitutes the proper values into
21814 # config.h.in to produce config.h. The first handles `#define'
21815 # templates, and the second `#undef' templates.
21816 # And first: Protect against being on the right side of a sed subst in
21817 # config.status. Protect against being in an unquoted here document
21818 # in config.status.
21819 rm -f conftest.defines conftest.undefs
21820 # Using a here document instead of a string reduces the quoting nightmare.
21821 # Putting comments in sed scripts is not portable.
21823 # `end' is used to avoid that the second main sed command (meant for
21824 # 0-ary CPP macros) applies to n-ary macro definitions.
21825 # See the Autoconf documentation for `clear'.
21826 cat >confdef2sed.sed <<\_ACEOF
21827 s/[\\&,]/\\&/g
21828 s,[\\$`],\\&,g
21829 t clear
21830 : clear
21831 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21832 t end
21833 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21834 : end
21835 _ACEOF
21836 # If some macros were called several times there might be several times
21837 # the same #defines, which is useless. Nevertheless, we may not want to
21838 # sort them, since we want the *last* AC-DEFINE to be honored.
21839 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21840 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21841 rm -f confdef2sed.sed
21843 # This sed command replaces #undef with comments. This is necessary, for
21844 # example, in the case of _POSIX_SOURCE, which is predefined and required
21845 # on some systems where configure will not decide to define it.
21846 cat >>conftest.undefs <<\_ACEOF
21847 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21848 _ACEOF
21850 # Break up conftest.defines because some shells have a limit on the size
21851 # of here documents, and old seds have small limits too (100 cmds).
21852 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21853 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21854 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21855 echo ' :' >>$CONFIG_STATUS
21856 rm -f conftest.tail
21857 while grep . conftest.defines >/dev/null
21859 # Write a limited-size here document to $tmp/defines.sed.
21860 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21861 # Speed up: don't consider the non `#define' lines.
21862 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21863 # Work around the forget-to-reset-the-flag bug.
21864 echo 't clr' >>$CONFIG_STATUS
21865 echo ': clr' >>$CONFIG_STATUS
21866 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21867 echo 'CEOF
21868 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21869 rm -f $tmp/in
21870 mv $tmp/out $tmp/in
21871 ' >>$CONFIG_STATUS
21872 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21873 rm -f conftest.defines
21874 mv conftest.tail conftest.defines
21875 done
21876 rm -f conftest.defines
21877 echo ' fi # grep' >>$CONFIG_STATUS
21878 echo >>$CONFIG_STATUS
21880 # Break up conftest.undefs because some shells have a limit on the size
21881 # of here documents, and old seds have small limits too (100 cmds).
21882 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21883 rm -f conftest.tail
21884 while grep . conftest.undefs >/dev/null
21886 # Write a limited-size here document to $tmp/undefs.sed.
21887 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21888 # Speed up: don't consider the non `#undef'
21889 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21890 # Work around the forget-to-reset-the-flag bug.
21891 echo 't clr' >>$CONFIG_STATUS
21892 echo ': clr' >>$CONFIG_STATUS
21893 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21894 echo 'CEOF
21895 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21896 rm -f $tmp/in
21897 mv $tmp/out $tmp/in
21898 ' >>$CONFIG_STATUS
21899 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21900 rm -f conftest.undefs
21901 mv conftest.tail conftest.undefs
21902 done
21903 rm -f conftest.undefs
21905 cat >>$CONFIG_STATUS <<\_ACEOF
21906 # Let's still pretend it is `configure' which instantiates (i.e., don't
21907 # use $as_me), people would be surprised to read:
21908 # /* config.h. Generated by config.status. */
21909 if test x"$ac_file" = x-; then
21910 echo "/* Generated by configure. */" >$tmp/config.h
21911 else
21912 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21914 cat $tmp/in >>$tmp/config.h
21915 rm -f $tmp/in
21916 if test x"$ac_file" != x-; then
21917 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21918 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21919 echo "$as_me: $ac_file is unchanged" >&6;}
21920 else
21921 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21922 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21923 X"$ac_file" : 'X\(//\)[^/]' \| \
21924 X"$ac_file" : 'X\(//\)$' \| \
21925 X"$ac_file" : 'X\(/\)' \| \
21926 . : '\(.\)' 2>/dev/null ||
21927 echo X"$ac_file" |
21928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21929 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21930 /^X\(\/\/\)$/{ s//\1/; q; }
21931 /^X\(\/\).*/{ s//\1/; q; }
21932 s/.*/./; q'`
21933 { if $as_mkdir_p; then
21934 mkdir -p "$ac_dir"
21935 else
21936 as_dir="$ac_dir"
21937 as_dirs=
21938 while test ! -d "$as_dir"; do
21939 as_dirs="$as_dir $as_dirs"
21940 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21941 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21942 X"$as_dir" : 'X\(//\)[^/]' \| \
21943 X"$as_dir" : 'X\(//\)$' \| \
21944 X"$as_dir" : 'X\(/\)' \| \
21945 . : '\(.\)' 2>/dev/null ||
21946 echo X"$as_dir" |
21947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21948 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21949 /^X\(\/\/\)$/{ s//\1/; q; }
21950 /^X\(\/\).*/{ s//\1/; q; }
21951 s/.*/./; q'`
21952 done
21953 test ! -n "$as_dirs" || mkdir $as_dirs
21954 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21955 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21956 { (exit 1); exit 1; }; }; }
21958 rm -f $ac_file
21959 mv $tmp/config.h $ac_file
21961 else
21962 cat $tmp/config.h
21963 rm -f $tmp/config.h
21965 done
21966 _ACEOF
21968 cat >>$CONFIG_STATUS <<\_ACEOF
21970 { (exit 0); exit 0; }
21971 _ACEOF
21972 chmod +x $CONFIG_STATUS
21973 ac_clean_files=$ac_clean_files_save
21976 # configure is writing to config.log, and then calls config.status.
21977 # config.status does its own redirection, appending to config.log.
21978 # Unfortunately, on DOS this fails, as config.log is still kept open
21979 # by configure, so config.status won't be able to write to it; its
21980 # output is simply discarded. So we exec the FD to /dev/null,
21981 # effectively closing config.log, so it can be properly (re)opened and
21982 # appended to by config.status. When coming back to configure, we
21983 # need to make the FD available again.
21984 if test "$no_create" != yes; then
21985 ac_cs_success=:
21986 ac_config_status_args=
21987 test "$silent" = yes &&
21988 ac_config_status_args="$ac_config_status_args --quiet"
21989 exec 5>/dev/null
21990 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21991 exec 5>>config.log
21992 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21993 # would make configure fail if this is the last instruction.
21994 $ac_cs_success || { (exit 1); exit 1; }
21998 echo "creating Setup"
21999 if test ! -f Modules/Setup
22000 then
22001 cp $srcdir/Modules/Setup.dist Modules/Setup
22004 echo "creating Setup.local"
22005 if test ! -f Modules/Setup.local
22006 then
22007 echo "# Edit this file for local setup changes" >Modules/Setup.local
22010 echo "creating Makefile"
22011 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
22012 -s Modules Modules/Setup.config \
22013 Modules/Setup.local Modules/Setup
22014 mv config.c Modules