AddressList.__str__(): Get rid of useless, and broken method. Closes
[python/dscho.git] / configure
blob5439d26b679fa2462cc15908c0f98c511d9e32c9
1 #! /bin/sh
2 # From configure.in Revision: 1.413 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.53 for python 2.3.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 if expr a : '\(a\)' >/dev/null 2>&1; then
12 as_expr=expr
13 else
14 as_expr=false
18 ## --------------------- ##
19 ## M4sh Initialization. ##
20 ## --------------------- ##
22 # Be Bourne compatible
23 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24 emulate sh
25 NULLCMD=:
26 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27 set -o posix
30 # NLS nuisances.
31 # Support unset when possible.
32 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
33 as_unset=unset
34 else
35 as_unset=false
38 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
39 { $as_unset LANG || test "${LANG+set}" != set; } ||
40 { LANG=C; export LANG; }
41 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
42 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
43 { LC_ALL=C; export LC_ALL; }
44 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
45 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
46 { LC_TIME=C; export LC_TIME; }
47 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
48 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
49 { LC_CTYPE=C; export LC_CTYPE; }
50 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
51 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
52 { LANGUAGE=C; export LANGUAGE; }
53 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
54 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
55 { LC_COLLATE=C; export LC_COLLATE; }
56 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
57 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
58 { LC_NUMERIC=C; export LC_NUMERIC; }
59 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
60 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
61 { LC_MESSAGES=C; export LC_MESSAGES; }
64 # Name of the executable.
65 as_me=`(basename "$0") 2>/dev/null ||
66 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67 X"$0" : 'X\(//\)$' \| \
68 X"$0" : 'X\(/\)$' \| \
69 . : '\(.\)' 2>/dev/null ||
70 echo X/"$0" |
71 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72 /^X\/\(\/\/\)$/{ s//\1/; q; }
73 /^X\/\(\/\).*/{ s//\1/; q; }
74 s/.*/./; q'`
76 # PATH needs CR, and LINENO needs CR and PATH.
77 # Avoid depending upon Character Ranges.
78 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
79 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
80 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
81 as_cr_digits='0123456789'
82 as_cr_alnum=$as_cr_Letters$as_cr_digits
84 # The user is always right.
85 if test "${PATH_SEPARATOR+set}" != set; then
86 echo "#! /bin/sh" >conftest.sh
87 echo "exit 0" >>conftest.sh
88 chmod +x conftest.sh
89 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
90 PATH_SEPARATOR=';'
91 else
92 PATH_SEPARATOR=:
94 rm -f conftest.sh
98 as_lineno_1=$LINENO
99 as_lineno_2=$LINENO
100 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
101 test "x$as_lineno_1" != "x$as_lineno_2" &&
102 test "x$as_lineno_3" = "x$as_lineno_2" || {
103 # Find who we are. Look in the path if we contain no path at all
104 # relative or not.
105 case $0 in
106 *[\\/]* ) as_myself=$0 ;;
107 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
108 for as_dir in $PATH
110 IFS=$as_save_IFS
111 test -z "$as_dir" && as_dir=.
112 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
113 done
116 esac
117 # We did not find ourselves, most probably we were run as `sh COMMAND'
118 # in which case we are not to be found in the path.
119 if test "x$as_myself" = x; then
120 as_myself=$0
122 if test ! -f "$as_myself"; then
123 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
124 { (exit 1); exit 1; }; }
126 case $CONFIG_SHELL in
128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
129 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 IFS=$as_save_IFS
132 test -z "$as_dir" && as_dir=.
133 for as_base in sh bash ksh sh5; do
134 case $as_dir in
136 if ("$as_dir/$as_base" -c '
137 as_lineno_1=$LINENO
138 as_lineno_2=$LINENO
139 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
140 test "x$as_lineno_1" != "x$as_lineno_2" &&
141 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
142 CONFIG_SHELL=$as_dir/$as_base
143 export CONFIG_SHELL
144 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
145 fi;;
146 esac
147 done
148 done
150 esac
152 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
153 # uniformly replaced by the line number. The first 'sed' inserts a
154 # line-number line before each line; the second 'sed' does the real
155 # work. The second script uses 'N' to pair each line-number line
156 # with the numbered line, and appends trailing '-' during
157 # substitution so that $LINENO is not a special case at line end.
158 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
159 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
160 sed '=' <$as_myself |
161 sed '
163 s,$,-,
164 : loop
165 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
166 t loop
167 s,-$,,
168 s,^['$as_cr_digits']*\n,,
169 ' >$as_me.lineno &&
170 chmod +x $as_me.lineno ||
171 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
172 { (exit 1); exit 1; }; }
174 # Don't try to exec as it changes $[0], causing all sort of problems
175 # (the dirname of $[0] is not the place where we might find the
176 # original and so on. Autoconf is especially sensible to this).
177 . ./$as_me.lineno
178 # Exit status is that of the last command.
179 exit
183 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
184 *c*,-n*) ECHO_N= ECHO_C='
185 ' ECHO_T=' ' ;;
186 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
187 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
188 esac
190 if expr a : '\(a\)' >/dev/null 2>&1; then
191 as_expr=expr
192 else
193 as_expr=false
196 rm -f conf$$ conf$$.exe conf$$.file
197 echo >conf$$.file
198 if ln -s conf$$.file conf$$ 2>/dev/null; then
199 # We could just check for DJGPP; but this test a) works b) is more generic
200 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
201 if test -f conf$$.exe; then
202 # Don't use ln at all; we don't have any links
203 as_ln_s='cp -p'
204 else
205 as_ln_s='ln -s'
207 elif ln conf$$.file conf$$ 2>/dev/null; then
208 as_ln_s=ln
209 else
210 as_ln_s='cp -p'
212 rm -f conf$$ conf$$.exe conf$$.file
214 as_executable_p="test -f"
216 # Sed expression to map a string onto a valid CPP name.
217 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
219 # Sed expression to map a string onto a valid variable name.
220 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
223 # IFS
224 # We need space, tab and new line, in precisely that order.
225 as_nl='
227 IFS=" $as_nl"
229 # CDPATH.
230 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
233 # Name of the host.
234 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
235 # so uname gets run too.
236 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
238 exec 6>&1
241 # Initializations.
243 ac_default_prefix=/usr/local
244 cross_compiling=no
245 subdirs=
246 MFLAGS=
247 MAKEFLAGS=
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Maximum number of lines to put in a shell here document.
251 # This variable seems obsolete. It should probably be removed, and
252 # only ac_max_sed_lines should be used.
253 : ${ac_max_here_lines=38}
255 # Identity of this package.
256 PACKAGE_NAME='python'
257 PACKAGE_TARNAME='python'
258 PACKAGE_VERSION='2.3'
259 PACKAGE_STRING='python 2.3'
260 PACKAGE_BUGREPORT=''
262 ac_unique_file="Include/object.h"
263 # Factoring default headers for most tests.
264 ac_includes_default="\
265 #include <stdio.h>
266 #if HAVE_SYS_TYPES_H
267 # include <sys/types.h>
268 #endif
269 #if HAVE_SYS_STAT_H
270 # include <sys/stat.h>
271 #endif
272 #if STDC_HEADERS
273 # include <stdlib.h>
274 # include <stddef.h>
275 #else
276 # if HAVE_STDLIB_H
277 # include <stdlib.h>
278 # endif
279 #endif
280 #if HAVE_STRING_H
281 # if !STDC_HEADERS && HAVE_MEMORY_H
282 # include <memory.h>
283 # endif
284 # include <string.h>
285 #endif
286 #if HAVE_STRINGS_H
287 # include <strings.h>
288 #endif
289 #if HAVE_INTTYPES_H
290 # include <inttypes.h>
291 #else
292 # if HAVE_STDINT_H
293 # include <stdint.h>
294 # endif
295 #endif
296 #if HAVE_UNISTD_H
297 # include <unistd.h>
298 #endif"
301 # Initialize some variables set by options.
302 ac_init_help=
303 ac_init_version=false
304 # The variables have the same names as the options, with
305 # dashes changed to underlines.
306 cache_file=/dev/null
307 exec_prefix=NONE
308 no_create=
309 no_recursion=
310 prefix=NONE
311 program_prefix=NONE
312 program_suffix=NONE
313 program_transform_name=s,x,x,
314 silent=
315 site=
316 srcdir=
317 verbose=
318 x_includes=NONE
319 x_libraries=NONE
321 # Installation directory options.
322 # These are left unexpanded so users can "make install exec_prefix=/foo"
323 # and all the variables that are supposed to be based on exec_prefix
324 # by default will actually change.
325 # Use braces instead of parens because sh, perl, etc. also accept them.
326 bindir='${exec_prefix}/bin'
327 sbindir='${exec_prefix}/sbin'
328 libexecdir='${exec_prefix}/libexec'
329 datadir='${prefix}/share'
330 sysconfdir='${prefix}/etc'
331 sharedstatedir='${prefix}/com'
332 localstatedir='${prefix}/var'
333 libdir='${exec_prefix}/lib'
334 includedir='${prefix}/include'
335 oldincludedir='/usr/include'
336 infodir='${prefix}/info'
337 mandir='${prefix}/man'
339 ac_prev=
340 for ac_option
342 # If the previous option needs an argument, assign it.
343 if test -n "$ac_prev"; then
344 eval "$ac_prev=\$ac_option"
345 ac_prev=
346 continue
349 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
351 # Accept the important Cygnus configure options, so we can diagnose typos.
353 case $ac_option in
355 -bindir | --bindir | --bindi | --bind | --bin | --bi)
356 ac_prev=bindir ;;
357 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
358 bindir=$ac_optarg ;;
360 -build | --build | --buil | --bui | --bu)
361 ac_prev=build_alias ;;
362 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
363 build_alias=$ac_optarg ;;
365 -cache-file | --cache-file | --cache-fil | --cache-fi \
366 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
367 ac_prev=cache_file ;;
368 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
369 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
370 cache_file=$ac_optarg ;;
372 --config-cache | -C)
373 cache_file=config.cache ;;
375 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
376 ac_prev=datadir ;;
377 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
378 | --da=*)
379 datadir=$ac_optarg ;;
381 -disable-* | --disable-*)
382 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
383 # Reject names that are not valid shell variable names.
384 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
385 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
386 { (exit 1); exit 1; }; }
387 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
388 eval "enable_$ac_feature=no" ;;
390 -enable-* | --enable-*)
391 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
392 # Reject names that are not valid shell variable names.
393 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
394 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
395 { (exit 1); exit 1; }; }
396 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
397 case $ac_option in
398 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
399 *) ac_optarg=yes ;;
400 esac
401 eval "enable_$ac_feature='$ac_optarg'" ;;
403 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
404 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
405 | --exec | --exe | --ex)
406 ac_prev=exec_prefix ;;
407 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
408 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
409 | --exec=* | --exe=* | --ex=*)
410 exec_prefix=$ac_optarg ;;
412 -gas | --gas | --ga | --g)
413 # Obsolete; use --with-gas.
414 with_gas=yes ;;
416 -help | --help | --hel | --he | -h)
417 ac_init_help=long ;;
418 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
419 ac_init_help=recursive ;;
420 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
421 ac_init_help=short ;;
423 -host | --host | --hos | --ho)
424 ac_prev=host_alias ;;
425 -host=* | --host=* | --hos=* | --ho=*)
426 host_alias=$ac_optarg ;;
428 -includedir | --includedir | --includedi | --included | --include \
429 | --includ | --inclu | --incl | --inc)
430 ac_prev=includedir ;;
431 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
432 | --includ=* | --inclu=* | --incl=* | --inc=*)
433 includedir=$ac_optarg ;;
435 -infodir | --infodir | --infodi | --infod | --info | --inf)
436 ac_prev=infodir ;;
437 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
438 infodir=$ac_optarg ;;
440 -libdir | --libdir | --libdi | --libd)
441 ac_prev=libdir ;;
442 -libdir=* | --libdir=* | --libdi=* | --libd=*)
443 libdir=$ac_optarg ;;
445 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
446 | --libexe | --libex | --libe)
447 ac_prev=libexecdir ;;
448 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
449 | --libexe=* | --libex=* | --libe=*)
450 libexecdir=$ac_optarg ;;
452 -localstatedir | --localstatedir | --localstatedi | --localstated \
453 | --localstate | --localstat | --localsta | --localst \
454 | --locals | --local | --loca | --loc | --lo)
455 ac_prev=localstatedir ;;
456 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
457 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
458 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
459 localstatedir=$ac_optarg ;;
461 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
462 ac_prev=mandir ;;
463 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
464 mandir=$ac_optarg ;;
466 -nfp | --nfp | --nf)
467 # Obsolete; use --without-fp.
468 with_fp=no ;;
470 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
471 | --no-cr | --no-c | -n)
472 no_create=yes ;;
474 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
475 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
476 no_recursion=yes ;;
478 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
479 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
480 | --oldin | --oldi | --old | --ol | --o)
481 ac_prev=oldincludedir ;;
482 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
483 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
484 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
485 oldincludedir=$ac_optarg ;;
487 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
488 ac_prev=prefix ;;
489 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
490 prefix=$ac_optarg ;;
492 -program-prefix | --program-prefix | --program-prefi | --program-pref \
493 | --program-pre | --program-pr | --program-p)
494 ac_prev=program_prefix ;;
495 -program-prefix=* | --program-prefix=* | --program-prefi=* \
496 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
497 program_prefix=$ac_optarg ;;
499 -program-suffix | --program-suffix | --program-suffi | --program-suff \
500 | --program-suf | --program-su | --program-s)
501 ac_prev=program_suffix ;;
502 -program-suffix=* | --program-suffix=* | --program-suffi=* \
503 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
504 program_suffix=$ac_optarg ;;
506 -program-transform-name | --program-transform-name \
507 | --program-transform-nam | --program-transform-na \
508 | --program-transform-n | --program-transform- \
509 | --program-transform | --program-transfor \
510 | --program-transfo | --program-transf \
511 | --program-trans | --program-tran \
512 | --progr-tra | --program-tr | --program-t)
513 ac_prev=program_transform_name ;;
514 -program-transform-name=* | --program-transform-name=* \
515 | --program-transform-nam=* | --program-transform-na=* \
516 | --program-transform-n=* | --program-transform-=* \
517 | --program-transform=* | --program-transfor=* \
518 | --program-transfo=* | --program-transf=* \
519 | --program-trans=* | --program-tran=* \
520 | --progr-tra=* | --program-tr=* | --program-t=*)
521 program_transform_name=$ac_optarg ;;
523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
524 | -silent | --silent | --silen | --sile | --sil)
525 silent=yes ;;
527 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
528 ac_prev=sbindir ;;
529 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
530 | --sbi=* | --sb=*)
531 sbindir=$ac_optarg ;;
533 -sharedstatedir | --sharedstatedir | --sharedstatedi \
534 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
535 | --sharedst | --shareds | --shared | --share | --shar \
536 | --sha | --sh)
537 ac_prev=sharedstatedir ;;
538 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
539 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
540 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
541 | --sha=* | --sh=*)
542 sharedstatedir=$ac_optarg ;;
544 -site | --site | --sit)
545 ac_prev=site ;;
546 -site=* | --site=* | --sit=*)
547 site=$ac_optarg ;;
549 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
550 ac_prev=srcdir ;;
551 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
552 srcdir=$ac_optarg ;;
554 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
555 | --syscon | --sysco | --sysc | --sys | --sy)
556 ac_prev=sysconfdir ;;
557 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
558 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
559 sysconfdir=$ac_optarg ;;
561 -target | --target | --targe | --targ | --tar | --ta | --t)
562 ac_prev=target_alias ;;
563 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
564 target_alias=$ac_optarg ;;
566 -v | -verbose | --verbose | --verbos | --verbo | --verb)
567 verbose=yes ;;
569 -version | --version | --versio | --versi | --vers | -V)
570 ac_init_version=: ;;
572 -with-* | --with-*)
573 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
574 # Reject names that are not valid shell variable names.
575 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
576 { echo "$as_me: error: invalid package name: $ac_package" >&2
577 { (exit 1); exit 1; }; }
578 ac_package=`echo $ac_package| sed 's/-/_/g'`
579 case $ac_option in
580 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
581 *) ac_optarg=yes ;;
582 esac
583 eval "with_$ac_package='$ac_optarg'" ;;
585 -without-* | --without-*)
586 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package | sed 's/-/_/g'`
592 eval "with_$ac_package=no" ;;
594 --x)
595 # Obsolete; use --with-x.
596 with_x=yes ;;
598 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
599 | --x-incl | --x-inc | --x-in | --x-i)
600 ac_prev=x_includes ;;
601 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
602 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
603 x_includes=$ac_optarg ;;
605 -x-libraries | --x-libraries | --x-librarie | --x-librari \
606 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
607 ac_prev=x_libraries ;;
608 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
609 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
610 x_libraries=$ac_optarg ;;
612 -*) { echo "$as_me: error: unrecognized option: $ac_option
613 Try \`$0 --help' for more information." >&2
614 { (exit 1); exit 1; }; }
617 *=*)
618 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
619 # Reject names that are not valid shell variable names.
620 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
621 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
622 { (exit 1); exit 1; }; }
623 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
624 eval "$ac_envvar='$ac_optarg'"
625 export $ac_envvar ;;
628 # FIXME: should be removed in autoconf 3.0.
629 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
630 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
631 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
632 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
635 esac
636 done
638 if test -n "$ac_prev"; then
639 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
640 { echo "$as_me: error: missing argument to $ac_option" >&2
641 { (exit 1); exit 1; }; }
644 # Be sure to have absolute paths.
645 for ac_var in exec_prefix prefix
647 eval ac_val=$`echo $ac_var`
648 case $ac_val in
649 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
650 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
651 { (exit 1); exit 1; }; };;
652 esac
653 done
655 # Be sure to have absolute paths.
656 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
657 localstatedir libdir includedir oldincludedir infodir mandir
659 eval ac_val=$`echo $ac_var`
660 case $ac_val in
661 [\\/$]* | ?:[\\/]* ) ;;
662 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
663 { (exit 1); exit 1; }; };;
664 esac
665 done
667 # There might be people who depend on the old broken behavior: `$host'
668 # used to hold the argument of --host etc.
669 # FIXME: To remove some day.
670 build=$build_alias
671 host=$host_alias
672 target=$target_alias
674 # FIXME: To remove some day.
675 if test "x$host_alias" != x; then
676 if test "x$build_alias" = x; then
677 cross_compiling=maybe
678 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
679 If a cross compiler is detected then cross compile mode will be used." >&2
680 elif test "x$build_alias" != "x$host_alias"; then
681 cross_compiling=yes
685 ac_tool_prefix=
686 test -n "$host_alias" && ac_tool_prefix=$host_alias-
688 test "$silent" = yes && exec 6>/dev/null
691 # Find the source files, if location was not specified.
692 if test -z "$srcdir"; then
693 ac_srcdir_defaulted=yes
694 # Try the directory containing this script, then its parent.
695 ac_confdir=`(dirname "$0") 2>/dev/null ||
696 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
697 X"$0" : 'X\(//\)[^/]' \| \
698 X"$0" : 'X\(//\)$' \| \
699 X"$0" : 'X\(/\)' \| \
700 . : '\(.\)' 2>/dev/null ||
701 echo X"$0" |
702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
703 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
704 /^X\(\/\/\)$/{ s//\1/; q; }
705 /^X\(\/\).*/{ s//\1/; q; }
706 s/.*/./; q'`
707 srcdir=$ac_confdir
708 if test ! -r $srcdir/$ac_unique_file; then
709 srcdir=..
711 else
712 ac_srcdir_defaulted=no
714 if test ! -r $srcdir/$ac_unique_file; then
715 if test "$ac_srcdir_defaulted" = yes; then
716 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
717 { (exit 1); exit 1; }; }
718 else
719 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
720 { (exit 1); exit 1; }; }
723 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
724 ac_env_build_alias_set=${build_alias+set}
725 ac_env_build_alias_value=$build_alias
726 ac_cv_env_build_alias_set=${build_alias+set}
727 ac_cv_env_build_alias_value=$build_alias
728 ac_env_host_alias_set=${host_alias+set}
729 ac_env_host_alias_value=$host_alias
730 ac_cv_env_host_alias_set=${host_alias+set}
731 ac_cv_env_host_alias_value=$host_alias
732 ac_env_target_alias_set=${target_alias+set}
733 ac_env_target_alias_value=$target_alias
734 ac_cv_env_target_alias_set=${target_alias+set}
735 ac_cv_env_target_alias_value=$target_alias
736 ac_env_CC_set=${CC+set}
737 ac_env_CC_value=$CC
738 ac_cv_env_CC_set=${CC+set}
739 ac_cv_env_CC_value=$CC
740 ac_env_CFLAGS_set=${CFLAGS+set}
741 ac_env_CFLAGS_value=$CFLAGS
742 ac_cv_env_CFLAGS_set=${CFLAGS+set}
743 ac_cv_env_CFLAGS_value=$CFLAGS
744 ac_env_LDFLAGS_set=${LDFLAGS+set}
745 ac_env_LDFLAGS_value=$LDFLAGS
746 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
747 ac_cv_env_LDFLAGS_value=$LDFLAGS
748 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
749 ac_env_CPPFLAGS_value=$CPPFLAGS
750 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
751 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
752 ac_env_CPP_set=${CPP+set}
753 ac_env_CPP_value=$CPP
754 ac_cv_env_CPP_set=${CPP+set}
755 ac_cv_env_CPP_value=$CPP
758 # Report the --help message.
760 if test "$ac_init_help" = "long"; then
761 # Omit some internal or obsolete options to make the list less imposing.
762 # This message is too long to be a string in the A/UX 3.1 sh.
763 cat <<_ACEOF
764 \`configure' configures python 2.3 to adapt to many kinds of systems.
766 Usage: $0 [OPTION]... [VAR=VALUE]...
768 To assign environment variables (e.g., CC, CFLAGS...), specify them as
769 VAR=VALUE. See below for descriptions of some of the useful variables.
771 Defaults for the options are specified in brackets.
773 Configuration:
774 -h, --help display this help and exit
775 --help=short display options specific to this package
776 --help=recursive display the short help of all the included packages
777 -V, --version display version information and exit
778 -q, --quiet, --silent do not print \`checking...' messages
779 --cache-file=FILE cache test results in FILE [disabled]
780 -C, --config-cache alias for \`--cache-file=config.cache'
781 -n, --no-create do not create output files
782 --srcdir=DIR find the sources in DIR [configure dir or \`..']
784 _ACEOF
786 cat <<_ACEOF
787 Installation directories:
788 --prefix=PREFIX install architecture-independent files in PREFIX
789 [$ac_default_prefix]
790 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
791 [PREFIX]
793 By default, \`make install' will install all the files in
794 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
795 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
796 for instance \`--prefix=\$HOME'.
798 For better control, use the options below.
800 Fine tuning of the installation directories:
801 --bindir=DIR user executables [EPREFIX/bin]
802 --sbindir=DIR system admin executables [EPREFIX/sbin]
803 --libexecdir=DIR program executables [EPREFIX/libexec]
804 --datadir=DIR read-only architecture-independent data [PREFIX/share]
805 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
806 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
807 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
808 --libdir=DIR object code libraries [EPREFIX/lib]
809 --includedir=DIR C header files [PREFIX/include]
810 --oldincludedir=DIR C header files for non-gcc [/usr/include]
811 --infodir=DIR info documentation [PREFIX/info]
812 --mandir=DIR man documentation [PREFIX/man]
813 _ACEOF
815 cat <<\_ACEOF
816 _ACEOF
819 if test -n "$ac_init_help"; then
820 case $ac_init_help in
821 short | recursive ) echo "Configuration of python 2.3:";;
822 esac
823 cat <<\_ACEOF
825 Optional Features:
826 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
827 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
828 --enable-framework[=INSTALLDIR]
829 Build (MacOSX|Darwin) framework
830 --enable-shared disable/enable building shared python library
831 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
832 --enable-ipv6 Enable ipv6 (with ipv4) support
833 --disable-ipv6 Disable ipv6 support
834 --enable-unicode[=ucs[24]]
835 Enable Unicode strings (default is yes)
837 Optional Packages:
838 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
839 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
840 --without-gcc never use gcc
841 --with-cxx=<compiler> enable C++ support
842 --with-suffix=.exe set executable suffix
843 --with-pydebug build with Py_DEBUG defined
844 --with-libs='lib1 ...' link against additional libs
845 --with-signal-module disable/enable signal module
846 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
847 --with(out)-threads[=DIRECTORY]
848 disable/enable thread support
849 --with(out)-thread[=DIRECTORY]
850 deprecated; use --with(out)-threads
851 --with-pth use GNU pth threading libraries
852 --with(out)-universal-newlines
853 disable/enable foreign newlines
854 --with(out)-doc-strings disable/enable documentation strings
855 --with(out)-pymalloc disable/enable specialized mallocs
856 --with-wctype-functions use wctype.h functions
857 --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking
858 --with-dl-dld=DL_DIR GNU dynamic linking
859 --with-fpectl enable SIGFPE catching
860 --with-libm=STRING math library
861 --with-libc=STRING C library
863 Some influential environment variables:
864 CC C compiler command
865 CFLAGS C compiler flags
866 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
867 nonstandard directory <lib dir>
868 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
869 headers in a nonstandard directory <include dir>
870 CPP C preprocessor
872 Use these variables to override the choices made by `configure' or to help
873 it to find libraries and programs with nonstandard names/locations.
875 _ACEOF
878 if test "$ac_init_help" = "recursive"; then
879 # If there are subdirs, report their specific --help.
880 ac_popdir=`pwd`
881 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
882 test -d $ac_dir || continue
883 ac_builddir=.
885 if test "$ac_dir" != .; then
886 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
887 # A "../" for each directory in $ac_dir_suffix.
888 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
889 else
890 ac_dir_suffix= ac_top_builddir=
893 case $srcdir in
894 .) # No --srcdir option. We are building in place.
895 ac_srcdir=.
896 if test -z "$ac_top_builddir"; then
897 ac_top_srcdir=.
898 else
899 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
900 fi ;;
901 [\\/]* | ?:[\\/]* ) # Absolute path.
902 ac_srcdir=$srcdir$ac_dir_suffix;
903 ac_top_srcdir=$srcdir ;;
904 *) # Relative path.
905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
906 ac_top_srcdir=$ac_top_builddir$srcdir ;;
907 esac
908 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
909 # absolute.
910 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
911 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
912 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
913 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
915 cd $ac_dir
916 # Check for guested configure; otherwise get Cygnus style configure.
917 if test -f $ac_srcdir/configure.gnu; then
918 echo
919 $SHELL $ac_srcdir/configure.gnu --help=recursive
920 elif test -f $ac_srcdir/configure; then
921 echo
922 $SHELL $ac_srcdir/configure --help=recursive
923 elif test -f $ac_srcdir/configure.ac ||
924 test -f $ac_srcdir/configure.in; then
925 echo
926 $ac_configure --help
927 else
928 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
930 cd $ac_popdir
931 done
934 test -n "$ac_init_help" && exit 0
935 if $ac_init_version; then
936 cat <<\_ACEOF
937 python configure 2.3
938 generated by GNU Autoconf 2.53
940 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
941 Free Software Foundation, Inc.
942 This configure script is free software; the Free Software Foundation
943 gives unlimited permission to copy, distribute and modify it.
944 _ACEOF
945 exit 0
947 exec 5>config.log
948 cat >&5 <<_ACEOF
949 This file contains any messages produced by compilers while
950 running configure, to aid debugging if configure makes a mistake.
952 It was created by python $as_me 2.3, which was
953 generated by GNU Autoconf 2.53. Invocation command line was
955 $ $0 $@
957 _ACEOF
959 cat <<_ASUNAME
960 ## --------- ##
961 ## Platform. ##
962 ## --------- ##
964 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
965 uname -m = `(uname -m) 2>/dev/null || echo unknown`
966 uname -r = `(uname -r) 2>/dev/null || echo unknown`
967 uname -s = `(uname -s) 2>/dev/null || echo unknown`
968 uname -v = `(uname -v) 2>/dev/null || echo unknown`
970 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
971 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
973 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
974 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
975 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
976 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
977 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
978 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
979 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
981 _ASUNAME
983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
984 for as_dir in $PATH
986 IFS=$as_save_IFS
987 test -z "$as_dir" && as_dir=.
988 echo "PATH: $as_dir"
989 done
991 } >&5
993 cat >&5 <<_ACEOF
996 ## ----------- ##
997 ## Core tests. ##
998 ## ----------- ##
1000 _ACEOF
1003 # Keep a trace of the command line.
1004 # Strip out --no-create and --no-recursion so they do not pile up.
1005 # Also quote any args containing shell meta-characters.
1006 ac_configure_args=
1007 ac_sep=
1008 for ac_arg
1010 case $ac_arg in
1011 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1012 | --no-cr | --no-c | -n ) continue ;;
1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015 continue ;;
1016 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1017 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1018 esac
1019 case " $ac_configure_args " in
1020 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1021 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1022 ac_sep=" " ;;
1023 esac
1024 # Get rid of the leading space.
1025 done
1027 # When interrupted or exit'd, cleanup temporary files, and complete
1028 # config.log. We remove comments because anyway the quotes in there
1029 # would cause problems or look ugly.
1030 # WARNING: Be sure not to use single quotes in there, as some shells,
1031 # such as our DU 5.0 friend, will then `close' the trap.
1032 trap 'exit_status=$?
1033 # Save into config.log some information that might help in debugging.
1035 echo
1036 cat <<\_ASBOX
1037 ## ---------------- ##
1038 ## Cache variables. ##
1039 ## ---------------- ##
1040 _ASBOX
1041 echo
1042 # The following way of writing the cache mishandles newlines in values,
1044 (set) 2>&1 |
1045 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1046 *ac_space=\ *)
1047 sed -n \
1048 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1049 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1052 sed -n \
1053 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1055 esac;
1057 echo
1058 if test -s confdefs.h; then
1059 cat <<\_ASBOX
1060 ## ----------- ##
1061 ## confdefs.h. ##
1062 ## ----------- ##
1063 _ASBOX
1064 echo
1065 sed "/^$/d" confdefs.h
1066 echo
1068 test "$ac_signal" != 0 &&
1069 echo "$as_me: caught signal $ac_signal"
1070 echo "$as_me: exit $exit_status"
1071 } >&5
1072 rm -f core core.* *.core &&
1073 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1074 exit $exit_status
1076 for ac_signal in 1 2 13 15; do
1077 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1078 done
1079 ac_signal=0
1081 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1082 rm -rf conftest* confdefs.h
1083 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1084 echo >confdefs.h
1086 # Predefined preprocessor variables.
1088 cat >>confdefs.h <<_ACEOF
1089 #define PACKAGE_NAME "$PACKAGE_NAME"
1090 _ACEOF
1093 cat >>confdefs.h <<_ACEOF
1094 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1095 _ACEOF
1098 cat >>confdefs.h <<_ACEOF
1099 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1100 _ACEOF
1103 cat >>confdefs.h <<_ACEOF
1104 #define PACKAGE_STRING "$PACKAGE_STRING"
1105 _ACEOF
1108 cat >>confdefs.h <<_ACEOF
1109 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1110 _ACEOF
1113 # Let the site file select an alternate cache file if it wants to.
1114 # Prefer explicitly selected file to automatically selected ones.
1115 if test -z "$CONFIG_SITE"; then
1116 if test "x$prefix" != xNONE; then
1117 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1118 else
1119 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1122 for ac_site_file in $CONFIG_SITE; do
1123 if test -r "$ac_site_file"; then
1124 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1125 echo "$as_me: loading site script $ac_site_file" >&6;}
1126 sed 's/^/| /' "$ac_site_file" >&5
1127 . "$ac_site_file"
1129 done
1131 if test -r "$cache_file"; then
1132 # Some versions of bash will fail to source /dev/null (special
1133 # files actually), so we avoid doing that.
1134 if test -f "$cache_file"; then
1135 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1136 echo "$as_me: loading cache $cache_file" >&6;}
1137 case $cache_file in
1138 [\\/]* | ?:[\\/]* ) . $cache_file;;
1139 *) . ./$cache_file;;
1140 esac
1142 else
1143 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1144 echo "$as_me: creating cache $cache_file" >&6;}
1145 >$cache_file
1148 # Check that the precious variables saved in the cache have kept the same
1149 # value.
1150 ac_cache_corrupted=false
1151 for ac_var in `(set) 2>&1 |
1152 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1153 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1154 eval ac_new_set=\$ac_env_${ac_var}_set
1155 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1156 eval ac_new_val="\$ac_env_${ac_var}_value"
1157 case $ac_old_set,$ac_new_set in
1158 set,)
1159 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1160 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1161 ac_cache_corrupted=: ;;
1162 ,set)
1163 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1164 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1165 ac_cache_corrupted=: ;;
1166 ,);;
1168 if test "x$ac_old_val" != "x$ac_new_val"; then
1169 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1170 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1171 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1172 echo "$as_me: former value: $ac_old_val" >&2;}
1173 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1174 echo "$as_me: current value: $ac_new_val" >&2;}
1175 ac_cache_corrupted=:
1176 fi;;
1177 esac
1178 # Pass precious variables to config.status.
1179 if test "$ac_new_set" = set; then
1180 case $ac_new_val in
1181 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1182 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1183 *) ac_arg=$ac_var=$ac_new_val ;;
1184 esac
1185 case " $ac_configure_args " in
1186 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1187 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1188 esac
1190 done
1191 if $ac_cache_corrupted; then
1192 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1193 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1194 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1195 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1196 { (exit 1); exit 1; }; }
1199 ac_ext=c
1200 ac_cpp='$CPP $CPPFLAGS'
1201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1231 ac_config_headers="$ac_config_headers pyconfig.h"
1234 # This is for stuff that absolutely must end up in pyconfig.h.
1235 # Please use pyport.h instead, if possible.
1242 VERSION=2.3
1245 SOVERSION=1.0
1247 # The later defininition of _XOPEN_SOURCE disables certain features
1248 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1250 cat >>confdefs.h <<\_ACEOF
1251 #define _GNU_SOURCE 1
1252 _ACEOF
1255 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1256 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1257 # them.
1259 cat >>confdefs.h <<\_ACEOF
1260 #define _NETBSD_SOURCE 1
1261 _ACEOF
1264 define_xopen_source=yes
1266 # Arguments passed to configure.
1268 CONFIG_ARGS="$ac_configure_args"
1270 # Check whether --enable-framework or --disable-framework was given.
1271 if test "${enable_framework+set}" = set; then
1272 enableval="$enable_framework"
1274 case $enableval in
1275 yes)
1276 enableval=/Library/Frameworks
1277 esac
1278 case $enableval in
1280 PYTHONFRAMEWORK=
1281 PYTHONFRAMEWORKDIR=no-framework
1282 PYTHONFRAMEWORKPREFIX=
1283 PYTHONFRAMEWORKINSTALLDIR=
1284 enable_framework=
1287 PYTHONFRAMEWORK=Python
1288 PYTHONFRAMEWORKDIR=Python.framework
1289 PYTHONFRAMEWORKPREFIX=$enableval
1290 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1291 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1292 esac
1294 else
1296 PYTHONFRAMEWORK=
1297 PYTHONFRAMEWORKDIR=no-framework
1298 PYTHONFRAMEWORKPREFIX=
1299 PYTHONFRAMEWORKINSTALLDIR=
1300 enable_framework=
1308 ##AC_ARG_WITH(dyld,
1309 ## AC_HELP_STRING(--with-dyld,
1310 ## Use (OpenStep|Rhapsody) dynamic linker))
1312 # Set name for machine-dependent library files
1314 echo "$as_me:$LINENO: checking MACHDEP" >&5
1315 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1316 if test -z "$MACHDEP"
1317 then
1318 ac_sys_system=`uname -s`
1319 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1320 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1321 ac_sys_release=`uname -v`
1322 else
1323 ac_sys_release=`uname -r`
1325 ac_md_system=`echo $ac_sys_system |
1326 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1327 ac_md_release=`echo $ac_sys_release |
1328 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1329 MACHDEP="$ac_md_system$ac_md_release"
1331 case $MACHDEP in
1332 cygwin*) MACHDEP="cygwin";;
1333 darwin*) MACHDEP="darwin";;
1334 atheos*) MACHDEP="atheos";;
1335 '') MACHDEP="unknown";;
1336 esac
1339 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1340 # disable features if it is defined, without any means to access these
1341 # features as extensions. For these systems, we skip the definition of
1342 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1343 # some feature, make sure there is no alternative way to access this
1344 # feature. Also, when using wildcards, make sure you have verified the
1345 # need for not defining _XOPEN_SOURCE on all systems matching the
1346 # wildcard, and that the wildcard does not include future systems
1347 # (which may remove their limitations).
1348 case $ac_sys_system/$ac_sys_release in
1349 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1350 # even though select is a POSIX function. Reported by J. Ribbens.
1351 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm.
1352 OpenBSD/2.* | OpenBSD/3.[0123])
1353 define_xopen_source=no;;
1354 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1355 # of union __?sigval. Reported by Stuart Bishop.
1356 SunOS/5.6)
1357 define_xopen_source=no;;
1358 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1359 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1360 OpenUNIX/8.0.0| UnixWare/7.1.[0-3])
1361 define_xopen_source=no;;
1362 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1363 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1364 SCO_SV/3.2)
1365 define_xopen_source=no;;
1366 esac
1368 if test $define_xopen_source = yes
1369 then
1371 cat >>confdefs.h <<\_ACEOF
1372 #define _XOPEN_SOURCE 600
1373 _ACEOF
1376 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1377 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1378 # several APIs are not declared. Since this is also needed in some
1379 # cases for HP-UX, we define it globally.
1382 cat >>confdefs.h <<\_ACEOF
1383 #define _XOPEN_SOURCE_EXTENDED 1
1384 _ACEOF
1387 cat >>confdefs.h <<\_ACEOF
1388 #define _POSIX_C_SOURCE 200112L
1389 _ACEOF
1395 # SGI compilers allow the specification of the both the ABI and the
1396 # ISA on the command line. Depending on the values of these switches,
1397 # different and often incompatable code will be generated.
1399 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1400 # thus supply support for various ABI/ISA combinations. The MACHDEP
1401 # variable is also adjusted.
1404 if test ! -z "$SGI_ABI"
1405 then
1406 CC="cc $SGI_ABI"
1407 LDFLAGS="$SGI_ABI $LDFLAGS"
1408 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1410 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1411 echo "${ECHO_T}$MACHDEP" >&6
1413 # And add extra plat-mac for darwin
1416 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1417 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1418 if test -z "$EXTRAPLATDIR"
1419 then
1420 case $MACHDEP in
1421 darwin)
1422 EXTRAPLATDIR="\$(PLATMACDIRS)"
1423 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
1426 EXTRAPLATDIR=""
1427 EXTRAMACHDEPPATH=""
1429 esac
1431 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1432 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1434 # checks for alternative programs
1436 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1437 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1438 # just to get things to compile and link. Users are free to override OPT
1439 # when running configure or make. The build should not break if they do.
1440 # BASECFLAGS should generally not be messed with, however.
1442 # XXX shouldn't some/most/all of this code be merged with the stuff later
1443 # on that fiddles with OPT and BASECFLAGS?
1444 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1445 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1447 # Check whether --with-gcc or --without-gcc was given.
1448 if test "${with_gcc+set}" = set; then
1449 withval="$with_gcc"
1451 case $withval in
1452 no) CC=cc
1453 without_gcc=yes;;
1454 yes) CC=gcc
1455 without_gcc=no;;
1456 *) CC=$withval
1457 without_gcc=$withval;;
1458 esac
1459 else
1461 case $ac_sys_system in
1462 AIX*) CC=cc_r
1463 without_gcc=;;
1464 BeOS*)
1465 case $BE_HOST_CPU in
1466 ppc)
1467 CC=mwcc
1468 without_gcc=yes
1469 BASECFLAGS="$BASECFLAGS -export pragma"
1470 OPT="$OPT -O"
1471 LDFLAGS="$LDFLAGS -nodup"
1473 x86)
1474 CC=gcc
1475 without_gcc=no
1476 OPT="$OPT -O"
1479 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1480 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1481 { (exit 1); exit 1; }; }
1483 esac
1484 AR="\$(srcdir)/Modules/ar_beos"
1485 RANLIB=:
1487 Monterey*)
1488 RANLIB=:
1489 without_gcc=;;
1490 *) without_gcc=no;;
1491 esac
1493 echo "$as_me:$LINENO: result: $without_gcc" >&5
1494 echo "${ECHO_T}$without_gcc" >&6
1498 MAINOBJ=python.o
1499 echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5
1500 echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6
1502 # Check whether --with-cxx or --without-cxx was given.
1503 if test "${with_cxx+set}" = set; then
1504 withval="$with_cxx"
1506 check_cxx=no
1507 case $withval in
1508 no) CXX=
1509 with_cxx=no;;
1510 *) CXX=$withval
1511 MAINOBJ=ccpython.o
1512 with_cxx=$withval;;
1513 esac
1514 else
1516 with_cxx=no
1517 check_cxx=yes
1520 echo "$as_me:$LINENO: result: $with_cxx" >&5
1521 echo "${ECHO_T}$with_cxx" >&6
1523 if test "$with_cxx" = "yes"
1524 then
1525 { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5
1526 echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;}
1527 { (exit 1); exit 1; }; }
1533 if test "$check_cxx" = "yes"
1534 then
1535 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1537 # Extract the first word of "$ac_prog", so it can be a program name with args.
1538 set dummy $ac_prog; ac_word=$2
1539 echo "$as_me:$LINENO: checking for $ac_word" >&5
1540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1541 if test "${ac_cv_prog_CXX+set}" = set; then
1542 echo $ECHO_N "(cached) $ECHO_C" >&6
1543 else
1544 if test -n "$CXX"; then
1545 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1546 else
1547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548 for as_dir in $PATH
1550 IFS=$as_save_IFS
1551 test -z "$as_dir" && as_dir=.
1552 for ac_exec_ext in '' $ac_executable_extensions; do
1553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1554 ac_cv_prog_CXX="$ac_prog"
1555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1556 break 2
1558 done
1559 done
1563 CXX=$ac_cv_prog_CXX
1564 if test -n "$CXX"; then
1565 echo "$as_me:$LINENO: result: $CXX" >&5
1566 echo "${ECHO_T}$CXX" >&6
1567 else
1568 echo "$as_me:$LINENO: result: no" >&5
1569 echo "${ECHO_T}no" >&6
1572 test -n "$CXX" && break
1573 done
1574 test -n "$CXX" || CXX="notfound"
1576 if test "$CXX" = "notfound"
1577 then
1578 CXX=
1579 else
1580 ac_ext=cc
1581 ac_cpp='$CXXCPP $CPPFLAGS'
1582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1585 cat >conftest.$ac_ext <<_ACEOF
1586 #line $LINENO "configure"
1587 #include "confdefs.h"
1589 #ifdef F77_DUMMY_MAIN
1590 # ifdef __cplusplus
1591 extern "C"
1592 # endif
1593 int F77_DUMMY_MAIN() { return 1; }
1594 #endif
1596 main ()
1600 return 0;
1602 _ACEOF
1603 ac_clean_files_save=$ac_clean_files
1604 ac_clean_files="$ac_clean_files a.out a.exe"
1605 # Try to create an executable without -o first, disregard a.out.
1606 # It will help us diagnose broken compilers, and finding out an intuition
1607 # of exeext.
1608 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1609 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1610 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1611 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1612 (eval $ac_link_default) 2>&5
1613 ac_status=$?
1614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1615 (exit $ac_status); }; then
1616 # Find the output, starting from the most likely. This scheme is
1617 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1618 # resort.
1620 # Be careful to initialize this variable, since it used to be cached.
1621 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1622 ac_cv_exeext=
1623 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1624 ls a.out conftest 2>/dev/null;
1625 ls a.* conftest.* 2>/dev/null`; do
1626 case $ac_file in
1627 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1628 a.out ) # We found the default executable, but exeext='' is most
1629 # certainly right.
1630 break;;
1631 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1632 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1633 export ac_cv_exeext
1634 break;;
1635 * ) break;;
1636 esac
1637 done
1638 else
1639 echo "$as_me: failed program was:" >&5
1640 cat conftest.$ac_ext >&5
1641 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5
1642 echo "$as_me: error: C++ compiler cannot create executables" >&2;}
1643 { (exit 77); exit 77; }; }
1646 ac_exeext=$ac_cv_exeext
1647 echo "$as_me:$LINENO: result: $ac_file" >&5
1648 echo "${ECHO_T}$ac_file" >&6
1650 # Check the compiler produces executables we can run. If not, either
1651 # the compiler is broken, or we cross compile.
1652 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1653 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1654 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1655 # If not cross compiling, check that we can run a simple program.
1656 if test "$cross_compiling" != yes; then
1657 if { ac_try='./$ac_file'
1658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1659 (eval $ac_try) 2>&5
1660 ac_status=$?
1661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1662 (exit $ac_status); }; }; then
1663 cross_compiling=no
1664 else
1665 if test "$cross_compiling" = maybe; then
1666 cross_compiling=yes
1667 else
1668 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1669 If you meant to cross compile, use \`--host'." >&5
1670 echo "$as_me: error: cannot run C++ compiled programs.
1671 If you meant to cross compile, use \`--host'." >&2;}
1672 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: yes" >&5
1677 echo "${ECHO_T}yes" >&6
1679 rm -f a.out a.exe conftest$ac_cv_exeext
1680 ac_clean_files=$ac_clean_files_save
1681 # Check the compiler produces executables we can run. If not, either
1682 # the compiler is broken, or we cross compile.
1683 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1684 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1685 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1686 echo "${ECHO_T}$cross_compiling" >&6
1688 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1689 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1691 (eval $ac_link) 2>&5
1692 ac_status=$?
1693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1694 (exit $ac_status); }; then
1695 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1696 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1697 # work properly (i.e., refer to `conftest.exe'), while it won't with
1698 # `rm'.
1699 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1700 case $ac_file in
1701 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1702 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1703 export ac_cv_exeext
1704 break;;
1705 * ) break;;
1706 esac
1707 done
1708 else
1709 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1710 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1711 { (exit 1); exit 1; }; }
1714 rm -f conftest$ac_cv_exeext
1715 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1716 echo "${ECHO_T}$ac_cv_exeext" >&6
1718 rm -f conftest.$ac_ext
1719 EXEEXT=$ac_cv_exeext
1720 ac_exeext=$EXEEXT
1722 ac_ext=c
1723 ac_cpp='$CPP $CPPFLAGS'
1724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1733 # If the user switches compilers, we can't believe the cache
1734 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1735 then
1736 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1737 (it is also a good idea to do 'make clean' before compiling)" >&5
1738 echo "$as_me: error: cached CC is different -- throw away $cache_file
1739 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1740 { (exit 1); exit 1; }; }
1743 ac_ext=c
1744 ac_cpp='$CPP $CPPFLAGS'
1745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1748 if test -n "$ac_tool_prefix"; then
1749 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1750 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1751 echo "$as_me:$LINENO: checking for $ac_word" >&5
1752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1753 if test "${ac_cv_prog_CC+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1755 else
1756 if test -n "$CC"; then
1757 ac_cv_prog_CC="$CC" # Let the user override the test.
1758 else
1759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760 for as_dir in $PATH
1762 IFS=$as_save_IFS
1763 test -z "$as_dir" && as_dir=.
1764 for ac_exec_ext in '' $ac_executable_extensions; do
1765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1766 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1768 break 2
1770 done
1771 done
1775 CC=$ac_cv_prog_CC
1776 if test -n "$CC"; then
1777 echo "$as_me:$LINENO: result: $CC" >&5
1778 echo "${ECHO_T}$CC" >&6
1779 else
1780 echo "$as_me:$LINENO: result: no" >&5
1781 echo "${ECHO_T}no" >&6
1785 if test -z "$ac_cv_prog_CC"; then
1786 ac_ct_CC=$CC
1787 # Extract the first word of "gcc", so it can be a program name with args.
1788 set dummy gcc; ac_word=$2
1789 echo "$as_me:$LINENO: checking for $ac_word" >&5
1790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1791 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1793 else
1794 if test -n "$ac_ct_CC"; then
1795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1796 else
1797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798 for as_dir in $PATH
1800 IFS=$as_save_IFS
1801 test -z "$as_dir" && as_dir=.
1802 for ac_exec_ext in '' $ac_executable_extensions; do
1803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1804 ac_cv_prog_ac_ct_CC="gcc"
1805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1806 break 2
1808 done
1809 done
1813 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1814 if test -n "$ac_ct_CC"; then
1815 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1816 echo "${ECHO_T}$ac_ct_CC" >&6
1817 else
1818 echo "$as_me:$LINENO: result: no" >&5
1819 echo "${ECHO_T}no" >&6
1822 CC=$ac_ct_CC
1823 else
1824 CC="$ac_cv_prog_CC"
1827 if test -z "$CC"; then
1828 if test -n "$ac_tool_prefix"; then
1829 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1830 set dummy ${ac_tool_prefix}cc; ac_word=$2
1831 echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833 if test "${ac_cv_prog_CC+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 else
1836 if test -n "$CC"; then
1837 ac_cv_prog_CC="$CC" # Let the user override the test.
1838 else
1839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 for as_dir in $PATH
1842 IFS=$as_save_IFS
1843 test -z "$as_dir" && as_dir=.
1844 for ac_exec_ext in '' $ac_executable_extensions; do
1845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1846 ac_cv_prog_CC="${ac_tool_prefix}cc"
1847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1848 break 2
1850 done
1851 done
1855 CC=$ac_cv_prog_CC
1856 if test -n "$CC"; then
1857 echo "$as_me:$LINENO: result: $CC" >&5
1858 echo "${ECHO_T}$CC" >&6
1859 else
1860 echo "$as_me:$LINENO: result: no" >&5
1861 echo "${ECHO_T}no" >&6
1865 if test -z "$ac_cv_prog_CC"; then
1866 ac_ct_CC=$CC
1867 # Extract the first word of "cc", so it can be a program name with args.
1868 set dummy cc; ac_word=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874 if test -n "$ac_ct_CC"; then
1875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1876 else
1877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 for as_dir in $PATH
1880 IFS=$as_save_IFS
1881 test -z "$as_dir" && as_dir=.
1882 for ac_exec_ext in '' $ac_executable_extensions; do
1883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884 ac_cv_prog_ac_ct_CC="cc"
1885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886 break 2
1888 done
1889 done
1893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1894 if test -n "$ac_ct_CC"; then
1895 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1896 echo "${ECHO_T}$ac_ct_CC" >&6
1897 else
1898 echo "$as_me:$LINENO: result: no" >&5
1899 echo "${ECHO_T}no" >&6
1902 CC=$ac_ct_CC
1903 else
1904 CC="$ac_cv_prog_CC"
1908 if test -z "$CC"; then
1909 # Extract the first word of "cc", so it can be a program name with args.
1910 set dummy cc; ac_word=$2
1911 echo "$as_me:$LINENO: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913 if test "${ac_cv_prog_CC+set}" = set; then
1914 echo $ECHO_N "(cached) $ECHO_C" >&6
1915 else
1916 if test -n "$CC"; then
1917 ac_cv_prog_CC="$CC" # Let the user override the test.
1918 else
1919 ac_prog_rejected=no
1920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921 for as_dir in $PATH
1923 IFS=$as_save_IFS
1924 test -z "$as_dir" && as_dir=.
1925 for ac_exec_ext in '' $ac_executable_extensions; do
1926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1928 ac_prog_rejected=yes
1929 continue
1931 ac_cv_prog_CC="cc"
1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933 break 2
1935 done
1936 done
1938 if test $ac_prog_rejected = yes; then
1939 # We found a bogon in the path, so make sure we never use it.
1940 set dummy $ac_cv_prog_CC
1941 shift
1942 if test $# != 0; then
1943 # We chose a different compiler from the bogus one.
1944 # However, it has the same basename, so the bogon will be chosen
1945 # first if we set CC to just the basename; use the full file name.
1946 shift
1947 set dummy "$as_dir/$ac_word" ${1+"$@"}
1948 shift
1949 ac_cv_prog_CC="$@"
1954 CC=$ac_cv_prog_CC
1955 if test -n "$CC"; then
1956 echo "$as_me:$LINENO: result: $CC" >&5
1957 echo "${ECHO_T}$CC" >&6
1958 else
1959 echo "$as_me:$LINENO: result: no" >&5
1960 echo "${ECHO_T}no" >&6
1964 if test -z "$CC"; then
1965 if test -n "$ac_tool_prefix"; then
1966 for ac_prog in cl
1968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1970 echo "$as_me:$LINENO: checking for $ac_word" >&5
1971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1972 if test "${ac_cv_prog_CC+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975 if test -n "$CC"; then
1976 ac_cv_prog_CC="$CC" # Let the user override the test.
1977 else
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979 for as_dir in $PATH
1981 IFS=$as_save_IFS
1982 test -z "$as_dir" && as_dir=.
1983 for ac_exec_ext in '' $ac_executable_extensions; do
1984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1985 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987 break 2
1989 done
1990 done
1994 CC=$ac_cv_prog_CC
1995 if test -n "$CC"; then
1996 echo "$as_me:$LINENO: result: $CC" >&5
1997 echo "${ECHO_T}$CC" >&6
1998 else
1999 echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6
2003 test -n "$CC" && break
2004 done
2006 if test -z "$CC"; then
2007 ac_ct_CC=$CC
2008 for ac_prog in cl
2010 # Extract the first word of "$ac_prog", so it can be a program name with args.
2011 set dummy $ac_prog; ac_word=$2
2012 echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2014 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2016 else
2017 if test -n "$ac_ct_CC"; then
2018 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2019 else
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 for as_dir in $PATH
2023 IFS=$as_save_IFS
2024 test -z "$as_dir" && as_dir=.
2025 for ac_exec_ext in '' $ac_executable_extensions; do
2026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2027 ac_cv_prog_ac_ct_CC="$ac_prog"
2028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 break 2
2031 done
2032 done
2036 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2037 if test -n "$ac_ct_CC"; then
2038 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2039 echo "${ECHO_T}$ac_ct_CC" >&6
2040 else
2041 echo "$as_me:$LINENO: result: no" >&5
2042 echo "${ECHO_T}no" >&6
2045 test -n "$ac_ct_CC" && break
2046 done
2048 CC=$ac_ct_CC
2054 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2055 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2056 { (exit 1); exit 1; }; }
2058 # Provide some information about the compiler.
2059 echo "$as_me:$LINENO:" \
2060 "checking for C compiler version" >&5
2061 ac_compiler=`set X $ac_compile; echo $2`
2062 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2063 (eval $ac_compiler --version </dev/null >&5) 2>&5
2064 ac_status=$?
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }
2067 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2068 (eval $ac_compiler -v </dev/null >&5) 2>&5
2069 ac_status=$?
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }
2072 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2073 (eval $ac_compiler -V </dev/null >&5) 2>&5
2074 ac_status=$?
2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076 (exit $ac_status); }
2078 cat >conftest.$ac_ext <<_ACEOF
2079 #line $LINENO "configure"
2080 #include "confdefs.h"
2082 #ifdef F77_DUMMY_MAIN
2083 # ifdef __cplusplus
2084 extern "C"
2085 # endif
2086 int F77_DUMMY_MAIN() { return 1; }
2087 #endif
2089 main ()
2093 return 0;
2095 _ACEOF
2096 ac_clean_files_save=$ac_clean_files
2097 ac_clean_files="$ac_clean_files a.out a.exe"
2098 # Try to create an executable without -o first, disregard a.out.
2099 # It will help us diagnose broken compilers, and finding out an intuition
2100 # of exeext.
2101 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2102 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2103 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2104 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2105 (eval $ac_link_default) 2>&5
2106 ac_status=$?
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }; then
2109 # Find the output, starting from the most likely. This scheme is
2110 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2111 # resort.
2113 # Be careful to initialize this variable, since it used to be cached.
2114 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2115 ac_cv_exeext=
2116 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2117 ls a.out conftest 2>/dev/null;
2118 ls a.* conftest.* 2>/dev/null`; do
2119 case $ac_file in
2120 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2121 a.out ) # We found the default executable, but exeext='' is most
2122 # certainly right.
2123 break;;
2124 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2125 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2126 export ac_cv_exeext
2127 break;;
2128 * ) break;;
2129 esac
2130 done
2131 else
2132 echo "$as_me: failed program was:" >&5
2133 cat conftest.$ac_ext >&5
2134 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2135 echo "$as_me: error: C compiler cannot create executables" >&2;}
2136 { (exit 77); exit 77; }; }
2139 ac_exeext=$ac_cv_exeext
2140 echo "$as_me:$LINENO: result: $ac_file" >&5
2141 echo "${ECHO_T}$ac_file" >&6
2143 # Check the compiler produces executables we can run. If not, either
2144 # the compiler is broken, or we cross compile.
2145 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2146 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2147 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2148 # If not cross compiling, check that we can run a simple program.
2149 if test "$cross_compiling" != yes; then
2150 if { ac_try='./$ac_file'
2151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152 (eval $ac_try) 2>&5
2153 ac_status=$?
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; }; then
2156 cross_compiling=no
2157 else
2158 if test "$cross_compiling" = maybe; then
2159 cross_compiling=yes
2160 else
2161 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2162 If you meant to cross compile, use \`--host'." >&5
2163 echo "$as_me: error: cannot run C compiled programs.
2164 If you meant to cross compile, use \`--host'." >&2;}
2165 { (exit 1); exit 1; }; }
2169 echo "$as_me:$LINENO: result: yes" >&5
2170 echo "${ECHO_T}yes" >&6
2172 rm -f a.out a.exe conftest$ac_cv_exeext
2173 ac_clean_files=$ac_clean_files_save
2174 # Check the compiler produces executables we can run. If not, either
2175 # the compiler is broken, or we cross compile.
2176 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2177 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2178 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2179 echo "${ECHO_T}$cross_compiling" >&6
2181 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2182 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2184 (eval $ac_link) 2>&5
2185 ac_status=$?
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; then
2188 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2189 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2190 # work properly (i.e., refer to `conftest.exe'), while it won't with
2191 # `rm'.
2192 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2193 case $ac_file in
2194 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2195 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2196 export ac_cv_exeext
2197 break;;
2198 * ) break;;
2199 esac
2200 done
2201 else
2202 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2203 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2204 { (exit 1); exit 1; }; }
2207 rm -f conftest$ac_cv_exeext
2208 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2209 echo "${ECHO_T}$ac_cv_exeext" >&6
2211 rm -f conftest.$ac_ext
2212 EXEEXT=$ac_cv_exeext
2213 ac_exeext=$EXEEXT
2214 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2215 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2216 if test "${ac_cv_objext+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 else
2219 cat >conftest.$ac_ext <<_ACEOF
2220 #line $LINENO "configure"
2221 #include "confdefs.h"
2223 #ifdef F77_DUMMY_MAIN
2224 # ifdef __cplusplus
2225 extern "C"
2226 # endif
2227 int F77_DUMMY_MAIN() { return 1; }
2228 #endif
2230 main ()
2234 return 0;
2236 _ACEOF
2237 rm -f conftest.o conftest.obj
2238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239 (eval $ac_compile) 2>&5
2240 ac_status=$?
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; then
2243 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2244 case $ac_file in
2245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2246 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2247 break;;
2248 esac
2249 done
2250 else
2251 echo "$as_me: failed program was:" >&5
2252 cat conftest.$ac_ext >&5
2253 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2254 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2255 { (exit 1); exit 1; }; }
2258 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2260 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2261 echo "${ECHO_T}$ac_cv_objext" >&6
2262 OBJEXT=$ac_cv_objext
2263 ac_objext=$OBJEXT
2264 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2265 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2266 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2268 else
2269 cat >conftest.$ac_ext <<_ACEOF
2270 #line $LINENO "configure"
2271 #include "confdefs.h"
2273 #ifdef F77_DUMMY_MAIN
2274 # ifdef __cplusplus
2275 extern "C"
2276 # endif
2277 int F77_DUMMY_MAIN() { return 1; }
2278 #endif
2280 main ()
2282 #ifndef __GNUC__
2283 choke me
2284 #endif
2287 return 0;
2289 _ACEOF
2290 rm -f conftest.$ac_objext
2291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2292 (eval $ac_compile) 2>&5
2293 ac_status=$?
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); } &&
2296 { ac_try='test -s conftest.$ac_objext'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298 (eval $ac_try) 2>&5
2299 ac_status=$?
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; }; then
2302 ac_compiler_gnu=yes
2303 else
2304 echo "$as_me: failed program was:" >&5
2305 cat conftest.$ac_ext >&5
2306 ac_compiler_gnu=no
2308 rm -f conftest.$ac_objext conftest.$ac_ext
2309 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2312 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2313 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2314 GCC=`test $ac_compiler_gnu = yes && echo yes`
2315 ac_test_CFLAGS=${CFLAGS+set}
2316 ac_save_CFLAGS=$CFLAGS
2317 CFLAGS="-g"
2318 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2319 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2320 if test "${ac_cv_prog_cc_g+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 else
2323 cat >conftest.$ac_ext <<_ACEOF
2324 #line $LINENO "configure"
2325 #include "confdefs.h"
2327 #ifdef F77_DUMMY_MAIN
2328 # ifdef __cplusplus
2329 extern "C"
2330 # endif
2331 int F77_DUMMY_MAIN() { return 1; }
2332 #endif
2334 main ()
2338 return 0;
2340 _ACEOF
2341 rm -f conftest.$ac_objext
2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343 (eval $ac_compile) 2>&5
2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); } &&
2347 { ac_try='test -s conftest.$ac_objext'
2348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349 (eval $ac_try) 2>&5
2350 ac_status=$?
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; }; then
2353 ac_cv_prog_cc_g=yes
2354 else
2355 echo "$as_me: failed program was:" >&5
2356 cat conftest.$ac_ext >&5
2357 ac_cv_prog_cc_g=no
2359 rm -f conftest.$ac_objext conftest.$ac_ext
2361 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2362 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2363 if test "$ac_test_CFLAGS" = set; then
2364 CFLAGS=$ac_save_CFLAGS
2365 elif test $ac_cv_prog_cc_g = yes; then
2366 if test "$GCC" = yes; then
2367 CFLAGS="-g -O2"
2368 else
2369 CFLAGS="-g"
2371 else
2372 if test "$GCC" = yes; then
2373 CFLAGS="-O2"
2374 else
2375 CFLAGS=
2378 # Some people use a C++ compiler to compile C. Since we use `exit',
2379 # in C++ we need to declare it. In case someone uses the same compiler
2380 # for both compiling C and C++ we need to have the C++ compiler decide
2381 # the declaration of exit, since it's the most demanding environment.
2382 cat >conftest.$ac_ext <<_ACEOF
2383 #ifndef __cplusplus
2384 choke me
2385 #endif
2386 _ACEOF
2387 rm -f conftest.$ac_objext
2388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2389 (eval $ac_compile) 2>&5
2390 ac_status=$?
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } &&
2393 { ac_try='test -s conftest.$ac_objext'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 (eval $ac_try) 2>&5
2396 ac_status=$?
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; }; then
2399 for ac_declaration in \
2401 '#include <stdlib.h>' \
2402 'extern "C" void std::exit (int) throw (); using std::exit;' \
2403 'extern "C" void std::exit (int); using std::exit;' \
2404 'extern "C" void exit (int) throw ();' \
2405 'extern "C" void exit (int);' \
2406 'void exit (int);'
2408 cat >conftest.$ac_ext <<_ACEOF
2409 #line $LINENO "configure"
2410 #include "confdefs.h"
2411 #include <stdlib.h>
2412 $ac_declaration
2413 #ifdef F77_DUMMY_MAIN
2414 # ifdef __cplusplus
2415 extern "C"
2416 # endif
2417 int F77_DUMMY_MAIN() { return 1; }
2418 #endif
2420 main ()
2422 exit (42);
2424 return 0;
2426 _ACEOF
2427 rm -f conftest.$ac_objext
2428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2429 (eval $ac_compile) 2>&5
2430 ac_status=$?
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); } &&
2433 { ac_try='test -s conftest.$ac_objext'
2434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435 (eval $ac_try) 2>&5
2436 ac_status=$?
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; }; then
2440 else
2441 echo "$as_me: failed program was:" >&5
2442 cat conftest.$ac_ext >&5
2443 continue
2445 rm -f conftest.$ac_objext conftest.$ac_ext
2446 cat >conftest.$ac_ext <<_ACEOF
2447 #line $LINENO "configure"
2448 #include "confdefs.h"
2449 $ac_declaration
2450 #ifdef F77_DUMMY_MAIN
2451 # ifdef __cplusplus
2452 extern "C"
2453 # endif
2454 int F77_DUMMY_MAIN() { return 1; }
2455 #endif
2457 main ()
2459 exit (42);
2461 return 0;
2463 _ACEOF
2464 rm -f conftest.$ac_objext
2465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2466 (eval $ac_compile) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); } &&
2470 { ac_try='test -s conftest.$ac_objext'
2471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 (eval $ac_try) 2>&5
2473 ac_status=$?
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2476 break
2477 else
2478 echo "$as_me: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2481 rm -f conftest.$ac_objext conftest.$ac_ext
2482 done
2483 rm -f conftest*
2484 if test -n "$ac_declaration"; then
2485 echo '#ifdef __cplusplus' >>confdefs.h
2486 echo $ac_declaration >>confdefs.h
2487 echo '#endif' >>confdefs.h
2490 else
2491 echo "$as_me: failed program was:" >&5
2492 cat conftest.$ac_ext >&5
2494 rm -f conftest.$ac_objext conftest.$ac_ext
2495 ac_ext=c
2496 ac_cpp='$CPP $CPPFLAGS'
2497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2502 # checks for UNIX variants that set C preprocessor variables
2504 ac_ext=c
2505 ac_cpp='$CPP $CPPFLAGS'
2506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2509 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2510 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2511 # On Suns, sometimes $CPP names a directory.
2512 if test -n "$CPP" && test -d "$CPP"; then
2513 CPP=
2515 if test -z "$CPP"; then
2516 if test "${ac_cv_prog_CPP+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519 # Double quotes because CPP needs to be expanded
2520 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2522 ac_preproc_ok=false
2523 for ac_c_preproc_warn_flag in '' yes
2525 # Use a header file that comes with gcc, so configuring glibc
2526 # with a fresh cross-compiler works.
2527 # On the NeXT, cc -E runs the code through the compiler's parser,
2528 # not just through cpp. "Syntax error" is here to catch this case.
2529 cat >conftest.$ac_ext <<_ACEOF
2530 #line $LINENO "configure"
2531 #include "confdefs.h"
2532 #include <assert.h>
2533 Syntax error
2534 _ACEOF
2535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2537 ac_status=$?
2538 egrep -v '^ *\+' conftest.er1 >conftest.err
2539 rm -f conftest.er1
2540 cat conftest.err >&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); } >/dev/null; then
2543 if test -s conftest.err; then
2544 ac_cpp_err=$ac_c_preproc_warn_flag
2545 else
2546 ac_cpp_err=
2548 else
2549 ac_cpp_err=yes
2551 if test -z "$ac_cpp_err"; then
2553 else
2554 echo "$as_me: failed program was:" >&5
2555 cat conftest.$ac_ext >&5
2556 # Broken: fails on valid input.
2557 continue
2559 rm -f conftest.err conftest.$ac_ext
2561 # OK, works on sane cases. Now check whether non-existent headers
2562 # can be detected and how.
2563 cat >conftest.$ac_ext <<_ACEOF
2564 #line $LINENO "configure"
2565 #include "confdefs.h"
2566 #include <ac_nonexistent.h>
2567 _ACEOF
2568 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2570 ac_status=$?
2571 egrep -v '^ *\+' conftest.er1 >conftest.err
2572 rm -f conftest.er1
2573 cat conftest.err >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); } >/dev/null; then
2576 if test -s conftest.err; then
2577 ac_cpp_err=$ac_c_preproc_warn_flag
2578 else
2579 ac_cpp_err=
2581 else
2582 ac_cpp_err=yes
2584 if test -z "$ac_cpp_err"; then
2585 # Broken: success on invalid input.
2586 continue
2587 else
2588 echo "$as_me: failed program was:" >&5
2589 cat conftest.$ac_ext >&5
2590 # Passes both tests.
2591 ac_preproc_ok=:
2592 break
2594 rm -f conftest.err conftest.$ac_ext
2596 done
2597 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2598 rm -f conftest.err conftest.$ac_ext
2599 if $ac_preproc_ok; then
2600 break
2603 done
2604 ac_cv_prog_CPP=$CPP
2607 CPP=$ac_cv_prog_CPP
2608 else
2609 ac_cv_prog_CPP=$CPP
2611 echo "$as_me:$LINENO: result: $CPP" >&5
2612 echo "${ECHO_T}$CPP" >&6
2613 ac_preproc_ok=false
2614 for ac_c_preproc_warn_flag in '' yes
2616 # Use a header file that comes with gcc, so configuring glibc
2617 # with a fresh cross-compiler works.
2618 # On the NeXT, cc -E runs the code through the compiler's parser,
2619 # not just through cpp. "Syntax error" is here to catch this case.
2620 cat >conftest.$ac_ext <<_ACEOF
2621 #line $LINENO "configure"
2622 #include "confdefs.h"
2623 #include <assert.h>
2624 Syntax error
2625 _ACEOF
2626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2628 ac_status=$?
2629 egrep -v '^ *\+' conftest.er1 >conftest.err
2630 rm -f conftest.er1
2631 cat conftest.err >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); } >/dev/null; then
2634 if test -s conftest.err; then
2635 ac_cpp_err=$ac_c_preproc_warn_flag
2636 else
2637 ac_cpp_err=
2639 else
2640 ac_cpp_err=yes
2642 if test -z "$ac_cpp_err"; then
2644 else
2645 echo "$as_me: failed program was:" >&5
2646 cat conftest.$ac_ext >&5
2647 # Broken: fails on valid input.
2648 continue
2650 rm -f conftest.err conftest.$ac_ext
2652 # OK, works on sane cases. Now check whether non-existent headers
2653 # can be detected and how.
2654 cat >conftest.$ac_ext <<_ACEOF
2655 #line $LINENO "configure"
2656 #include "confdefs.h"
2657 #include <ac_nonexistent.h>
2658 _ACEOF
2659 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2661 ac_status=$?
2662 egrep -v '^ *\+' conftest.er1 >conftest.err
2663 rm -f conftest.er1
2664 cat conftest.err >&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); } >/dev/null; then
2667 if test -s conftest.err; then
2668 ac_cpp_err=$ac_c_preproc_warn_flag
2669 else
2670 ac_cpp_err=
2672 else
2673 ac_cpp_err=yes
2675 if test -z "$ac_cpp_err"; then
2676 # Broken: success on invalid input.
2677 continue
2678 else
2679 echo "$as_me: failed program was:" >&5
2680 cat conftest.$ac_ext >&5
2681 # Passes both tests.
2682 ac_preproc_ok=:
2683 break
2685 rm -f conftest.err conftest.$ac_ext
2687 done
2688 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2689 rm -f conftest.err conftest.$ac_ext
2690 if $ac_preproc_ok; then
2692 else
2693 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2694 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2695 { (exit 1); exit 1; }; }
2698 ac_ext=c
2699 ac_cpp='$CPP $CPPFLAGS'
2700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2706 echo "$as_me:$LINENO: checking for AIX" >&5
2707 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2708 cat >conftest.$ac_ext <<_ACEOF
2709 #line $LINENO "configure"
2710 #include "confdefs.h"
2711 #ifdef _AIX
2713 #endif
2715 _ACEOF
2716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2717 egrep "yes" >/dev/null 2>&1; then
2718 echo "$as_me:$LINENO: result: yes" >&5
2719 echo "${ECHO_T}yes" >&6
2720 cat >>confdefs.h <<\_ACEOF
2721 #define _ALL_SOURCE 1
2722 _ACEOF
2724 else
2725 echo "$as_me:$LINENO: result: no" >&5
2726 echo "${ECHO_T}no" >&6
2728 rm -f conftest*
2731 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2732 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2733 if test "${ac_cv_header_stdc+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 else
2736 cat >conftest.$ac_ext <<_ACEOF
2737 #line $LINENO "configure"
2738 #include "confdefs.h"
2739 #include <stdlib.h>
2740 #include <stdarg.h>
2741 #include <string.h>
2742 #include <float.h>
2744 _ACEOF
2745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2747 ac_status=$?
2748 egrep -v '^ *\+' conftest.er1 >conftest.err
2749 rm -f conftest.er1
2750 cat conftest.err >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } >/dev/null; then
2753 if test -s conftest.err; then
2754 ac_cpp_err=$ac_c_preproc_warn_flag
2755 else
2756 ac_cpp_err=
2758 else
2759 ac_cpp_err=yes
2761 if test -z "$ac_cpp_err"; then
2762 ac_cv_header_stdc=yes
2763 else
2764 echo "$as_me: failed program was:" >&5
2765 cat conftest.$ac_ext >&5
2766 ac_cv_header_stdc=no
2768 rm -f conftest.err conftest.$ac_ext
2770 if test $ac_cv_header_stdc = yes; then
2771 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2772 cat >conftest.$ac_ext <<_ACEOF
2773 #line $LINENO "configure"
2774 #include "confdefs.h"
2775 #include <string.h>
2777 _ACEOF
2778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2779 egrep "memchr" >/dev/null 2>&1; then
2781 else
2782 ac_cv_header_stdc=no
2784 rm -f conftest*
2788 if test $ac_cv_header_stdc = yes; then
2789 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2790 cat >conftest.$ac_ext <<_ACEOF
2791 #line $LINENO "configure"
2792 #include "confdefs.h"
2793 #include <stdlib.h>
2795 _ACEOF
2796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2797 egrep "free" >/dev/null 2>&1; then
2799 else
2800 ac_cv_header_stdc=no
2802 rm -f conftest*
2806 if test $ac_cv_header_stdc = yes; then
2807 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2808 if test "$cross_compiling" = yes; then
2810 else
2811 cat >conftest.$ac_ext <<_ACEOF
2812 #line $LINENO "configure"
2813 #include "confdefs.h"
2814 #include <ctype.h>
2815 #if ((' ' & 0x0FF) == 0x020)
2816 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2817 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2818 #else
2819 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2820 || ('j' <= (c) && (c) <= 'r') \
2821 || ('s' <= (c) && (c) <= 'z'))
2822 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2823 #endif
2825 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2827 main ()
2829 int i;
2830 for (i = 0; i < 256; i++)
2831 if (XOR (islower (i), ISLOWER (i))
2832 || toupper (i) != TOUPPER (i))
2833 exit(2);
2834 exit (0);
2836 _ACEOF
2837 rm -f conftest$ac_exeext
2838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2839 (eval $ac_link) 2>&5
2840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844 (eval $ac_try) 2>&5
2845 ac_status=$?
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
2849 else
2850 echo "$as_me: program exited with status $ac_status" >&5
2851 echo "$as_me: failed program was:" >&5
2852 cat conftest.$ac_ext >&5
2853 ( exit $ac_status )
2854 ac_cv_header_stdc=no
2856 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2860 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2861 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2862 if test $ac_cv_header_stdc = yes; then
2864 cat >>confdefs.h <<\_ACEOF
2865 #define STDC_HEADERS 1
2866 _ACEOF
2870 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2880 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2881 inttypes.h stdint.h unistd.h
2883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2884 echo "$as_me:$LINENO: checking for $ac_header" >&5
2885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 else
2889 cat >conftest.$ac_ext <<_ACEOF
2890 #line $LINENO "configure"
2891 #include "confdefs.h"
2892 $ac_includes_default
2894 #include <$ac_header>
2895 _ACEOF
2896 rm -f conftest.$ac_objext
2897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2898 (eval $ac_compile) 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); } &&
2902 { ac_try='test -s conftest.$ac_objext'
2903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904 (eval $ac_try) 2>&5
2905 ac_status=$?
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; }; then
2908 eval "$as_ac_Header=yes"
2909 else
2910 echo "$as_me: failed program was:" >&5
2911 cat conftest.$ac_ext >&5
2912 eval "$as_ac_Header=no"
2914 rm -f conftest.$ac_objext conftest.$ac_ext
2916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2919 cat >>confdefs.h <<_ACEOF
2920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2921 _ACEOF
2925 done
2928 if test "${ac_cv_header_minix_config_h+set}" = set; then
2929 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2930 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2931 if test "${ac_cv_header_minix_config_h+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2934 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2935 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2936 else
2937 # Is the header compilable?
2938 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2939 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2940 cat >conftest.$ac_ext <<_ACEOF
2941 #line $LINENO "configure"
2942 #include "confdefs.h"
2943 $ac_includes_default
2944 #include <minix/config.h>
2945 _ACEOF
2946 rm -f conftest.$ac_objext
2947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2948 (eval $ac_compile) 2>&5
2949 ac_status=$?
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } &&
2952 { ac_try='test -s conftest.$ac_objext'
2953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954 (eval $ac_try) 2>&5
2955 ac_status=$?
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; }; then
2958 ac_header_compiler=yes
2959 else
2960 echo "$as_me: failed program was:" >&5
2961 cat conftest.$ac_ext >&5
2962 ac_header_compiler=no
2964 rm -f conftest.$ac_objext conftest.$ac_ext
2965 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2966 echo "${ECHO_T}$ac_header_compiler" >&6
2968 # Is the header present?
2969 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2970 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2971 cat >conftest.$ac_ext <<_ACEOF
2972 #line $LINENO "configure"
2973 #include "confdefs.h"
2974 #include <minix/config.h>
2975 _ACEOF
2976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2978 ac_status=$?
2979 egrep -v '^ *\+' conftest.er1 >conftest.err
2980 rm -f conftest.er1
2981 cat conftest.err >&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } >/dev/null; then
2984 if test -s conftest.err; then
2985 ac_cpp_err=$ac_c_preproc_warn_flag
2986 else
2987 ac_cpp_err=
2989 else
2990 ac_cpp_err=yes
2992 if test -z "$ac_cpp_err"; then
2993 ac_header_preproc=yes
2994 else
2995 echo "$as_me: failed program was:" >&5
2996 cat conftest.$ac_ext >&5
2997 ac_header_preproc=no
2999 rm -f conftest.err conftest.$ac_ext
3000 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3001 echo "${ECHO_T}$ac_header_preproc" >&6
3003 # So? What about this header?
3004 case $ac_header_compiler:$ac_header_preproc in
3005 yes:no )
3006 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3007 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3008 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3009 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
3010 no:yes )
3011 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3012 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3013 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3014 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3015 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3016 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
3017 esac
3018 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3019 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3020 if test "${ac_cv_header_minix_config_h+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023 ac_cv_header_minix_config_h=$ac_header_preproc
3025 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3026 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3029 if test $ac_cv_header_minix_config_h = yes; then
3030 MINIX=yes
3031 else
3032 MINIX=
3036 if test "$MINIX" = yes; then
3038 cat >>confdefs.h <<\_ACEOF
3039 #define _POSIX_SOURCE 1
3040 _ACEOF
3043 cat >>confdefs.h <<\_ACEOF
3044 #define _POSIX_1_SOURCE 2
3045 _ACEOF
3048 cat >>confdefs.h <<\_ACEOF
3049 #define _MINIX 1
3050 _ACEOF
3055 # Check for unsupported systems
3056 case $ac_sys_system/$ac_sys_release in
3057 SunOS/4*|DYNIX/*|dgux*/*|IRIX/4*|Linux*/1*)
3058 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3059 echo See README for details.
3060 exit 1;;
3061 esac
3063 if test "$MINIX" = yes; then
3064 echo This system \(MINIX\) is no longer supported.
3065 echo Read README for details.
3066 exit 1
3070 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3071 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3073 # Check whether --with-suffix or --without-suffix was given.
3074 if test "${with_suffix+set}" = set; then
3075 withval="$with_suffix"
3077 case $withval in
3078 no) EXEEXT=;;
3079 yes) EXEEXT=.exe;;
3080 *) EXEEXT=$withval;;
3081 esac
3083 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3084 echo "${ECHO_T}$EXEEXT" >&6
3086 # Test whether we're running on a non-case-sensitive system, in which
3087 # case we give a warning if no ext is given
3089 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3090 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3091 if test ! -d CaseSensitiveTestDir; then
3092 mkdir CaseSensitiveTestDir
3095 if test -d casesensitivetestdir
3096 then
3097 echo "$as_me:$LINENO: result: yes" >&5
3098 echo "${ECHO_T}yes" >&6
3099 BUILDEXEEXT=.exe
3100 else
3101 echo "$as_me:$LINENO: result: no" >&5
3102 echo "${ECHO_T}no" >&6
3103 BUILDEXEEXT=$EXEEXT
3105 rmdir CaseSensitiveTestDir
3107 case $MACHDEP in
3108 bsdos*)
3109 case $CC in
3110 gcc) CC="$CC -D_HAVE_BSDI";;
3111 esac;;
3112 esac
3114 case $ac_sys_system in
3115 hp*|HP*)
3116 case $CC in
3117 cc|*/cc) CC="$CC -Ae";;
3118 esac;;
3119 Monterey*)
3120 case $CC in
3121 cc) CC="$CC -Wl,-Bexport";;
3122 esac;;
3123 SunOS*)
3124 # Some functions have a prototype only with that define, e.g. confstr
3126 cat >>confdefs.h <<\_ACEOF
3127 #define __EXTENSIONS__ 1
3128 _ACEOF
3131 esac
3135 echo "$as_me:$LINENO: checking LIBRARY" >&5
3136 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3137 if test -z "$LIBRARY"
3138 then
3139 LIBRARY='libpython$(VERSION).a'
3141 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3142 echo "${ECHO_T}$LIBRARY" >&6
3144 # LDLIBRARY is the name of the library to link against (as opposed to the
3145 # name of the library into which to insert object files). BLDLIBRARY is also
3146 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3147 # is blank as the main program is not linked directly against LDLIBRARY.
3148 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3149 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3150 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3151 # DLLLIBRARY is the shared (i.e., DLL) library.
3153 # RUNSHARED is used to run shared python without installed libraries
3155 # INSTSONAME is the name of the shared library that will be use to install
3156 # on the system - some systems like version suffix, others don't
3163 LDLIBRARY="$LIBRARY"
3164 BLDLIBRARY='$(LDLIBRARY)'
3165 INSTSONAME='$(LDLIBRARY)'
3166 DLLLIBRARY=''
3167 LDLIBRARYDIR=''
3168 RUNSHARED=''
3170 # LINKCC is the command that links the python executable -- default is $(CC).
3171 # If CXX is set, and if it is needed to link a main function that was
3172 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3173 # python might then depend on the C++ runtime
3174 # This is altered for AIX in order to build the export list before
3175 # linking.
3177 echo "$as_me:$LINENO: checking LINKCC" >&5
3178 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3179 if test -z "$LINKCC"
3180 then
3181 if test -z "$CXX"; then
3182 LINKCC="\$(PURIFY) \$(CC)"
3183 else
3184 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
3185 $CXX -c conftest.$ac_ext 2>&5
3186 if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
3187 && test -s conftest$ac_exeext && ./conftest$ac_exeext
3188 then
3189 LINKCC="\$(PURIFY) \$(CC)"
3190 else
3191 LINKCC="\$(PURIFY) \$(CXX)"
3193 rm -fr conftest*
3195 case $ac_sys_system in
3196 AIX*)
3197 exp_extra="\"\""
3198 if test $ac_sys_release -ge 5 -o \
3199 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3200 exp_extra="."
3202 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3203 dgux*)
3204 LINKCC="LD_RUN_PATH=$libdir $LINKCC";;
3205 Monterey64*)
3206 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3207 esac
3209 echo "$as_me:$LINENO: result: $LINKCC" >&5
3210 echo "${ECHO_T}$LINKCC" >&6
3212 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3213 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3214 # Check whether --enable-shared or --disable-shared was given.
3215 if test "${enable_shared+set}" = set; then
3216 enableval="$enable_shared"
3220 if test -z "$enable_shared"
3221 then
3222 case $ac_sys_system in
3223 CYGWIN* | atheos*)
3224 enable_shared="yes";;
3226 enable_shared="no";;
3227 esac
3229 echo "$as_me:$LINENO: result: $enable_shared" >&5
3230 echo "${ECHO_T}$enable_shared" >&6
3233 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3234 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3236 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3237 # library that we build, but we do not want to link against it (we
3238 # will find it with a -framework option). For this reason there is an
3239 # extra variable BLDLIBRARY against which Python and the extension
3240 # modules are linked, BLDLIBRARY. This is normally the same as
3241 # LDLIBRARY, but empty for MacOSX framework builds.
3242 if test "$enable_framework"
3243 then
3244 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3245 LDLIBRARYDIR='$(PYTHONFRAMEWORKDIR)'
3246 BLDLIBRARY=''
3247 else
3248 BLDLIBRARY='$(LDLIBRARY)'
3251 # Other platforms follow
3252 if test $enable_shared = "yes"; then
3254 cat >>confdefs.h <<\_ACEOF
3255 #define Py_ENABLE_SHARED 1
3256 _ACEOF
3258 case $ac_sys_system in
3259 BeOS*)
3260 LDLIBRARY='libpython$(VERSION).so'
3262 CYGWIN*)
3263 LDLIBRARY='libpython$(VERSION).dll.a'
3264 DLLLIBRARY='libpython$(VERSION).dll'
3266 SunOS*)
3267 LDLIBRARY='libpython$(VERSION).so'
3268 BLDLIBRARY='-Wl,-rpath,$(LIBDIR) -L. -lpython$(VERSION)'
3269 RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH
3271 Linux*|GNU*|NetBSD*)
3272 LDLIBRARY='libpython$(VERSION).so'
3273 BLDLIBRARY='-L. -lpython$(VERSION)'
3274 RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH
3275 INSTSONAME="$LDLIBRARY".$SOVERSION
3277 hp*|HP*)
3278 LDLIBRARY='libpython$(VERSION).sl'
3279 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3280 RUNSHARED=SHLIB_PATH=`pwd`:$SHLIB_PATH
3282 OSF*)
3283 LDLIBRARY='libpython$(VERSION).so'
3284 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3285 RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH
3287 atheos*)
3288 LDLIBRARY='libpython$(VERSION).so'
3289 BLDLIBRARY='-L. -lpython$(VERSION)'
3290 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3292 esac
3293 # DG/UX requires some fancy ld contortions to produce a .so from an .a
3294 case $MACHDEP in
3295 dguxR4)
3296 LDLIBRARY='libpython$(VERSION).so'
3297 BASECFLAGS="$BASECFLAGS -pic"
3299 esac
3302 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3303 echo "${ECHO_T}$LDLIBRARY" >&6
3305 if test -n "$ac_tool_prefix"; then
3306 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3307 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3308 echo "$as_me:$LINENO: checking for $ac_word" >&5
3309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3310 if test "${ac_cv_prog_RANLIB+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 else
3313 if test -n "$RANLIB"; then
3314 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3315 else
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3319 IFS=$as_save_IFS
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3325 break 2
3327 done
3328 done
3332 RANLIB=$ac_cv_prog_RANLIB
3333 if test -n "$RANLIB"; then
3334 echo "$as_me:$LINENO: result: $RANLIB" >&5
3335 echo "${ECHO_T}$RANLIB" >&6
3336 else
3337 echo "$as_me:$LINENO: result: no" >&5
3338 echo "${ECHO_T}no" >&6
3342 if test -z "$ac_cv_prog_RANLIB"; then
3343 ac_ct_RANLIB=$RANLIB
3344 # Extract the first word of "ranlib", so it can be a program name with args.
3345 set dummy ranlib; ac_word=$2
3346 echo "$as_me:$LINENO: checking for $ac_word" >&5
3347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3348 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3350 else
3351 if test -n "$ac_ct_RANLIB"; then
3352 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3353 else
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 for as_dir in $PATH
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361 ac_cv_prog_ac_ct_RANLIB="ranlib"
3362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 break 2
3365 done
3366 done
3368 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3371 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3372 if test -n "$ac_ct_RANLIB"; then
3373 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3374 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3375 else
3376 echo "$as_me:$LINENO: result: no" >&5
3377 echo "${ECHO_T}no" >&6
3380 RANLIB=$ac_ct_RANLIB
3381 else
3382 RANLIB="$ac_cv_prog_RANLIB"
3386 for ac_prog in ar aal
3388 # Extract the first word of "$ac_prog", so it can be a program name with args.
3389 set dummy $ac_prog; ac_word=$2
3390 echo "$as_me:$LINENO: checking for $ac_word" >&5
3391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3392 if test "${ac_cv_prog_AR+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395 if test -n "$AR"; then
3396 ac_cv_prog_AR="$AR" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3401 IFS=$as_save_IFS
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405 ac_cv_prog_AR="$ac_prog"
3406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3407 break 2
3409 done
3410 done
3414 AR=$ac_cv_prog_AR
3415 if test -n "$AR"; then
3416 echo "$as_me:$LINENO: result: $AR" >&5
3417 echo "${ECHO_T}$AR" >&6
3418 else
3419 echo "$as_me:$LINENO: result: no" >&5
3420 echo "${ECHO_T}no" >&6
3423 test -n "$AR" && break
3424 done
3425 test -n "$AR" || AR="ar"
3428 case $MACHDEP in
3429 bsdos*|hp*|HP*)
3430 # install -d does not work on BSDI or HP-UX
3431 if test -z "$INSTALL"
3432 then
3433 INSTALL="${srcdir}/install-sh -c"
3435 esac
3436 ac_aux_dir=
3437 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3438 if test -f $ac_dir/install-sh; then
3439 ac_aux_dir=$ac_dir
3440 ac_install_sh="$ac_aux_dir/install-sh -c"
3441 break
3442 elif test -f $ac_dir/install.sh; then
3443 ac_aux_dir=$ac_dir
3444 ac_install_sh="$ac_aux_dir/install.sh -c"
3445 break
3446 elif test -f $ac_dir/shtool; then
3447 ac_aux_dir=$ac_dir
3448 ac_install_sh="$ac_aux_dir/shtool install -c"
3449 break
3451 done
3452 if test -z "$ac_aux_dir"; then
3453 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3454 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3455 { (exit 1); exit 1; }; }
3457 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3458 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3459 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3461 # Find a good install program. We prefer a C program (faster),
3462 # so one script is as good as another. But avoid the broken or
3463 # incompatible versions:
3464 # SysV /etc/install, /usr/sbin/install
3465 # SunOS /usr/etc/install
3466 # IRIX /sbin/install
3467 # AIX /bin/install
3468 # AmigaOS /C/install, which installs bootblocks on floppy discs
3469 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3470 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3471 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3472 # ./install, which can be erroneously created by make from ./install.sh.
3473 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3474 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3475 if test -z "$INSTALL"; then
3476 if test "${ac_cv_path_install+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3478 else
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 for as_dir in $PATH
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
3484 # Account for people who put trailing slashes in PATH elements.
3485 case $as_dir/ in
3486 ./ | .// | /cC/* | \
3487 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3488 /usr/ucb/* ) ;;
3490 # OSF1 and SCO ODT 3.0 have their own names for install.
3491 # Don't use installbsd from OSF since it installs stuff as root
3492 # by default.
3493 for ac_prog in ginstall scoinst install; do
3494 for ac_exec_ext in '' $ac_executable_extensions; do
3495 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3496 if test $ac_prog = install &&
3497 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3498 # AIX install. It has an incompatible calling convention.
3500 elif test $ac_prog = install &&
3501 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3502 # program-specific install script used by HP pwplus--don't use.
3504 else
3505 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3506 break 3
3509 done
3510 done
3512 esac
3513 done
3517 if test "${ac_cv_path_install+set}" = set; then
3518 INSTALL=$ac_cv_path_install
3519 else
3520 # As a last resort, use the slow shell script. We don't cache a
3521 # path for INSTALL within a source directory, because that will
3522 # break other packages using the cache if that directory is
3523 # removed, or if the path is relative.
3524 INSTALL=$ac_install_sh
3527 echo "$as_me:$LINENO: result: $INSTALL" >&5
3528 echo "${ECHO_T}$INSTALL" >&6
3530 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3531 # It thinks the first close brace ends the variable substitution.
3532 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3534 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3536 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3539 # Not every filesystem supports hard links
3541 if test -z "$LN" ; then
3542 case $ac_sys_system in
3543 BeOS*) LN="ln -s";;
3544 CYGWIN*) LN="ln -s";;
3545 atheos*) LN="ln -s";;
3546 *) LN=ln;;
3547 esac
3550 # Check for --with-pydebug
3551 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3552 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3554 # Check whether --with-pydebug or --without-pydebug was given.
3555 if test "${with_pydebug+set}" = set; then
3556 withval="$with_pydebug"
3558 if test "$withval" != no
3559 then
3561 cat >>confdefs.h <<\_ACEOF
3562 #define Py_DEBUG 1
3563 _ACEOF
3565 echo "$as_me:$LINENO: result: yes" >&5
3566 echo "${ECHO_T}yes" >&6;
3567 Py_DEBUG='true'
3568 else echo "$as_me:$LINENO: result: no" >&5
3569 echo "${ECHO_T}no" >&6; Py_DEBUG='false'
3571 else
3572 echo "$as_me:$LINENO: result: no" >&5
3573 echo "${ECHO_T}no" >&6
3576 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3577 # merged with this chunk of code?
3579 # Optimizer/debugger flags
3580 # ------------------------
3581 # (The following bit of code is complicated enough - please keep things
3582 # indented properly. Just pretend you're editing Python code. ;-)
3584 # There are two parallel sets of case statements below, one that checks to
3585 # see if OPT was set and one that does BASECFLAGS setting based upon
3586 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3587 # user set OPT.
3589 # tweak OPT based on compiler and platform, only if the user didn't set
3590 # it on the command line
3592 if test -z "$OPT"
3593 then
3594 case $GCC in
3595 yes)
3596 case $ac_cv_prog_cc_g in
3597 yes)
3598 if test "$Py_DEBUG" = 'true' ; then
3599 # Optimization messes up debuggers, so turn it off for
3600 # debug builds.
3601 OPT="-g -Wall -Wstrict-prototypes"
3602 else
3603 OPT="-g -O3 -Wall -Wstrict-prototypes"
3607 OPT="-O3 -Wall -Wstrict-prototypes"
3609 esac
3610 case $ac_sys_system in
3611 SCO_SV*) OPT="$OPT -m486 -DSCO5"
3613 esac
3617 OPT="-O"
3619 esac
3621 # The current (beta) Monterey compiler dies with optimizations
3622 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3623 case $ac_sys_system in
3624 Monterey*)
3625 OPT=""
3627 esac
3632 # tweak BASECFLAGS based on compiler and platform
3633 case $GCC in
3634 yes)
3635 case $ac_sys_system in
3636 SCO_SV*)
3637 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
3639 # is there any other compiler on Darwin besides gcc?
3640 Darwin*)
3641 BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp"
3643 esac
3647 case $ac_sys_system in
3648 OpenUNIX*|UnixWare*)
3649 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3651 OSF*)
3652 BASECFLAGS="$BASECFLAGS -ieee -std"
3654 SCO_SV*)
3655 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
3657 esac
3659 esac
3661 if test "$Py_DEBUG" = 'true'; then
3663 else
3664 OPT="-DNDEBUG $OPT"
3667 if test "$ac_arch_flags"
3668 then
3669 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
3672 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3673 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3674 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677 ac_save_cc="$CC"
3678 CC="$CC -OPT:Olimit=0"
3679 if test "$cross_compiling" = yes; then
3680 ac_cv_opt_olimit_ok=no
3681 else
3682 cat >conftest.$ac_ext <<_ACEOF
3683 #line $LINENO "configure"
3684 #include "confdefs.h"
3685 int main() { return 0; }
3686 _ACEOF
3687 rm -f conftest$ac_exeext
3688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3689 (eval $ac_link) 2>&5
3690 ac_status=$?
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694 (eval $ac_try) 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; }; then
3698 ac_cv_opt_olimit_ok=yes
3699 else
3700 echo "$as_me: program exited with status $ac_status" >&5
3701 echo "$as_me: failed program was:" >&5
3702 cat conftest.$ac_ext >&5
3703 ( exit $ac_status )
3704 ac_cv_opt_olimit_ok=no
3706 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3708 CC="$ac_save_cc"
3711 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3712 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3713 if test $ac_cv_opt_olimit_ok = yes; then
3714 case $ac_sys_system in
3715 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3716 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3717 # environment?
3718 Darwin*)
3721 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
3723 esac
3724 else
3725 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3726 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3727 if test "${ac_cv_olimit_ok+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730 ac_save_cc="$CC"
3731 CC="$CC -Olimit 1500"
3732 if test "$cross_compiling" = yes; then
3733 ac_cv_olimit_ok=no
3734 else
3735 cat >conftest.$ac_ext <<_ACEOF
3736 #line $LINENO "configure"
3737 #include "confdefs.h"
3738 int main() { return 0; }
3739 _ACEOF
3740 rm -f conftest$ac_exeext
3741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3742 (eval $ac_link) 2>&5
3743 ac_status=$?
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 (eval $ac_try) 2>&5
3748 ac_status=$?
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; }; then
3751 ac_cv_olimit_ok=yes
3752 else
3753 echo "$as_me: program exited with status $ac_status" >&5
3754 echo "$as_me: failed program was:" >&5
3755 cat conftest.$ac_ext >&5
3756 ( exit $ac_status )
3757 ac_cv_olimit_ok=no
3759 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3761 CC="$ac_save_cc"
3764 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
3765 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
3766 if test $ac_cv_olimit_ok = yes; then
3767 BASECFLAGS="$BASECFLAGS -Olimit 1500"
3771 # On some compilers, pthreads are available without further options
3772 # (e.g. MacOS X). On some of these systems, the compiler will not
3773 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
3774 # So we have to see first whether pthreads are available without
3775 # options before we can check whether -Kpthread improves anything.
3776 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
3777 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
3778 if test "${ac_cv_pthread_is_default+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3780 else
3781 if test "$cross_compiling" = yes; then
3782 ac_cv_pthread_is_default=no
3783 else
3784 cat >conftest.$ac_ext <<_ACEOF
3785 #line $LINENO "configure"
3786 #include "confdefs.h"
3788 #include <pthread.h>
3790 void* routine(void* p){return NULL;}
3792 int main(){
3793 pthread_t p;
3794 if(pthread_create(&p,NULL,routine,NULL)!=0)
3795 return 1;
3796 (void)pthread_detach(p);
3797 return 0;
3800 _ACEOF
3801 rm -f conftest$ac_exeext
3802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3803 (eval $ac_link) 2>&5
3804 ac_status=$?
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808 (eval $ac_try) 2>&5
3809 ac_status=$?
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; }; then
3812 ac_cv_pthread_is_default=yes
3813 else
3814 echo "$as_me: program exited with status $ac_status" >&5
3815 echo "$as_me: failed program was:" >&5
3816 cat conftest.$ac_ext >&5
3817 ( exit $ac_status )
3818 ac_cv_pthread_is_default=no
3820 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3825 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
3826 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
3829 if test $ac_cv_pthread_is_default = yes
3830 then
3831 ac_cv_kpthread=no
3832 else
3833 # -Kpthread, if available, provides the right #defines
3834 # and linker options to make pthread_create available
3835 # Some compilers won't report that they do not support -Kpthread,
3836 # so we need to run a program to see whether it really made the
3837 # function available.
3838 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
3839 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
3840 if test "${ac_cv_kpthread+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843 ac_save_cc="$CC"
3844 CC="$CC -Kpthread"
3845 if test "$cross_compiling" = yes; then
3846 ac_cv_kpthread=no
3847 else
3848 cat >conftest.$ac_ext <<_ACEOF
3849 #line $LINENO "configure"
3850 #include "confdefs.h"
3852 #include <pthread.h>
3854 void* routine(void* p){return NULL;}
3856 int main(){
3857 pthread_t p;
3858 if(pthread_create(&p,NULL,routine,NULL)!=0)
3859 return 1;
3860 (void)pthread_detach(p);
3861 return 0;
3864 _ACEOF
3865 rm -f conftest$ac_exeext
3866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3867 (eval $ac_link) 2>&5
3868 ac_status=$?
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3872 (eval $ac_try) 2>&5
3873 ac_status=$?
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }; }; then
3876 ac_cv_kpthread=yes
3877 else
3878 echo "$as_me: program exited with status $ac_status" >&5
3879 echo "$as_me: failed program was:" >&5
3880 cat conftest.$ac_ext >&5
3881 ( exit $ac_status )
3882 ac_cv_kpthread=no
3884 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3886 CC="$ac_save_cc"
3889 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
3890 echo "${ECHO_T}$ac_cv_kpthread" >&6
3893 if test $ac_cv_kpthread = no
3894 then
3895 # -Kthread, if available, provides the right #defines
3896 # and linker options to make pthread_create available
3897 # Some compilers won't report that they do not support -Kthread,
3898 # so we need to run a program to see whether it really made the
3899 # function available.
3900 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
3901 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
3902 if test "${ac_cv_kthread+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 else
3905 ac_save_cc="$CC"
3906 CC="$CC -Kthread"
3907 if test "$cross_compiling" = yes; then
3908 ac_cv_kthread=no
3909 else
3910 cat >conftest.$ac_ext <<_ACEOF
3911 #line $LINENO "configure"
3912 #include "confdefs.h"
3914 #include <pthread.h>
3916 void* routine(void* p){return NULL;}
3918 int main(){
3919 pthread_t p;
3920 if(pthread_create(&p,NULL,routine,NULL)!=0)
3921 return 1;
3922 (void)pthread_detach(p);
3923 return 0;
3926 _ACEOF
3927 rm -f conftest$ac_exeext
3928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3929 (eval $ac_link) 2>&5
3930 ac_status=$?
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934 (eval $ac_try) 2>&5
3935 ac_status=$?
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; }; then
3938 ac_cv_kthread=yes
3939 else
3940 echo "$as_me: program exited with status $ac_status" >&5
3941 echo "$as_me: failed program was:" >&5
3942 cat conftest.$ac_ext >&5
3943 ( exit $ac_status )
3944 ac_cv_kthread=no
3946 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3948 CC="$ac_save_cc"
3951 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
3952 echo "${ECHO_T}$ac_cv_kthread" >&6
3955 if test $ac_cv_kthread = no
3956 then
3957 # -pthread, if available, provides the right #defines
3958 # and linker options to make pthread_create available
3959 # Some compilers won't report that they do not support -pthread,
3960 # so we need to run a program to see whether it really made the
3961 # function available.
3962 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
3963 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
3964 if test "${ac_cv_thread+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967 ac_save_cc="$CC"
3968 CC="$CC -pthread"
3969 if test "$cross_compiling" = yes; then
3970 ac_cv_pthread=no
3971 else
3972 cat >conftest.$ac_ext <<_ACEOF
3973 #line $LINENO "configure"
3974 #include "confdefs.h"
3976 #include <pthread.h>
3978 void* routine(void* p){return NULL;}
3980 int main(){
3981 pthread_t p;
3982 if(pthread_create(&p,NULL,routine,NULL)!=0)
3983 return 1;
3984 (void)pthread_detach(p);
3985 return 0;
3988 _ACEOF
3989 rm -f conftest$ac_exeext
3990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3991 (eval $ac_link) 2>&5
3992 ac_status=$?
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 (eval $ac_try) 2>&5
3997 ac_status=$?
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; }; then
4000 ac_cv_pthread=yes
4001 else
4002 echo "$as_me: program exited with status $ac_status" >&5
4003 echo "$as_me: failed program was:" >&5
4004 cat conftest.$ac_ext >&5
4005 ( exit $ac_status )
4006 ac_cv_pthread=no
4008 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4010 CC="$ac_save_cc"
4013 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4014 echo "${ECHO_T}$ac_cv_pthread" >&6
4018 # checks for header files
4019 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4020 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4021 if test "${ac_cv_header_stdc+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024 cat >conftest.$ac_ext <<_ACEOF
4025 #line $LINENO "configure"
4026 #include "confdefs.h"
4027 #include <stdlib.h>
4028 #include <stdarg.h>
4029 #include <string.h>
4030 #include <float.h>
4032 _ACEOF
4033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4035 ac_status=$?
4036 egrep -v '^ *\+' conftest.er1 >conftest.err
4037 rm -f conftest.er1
4038 cat conftest.err >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } >/dev/null; then
4041 if test -s conftest.err; then
4042 ac_cpp_err=$ac_c_preproc_warn_flag
4043 else
4044 ac_cpp_err=
4046 else
4047 ac_cpp_err=yes
4049 if test -z "$ac_cpp_err"; then
4050 ac_cv_header_stdc=yes
4051 else
4052 echo "$as_me: failed program was:" >&5
4053 cat conftest.$ac_ext >&5
4054 ac_cv_header_stdc=no
4056 rm -f conftest.err conftest.$ac_ext
4058 if test $ac_cv_header_stdc = yes; then
4059 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4060 cat >conftest.$ac_ext <<_ACEOF
4061 #line $LINENO "configure"
4062 #include "confdefs.h"
4063 #include <string.h>
4065 _ACEOF
4066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4067 egrep "memchr" >/dev/null 2>&1; then
4069 else
4070 ac_cv_header_stdc=no
4072 rm -f conftest*
4076 if test $ac_cv_header_stdc = yes; then
4077 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4078 cat >conftest.$ac_ext <<_ACEOF
4079 #line $LINENO "configure"
4080 #include "confdefs.h"
4081 #include <stdlib.h>
4083 _ACEOF
4084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4085 egrep "free" >/dev/null 2>&1; then
4087 else
4088 ac_cv_header_stdc=no
4090 rm -f conftest*
4094 if test $ac_cv_header_stdc = yes; then
4095 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4096 if test "$cross_compiling" = yes; then
4098 else
4099 cat >conftest.$ac_ext <<_ACEOF
4100 #line $LINENO "configure"
4101 #include "confdefs.h"
4102 #include <ctype.h>
4103 #if ((' ' & 0x0FF) == 0x020)
4104 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4105 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4106 #else
4107 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4108 || ('j' <= (c) && (c) <= 'r') \
4109 || ('s' <= (c) && (c) <= 'z'))
4110 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4111 #endif
4113 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4115 main ()
4117 int i;
4118 for (i = 0; i < 256; i++)
4119 if (XOR (islower (i), ISLOWER (i))
4120 || toupper (i) != TOUPPER (i))
4121 exit(2);
4122 exit (0);
4124 _ACEOF
4125 rm -f conftest$ac_exeext
4126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4127 (eval $ac_link) 2>&5
4128 ac_status=$?
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132 (eval $ac_try) 2>&5
4133 ac_status=$?
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; }; then
4137 else
4138 echo "$as_me: program exited with status $ac_status" >&5
4139 echo "$as_me: failed program was:" >&5
4140 cat conftest.$ac_ext >&5
4141 ( exit $ac_status )
4142 ac_cv_header_stdc=no
4144 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4148 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4149 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4150 if test $ac_cv_header_stdc = yes; then
4152 cat >>confdefs.h <<\_ACEOF
4153 #define STDC_HEADERS 1
4154 _ACEOF
4198 for ac_header in dlfcn.h fcntl.h grp.h limits.h langinfo.h \
4199 libintl.h locale.h ncurses.h poll.h pthread.h \
4200 signal.h stdarg.h stddef.h stdlib.h stropts.h termios.h thread.h \
4201 unistd.h utime.h \
4202 sys/audioio.h sys/bsdtty.h sys/file.h sys/lock.h sys/mkdev.h sys/modem.h \
4203 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \
4204 sys/un.h sys/utsname.h sys/wait.h pty.h term.h libutil.h \
4205 sys/resource.h netpacket/packet.h sysexits.h
4207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4209 echo "$as_me:$LINENO: checking for $ac_header" >&5
4210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4212 echo $ECHO_N "(cached) $ECHO_C" >&6
4214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4216 else
4217 # Is the header compilable?
4218 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4219 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4220 cat >conftest.$ac_ext <<_ACEOF
4221 #line $LINENO "configure"
4222 #include "confdefs.h"
4223 $ac_includes_default
4224 #include <$ac_header>
4225 _ACEOF
4226 rm -f conftest.$ac_objext
4227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4228 (eval $ac_compile) 2>&5
4229 ac_status=$?
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } &&
4232 { ac_try='test -s conftest.$ac_objext'
4233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234 (eval $ac_try) 2>&5
4235 ac_status=$?
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; }; then
4238 ac_header_compiler=yes
4239 else
4240 echo "$as_me: failed program was:" >&5
4241 cat conftest.$ac_ext >&5
4242 ac_header_compiler=no
4244 rm -f conftest.$ac_objext conftest.$ac_ext
4245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4246 echo "${ECHO_T}$ac_header_compiler" >&6
4248 # Is the header present?
4249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4251 cat >conftest.$ac_ext <<_ACEOF
4252 #line $LINENO "configure"
4253 #include "confdefs.h"
4254 #include <$ac_header>
4255 _ACEOF
4256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4258 ac_status=$?
4259 egrep -v '^ *\+' conftest.er1 >conftest.err
4260 rm -f conftest.er1
4261 cat conftest.err >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); } >/dev/null; then
4264 if test -s conftest.err; then
4265 ac_cpp_err=$ac_c_preproc_warn_flag
4266 else
4267 ac_cpp_err=
4269 else
4270 ac_cpp_err=yes
4272 if test -z "$ac_cpp_err"; then
4273 ac_header_preproc=yes
4274 else
4275 echo "$as_me: failed program was:" >&5
4276 cat conftest.$ac_ext >&5
4277 ac_header_preproc=no
4279 rm -f conftest.err conftest.$ac_ext
4280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4281 echo "${ECHO_T}$ac_header_preproc" >&6
4283 # So? What about this header?
4284 case $ac_header_compiler:$ac_header_preproc in
4285 yes:no )
4286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4290 no:yes )
4291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4294 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4297 esac
4298 echo "$as_me:$LINENO: checking for $ac_header" >&5
4299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 else
4303 eval "$as_ac_Header=$ac_header_preproc"
4305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4310 cat >>confdefs.h <<_ACEOF
4311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4312 _ACEOF
4316 done
4323 ac_header_dirent=no
4324 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4325 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4326 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4327 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 else
4331 cat >conftest.$ac_ext <<_ACEOF
4332 #line $LINENO "configure"
4333 #include "confdefs.h"
4334 #include <sys/types.h>
4335 #include <$ac_hdr>
4337 #ifdef F77_DUMMY_MAIN
4338 # ifdef __cplusplus
4339 extern "C"
4340 # endif
4341 int F77_DUMMY_MAIN() { return 1; }
4342 #endif
4344 main ()
4346 if ((DIR *) 0)
4347 return 0;
4349 return 0;
4351 _ACEOF
4352 rm -f conftest.$ac_objext
4353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4354 (eval $ac_compile) 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } &&
4358 { ac_try='test -s conftest.$ac_objext'
4359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360 (eval $ac_try) 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; }; then
4364 eval "$as_ac_Header=yes"
4365 else
4366 echo "$as_me: failed program was:" >&5
4367 cat conftest.$ac_ext >&5
4368 eval "$as_ac_Header=no"
4370 rm -f conftest.$ac_objext conftest.$ac_ext
4372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4375 cat >>confdefs.h <<_ACEOF
4376 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4377 _ACEOF
4379 ac_header_dirent=$ac_hdr; break
4382 done
4383 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4384 if test $ac_header_dirent = dirent.h; then
4385 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4386 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4387 if test "${ac_cv_search_opendir+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390 ac_func_search_save_LIBS=$LIBS
4391 ac_cv_search_opendir=no
4392 cat >conftest.$ac_ext <<_ACEOF
4393 #line $LINENO "configure"
4394 #include "confdefs.h"
4396 /* Override any gcc2 internal prototype to avoid an error. */
4397 #ifdef __cplusplus
4398 extern "C"
4399 #endif
4400 /* We use char because int might match the return type of a gcc2
4401 builtin and then its argument prototype would still apply. */
4402 char opendir ();
4403 #ifdef F77_DUMMY_MAIN
4404 # ifdef __cplusplus
4405 extern "C"
4406 # endif
4407 int F77_DUMMY_MAIN() { return 1; }
4408 #endif
4410 main ()
4412 opendir ();
4414 return 0;
4416 _ACEOF
4417 rm -f conftest.$ac_objext conftest$ac_exeext
4418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4419 (eval $ac_link) 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); } &&
4423 { ac_try='test -s conftest$ac_exeext'
4424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425 (eval $ac_try) 2>&5
4426 ac_status=$?
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; }; then
4429 ac_cv_search_opendir="none required"
4430 else
4431 echo "$as_me: failed program was:" >&5
4432 cat conftest.$ac_ext >&5
4434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4435 if test "$ac_cv_search_opendir" = no; then
4436 for ac_lib in dir; do
4437 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4438 cat >conftest.$ac_ext <<_ACEOF
4439 #line $LINENO "configure"
4440 #include "confdefs.h"
4442 /* Override any gcc2 internal prototype to avoid an error. */
4443 #ifdef __cplusplus
4444 extern "C"
4445 #endif
4446 /* We use char because int might match the return type of a gcc2
4447 builtin and then its argument prototype would still apply. */
4448 char opendir ();
4449 #ifdef F77_DUMMY_MAIN
4450 # ifdef __cplusplus
4451 extern "C"
4452 # endif
4453 int F77_DUMMY_MAIN() { return 1; }
4454 #endif
4456 main ()
4458 opendir ();
4460 return 0;
4462 _ACEOF
4463 rm -f conftest.$ac_objext conftest$ac_exeext
4464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4465 (eval $ac_link) 2>&5
4466 ac_status=$?
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } &&
4469 { ac_try='test -s conftest$ac_exeext'
4470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471 (eval $ac_try) 2>&5
4472 ac_status=$?
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; }; then
4475 ac_cv_search_opendir="-l$ac_lib"
4476 break
4477 else
4478 echo "$as_me: failed program was:" >&5
4479 cat conftest.$ac_ext >&5
4481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4482 done
4484 LIBS=$ac_func_search_save_LIBS
4486 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4487 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4488 if test "$ac_cv_search_opendir" != no; then
4489 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4493 else
4494 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4495 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4496 if test "${ac_cv_search_opendir+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 else
4499 ac_func_search_save_LIBS=$LIBS
4500 ac_cv_search_opendir=no
4501 cat >conftest.$ac_ext <<_ACEOF
4502 #line $LINENO "configure"
4503 #include "confdefs.h"
4505 /* Override any gcc2 internal prototype to avoid an error. */
4506 #ifdef __cplusplus
4507 extern "C"
4508 #endif
4509 /* We use char because int might match the return type of a gcc2
4510 builtin and then its argument prototype would still apply. */
4511 char opendir ();
4512 #ifdef F77_DUMMY_MAIN
4513 # ifdef __cplusplus
4514 extern "C"
4515 # endif
4516 int F77_DUMMY_MAIN() { return 1; }
4517 #endif
4519 main ()
4521 opendir ();
4523 return 0;
4525 _ACEOF
4526 rm -f conftest.$ac_objext conftest$ac_exeext
4527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4528 (eval $ac_link) 2>&5
4529 ac_status=$?
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); } &&
4532 { ac_try='test -s conftest$ac_exeext'
4533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534 (eval $ac_try) 2>&5
4535 ac_status=$?
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }; }; then
4538 ac_cv_search_opendir="none required"
4539 else
4540 echo "$as_me: failed program was:" >&5
4541 cat conftest.$ac_ext >&5
4543 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4544 if test "$ac_cv_search_opendir" = no; then
4545 for ac_lib in x; do
4546 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4547 cat >conftest.$ac_ext <<_ACEOF
4548 #line $LINENO "configure"
4549 #include "confdefs.h"
4551 /* Override any gcc2 internal prototype to avoid an error. */
4552 #ifdef __cplusplus
4553 extern "C"
4554 #endif
4555 /* We use char because int might match the return type of a gcc2
4556 builtin and then its argument prototype would still apply. */
4557 char opendir ();
4558 #ifdef F77_DUMMY_MAIN
4559 # ifdef __cplusplus
4560 extern "C"
4561 # endif
4562 int F77_DUMMY_MAIN() { return 1; }
4563 #endif
4565 main ()
4567 opendir ();
4569 return 0;
4571 _ACEOF
4572 rm -f conftest.$ac_objext conftest$ac_exeext
4573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4574 (eval $ac_link) 2>&5
4575 ac_status=$?
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } &&
4578 { ac_try='test -s conftest$ac_exeext'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580 (eval $ac_try) 2>&5
4581 ac_status=$?
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; }; then
4584 ac_cv_search_opendir="-l$ac_lib"
4585 break
4586 else
4587 echo "$as_me: failed program was:" >&5
4588 cat conftest.$ac_ext >&5
4590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4591 done
4593 LIBS=$ac_func_search_save_LIBS
4595 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4596 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4597 if test "$ac_cv_search_opendir" != no; then
4598 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4604 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
4605 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
4606 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609 cat >conftest.$ac_ext <<_ACEOF
4610 #line $LINENO "configure"
4611 #include "confdefs.h"
4612 #include <sys/types.h>
4613 #ifdef F77_DUMMY_MAIN
4614 # ifdef __cplusplus
4615 extern "C"
4616 # endif
4617 int F77_DUMMY_MAIN() { return 1; }
4618 #endif
4620 main ()
4622 return makedev(0, 0);
4624 return 0;
4626 _ACEOF
4627 rm -f conftest.$ac_objext conftest$ac_exeext
4628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4629 (eval $ac_link) 2>&5
4630 ac_status=$?
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); } &&
4633 { ac_try='test -s conftest$ac_exeext'
4634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635 (eval $ac_try) 2>&5
4636 ac_status=$?
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; }; then
4639 ac_cv_header_sys_types_h_makedev=yes
4640 else
4641 echo "$as_me: failed program was:" >&5
4642 cat conftest.$ac_ext >&5
4643 ac_cv_header_sys_types_h_makedev=no
4645 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4648 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
4649 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
4651 if test $ac_cv_header_sys_types_h_makedev = no; then
4652 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4653 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4654 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
4655 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4659 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
4660 else
4661 # Is the header compilable?
4662 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
4663 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
4664 cat >conftest.$ac_ext <<_ACEOF
4665 #line $LINENO "configure"
4666 #include "confdefs.h"
4667 $ac_includes_default
4668 #include <sys/mkdev.h>
4669 _ACEOF
4670 rm -f conftest.$ac_objext
4671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4672 (eval $ac_compile) 2>&5
4673 ac_status=$?
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } &&
4676 { ac_try='test -s conftest.$ac_objext'
4677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678 (eval $ac_try) 2>&5
4679 ac_status=$?
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; }; then
4682 ac_header_compiler=yes
4683 else
4684 echo "$as_me: failed program was:" >&5
4685 cat conftest.$ac_ext >&5
4686 ac_header_compiler=no
4688 rm -f conftest.$ac_objext conftest.$ac_ext
4689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4690 echo "${ECHO_T}$ac_header_compiler" >&6
4692 # Is the header present?
4693 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
4694 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
4695 cat >conftest.$ac_ext <<_ACEOF
4696 #line $LINENO "configure"
4697 #include "confdefs.h"
4698 #include <sys/mkdev.h>
4699 _ACEOF
4700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4702 ac_status=$?
4703 egrep -v '^ *\+' conftest.er1 >conftest.err
4704 rm -f conftest.er1
4705 cat conftest.err >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } >/dev/null; then
4708 if test -s conftest.err; then
4709 ac_cpp_err=$ac_c_preproc_warn_flag
4710 else
4711 ac_cpp_err=
4713 else
4714 ac_cpp_err=yes
4716 if test -z "$ac_cpp_err"; then
4717 ac_header_preproc=yes
4718 else
4719 echo "$as_me: failed program was:" >&5
4720 cat conftest.$ac_ext >&5
4721 ac_header_preproc=no
4723 rm -f conftest.err conftest.$ac_ext
4724 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4725 echo "${ECHO_T}$ac_header_preproc" >&6
4727 # So? What about this header?
4728 case $ac_header_compiler:$ac_header_preproc in
4729 yes:no )
4730 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
4731 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4732 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4733 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};;
4734 no:yes )
4735 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
4736 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
4737 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
4738 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
4739 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4740 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};;
4741 esac
4742 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4743 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
4744 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747 ac_cv_header_sys_mkdev_h=$ac_header_preproc
4749 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4750 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
4753 if test $ac_cv_header_sys_mkdev_h = yes; then
4755 cat >>confdefs.h <<\_ACEOF
4756 #define MAJOR_IN_MKDEV 1
4757 _ACEOF
4763 if test $ac_cv_header_sys_mkdev_h = no; then
4764 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4765 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4766 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
4767 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4770 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4771 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
4772 else
4773 # Is the header compilable?
4774 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
4775 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
4776 cat >conftest.$ac_ext <<_ACEOF
4777 #line $LINENO "configure"
4778 #include "confdefs.h"
4779 $ac_includes_default
4780 #include <sys/sysmacros.h>
4781 _ACEOF
4782 rm -f conftest.$ac_objext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4784 (eval $ac_compile) 2>&5
4785 ac_status=$?
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } &&
4788 { ac_try='test -s conftest.$ac_objext'
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790 (eval $ac_try) 2>&5
4791 ac_status=$?
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; }; then
4794 ac_header_compiler=yes
4795 else
4796 echo "$as_me: failed program was:" >&5
4797 cat conftest.$ac_ext >&5
4798 ac_header_compiler=no
4800 rm -f conftest.$ac_objext conftest.$ac_ext
4801 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4802 echo "${ECHO_T}$ac_header_compiler" >&6
4804 # Is the header present?
4805 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
4806 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
4807 cat >conftest.$ac_ext <<_ACEOF
4808 #line $LINENO "configure"
4809 #include "confdefs.h"
4810 #include <sys/sysmacros.h>
4811 _ACEOF
4812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4814 ac_status=$?
4815 egrep -v '^ *\+' conftest.er1 >conftest.err
4816 rm -f conftest.er1
4817 cat conftest.err >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } >/dev/null; then
4820 if test -s conftest.err; then
4821 ac_cpp_err=$ac_c_preproc_warn_flag
4822 else
4823 ac_cpp_err=
4825 else
4826 ac_cpp_err=yes
4828 if test -z "$ac_cpp_err"; then
4829 ac_header_preproc=yes
4830 else
4831 echo "$as_me: failed program was:" >&5
4832 cat conftest.$ac_ext >&5
4833 ac_header_preproc=no
4835 rm -f conftest.err conftest.$ac_ext
4836 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4837 echo "${ECHO_T}$ac_header_preproc" >&6
4839 # So? What about this header?
4840 case $ac_header_compiler:$ac_header_preproc in
4841 yes:no )
4842 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
4843 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4844 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4845 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};;
4846 no:yes )
4847 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
4848 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
4849 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
4850 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
4851 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4852 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};;
4853 esac
4854 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4855 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
4856 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 else
4859 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
4861 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4862 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
4865 if test $ac_cv_header_sys_sysmacros_h = yes; then
4867 cat >>confdefs.h <<\_ACEOF
4868 #define MAJOR_IN_SYSMACROS 1
4869 _ACEOF
4878 # checks for typedefs
4879 was_it_defined=no
4880 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
4881 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
4882 cat >conftest.$ac_ext <<_ACEOF
4883 #line $LINENO "configure"
4884 #include "confdefs.h"
4885 #include <time.h>
4887 _ACEOF
4888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4889 egrep "clock_t" >/dev/null 2>&1; then
4890 was_it_defined=yes
4891 else
4894 cat >>confdefs.h <<\_ACEOF
4895 #define clock_t long
4896 _ACEOF
4900 rm -f conftest*
4902 echo "$as_me:$LINENO: result: $was_it_defined" >&5
4903 echo "${ECHO_T}$was_it_defined" >&6
4905 # Check whether using makedev requires defining _OSF_SOURCE
4906 echo "$as_me:$LINENO: checking for makedev" >&5
4907 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
4908 cat >conftest.$ac_ext <<_ACEOF
4909 #line $LINENO "configure"
4910 #include "confdefs.h"
4911 #include <sys/types.h>
4912 #ifdef F77_DUMMY_MAIN
4913 # ifdef __cplusplus
4914 extern "C"
4915 # endif
4916 int F77_DUMMY_MAIN() { return 1; }
4917 #endif
4919 main ()
4921 makedev(0, 0)
4923 return 0;
4925 _ACEOF
4926 rm -f conftest.$ac_objext conftest$ac_exeext
4927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4928 (eval $ac_link) 2>&5
4929 ac_status=$?
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); } &&
4932 { ac_try='test -s conftest$ac_exeext'
4933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4934 (eval $ac_try) 2>&5
4935 ac_status=$?
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); }; }; then
4938 ac_cv_has_makedev=yes
4939 else
4940 echo "$as_me: failed program was:" >&5
4941 cat conftest.$ac_ext >&5
4942 ac_cv_has_makedev=no
4944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4945 if test "$ac_cv_has_makedev" = "no"; then
4946 # we didn't link, try if _OSF_SOURCE will allow us to link
4947 cat >conftest.$ac_ext <<_ACEOF
4948 #line $LINENO "configure"
4949 #include "confdefs.h"
4951 #define _OSF_SOURCE 1
4952 #include <sys/types.h>
4954 #ifdef F77_DUMMY_MAIN
4955 # ifdef __cplusplus
4956 extern "C"
4957 # endif
4958 int F77_DUMMY_MAIN() { return 1; }
4959 #endif
4961 main ()
4963 makedev(0, 0)
4965 return 0;
4967 _ACEOF
4968 rm -f conftest.$ac_objext conftest$ac_exeext
4969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4970 (eval $ac_link) 2>&5
4971 ac_status=$?
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } &&
4974 { ac_try='test -s conftest$ac_exeext'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 (eval $ac_try) 2>&5
4977 ac_status=$?
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; }; then
4980 ac_cv_has_makedev=yes
4981 else
4982 echo "$as_me: failed program was:" >&5
4983 cat conftest.$ac_ext >&5
4984 ac_cv_has_makedev=no
4986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4987 if test "$ac_cv_has_makedev" = "yes"; then
4989 cat >>confdefs.h <<\_ACEOF
4990 #define _OSF_SOURCE 1
4991 _ACEOF
4995 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
4996 echo "${ECHO_T}$ac_cv_has_makedev" >&6
4997 if test "$ac_cv_has_makedev" = "yes"; then
4999 cat >>confdefs.h <<\_ACEOF
5000 #define HAVE_MAKEDEV 1
5001 _ACEOF
5005 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5006 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5007 # defined, but the compiler does not support pragma redefine_extname,
5008 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5009 # structures (such as rlimit64) without declaring them. As a
5010 # work-around, disable LFS on such configurations
5012 use_lfs=yes
5013 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5014 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5015 cat >conftest.$ac_ext <<_ACEOF
5016 #line $LINENO "configure"
5017 #include "confdefs.h"
5019 #define _LARGEFILE_SOURCE 1
5020 #define _FILE_OFFSET_BITS 64
5021 #include <sys/resource.h>
5023 #ifdef F77_DUMMY_MAIN
5024 # ifdef __cplusplus
5025 extern "C"
5026 # endif
5027 int F77_DUMMY_MAIN() { return 1; }
5028 #endif
5030 main ()
5032 struct rlimit foo;
5034 return 0;
5036 _ACEOF
5037 rm -f conftest.$ac_objext
5038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5039 (eval $ac_compile) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); } &&
5043 { ac_try='test -s conftest.$ac_objext'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 (eval $ac_try) 2>&5
5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5049 sol_lfs_bug=no
5050 else
5051 echo "$as_me: failed program was:" >&5
5052 cat conftest.$ac_ext >&5
5053 sol_lfs_bug=yes
5055 rm -f conftest.$ac_objext conftest.$ac_ext
5056 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5057 echo "${ECHO_T}$sol_lfs_bug" >&6
5058 if test "$sol_lfs_bug" = "yes"; then
5059 use_lfs=no
5062 if test "$use_lfs" = "yes"; then
5063 # Two defines needed to enable largefile support on various platforms
5064 # These may affect some typedefs
5066 cat >>confdefs.h <<\_ACEOF
5067 #define _LARGEFILE_SOURCE 1
5068 _ACEOF
5071 cat >>confdefs.h <<\_ACEOF
5072 #define _FILE_OFFSET_BITS 64
5073 _ACEOF
5077 # Add some code to confdefs.h so that the test for off_t works on SCO
5078 cat >> confdefs.h <<\EOF
5079 #if defined(SCO_DS)
5080 #undef _OFF_T
5081 #endif
5084 # Type availability checks
5085 echo "$as_me:$LINENO: checking for mode_t" >&5
5086 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5087 if test "${ac_cv_type_mode_t+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 else
5090 cat >conftest.$ac_ext <<_ACEOF
5091 #line $LINENO "configure"
5092 #include "confdefs.h"
5093 $ac_includes_default
5094 #ifdef F77_DUMMY_MAIN
5095 # ifdef __cplusplus
5096 extern "C"
5097 # endif
5098 int F77_DUMMY_MAIN() { return 1; }
5099 #endif
5101 main ()
5103 if ((mode_t *) 0)
5104 return 0;
5105 if (sizeof (mode_t))
5106 return 0;
5108 return 0;
5110 _ACEOF
5111 rm -f conftest.$ac_objext
5112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5113 (eval $ac_compile) 2>&5
5114 ac_status=$?
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } &&
5117 { ac_try='test -s conftest.$ac_objext'
5118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119 (eval $ac_try) 2>&5
5120 ac_status=$?
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); }; }; then
5123 ac_cv_type_mode_t=yes
5124 else
5125 echo "$as_me: failed program was:" >&5
5126 cat conftest.$ac_ext >&5
5127 ac_cv_type_mode_t=no
5129 rm -f conftest.$ac_objext conftest.$ac_ext
5131 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5132 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5133 if test $ac_cv_type_mode_t = yes; then
5135 else
5137 cat >>confdefs.h <<_ACEOF
5138 #define mode_t int
5139 _ACEOF
5143 echo "$as_me:$LINENO: checking for off_t" >&5
5144 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5145 if test "${ac_cv_type_off_t+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 else
5148 cat >conftest.$ac_ext <<_ACEOF
5149 #line $LINENO "configure"
5150 #include "confdefs.h"
5151 $ac_includes_default
5152 #ifdef F77_DUMMY_MAIN
5153 # ifdef __cplusplus
5154 extern "C"
5155 # endif
5156 int F77_DUMMY_MAIN() { return 1; }
5157 #endif
5159 main ()
5161 if ((off_t *) 0)
5162 return 0;
5163 if (sizeof (off_t))
5164 return 0;
5166 return 0;
5168 _ACEOF
5169 rm -f conftest.$ac_objext
5170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5171 (eval $ac_compile) 2>&5
5172 ac_status=$?
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); } &&
5175 { ac_try='test -s conftest.$ac_objext'
5176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5177 (eval $ac_try) 2>&5
5178 ac_status=$?
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); }; }; then
5181 ac_cv_type_off_t=yes
5182 else
5183 echo "$as_me: failed program was:" >&5
5184 cat conftest.$ac_ext >&5
5185 ac_cv_type_off_t=no
5187 rm -f conftest.$ac_objext conftest.$ac_ext
5189 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5190 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5191 if test $ac_cv_type_off_t = yes; then
5193 else
5195 cat >>confdefs.h <<_ACEOF
5196 #define off_t long
5197 _ACEOF
5201 echo "$as_me:$LINENO: checking for pid_t" >&5
5202 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5203 if test "${ac_cv_type_pid_t+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 else
5206 cat >conftest.$ac_ext <<_ACEOF
5207 #line $LINENO "configure"
5208 #include "confdefs.h"
5209 $ac_includes_default
5210 #ifdef F77_DUMMY_MAIN
5211 # ifdef __cplusplus
5212 extern "C"
5213 # endif
5214 int F77_DUMMY_MAIN() { return 1; }
5215 #endif
5217 main ()
5219 if ((pid_t *) 0)
5220 return 0;
5221 if (sizeof (pid_t))
5222 return 0;
5224 return 0;
5226 _ACEOF
5227 rm -f conftest.$ac_objext
5228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5229 (eval $ac_compile) 2>&5
5230 ac_status=$?
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } &&
5233 { ac_try='test -s conftest.$ac_objext'
5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235 (eval $ac_try) 2>&5
5236 ac_status=$?
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; }; then
5239 ac_cv_type_pid_t=yes
5240 else
5241 echo "$as_me: failed program was:" >&5
5242 cat conftest.$ac_ext >&5
5243 ac_cv_type_pid_t=no
5245 rm -f conftest.$ac_objext conftest.$ac_ext
5247 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5248 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5249 if test $ac_cv_type_pid_t = yes; then
5251 else
5253 cat >>confdefs.h <<_ACEOF
5254 #define pid_t int
5255 _ACEOF
5259 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5260 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5261 if test "${ac_cv_type_signal+set}" = set; then
5262 echo $ECHO_N "(cached) $ECHO_C" >&6
5263 else
5264 cat >conftest.$ac_ext <<_ACEOF
5265 #line $LINENO "configure"
5266 #include "confdefs.h"
5267 #include <sys/types.h>
5268 #include <signal.h>
5269 #ifdef signal
5270 # undef signal
5271 #endif
5272 #ifdef __cplusplus
5273 extern "C" void (*signal (int, void (*)(int)))(int);
5274 #else
5275 void (*signal ()) ();
5276 #endif
5278 #ifdef F77_DUMMY_MAIN
5279 # ifdef __cplusplus
5280 extern "C"
5281 # endif
5282 int F77_DUMMY_MAIN() { return 1; }
5283 #endif
5285 main ()
5287 int i;
5289 return 0;
5291 _ACEOF
5292 rm -f conftest.$ac_objext
5293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5294 (eval $ac_compile) 2>&5
5295 ac_status=$?
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); } &&
5298 { ac_try='test -s conftest.$ac_objext'
5299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5300 (eval $ac_try) 2>&5
5301 ac_status=$?
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); }; }; then
5304 ac_cv_type_signal=void
5305 else
5306 echo "$as_me: failed program was:" >&5
5307 cat conftest.$ac_ext >&5
5308 ac_cv_type_signal=int
5310 rm -f conftest.$ac_objext conftest.$ac_ext
5312 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5313 echo "${ECHO_T}$ac_cv_type_signal" >&6
5315 cat >>confdefs.h <<_ACEOF
5316 #define RETSIGTYPE $ac_cv_type_signal
5317 _ACEOF
5320 echo "$as_me:$LINENO: checking for size_t" >&5
5321 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5322 if test "${ac_cv_type_size_t+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5324 else
5325 cat >conftest.$ac_ext <<_ACEOF
5326 #line $LINENO "configure"
5327 #include "confdefs.h"
5328 $ac_includes_default
5329 #ifdef F77_DUMMY_MAIN
5330 # ifdef __cplusplus
5331 extern "C"
5332 # endif
5333 int F77_DUMMY_MAIN() { return 1; }
5334 #endif
5336 main ()
5338 if ((size_t *) 0)
5339 return 0;
5340 if (sizeof (size_t))
5341 return 0;
5343 return 0;
5345 _ACEOF
5346 rm -f conftest.$ac_objext
5347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5348 (eval $ac_compile) 2>&5
5349 ac_status=$?
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); } &&
5352 { ac_try='test -s conftest.$ac_objext'
5353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354 (eval $ac_try) 2>&5
5355 ac_status=$?
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); }; }; then
5358 ac_cv_type_size_t=yes
5359 else
5360 echo "$as_me: failed program was:" >&5
5361 cat conftest.$ac_ext >&5
5362 ac_cv_type_size_t=no
5364 rm -f conftest.$ac_objext conftest.$ac_ext
5366 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5367 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5368 if test $ac_cv_type_size_t = yes; then
5370 else
5372 cat >>confdefs.h <<_ACEOF
5373 #define size_t unsigned
5374 _ACEOF
5378 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5379 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5380 if test "${ac_cv_type_uid_t+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 else
5383 cat >conftest.$ac_ext <<_ACEOF
5384 #line $LINENO "configure"
5385 #include "confdefs.h"
5386 #include <sys/types.h>
5388 _ACEOF
5389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5390 egrep "uid_t" >/dev/null 2>&1; then
5391 ac_cv_type_uid_t=yes
5392 else
5393 ac_cv_type_uid_t=no
5395 rm -f conftest*
5398 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5399 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5400 if test $ac_cv_type_uid_t = no; then
5402 cat >>confdefs.h <<\_ACEOF
5403 #define uid_t int
5404 _ACEOF
5407 cat >>confdefs.h <<\_ACEOF
5408 #define gid_t int
5409 _ACEOF
5414 # Sizes of various common basic types
5415 echo "$as_me:$LINENO: checking for int" >&5
5416 echo $ECHO_N "checking for int... $ECHO_C" >&6
5417 if test "${ac_cv_type_int+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5419 else
5420 cat >conftest.$ac_ext <<_ACEOF
5421 #line $LINENO "configure"
5422 #include "confdefs.h"
5423 $ac_includes_default
5424 #ifdef F77_DUMMY_MAIN
5425 # ifdef __cplusplus
5426 extern "C"
5427 # endif
5428 int F77_DUMMY_MAIN() { return 1; }
5429 #endif
5431 main ()
5433 if ((int *) 0)
5434 return 0;
5435 if (sizeof (int))
5436 return 0;
5438 return 0;
5440 _ACEOF
5441 rm -f conftest.$ac_objext
5442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5443 (eval $ac_compile) 2>&5
5444 ac_status=$?
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } &&
5447 { ac_try='test -s conftest.$ac_objext'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449 (eval $ac_try) 2>&5
5450 ac_status=$?
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; }; then
5453 ac_cv_type_int=yes
5454 else
5455 echo "$as_me: failed program was:" >&5
5456 cat conftest.$ac_ext >&5
5457 ac_cv_type_int=no
5459 rm -f conftest.$ac_objext conftest.$ac_ext
5461 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5462 echo "${ECHO_T}$ac_cv_type_int" >&6
5464 echo "$as_me:$LINENO: checking size of int" >&5
5465 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5466 if test "${ac_cv_sizeof_int+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5468 else
5469 if test "$ac_cv_type_int" = yes; then
5470 # The cast to unsigned long works around a bug in the HP C Compiler
5471 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5472 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5473 # This bug is HP SR number 8606223364.
5474 if test "$cross_compiling" = yes; then
5475 # Depending upon the size, compute the lo and hi bounds.
5476 cat >conftest.$ac_ext <<_ACEOF
5477 #line $LINENO "configure"
5478 #include "confdefs.h"
5479 $ac_includes_default
5480 #ifdef F77_DUMMY_MAIN
5481 # ifdef __cplusplus
5482 extern "C"
5483 # endif
5484 int F77_DUMMY_MAIN() { return 1; }
5485 #endif
5487 main ()
5489 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5490 test_array [0] = 0
5493 return 0;
5495 _ACEOF
5496 rm -f conftest.$ac_objext
5497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5498 (eval $ac_compile) 2>&5
5499 ac_status=$?
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } &&
5502 { ac_try='test -s conftest.$ac_objext'
5503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504 (eval $ac_try) 2>&5
5505 ac_status=$?
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }; }; then
5508 ac_lo=0 ac_mid=0
5509 while :; do
5510 cat >conftest.$ac_ext <<_ACEOF
5511 #line $LINENO "configure"
5512 #include "confdefs.h"
5513 $ac_includes_default
5514 #ifdef F77_DUMMY_MAIN
5515 # ifdef __cplusplus
5516 extern "C"
5517 # endif
5518 int F77_DUMMY_MAIN() { return 1; }
5519 #endif
5521 main ()
5523 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5524 test_array [0] = 0
5527 return 0;
5529 _ACEOF
5530 rm -f conftest.$ac_objext
5531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5532 (eval $ac_compile) 2>&5
5533 ac_status=$?
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } &&
5536 { ac_try='test -s conftest.$ac_objext'
5537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5538 (eval $ac_try) 2>&5
5539 ac_status=$?
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); }; }; then
5542 ac_hi=$ac_mid; break
5543 else
5544 echo "$as_me: failed program was:" >&5
5545 cat conftest.$ac_ext >&5
5546 ac_lo=`expr $ac_mid + 1`
5547 if test $ac_lo -le $ac_mid; then
5548 ac_lo= ac_hi=
5549 break
5551 ac_mid=`expr 2 '*' $ac_mid + 1`
5553 rm -f conftest.$ac_objext conftest.$ac_ext
5554 done
5555 else
5556 echo "$as_me: failed program was:" >&5
5557 cat conftest.$ac_ext >&5
5558 cat >conftest.$ac_ext <<_ACEOF
5559 #line $LINENO "configure"
5560 #include "confdefs.h"
5561 $ac_includes_default
5562 #ifdef F77_DUMMY_MAIN
5563 # ifdef __cplusplus
5564 extern "C"
5565 # endif
5566 int F77_DUMMY_MAIN() { return 1; }
5567 #endif
5569 main ()
5571 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5572 test_array [0] = 0
5575 return 0;
5577 _ACEOF
5578 rm -f conftest.$ac_objext
5579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5580 (eval $ac_compile) 2>&5
5581 ac_status=$?
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } &&
5584 { ac_try='test -s conftest.$ac_objext'
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586 (eval $ac_try) 2>&5
5587 ac_status=$?
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; }; then
5590 ac_hi=-1 ac_mid=-1
5591 while :; do
5592 cat >conftest.$ac_ext <<_ACEOF
5593 #line $LINENO "configure"
5594 #include "confdefs.h"
5595 $ac_includes_default
5596 #ifdef F77_DUMMY_MAIN
5597 # ifdef __cplusplus
5598 extern "C"
5599 # endif
5600 int F77_DUMMY_MAIN() { return 1; }
5601 #endif
5603 main ()
5605 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5606 test_array [0] = 0
5609 return 0;
5611 _ACEOF
5612 rm -f conftest.$ac_objext
5613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5614 (eval $ac_compile) 2>&5
5615 ac_status=$?
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); } &&
5618 { ac_try='test -s conftest.$ac_objext'
5619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620 (eval $ac_try) 2>&5
5621 ac_status=$?
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); }; }; then
5624 ac_lo=$ac_mid; break
5625 else
5626 echo "$as_me: failed program was:" >&5
5627 cat conftest.$ac_ext >&5
5628 ac_hi=`expr '(' $ac_mid ')' - 1`
5629 if test $ac_mid -le $ac_hi; then
5630 ac_lo= ac_hi=
5631 break
5633 ac_mid=`expr 2 '*' $ac_mid`
5635 rm -f conftest.$ac_objext conftest.$ac_ext
5636 done
5637 else
5638 echo "$as_me: failed program was:" >&5
5639 cat conftest.$ac_ext >&5
5640 ac_lo= ac_hi=
5642 rm -f conftest.$ac_objext conftest.$ac_ext
5644 rm -f conftest.$ac_objext conftest.$ac_ext
5645 # Binary search between lo and hi bounds.
5646 while test "x$ac_lo" != "x$ac_hi"; do
5647 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5648 cat >conftest.$ac_ext <<_ACEOF
5649 #line $LINENO "configure"
5650 #include "confdefs.h"
5651 $ac_includes_default
5652 #ifdef F77_DUMMY_MAIN
5653 # ifdef __cplusplus
5654 extern "C"
5655 # endif
5656 int F77_DUMMY_MAIN() { return 1; }
5657 #endif
5659 main ()
5661 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5662 test_array [0] = 0
5665 return 0;
5667 _ACEOF
5668 rm -f conftest.$ac_objext
5669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5670 (eval $ac_compile) 2>&5
5671 ac_status=$?
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } &&
5674 { ac_try='test -s conftest.$ac_objext'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676 (eval $ac_try) 2>&5
5677 ac_status=$?
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; }; then
5680 ac_hi=$ac_mid
5681 else
5682 echo "$as_me: failed program was:" >&5
5683 cat conftest.$ac_ext >&5
5684 ac_lo=`expr '(' $ac_mid ')' + 1`
5686 rm -f conftest.$ac_objext conftest.$ac_ext
5687 done
5688 case $ac_lo in
5689 ?*) ac_cv_sizeof_int=$ac_lo;;
5690 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5691 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5692 { (exit 1); exit 1; }; } ;;
5693 esac
5694 else
5695 if test "$cross_compiling" = yes; then
5696 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5697 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5698 { (exit 1); exit 1; }; }
5699 else
5700 cat >conftest.$ac_ext <<_ACEOF
5701 #line $LINENO "configure"
5702 #include "confdefs.h"
5703 $ac_includes_default
5704 long longval () { return (long) (sizeof (int)); }
5705 unsigned long ulongval () { return (long) (sizeof (int)); }
5706 #include <stdio.h>
5707 #include <stdlib.h>
5708 #ifdef F77_DUMMY_MAIN
5709 # ifdef __cplusplus
5710 extern "C"
5711 # endif
5712 int F77_DUMMY_MAIN() { return 1; }
5713 #endif
5715 main ()
5718 FILE *f = fopen ("conftest.val", "w");
5719 if (! f)
5720 exit (1);
5721 if (((long) (sizeof (int))) < 0)
5723 long i = longval ();
5724 if (i != ((long) (sizeof (int))))
5725 exit (1);
5726 fprintf (f, "%ld\n", i);
5728 else
5730 unsigned long i = ulongval ();
5731 if (i != ((long) (sizeof (int))))
5732 exit (1);
5733 fprintf (f, "%lu\n", i);
5735 exit (ferror (f) || fclose (f) != 0);
5738 return 0;
5740 _ACEOF
5741 rm -f conftest$ac_exeext
5742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5743 (eval $ac_link) 2>&5
5744 ac_status=$?
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 (eval $ac_try) 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5752 ac_cv_sizeof_int=`cat conftest.val`
5753 else
5754 echo "$as_me: program exited with status $ac_status" >&5
5755 echo "$as_me: failed program was:" >&5
5756 cat conftest.$ac_ext >&5
5757 ( exit $ac_status )
5758 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5759 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5760 { (exit 1); exit 1; }; }
5762 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5765 rm -f conftest.val
5766 else
5767 ac_cv_sizeof_int=0
5770 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5771 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5772 cat >>confdefs.h <<_ACEOF
5773 #define SIZEOF_INT $ac_cv_sizeof_int
5774 _ACEOF
5777 echo "$as_me:$LINENO: checking for long" >&5
5778 echo $ECHO_N "checking for long... $ECHO_C" >&6
5779 if test "${ac_cv_type_long+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 else
5782 cat >conftest.$ac_ext <<_ACEOF
5783 #line $LINENO "configure"
5784 #include "confdefs.h"
5785 $ac_includes_default
5786 #ifdef F77_DUMMY_MAIN
5787 # ifdef __cplusplus
5788 extern "C"
5789 # endif
5790 int F77_DUMMY_MAIN() { return 1; }
5791 #endif
5793 main ()
5795 if ((long *) 0)
5796 return 0;
5797 if (sizeof (long))
5798 return 0;
5800 return 0;
5802 _ACEOF
5803 rm -f conftest.$ac_objext
5804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5805 (eval $ac_compile) 2>&5
5806 ac_status=$?
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } &&
5809 { ac_try='test -s conftest.$ac_objext'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 (eval $ac_try) 2>&5
5812 ac_status=$?
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; }; then
5815 ac_cv_type_long=yes
5816 else
5817 echo "$as_me: failed program was:" >&5
5818 cat conftest.$ac_ext >&5
5819 ac_cv_type_long=no
5821 rm -f conftest.$ac_objext conftest.$ac_ext
5823 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5824 echo "${ECHO_T}$ac_cv_type_long" >&6
5826 echo "$as_me:$LINENO: checking size of long" >&5
5827 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5828 if test "${ac_cv_sizeof_long+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5830 else
5831 if test "$ac_cv_type_long" = yes; then
5832 # The cast to unsigned long works around a bug in the HP C Compiler
5833 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5834 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5835 # This bug is HP SR number 8606223364.
5836 if test "$cross_compiling" = yes; then
5837 # Depending upon the size, compute the lo and hi bounds.
5838 cat >conftest.$ac_ext <<_ACEOF
5839 #line $LINENO "configure"
5840 #include "confdefs.h"
5841 $ac_includes_default
5842 #ifdef F77_DUMMY_MAIN
5843 # ifdef __cplusplus
5844 extern "C"
5845 # endif
5846 int F77_DUMMY_MAIN() { return 1; }
5847 #endif
5849 main ()
5851 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5852 test_array [0] = 0
5855 return 0;
5857 _ACEOF
5858 rm -f conftest.$ac_objext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5860 (eval $ac_compile) 2>&5
5861 ac_status=$?
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } &&
5864 { ac_try='test -s conftest.$ac_objext'
5865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 (eval $ac_try) 2>&5
5867 ac_status=$?
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; }; then
5870 ac_lo=0 ac_mid=0
5871 while :; do
5872 cat >conftest.$ac_ext <<_ACEOF
5873 #line $LINENO "configure"
5874 #include "confdefs.h"
5875 $ac_includes_default
5876 #ifdef F77_DUMMY_MAIN
5877 # ifdef __cplusplus
5878 extern "C"
5879 # endif
5880 int F77_DUMMY_MAIN() { return 1; }
5881 #endif
5883 main ()
5885 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5886 test_array [0] = 0
5889 return 0;
5891 _ACEOF
5892 rm -f conftest.$ac_objext
5893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5894 (eval $ac_compile) 2>&5
5895 ac_status=$?
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); } &&
5898 { ac_try='test -s conftest.$ac_objext'
5899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900 (eval $ac_try) 2>&5
5901 ac_status=$?
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }; }; then
5904 ac_hi=$ac_mid; break
5905 else
5906 echo "$as_me: failed program was:" >&5
5907 cat conftest.$ac_ext >&5
5908 ac_lo=`expr $ac_mid + 1`
5909 if test $ac_lo -le $ac_mid; then
5910 ac_lo= ac_hi=
5911 break
5913 ac_mid=`expr 2 '*' $ac_mid + 1`
5915 rm -f conftest.$ac_objext conftest.$ac_ext
5916 done
5917 else
5918 echo "$as_me: failed program was:" >&5
5919 cat conftest.$ac_ext >&5
5920 cat >conftest.$ac_ext <<_ACEOF
5921 #line $LINENO "configure"
5922 #include "confdefs.h"
5923 $ac_includes_default
5924 #ifdef F77_DUMMY_MAIN
5925 # ifdef __cplusplus
5926 extern "C"
5927 # endif
5928 int F77_DUMMY_MAIN() { return 1; }
5929 #endif
5931 main ()
5933 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5934 test_array [0] = 0
5937 return 0;
5939 _ACEOF
5940 rm -f conftest.$ac_objext
5941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5942 (eval $ac_compile) 2>&5
5943 ac_status=$?
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } &&
5946 { ac_try='test -s conftest.$ac_objext'
5947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948 (eval $ac_try) 2>&5
5949 ac_status=$?
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; }; then
5952 ac_hi=-1 ac_mid=-1
5953 while :; do
5954 cat >conftest.$ac_ext <<_ACEOF
5955 #line $LINENO "configure"
5956 #include "confdefs.h"
5957 $ac_includes_default
5958 #ifdef F77_DUMMY_MAIN
5959 # ifdef __cplusplus
5960 extern "C"
5961 # endif
5962 int F77_DUMMY_MAIN() { return 1; }
5963 #endif
5965 main ()
5967 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5968 test_array [0] = 0
5971 return 0;
5973 _ACEOF
5974 rm -f conftest.$ac_objext
5975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976 (eval $ac_compile) 2>&5
5977 ac_status=$?
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } &&
5980 { ac_try='test -s conftest.$ac_objext'
5981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982 (eval $ac_try) 2>&5
5983 ac_status=$?
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; }; then
5986 ac_lo=$ac_mid; break
5987 else
5988 echo "$as_me: failed program was:" >&5
5989 cat conftest.$ac_ext >&5
5990 ac_hi=`expr '(' $ac_mid ')' - 1`
5991 if test $ac_mid -le $ac_hi; then
5992 ac_lo= ac_hi=
5993 break
5995 ac_mid=`expr 2 '*' $ac_mid`
5997 rm -f conftest.$ac_objext conftest.$ac_ext
5998 done
5999 else
6000 echo "$as_me: failed program was:" >&5
6001 cat conftest.$ac_ext >&5
6002 ac_lo= ac_hi=
6004 rm -f conftest.$ac_objext conftest.$ac_ext
6006 rm -f conftest.$ac_objext conftest.$ac_ext
6007 # Binary search between lo and hi bounds.
6008 while test "x$ac_lo" != "x$ac_hi"; do
6009 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6010 cat >conftest.$ac_ext <<_ACEOF
6011 #line $LINENO "configure"
6012 #include "confdefs.h"
6013 $ac_includes_default
6014 #ifdef F77_DUMMY_MAIN
6015 # ifdef __cplusplus
6016 extern "C"
6017 # endif
6018 int F77_DUMMY_MAIN() { return 1; }
6019 #endif
6021 main ()
6023 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6024 test_array [0] = 0
6027 return 0;
6029 _ACEOF
6030 rm -f conftest.$ac_objext
6031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6032 (eval $ac_compile) 2>&5
6033 ac_status=$?
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); } &&
6036 { ac_try='test -s conftest.$ac_objext'
6037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6038 (eval $ac_try) 2>&5
6039 ac_status=$?
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; }; then
6042 ac_hi=$ac_mid
6043 else
6044 echo "$as_me: failed program was:" >&5
6045 cat conftest.$ac_ext >&5
6046 ac_lo=`expr '(' $ac_mid ')' + 1`
6048 rm -f conftest.$ac_objext conftest.$ac_ext
6049 done
6050 case $ac_lo in
6051 ?*) ac_cv_sizeof_long=$ac_lo;;
6052 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
6053 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
6054 { (exit 1); exit 1; }; } ;;
6055 esac
6056 else
6057 if test "$cross_compiling" = yes; then
6058 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6059 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6060 { (exit 1); exit 1; }; }
6061 else
6062 cat >conftest.$ac_ext <<_ACEOF
6063 #line $LINENO "configure"
6064 #include "confdefs.h"
6065 $ac_includes_default
6066 long longval () { return (long) (sizeof (long)); }
6067 unsigned long ulongval () { return (long) (sizeof (long)); }
6068 #include <stdio.h>
6069 #include <stdlib.h>
6070 #ifdef F77_DUMMY_MAIN
6071 # ifdef __cplusplus
6072 extern "C"
6073 # endif
6074 int F77_DUMMY_MAIN() { return 1; }
6075 #endif
6077 main ()
6080 FILE *f = fopen ("conftest.val", "w");
6081 if (! f)
6082 exit (1);
6083 if (((long) (sizeof (long))) < 0)
6085 long i = longval ();
6086 if (i != ((long) (sizeof (long))))
6087 exit (1);
6088 fprintf (f, "%ld\n", i);
6090 else
6092 unsigned long i = ulongval ();
6093 if (i != ((long) (sizeof (long))))
6094 exit (1);
6095 fprintf (f, "%lu\n", i);
6097 exit (ferror (f) || fclose (f) != 0);
6100 return 0;
6102 _ACEOF
6103 rm -f conftest$ac_exeext
6104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6105 (eval $ac_link) 2>&5
6106 ac_status=$?
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110 (eval $ac_try) 2>&5
6111 ac_status=$?
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }; }; then
6114 ac_cv_sizeof_long=`cat conftest.val`
6115 else
6116 echo "$as_me: program exited with status $ac_status" >&5
6117 echo "$as_me: failed program was:" >&5
6118 cat conftest.$ac_ext >&5
6119 ( exit $ac_status )
6120 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
6121 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
6122 { (exit 1); exit 1; }; }
6124 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6127 rm -f conftest.val
6128 else
6129 ac_cv_sizeof_long=0
6132 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6133 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6134 cat >>confdefs.h <<_ACEOF
6135 #define SIZEOF_LONG $ac_cv_sizeof_long
6136 _ACEOF
6139 echo "$as_me:$LINENO: checking for void *" >&5
6140 echo $ECHO_N "checking for void *... $ECHO_C" >&6
6141 if test "${ac_cv_type_void_p+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 else
6144 cat >conftest.$ac_ext <<_ACEOF
6145 #line $LINENO "configure"
6146 #include "confdefs.h"
6147 $ac_includes_default
6148 #ifdef F77_DUMMY_MAIN
6149 # ifdef __cplusplus
6150 extern "C"
6151 # endif
6152 int F77_DUMMY_MAIN() { return 1; }
6153 #endif
6155 main ()
6157 if ((void * *) 0)
6158 return 0;
6159 if (sizeof (void *))
6160 return 0;
6162 return 0;
6164 _ACEOF
6165 rm -f conftest.$ac_objext
6166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6167 (eval $ac_compile) 2>&5
6168 ac_status=$?
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } &&
6171 { ac_try='test -s conftest.$ac_objext'
6172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6173 (eval $ac_try) 2>&5
6174 ac_status=$?
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); }; }; then
6177 ac_cv_type_void_p=yes
6178 else
6179 echo "$as_me: failed program was:" >&5
6180 cat conftest.$ac_ext >&5
6181 ac_cv_type_void_p=no
6183 rm -f conftest.$ac_objext conftest.$ac_ext
6185 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6186 echo "${ECHO_T}$ac_cv_type_void_p" >&6
6188 echo "$as_me:$LINENO: checking size of void *" >&5
6189 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6190 if test "${ac_cv_sizeof_void_p+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6192 else
6193 if test "$ac_cv_type_void_p" = yes; then
6194 # The cast to unsigned long works around a bug in the HP C Compiler
6195 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6196 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6197 # This bug is HP SR number 8606223364.
6198 if test "$cross_compiling" = yes; then
6199 # Depending upon the size, compute the lo and hi bounds.
6200 cat >conftest.$ac_ext <<_ACEOF
6201 #line $LINENO "configure"
6202 #include "confdefs.h"
6203 $ac_includes_default
6204 #ifdef F77_DUMMY_MAIN
6205 # ifdef __cplusplus
6206 extern "C"
6207 # endif
6208 int F77_DUMMY_MAIN() { return 1; }
6209 #endif
6211 main ()
6213 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6214 test_array [0] = 0
6217 return 0;
6219 _ACEOF
6220 rm -f conftest.$ac_objext
6221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6222 (eval $ac_compile) 2>&5
6223 ac_status=$?
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } &&
6226 { ac_try='test -s conftest.$ac_objext'
6227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6228 (eval $ac_try) 2>&5
6229 ac_status=$?
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; }; then
6232 ac_lo=0 ac_mid=0
6233 while :; do
6234 cat >conftest.$ac_ext <<_ACEOF
6235 #line $LINENO "configure"
6236 #include "confdefs.h"
6237 $ac_includes_default
6238 #ifdef F77_DUMMY_MAIN
6239 # ifdef __cplusplus
6240 extern "C"
6241 # endif
6242 int F77_DUMMY_MAIN() { return 1; }
6243 #endif
6245 main ()
6247 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6248 test_array [0] = 0
6251 return 0;
6253 _ACEOF
6254 rm -f conftest.$ac_objext
6255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6256 (eval $ac_compile) 2>&5
6257 ac_status=$?
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); } &&
6260 { ac_try='test -s conftest.$ac_objext'
6261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262 (eval $ac_try) 2>&5
6263 ac_status=$?
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; }; then
6266 ac_hi=$ac_mid; break
6267 else
6268 echo "$as_me: failed program was:" >&5
6269 cat conftest.$ac_ext >&5
6270 ac_lo=`expr $ac_mid + 1`
6271 if test $ac_lo -le $ac_mid; then
6272 ac_lo= ac_hi=
6273 break
6275 ac_mid=`expr 2 '*' $ac_mid + 1`
6277 rm -f conftest.$ac_objext conftest.$ac_ext
6278 done
6279 else
6280 echo "$as_me: failed program was:" >&5
6281 cat conftest.$ac_ext >&5
6282 cat >conftest.$ac_ext <<_ACEOF
6283 #line $LINENO "configure"
6284 #include "confdefs.h"
6285 $ac_includes_default
6286 #ifdef F77_DUMMY_MAIN
6287 # ifdef __cplusplus
6288 extern "C"
6289 # endif
6290 int F77_DUMMY_MAIN() { return 1; }
6291 #endif
6293 main ()
6295 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
6296 test_array [0] = 0
6299 return 0;
6301 _ACEOF
6302 rm -f conftest.$ac_objext
6303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6304 (eval $ac_compile) 2>&5
6305 ac_status=$?
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); } &&
6308 { ac_try='test -s conftest.$ac_objext'
6309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310 (eval $ac_try) 2>&5
6311 ac_status=$?
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); }; }; then
6314 ac_hi=-1 ac_mid=-1
6315 while :; do
6316 cat >conftest.$ac_ext <<_ACEOF
6317 #line $LINENO "configure"
6318 #include "confdefs.h"
6319 $ac_includes_default
6320 #ifdef F77_DUMMY_MAIN
6321 # ifdef __cplusplus
6322 extern "C"
6323 # endif
6324 int F77_DUMMY_MAIN() { return 1; }
6325 #endif
6327 main ()
6329 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
6330 test_array [0] = 0
6333 return 0;
6335 _ACEOF
6336 rm -f conftest.$ac_objext
6337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6338 (eval $ac_compile) 2>&5
6339 ac_status=$?
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } &&
6342 { ac_try='test -s conftest.$ac_objext'
6343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6344 (eval $ac_try) 2>&5
6345 ac_status=$?
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; }; then
6348 ac_lo=$ac_mid; break
6349 else
6350 echo "$as_me: failed program was:" >&5
6351 cat conftest.$ac_ext >&5
6352 ac_hi=`expr '(' $ac_mid ')' - 1`
6353 if test $ac_mid -le $ac_hi; then
6354 ac_lo= ac_hi=
6355 break
6357 ac_mid=`expr 2 '*' $ac_mid`
6359 rm -f conftest.$ac_objext conftest.$ac_ext
6360 done
6361 else
6362 echo "$as_me: failed program was:" >&5
6363 cat conftest.$ac_ext >&5
6364 ac_lo= ac_hi=
6366 rm -f conftest.$ac_objext conftest.$ac_ext
6368 rm -f conftest.$ac_objext conftest.$ac_ext
6369 # Binary search between lo and hi bounds.
6370 while test "x$ac_lo" != "x$ac_hi"; do
6371 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6372 cat >conftest.$ac_ext <<_ACEOF
6373 #line $LINENO "configure"
6374 #include "confdefs.h"
6375 $ac_includes_default
6376 #ifdef F77_DUMMY_MAIN
6377 # ifdef __cplusplus
6378 extern "C"
6379 # endif
6380 int F77_DUMMY_MAIN() { return 1; }
6381 #endif
6383 main ()
6385 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6386 test_array [0] = 0
6389 return 0;
6391 _ACEOF
6392 rm -f conftest.$ac_objext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6394 (eval $ac_compile) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } &&
6398 { ac_try='test -s conftest.$ac_objext'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 (eval $ac_try) 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
6404 ac_hi=$ac_mid
6405 else
6406 echo "$as_me: failed program was:" >&5
6407 cat conftest.$ac_ext >&5
6408 ac_lo=`expr '(' $ac_mid ')' + 1`
6410 rm -f conftest.$ac_objext conftest.$ac_ext
6411 done
6412 case $ac_lo in
6413 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6414 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5
6415 echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;}
6416 { (exit 1); exit 1; }; } ;;
6417 esac
6418 else
6419 if test "$cross_compiling" = yes; then
6420 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6421 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6422 { (exit 1); exit 1; }; }
6423 else
6424 cat >conftest.$ac_ext <<_ACEOF
6425 #line $LINENO "configure"
6426 #include "confdefs.h"
6427 $ac_includes_default
6428 long longval () { return (long) (sizeof (void *)); }
6429 unsigned long ulongval () { return (long) (sizeof (void *)); }
6430 #include <stdio.h>
6431 #include <stdlib.h>
6432 #ifdef F77_DUMMY_MAIN
6433 # ifdef __cplusplus
6434 extern "C"
6435 # endif
6436 int F77_DUMMY_MAIN() { return 1; }
6437 #endif
6439 main ()
6442 FILE *f = fopen ("conftest.val", "w");
6443 if (! f)
6444 exit (1);
6445 if (((long) (sizeof (void *))) < 0)
6447 long i = longval ();
6448 if (i != ((long) (sizeof (void *))))
6449 exit (1);
6450 fprintf (f, "%ld\n", i);
6452 else
6454 unsigned long i = ulongval ();
6455 if (i != ((long) (sizeof (void *))))
6456 exit (1);
6457 fprintf (f, "%lu\n", i);
6459 exit (ferror (f) || fclose (f) != 0);
6462 return 0;
6464 _ACEOF
6465 rm -f conftest$ac_exeext
6466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6467 (eval $ac_link) 2>&5
6468 ac_status=$?
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472 (eval $ac_try) 2>&5
6473 ac_status=$?
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); }; }; then
6476 ac_cv_sizeof_void_p=`cat conftest.val`
6477 else
6478 echo "$as_me: program exited with status $ac_status" >&5
6479 echo "$as_me: failed program was:" >&5
6480 cat conftest.$ac_ext >&5
6481 ( exit $ac_status )
6482 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5
6483 echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;}
6484 { (exit 1); exit 1; }; }
6486 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6489 rm -f conftest.val
6490 else
6491 ac_cv_sizeof_void_p=0
6494 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6495 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6496 cat >>confdefs.h <<_ACEOF
6497 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6498 _ACEOF
6501 echo "$as_me:$LINENO: checking for char" >&5
6502 echo $ECHO_N "checking for char... $ECHO_C" >&6
6503 if test "${ac_cv_type_char+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6505 else
6506 cat >conftest.$ac_ext <<_ACEOF
6507 #line $LINENO "configure"
6508 #include "confdefs.h"
6509 $ac_includes_default
6510 #ifdef F77_DUMMY_MAIN
6511 # ifdef __cplusplus
6512 extern "C"
6513 # endif
6514 int F77_DUMMY_MAIN() { return 1; }
6515 #endif
6517 main ()
6519 if ((char *) 0)
6520 return 0;
6521 if (sizeof (char))
6522 return 0;
6524 return 0;
6526 _ACEOF
6527 rm -f conftest.$ac_objext
6528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6529 (eval $ac_compile) 2>&5
6530 ac_status=$?
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); } &&
6533 { ac_try='test -s conftest.$ac_objext'
6534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535 (eval $ac_try) 2>&5
6536 ac_status=$?
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); }; }; then
6539 ac_cv_type_char=yes
6540 else
6541 echo "$as_me: failed program was:" >&5
6542 cat conftest.$ac_ext >&5
6543 ac_cv_type_char=no
6545 rm -f conftest.$ac_objext conftest.$ac_ext
6547 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
6548 echo "${ECHO_T}$ac_cv_type_char" >&6
6550 echo "$as_me:$LINENO: checking size of char" >&5
6551 echo $ECHO_N "checking size of char... $ECHO_C" >&6
6552 if test "${ac_cv_sizeof_char+set}" = set; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6554 else
6555 if test "$ac_cv_type_char" = yes; then
6556 # The cast to unsigned long works around a bug in the HP C Compiler
6557 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6558 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6559 # This bug is HP SR number 8606223364.
6560 if test "$cross_compiling" = yes; then
6561 # Depending upon the size, compute the lo and hi bounds.
6562 cat >conftest.$ac_ext <<_ACEOF
6563 #line $LINENO "configure"
6564 #include "confdefs.h"
6565 $ac_includes_default
6566 #ifdef F77_DUMMY_MAIN
6567 # ifdef __cplusplus
6568 extern "C"
6569 # endif
6570 int F77_DUMMY_MAIN() { return 1; }
6571 #endif
6573 main ()
6575 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
6576 test_array [0] = 0
6579 return 0;
6581 _ACEOF
6582 rm -f conftest.$ac_objext
6583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6584 (eval $ac_compile) 2>&5
6585 ac_status=$?
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } &&
6588 { ac_try='test -s conftest.$ac_objext'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 (eval $ac_try) 2>&5
6591 ac_status=$?
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; }; then
6594 ac_lo=0 ac_mid=0
6595 while :; do
6596 cat >conftest.$ac_ext <<_ACEOF
6597 #line $LINENO "configure"
6598 #include "confdefs.h"
6599 $ac_includes_default
6600 #ifdef F77_DUMMY_MAIN
6601 # ifdef __cplusplus
6602 extern "C"
6603 # endif
6604 int F77_DUMMY_MAIN() { return 1; }
6605 #endif
6607 main ()
6609 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6610 test_array [0] = 0
6613 return 0;
6615 _ACEOF
6616 rm -f conftest.$ac_objext
6617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6618 (eval $ac_compile) 2>&5
6619 ac_status=$?
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); } &&
6622 { ac_try='test -s conftest.$ac_objext'
6623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624 (eval $ac_try) 2>&5
6625 ac_status=$?
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); }; }; then
6628 ac_hi=$ac_mid; break
6629 else
6630 echo "$as_me: failed program was:" >&5
6631 cat conftest.$ac_ext >&5
6632 ac_lo=`expr $ac_mid + 1`
6633 if test $ac_lo -le $ac_mid; then
6634 ac_lo= ac_hi=
6635 break
6637 ac_mid=`expr 2 '*' $ac_mid + 1`
6639 rm -f conftest.$ac_objext conftest.$ac_ext
6640 done
6641 else
6642 echo "$as_me: failed program was:" >&5
6643 cat conftest.$ac_ext >&5
6644 cat >conftest.$ac_ext <<_ACEOF
6645 #line $LINENO "configure"
6646 #include "confdefs.h"
6647 $ac_includes_default
6648 #ifdef F77_DUMMY_MAIN
6649 # ifdef __cplusplus
6650 extern "C"
6651 # endif
6652 int F77_DUMMY_MAIN() { return 1; }
6653 #endif
6655 main ()
6657 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
6658 test_array [0] = 0
6661 return 0;
6663 _ACEOF
6664 rm -f conftest.$ac_objext
6665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6666 (eval $ac_compile) 2>&5
6667 ac_status=$?
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } &&
6670 { ac_try='test -s conftest.$ac_objext'
6671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6672 (eval $ac_try) 2>&5
6673 ac_status=$?
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); }; }; then
6676 ac_hi=-1 ac_mid=-1
6677 while :; do
6678 cat >conftest.$ac_ext <<_ACEOF
6679 #line $LINENO "configure"
6680 #include "confdefs.h"
6681 $ac_includes_default
6682 #ifdef F77_DUMMY_MAIN
6683 # ifdef __cplusplus
6684 extern "C"
6685 # endif
6686 int F77_DUMMY_MAIN() { return 1; }
6687 #endif
6689 main ()
6691 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
6692 test_array [0] = 0
6695 return 0;
6697 _ACEOF
6698 rm -f conftest.$ac_objext
6699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6700 (eval $ac_compile) 2>&5
6701 ac_status=$?
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); } &&
6704 { ac_try='test -s conftest.$ac_objext'
6705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706 (eval $ac_try) 2>&5
6707 ac_status=$?
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); }; }; then
6710 ac_lo=$ac_mid; break
6711 else
6712 echo "$as_me: failed program was:" >&5
6713 cat conftest.$ac_ext >&5
6714 ac_hi=`expr '(' $ac_mid ')' - 1`
6715 if test $ac_mid -le $ac_hi; then
6716 ac_lo= ac_hi=
6717 break
6719 ac_mid=`expr 2 '*' $ac_mid`
6721 rm -f conftest.$ac_objext conftest.$ac_ext
6722 done
6723 else
6724 echo "$as_me: failed program was:" >&5
6725 cat conftest.$ac_ext >&5
6726 ac_lo= ac_hi=
6728 rm -f conftest.$ac_objext conftest.$ac_ext
6730 rm -f conftest.$ac_objext conftest.$ac_ext
6731 # Binary search between lo and hi bounds.
6732 while test "x$ac_lo" != "x$ac_hi"; do
6733 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6734 cat >conftest.$ac_ext <<_ACEOF
6735 #line $LINENO "configure"
6736 #include "confdefs.h"
6737 $ac_includes_default
6738 #ifdef F77_DUMMY_MAIN
6739 # ifdef __cplusplus
6740 extern "C"
6741 # endif
6742 int F77_DUMMY_MAIN() { return 1; }
6743 #endif
6745 main ()
6747 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6748 test_array [0] = 0
6751 return 0;
6753 _ACEOF
6754 rm -f conftest.$ac_objext
6755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6756 (eval $ac_compile) 2>&5
6757 ac_status=$?
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); } &&
6760 { ac_try='test -s conftest.$ac_objext'
6761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762 (eval $ac_try) 2>&5
6763 ac_status=$?
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); }; }; then
6766 ac_hi=$ac_mid
6767 else
6768 echo "$as_me: failed program was:" >&5
6769 cat conftest.$ac_ext >&5
6770 ac_lo=`expr '(' $ac_mid ')' + 1`
6772 rm -f conftest.$ac_objext conftest.$ac_ext
6773 done
6774 case $ac_lo in
6775 ?*) ac_cv_sizeof_char=$ac_lo;;
6776 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
6777 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
6778 { (exit 1); exit 1; }; } ;;
6779 esac
6780 else
6781 if test "$cross_compiling" = yes; then
6782 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6783 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6784 { (exit 1); exit 1; }; }
6785 else
6786 cat >conftest.$ac_ext <<_ACEOF
6787 #line $LINENO "configure"
6788 #include "confdefs.h"
6789 $ac_includes_default
6790 long longval () { return (long) (sizeof (char)); }
6791 unsigned long ulongval () { return (long) (sizeof (char)); }
6792 #include <stdio.h>
6793 #include <stdlib.h>
6794 #ifdef F77_DUMMY_MAIN
6795 # ifdef __cplusplus
6796 extern "C"
6797 # endif
6798 int F77_DUMMY_MAIN() { return 1; }
6799 #endif
6801 main ()
6804 FILE *f = fopen ("conftest.val", "w");
6805 if (! f)
6806 exit (1);
6807 if (((long) (sizeof (char))) < 0)
6809 long i = longval ();
6810 if (i != ((long) (sizeof (char))))
6811 exit (1);
6812 fprintf (f, "%ld\n", i);
6814 else
6816 unsigned long i = ulongval ();
6817 if (i != ((long) (sizeof (char))))
6818 exit (1);
6819 fprintf (f, "%lu\n", i);
6821 exit (ferror (f) || fclose (f) != 0);
6824 return 0;
6826 _ACEOF
6827 rm -f conftest$ac_exeext
6828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6829 (eval $ac_link) 2>&5
6830 ac_status=$?
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834 (eval $ac_try) 2>&5
6835 ac_status=$?
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); }; }; then
6838 ac_cv_sizeof_char=`cat conftest.val`
6839 else
6840 echo "$as_me: program exited with status $ac_status" >&5
6841 echo "$as_me: failed program was:" >&5
6842 cat conftest.$ac_ext >&5
6843 ( exit $ac_status )
6844 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
6845 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
6846 { (exit 1); exit 1; }; }
6848 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6851 rm -f conftest.val
6852 else
6853 ac_cv_sizeof_char=0
6856 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
6857 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
6858 cat >>confdefs.h <<_ACEOF
6859 #define SIZEOF_CHAR $ac_cv_sizeof_char
6860 _ACEOF
6863 echo "$as_me:$LINENO: checking for short" >&5
6864 echo $ECHO_N "checking for short... $ECHO_C" >&6
6865 if test "${ac_cv_type_short+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 else
6868 cat >conftest.$ac_ext <<_ACEOF
6869 #line $LINENO "configure"
6870 #include "confdefs.h"
6871 $ac_includes_default
6872 #ifdef F77_DUMMY_MAIN
6873 # ifdef __cplusplus
6874 extern "C"
6875 # endif
6876 int F77_DUMMY_MAIN() { return 1; }
6877 #endif
6879 main ()
6881 if ((short *) 0)
6882 return 0;
6883 if (sizeof (short))
6884 return 0;
6886 return 0;
6888 _ACEOF
6889 rm -f conftest.$ac_objext
6890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6891 (eval $ac_compile) 2>&5
6892 ac_status=$?
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } &&
6895 { ac_try='test -s conftest.$ac_objext'
6896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897 (eval $ac_try) 2>&5
6898 ac_status=$?
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; }; then
6901 ac_cv_type_short=yes
6902 else
6903 echo "$as_me: failed program was:" >&5
6904 cat conftest.$ac_ext >&5
6905 ac_cv_type_short=no
6907 rm -f conftest.$ac_objext conftest.$ac_ext
6909 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
6910 echo "${ECHO_T}$ac_cv_type_short" >&6
6912 echo "$as_me:$LINENO: checking size of short" >&5
6913 echo $ECHO_N "checking size of short... $ECHO_C" >&6
6914 if test "${ac_cv_sizeof_short+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6916 else
6917 if test "$ac_cv_type_short" = yes; then
6918 # The cast to unsigned long works around a bug in the HP C Compiler
6919 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6920 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6921 # This bug is HP SR number 8606223364.
6922 if test "$cross_compiling" = yes; then
6923 # Depending upon the size, compute the lo and hi bounds.
6924 cat >conftest.$ac_ext <<_ACEOF
6925 #line $LINENO "configure"
6926 #include "confdefs.h"
6927 $ac_includes_default
6928 #ifdef F77_DUMMY_MAIN
6929 # ifdef __cplusplus
6930 extern "C"
6931 # endif
6932 int F77_DUMMY_MAIN() { return 1; }
6933 #endif
6935 main ()
6937 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
6938 test_array [0] = 0
6941 return 0;
6943 _ACEOF
6944 rm -f conftest.$ac_objext
6945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6946 (eval $ac_compile) 2>&5
6947 ac_status=$?
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } &&
6950 { ac_try='test -s conftest.$ac_objext'
6951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952 (eval $ac_try) 2>&5
6953 ac_status=$?
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); }; }; then
6956 ac_lo=0 ac_mid=0
6957 while :; do
6958 cat >conftest.$ac_ext <<_ACEOF
6959 #line $LINENO "configure"
6960 #include "confdefs.h"
6961 $ac_includes_default
6962 #ifdef F77_DUMMY_MAIN
6963 # ifdef __cplusplus
6964 extern "C"
6965 # endif
6966 int F77_DUMMY_MAIN() { return 1; }
6967 #endif
6969 main ()
6971 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6972 test_array [0] = 0
6975 return 0;
6977 _ACEOF
6978 rm -f conftest.$ac_objext
6979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6980 (eval $ac_compile) 2>&5
6981 ac_status=$?
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } &&
6984 { ac_try='test -s conftest.$ac_objext'
6985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986 (eval $ac_try) 2>&5
6987 ac_status=$?
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); }; }; then
6990 ac_hi=$ac_mid; break
6991 else
6992 echo "$as_me: failed program was:" >&5
6993 cat conftest.$ac_ext >&5
6994 ac_lo=`expr $ac_mid + 1`
6995 if test $ac_lo -le $ac_mid; then
6996 ac_lo= ac_hi=
6997 break
6999 ac_mid=`expr 2 '*' $ac_mid + 1`
7001 rm -f conftest.$ac_objext conftest.$ac_ext
7002 done
7003 else
7004 echo "$as_me: failed program was:" >&5
7005 cat conftest.$ac_ext >&5
7006 cat >conftest.$ac_ext <<_ACEOF
7007 #line $LINENO "configure"
7008 #include "confdefs.h"
7009 $ac_includes_default
7010 #ifdef F77_DUMMY_MAIN
7011 # ifdef __cplusplus
7012 extern "C"
7013 # endif
7014 int F77_DUMMY_MAIN() { return 1; }
7015 #endif
7017 main ()
7019 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7020 test_array [0] = 0
7023 return 0;
7025 _ACEOF
7026 rm -f conftest.$ac_objext
7027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7028 (eval $ac_compile) 2>&5
7029 ac_status=$?
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); } &&
7032 { ac_try='test -s conftest.$ac_objext'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034 (eval $ac_try) 2>&5
7035 ac_status=$?
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; }; then
7038 ac_hi=-1 ac_mid=-1
7039 while :; do
7040 cat >conftest.$ac_ext <<_ACEOF
7041 #line $LINENO "configure"
7042 #include "confdefs.h"
7043 $ac_includes_default
7044 #ifdef F77_DUMMY_MAIN
7045 # ifdef __cplusplus
7046 extern "C"
7047 # endif
7048 int F77_DUMMY_MAIN() { return 1; }
7049 #endif
7051 main ()
7053 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7054 test_array [0] = 0
7057 return 0;
7059 _ACEOF
7060 rm -f conftest.$ac_objext
7061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7062 (eval $ac_compile) 2>&5
7063 ac_status=$?
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } &&
7066 { ac_try='test -s conftest.$ac_objext'
7067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7068 (eval $ac_try) 2>&5
7069 ac_status=$?
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); }; }; then
7072 ac_lo=$ac_mid; break
7073 else
7074 echo "$as_me: failed program was:" >&5
7075 cat conftest.$ac_ext >&5
7076 ac_hi=`expr '(' $ac_mid ')' - 1`
7077 if test $ac_mid -le $ac_hi; then
7078 ac_lo= ac_hi=
7079 break
7081 ac_mid=`expr 2 '*' $ac_mid`
7083 rm -f conftest.$ac_objext conftest.$ac_ext
7084 done
7085 else
7086 echo "$as_me: failed program was:" >&5
7087 cat conftest.$ac_ext >&5
7088 ac_lo= ac_hi=
7090 rm -f conftest.$ac_objext conftest.$ac_ext
7092 rm -f conftest.$ac_objext conftest.$ac_ext
7093 # Binary search between lo and hi bounds.
7094 while test "x$ac_lo" != "x$ac_hi"; do
7095 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7096 cat >conftest.$ac_ext <<_ACEOF
7097 #line $LINENO "configure"
7098 #include "confdefs.h"
7099 $ac_includes_default
7100 #ifdef F77_DUMMY_MAIN
7101 # ifdef __cplusplus
7102 extern "C"
7103 # endif
7104 int F77_DUMMY_MAIN() { return 1; }
7105 #endif
7107 main ()
7109 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7110 test_array [0] = 0
7113 return 0;
7115 _ACEOF
7116 rm -f conftest.$ac_objext
7117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7118 (eval $ac_compile) 2>&5
7119 ac_status=$?
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } &&
7122 { ac_try='test -s conftest.$ac_objext'
7123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124 (eval $ac_try) 2>&5
7125 ac_status=$?
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); }; }; then
7128 ac_hi=$ac_mid
7129 else
7130 echo "$as_me: failed program was:" >&5
7131 cat conftest.$ac_ext >&5
7132 ac_lo=`expr '(' $ac_mid ')' + 1`
7134 rm -f conftest.$ac_objext conftest.$ac_ext
7135 done
7136 case $ac_lo in
7137 ?*) ac_cv_sizeof_short=$ac_lo;;
7138 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
7139 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
7140 { (exit 1); exit 1; }; } ;;
7141 esac
7142 else
7143 if test "$cross_compiling" = yes; then
7144 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7145 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7146 { (exit 1); exit 1; }; }
7147 else
7148 cat >conftest.$ac_ext <<_ACEOF
7149 #line $LINENO "configure"
7150 #include "confdefs.h"
7151 $ac_includes_default
7152 long longval () { return (long) (sizeof (short)); }
7153 unsigned long ulongval () { return (long) (sizeof (short)); }
7154 #include <stdio.h>
7155 #include <stdlib.h>
7156 #ifdef F77_DUMMY_MAIN
7157 # ifdef __cplusplus
7158 extern "C"
7159 # endif
7160 int F77_DUMMY_MAIN() { return 1; }
7161 #endif
7163 main ()
7166 FILE *f = fopen ("conftest.val", "w");
7167 if (! f)
7168 exit (1);
7169 if (((long) (sizeof (short))) < 0)
7171 long i = longval ();
7172 if (i != ((long) (sizeof (short))))
7173 exit (1);
7174 fprintf (f, "%ld\n", i);
7176 else
7178 unsigned long i = ulongval ();
7179 if (i != ((long) (sizeof (short))))
7180 exit (1);
7181 fprintf (f, "%lu\n", i);
7183 exit (ferror (f) || fclose (f) != 0);
7186 return 0;
7188 _ACEOF
7189 rm -f conftest$ac_exeext
7190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7191 (eval $ac_link) 2>&5
7192 ac_status=$?
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196 (eval $ac_try) 2>&5
7197 ac_status=$?
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); }; }; then
7200 ac_cv_sizeof_short=`cat conftest.val`
7201 else
7202 echo "$as_me: program exited with status $ac_status" >&5
7203 echo "$as_me: failed program was:" >&5
7204 cat conftest.$ac_ext >&5
7205 ( exit $ac_status )
7206 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
7207 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
7208 { (exit 1); exit 1; }; }
7210 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7213 rm -f conftest.val
7214 else
7215 ac_cv_sizeof_short=0
7218 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7219 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7220 cat >>confdefs.h <<_ACEOF
7221 #define SIZEOF_SHORT $ac_cv_sizeof_short
7222 _ACEOF
7225 echo "$as_me:$LINENO: checking for float" >&5
7226 echo $ECHO_N "checking for float... $ECHO_C" >&6
7227 if test "${ac_cv_type_float+set}" = set; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 else
7230 cat >conftest.$ac_ext <<_ACEOF
7231 #line $LINENO "configure"
7232 #include "confdefs.h"
7233 $ac_includes_default
7234 #ifdef F77_DUMMY_MAIN
7235 # ifdef __cplusplus
7236 extern "C"
7237 # endif
7238 int F77_DUMMY_MAIN() { return 1; }
7239 #endif
7241 main ()
7243 if ((float *) 0)
7244 return 0;
7245 if (sizeof (float))
7246 return 0;
7248 return 0;
7250 _ACEOF
7251 rm -f conftest.$ac_objext
7252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7253 (eval $ac_compile) 2>&5
7254 ac_status=$?
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); } &&
7257 { ac_try='test -s conftest.$ac_objext'
7258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7259 (eval $ac_try) 2>&5
7260 ac_status=$?
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); }; }; then
7263 ac_cv_type_float=yes
7264 else
7265 echo "$as_me: failed program was:" >&5
7266 cat conftest.$ac_ext >&5
7267 ac_cv_type_float=no
7269 rm -f conftest.$ac_objext conftest.$ac_ext
7271 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
7272 echo "${ECHO_T}$ac_cv_type_float" >&6
7274 echo "$as_me:$LINENO: checking size of float" >&5
7275 echo $ECHO_N "checking size of float... $ECHO_C" >&6
7276 if test "${ac_cv_sizeof_float+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 else
7279 if test "$ac_cv_type_float" = yes; then
7280 # The cast to unsigned long works around a bug in the HP C Compiler
7281 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7282 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7283 # This bug is HP SR number 8606223364.
7284 if test "$cross_compiling" = yes; then
7285 # Depending upon the size, compute the lo and hi bounds.
7286 cat >conftest.$ac_ext <<_ACEOF
7287 #line $LINENO "configure"
7288 #include "confdefs.h"
7289 $ac_includes_default
7290 #ifdef F77_DUMMY_MAIN
7291 # ifdef __cplusplus
7292 extern "C"
7293 # endif
7294 int F77_DUMMY_MAIN() { return 1; }
7295 #endif
7297 main ()
7299 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
7300 test_array [0] = 0
7303 return 0;
7305 _ACEOF
7306 rm -f conftest.$ac_objext
7307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7308 (eval $ac_compile) 2>&5
7309 ac_status=$?
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); } &&
7312 { ac_try='test -s conftest.$ac_objext'
7313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314 (eval $ac_try) 2>&5
7315 ac_status=$?
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; }; then
7318 ac_lo=0 ac_mid=0
7319 while :; do
7320 cat >conftest.$ac_ext <<_ACEOF
7321 #line $LINENO "configure"
7322 #include "confdefs.h"
7323 $ac_includes_default
7324 #ifdef F77_DUMMY_MAIN
7325 # ifdef __cplusplus
7326 extern "C"
7327 # endif
7328 int F77_DUMMY_MAIN() { return 1; }
7329 #endif
7331 main ()
7333 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
7334 test_array [0] = 0
7337 return 0;
7339 _ACEOF
7340 rm -f conftest.$ac_objext
7341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7342 (eval $ac_compile) 2>&5
7343 ac_status=$?
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); } &&
7346 { ac_try='test -s conftest.$ac_objext'
7347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348 (eval $ac_try) 2>&5
7349 ac_status=$?
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); }; }; then
7352 ac_hi=$ac_mid; break
7353 else
7354 echo "$as_me: failed program was:" >&5
7355 cat conftest.$ac_ext >&5
7356 ac_lo=`expr $ac_mid + 1`
7357 if test $ac_lo -le $ac_mid; then
7358 ac_lo= ac_hi=
7359 break
7361 ac_mid=`expr 2 '*' $ac_mid + 1`
7363 rm -f conftest.$ac_objext conftest.$ac_ext
7364 done
7365 else
7366 echo "$as_me: failed program was:" >&5
7367 cat conftest.$ac_ext >&5
7368 cat >conftest.$ac_ext <<_ACEOF
7369 #line $LINENO "configure"
7370 #include "confdefs.h"
7371 $ac_includes_default
7372 #ifdef F77_DUMMY_MAIN
7373 # ifdef __cplusplus
7374 extern "C"
7375 # endif
7376 int F77_DUMMY_MAIN() { return 1; }
7377 #endif
7379 main ()
7381 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
7382 test_array [0] = 0
7385 return 0;
7387 _ACEOF
7388 rm -f conftest.$ac_objext
7389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7390 (eval $ac_compile) 2>&5
7391 ac_status=$?
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); } &&
7394 { ac_try='test -s conftest.$ac_objext'
7395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7396 (eval $ac_try) 2>&5
7397 ac_status=$?
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); }; }; then
7400 ac_hi=-1 ac_mid=-1
7401 while :; do
7402 cat >conftest.$ac_ext <<_ACEOF
7403 #line $LINENO "configure"
7404 #include "confdefs.h"
7405 $ac_includes_default
7406 #ifdef F77_DUMMY_MAIN
7407 # ifdef __cplusplus
7408 extern "C"
7409 # endif
7410 int F77_DUMMY_MAIN() { return 1; }
7411 #endif
7413 main ()
7415 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
7416 test_array [0] = 0
7419 return 0;
7421 _ACEOF
7422 rm -f conftest.$ac_objext
7423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7424 (eval $ac_compile) 2>&5
7425 ac_status=$?
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); } &&
7428 { ac_try='test -s conftest.$ac_objext'
7429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7430 (eval $ac_try) 2>&5
7431 ac_status=$?
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); }; }; then
7434 ac_lo=$ac_mid; break
7435 else
7436 echo "$as_me: failed program was:" >&5
7437 cat conftest.$ac_ext >&5
7438 ac_hi=`expr '(' $ac_mid ')' - 1`
7439 if test $ac_mid -le $ac_hi; then
7440 ac_lo= ac_hi=
7441 break
7443 ac_mid=`expr 2 '*' $ac_mid`
7445 rm -f conftest.$ac_objext conftest.$ac_ext
7446 done
7447 else
7448 echo "$as_me: failed program was:" >&5
7449 cat conftest.$ac_ext >&5
7450 ac_lo= ac_hi=
7452 rm -f conftest.$ac_objext conftest.$ac_ext
7454 rm -f conftest.$ac_objext conftest.$ac_ext
7455 # Binary search between lo and hi bounds.
7456 while test "x$ac_lo" != "x$ac_hi"; do
7457 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7458 cat >conftest.$ac_ext <<_ACEOF
7459 #line $LINENO "configure"
7460 #include "confdefs.h"
7461 $ac_includes_default
7462 #ifdef F77_DUMMY_MAIN
7463 # ifdef __cplusplus
7464 extern "C"
7465 # endif
7466 int F77_DUMMY_MAIN() { return 1; }
7467 #endif
7469 main ()
7471 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
7472 test_array [0] = 0
7475 return 0;
7477 _ACEOF
7478 rm -f conftest.$ac_objext
7479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7480 (eval $ac_compile) 2>&5
7481 ac_status=$?
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } &&
7484 { ac_try='test -s conftest.$ac_objext'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486 (eval $ac_try) 2>&5
7487 ac_status=$?
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; }; then
7490 ac_hi=$ac_mid
7491 else
7492 echo "$as_me: failed program was:" >&5
7493 cat conftest.$ac_ext >&5
7494 ac_lo=`expr '(' $ac_mid ')' + 1`
7496 rm -f conftest.$ac_objext conftest.$ac_ext
7497 done
7498 case $ac_lo in
7499 ?*) ac_cv_sizeof_float=$ac_lo;;
7500 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5
7501 echo "$as_me: error: cannot compute sizeof (float), 77" >&2;}
7502 { (exit 1); exit 1; }; } ;;
7503 esac
7504 else
7505 if test "$cross_compiling" = yes; then
7506 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7507 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7508 { (exit 1); exit 1; }; }
7509 else
7510 cat >conftest.$ac_ext <<_ACEOF
7511 #line $LINENO "configure"
7512 #include "confdefs.h"
7513 $ac_includes_default
7514 long longval () { return (long) (sizeof (float)); }
7515 unsigned long ulongval () { return (long) (sizeof (float)); }
7516 #include <stdio.h>
7517 #include <stdlib.h>
7518 #ifdef F77_DUMMY_MAIN
7519 # ifdef __cplusplus
7520 extern "C"
7521 # endif
7522 int F77_DUMMY_MAIN() { return 1; }
7523 #endif
7525 main ()
7528 FILE *f = fopen ("conftest.val", "w");
7529 if (! f)
7530 exit (1);
7531 if (((long) (sizeof (float))) < 0)
7533 long i = longval ();
7534 if (i != ((long) (sizeof (float))))
7535 exit (1);
7536 fprintf (f, "%ld\n", i);
7538 else
7540 unsigned long i = ulongval ();
7541 if (i != ((long) (sizeof (float))))
7542 exit (1);
7543 fprintf (f, "%lu\n", i);
7545 exit (ferror (f) || fclose (f) != 0);
7548 return 0;
7550 _ACEOF
7551 rm -f conftest$ac_exeext
7552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7553 (eval $ac_link) 2>&5
7554 ac_status=$?
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558 (eval $ac_try) 2>&5
7559 ac_status=$?
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); }; }; then
7562 ac_cv_sizeof_float=`cat conftest.val`
7563 else
7564 echo "$as_me: program exited with status $ac_status" >&5
7565 echo "$as_me: failed program was:" >&5
7566 cat conftest.$ac_ext >&5
7567 ( exit $ac_status )
7568 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5
7569 echo "$as_me: error: cannot compute sizeof (float), 77" >&2;}
7570 { (exit 1); exit 1; }; }
7572 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7575 rm -f conftest.val
7576 else
7577 ac_cv_sizeof_float=0
7580 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
7581 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
7582 cat >>confdefs.h <<_ACEOF
7583 #define SIZEOF_FLOAT $ac_cv_sizeof_float
7584 _ACEOF
7587 echo "$as_me:$LINENO: checking for double" >&5
7588 echo $ECHO_N "checking for double... $ECHO_C" >&6
7589 if test "${ac_cv_type_double+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7591 else
7592 cat >conftest.$ac_ext <<_ACEOF
7593 #line $LINENO "configure"
7594 #include "confdefs.h"
7595 $ac_includes_default
7596 #ifdef F77_DUMMY_MAIN
7597 # ifdef __cplusplus
7598 extern "C"
7599 # endif
7600 int F77_DUMMY_MAIN() { return 1; }
7601 #endif
7603 main ()
7605 if ((double *) 0)
7606 return 0;
7607 if (sizeof (double))
7608 return 0;
7610 return 0;
7612 _ACEOF
7613 rm -f conftest.$ac_objext
7614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7615 (eval $ac_compile) 2>&5
7616 ac_status=$?
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); } &&
7619 { ac_try='test -s conftest.$ac_objext'
7620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621 (eval $ac_try) 2>&5
7622 ac_status=$?
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; }; then
7625 ac_cv_type_double=yes
7626 else
7627 echo "$as_me: failed program was:" >&5
7628 cat conftest.$ac_ext >&5
7629 ac_cv_type_double=no
7631 rm -f conftest.$ac_objext conftest.$ac_ext
7633 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
7634 echo "${ECHO_T}$ac_cv_type_double" >&6
7636 echo "$as_me:$LINENO: checking size of double" >&5
7637 echo $ECHO_N "checking size of double... $ECHO_C" >&6
7638 if test "${ac_cv_sizeof_double+set}" = set; then
7639 echo $ECHO_N "(cached) $ECHO_C" >&6
7640 else
7641 if test "$ac_cv_type_double" = yes; then
7642 # The cast to unsigned long works around a bug in the HP C Compiler
7643 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7644 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7645 # This bug is HP SR number 8606223364.
7646 if test "$cross_compiling" = yes; then
7647 # Depending upon the size, compute the lo and hi bounds.
7648 cat >conftest.$ac_ext <<_ACEOF
7649 #line $LINENO "configure"
7650 #include "confdefs.h"
7651 $ac_includes_default
7652 #ifdef F77_DUMMY_MAIN
7653 # ifdef __cplusplus
7654 extern "C"
7655 # endif
7656 int F77_DUMMY_MAIN() { return 1; }
7657 #endif
7659 main ()
7661 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
7662 test_array [0] = 0
7665 return 0;
7667 _ACEOF
7668 rm -f conftest.$ac_objext
7669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7670 (eval $ac_compile) 2>&5
7671 ac_status=$?
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); } &&
7674 { ac_try='test -s conftest.$ac_objext'
7675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7676 (eval $ac_try) 2>&5
7677 ac_status=$?
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); }; }; then
7680 ac_lo=0 ac_mid=0
7681 while :; do
7682 cat >conftest.$ac_ext <<_ACEOF
7683 #line $LINENO "configure"
7684 #include "confdefs.h"
7685 $ac_includes_default
7686 #ifdef F77_DUMMY_MAIN
7687 # ifdef __cplusplus
7688 extern "C"
7689 # endif
7690 int F77_DUMMY_MAIN() { return 1; }
7691 #endif
7693 main ()
7695 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
7696 test_array [0] = 0
7699 return 0;
7701 _ACEOF
7702 rm -f conftest.$ac_objext
7703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7704 (eval $ac_compile) 2>&5
7705 ac_status=$?
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); } &&
7708 { ac_try='test -s conftest.$ac_objext'
7709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710 (eval $ac_try) 2>&5
7711 ac_status=$?
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; }; then
7714 ac_hi=$ac_mid; break
7715 else
7716 echo "$as_me: failed program was:" >&5
7717 cat conftest.$ac_ext >&5
7718 ac_lo=`expr $ac_mid + 1`
7719 if test $ac_lo -le $ac_mid; then
7720 ac_lo= ac_hi=
7721 break
7723 ac_mid=`expr 2 '*' $ac_mid + 1`
7725 rm -f conftest.$ac_objext conftest.$ac_ext
7726 done
7727 else
7728 echo "$as_me: failed program was:" >&5
7729 cat conftest.$ac_ext >&5
7730 cat >conftest.$ac_ext <<_ACEOF
7731 #line $LINENO "configure"
7732 #include "confdefs.h"
7733 $ac_includes_default
7734 #ifdef F77_DUMMY_MAIN
7735 # ifdef __cplusplus
7736 extern "C"
7737 # endif
7738 int F77_DUMMY_MAIN() { return 1; }
7739 #endif
7741 main ()
7743 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
7744 test_array [0] = 0
7747 return 0;
7749 _ACEOF
7750 rm -f conftest.$ac_objext
7751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7752 (eval $ac_compile) 2>&5
7753 ac_status=$?
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } &&
7756 { ac_try='test -s conftest.$ac_objext'
7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 (eval $ac_try) 2>&5
7759 ac_status=$?
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; }; then
7762 ac_hi=-1 ac_mid=-1
7763 while :; do
7764 cat >conftest.$ac_ext <<_ACEOF
7765 #line $LINENO "configure"
7766 #include "confdefs.h"
7767 $ac_includes_default
7768 #ifdef F77_DUMMY_MAIN
7769 # ifdef __cplusplus
7770 extern "C"
7771 # endif
7772 int F77_DUMMY_MAIN() { return 1; }
7773 #endif
7775 main ()
7777 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
7778 test_array [0] = 0
7781 return 0;
7783 _ACEOF
7784 rm -f conftest.$ac_objext
7785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7786 (eval $ac_compile) 2>&5
7787 ac_status=$?
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); } &&
7790 { ac_try='test -s conftest.$ac_objext'
7791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792 (eval $ac_try) 2>&5
7793 ac_status=$?
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }; }; then
7796 ac_lo=$ac_mid; break
7797 else
7798 echo "$as_me: failed program was:" >&5
7799 cat conftest.$ac_ext >&5
7800 ac_hi=`expr '(' $ac_mid ')' - 1`
7801 if test $ac_mid -le $ac_hi; then
7802 ac_lo= ac_hi=
7803 break
7805 ac_mid=`expr 2 '*' $ac_mid`
7807 rm -f conftest.$ac_objext conftest.$ac_ext
7808 done
7809 else
7810 echo "$as_me: failed program was:" >&5
7811 cat conftest.$ac_ext >&5
7812 ac_lo= ac_hi=
7814 rm -f conftest.$ac_objext conftest.$ac_ext
7816 rm -f conftest.$ac_objext conftest.$ac_ext
7817 # Binary search between lo and hi bounds.
7818 while test "x$ac_lo" != "x$ac_hi"; do
7819 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7820 cat >conftest.$ac_ext <<_ACEOF
7821 #line $LINENO "configure"
7822 #include "confdefs.h"
7823 $ac_includes_default
7824 #ifdef F77_DUMMY_MAIN
7825 # ifdef __cplusplus
7826 extern "C"
7827 # endif
7828 int F77_DUMMY_MAIN() { return 1; }
7829 #endif
7831 main ()
7833 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
7834 test_array [0] = 0
7837 return 0;
7839 _ACEOF
7840 rm -f conftest.$ac_objext
7841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7842 (eval $ac_compile) 2>&5
7843 ac_status=$?
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); } &&
7846 { ac_try='test -s conftest.$ac_objext'
7847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7848 (eval $ac_try) 2>&5
7849 ac_status=$?
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); }; }; then
7852 ac_hi=$ac_mid
7853 else
7854 echo "$as_me: failed program was:" >&5
7855 cat conftest.$ac_ext >&5
7856 ac_lo=`expr '(' $ac_mid ')' + 1`
7858 rm -f conftest.$ac_objext conftest.$ac_ext
7859 done
7860 case $ac_lo in
7861 ?*) ac_cv_sizeof_double=$ac_lo;;
7862 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5
7863 echo "$as_me: error: cannot compute sizeof (double), 77" >&2;}
7864 { (exit 1); exit 1; }; } ;;
7865 esac
7866 else
7867 if test "$cross_compiling" = yes; then
7868 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7869 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7870 { (exit 1); exit 1; }; }
7871 else
7872 cat >conftest.$ac_ext <<_ACEOF
7873 #line $LINENO "configure"
7874 #include "confdefs.h"
7875 $ac_includes_default
7876 long longval () { return (long) (sizeof (double)); }
7877 unsigned long ulongval () { return (long) (sizeof (double)); }
7878 #include <stdio.h>
7879 #include <stdlib.h>
7880 #ifdef F77_DUMMY_MAIN
7881 # ifdef __cplusplus
7882 extern "C"
7883 # endif
7884 int F77_DUMMY_MAIN() { return 1; }
7885 #endif
7887 main ()
7890 FILE *f = fopen ("conftest.val", "w");
7891 if (! f)
7892 exit (1);
7893 if (((long) (sizeof (double))) < 0)
7895 long i = longval ();
7896 if (i != ((long) (sizeof (double))))
7897 exit (1);
7898 fprintf (f, "%ld\n", i);
7900 else
7902 unsigned long i = ulongval ();
7903 if (i != ((long) (sizeof (double))))
7904 exit (1);
7905 fprintf (f, "%lu\n", i);
7907 exit (ferror (f) || fclose (f) != 0);
7910 return 0;
7912 _ACEOF
7913 rm -f conftest$ac_exeext
7914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7915 (eval $ac_link) 2>&5
7916 ac_status=$?
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920 (eval $ac_try) 2>&5
7921 ac_status=$?
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; }; then
7924 ac_cv_sizeof_double=`cat conftest.val`
7925 else
7926 echo "$as_me: program exited with status $ac_status" >&5
7927 echo "$as_me: failed program was:" >&5
7928 cat conftest.$ac_ext >&5
7929 ( exit $ac_status )
7930 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5
7931 echo "$as_me: error: cannot compute sizeof (double), 77" >&2;}
7932 { (exit 1); exit 1; }; }
7934 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7937 rm -f conftest.val
7938 else
7939 ac_cv_sizeof_double=0
7942 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
7943 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
7944 cat >>confdefs.h <<_ACEOF
7945 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
7946 _ACEOF
7949 echo "$as_me:$LINENO: checking for fpos_t" >&5
7950 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
7951 if test "${ac_cv_type_fpos_t+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7953 else
7954 cat >conftest.$ac_ext <<_ACEOF
7955 #line $LINENO "configure"
7956 #include "confdefs.h"
7957 $ac_includes_default
7958 #ifdef F77_DUMMY_MAIN
7959 # ifdef __cplusplus
7960 extern "C"
7961 # endif
7962 int F77_DUMMY_MAIN() { return 1; }
7963 #endif
7965 main ()
7967 if ((fpos_t *) 0)
7968 return 0;
7969 if (sizeof (fpos_t))
7970 return 0;
7972 return 0;
7974 _ACEOF
7975 rm -f conftest.$ac_objext
7976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7977 (eval $ac_compile) 2>&5
7978 ac_status=$?
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); } &&
7981 { ac_try='test -s conftest.$ac_objext'
7982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983 (eval $ac_try) 2>&5
7984 ac_status=$?
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); }; }; then
7987 ac_cv_type_fpos_t=yes
7988 else
7989 echo "$as_me: failed program was:" >&5
7990 cat conftest.$ac_ext >&5
7991 ac_cv_type_fpos_t=no
7993 rm -f conftest.$ac_objext conftest.$ac_ext
7995 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
7996 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
7998 echo "$as_me:$LINENO: checking size of fpos_t" >&5
7999 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8000 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8001 echo $ECHO_N "(cached) $ECHO_C" >&6
8002 else
8003 if test "$ac_cv_type_fpos_t" = yes; then
8004 # The cast to unsigned long works around a bug in the HP C Compiler
8005 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8006 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8007 # This bug is HP SR number 8606223364.
8008 if test "$cross_compiling" = yes; then
8009 # Depending upon the size, compute the lo and hi bounds.
8010 cat >conftest.$ac_ext <<_ACEOF
8011 #line $LINENO "configure"
8012 #include "confdefs.h"
8013 $ac_includes_default
8014 #ifdef F77_DUMMY_MAIN
8015 # ifdef __cplusplus
8016 extern "C"
8017 # endif
8018 int F77_DUMMY_MAIN() { return 1; }
8019 #endif
8021 main ()
8023 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8024 test_array [0] = 0
8027 return 0;
8029 _ACEOF
8030 rm -f conftest.$ac_objext
8031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8032 (eval $ac_compile) 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_lo=0 ac_mid=0
8043 while :; do
8044 cat >conftest.$ac_ext <<_ACEOF
8045 #line $LINENO "configure"
8046 #include "confdefs.h"
8047 $ac_includes_default
8048 #ifdef F77_DUMMY_MAIN
8049 # ifdef __cplusplus
8050 extern "C"
8051 # endif
8052 int F77_DUMMY_MAIN() { return 1; }
8053 #endif
8055 main ()
8057 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8058 test_array [0] = 0
8061 return 0;
8063 _ACEOF
8064 rm -f conftest.$ac_objext
8065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8066 (eval $ac_compile) 2>&5
8067 ac_status=$?
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); } &&
8070 { ac_try='test -s conftest.$ac_objext'
8071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072 (eval $ac_try) 2>&5
8073 ac_status=$?
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; }; then
8076 ac_hi=$ac_mid; break
8077 else
8078 echo "$as_me: failed program was:" >&5
8079 cat conftest.$ac_ext >&5
8080 ac_lo=`expr $ac_mid + 1`
8081 if test $ac_lo -le $ac_mid; then
8082 ac_lo= ac_hi=
8083 break
8085 ac_mid=`expr 2 '*' $ac_mid + 1`
8087 rm -f conftest.$ac_objext conftest.$ac_ext
8088 done
8089 else
8090 echo "$as_me: failed program was:" >&5
8091 cat conftest.$ac_ext >&5
8092 cat >conftest.$ac_ext <<_ACEOF
8093 #line $LINENO "configure"
8094 #include "confdefs.h"
8095 $ac_includes_default
8096 #ifdef F77_DUMMY_MAIN
8097 # ifdef __cplusplus
8098 extern "C"
8099 # endif
8100 int F77_DUMMY_MAIN() { return 1; }
8101 #endif
8103 main ()
8105 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8106 test_array [0] = 0
8109 return 0;
8111 _ACEOF
8112 rm -f conftest.$ac_objext
8113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8114 (eval $ac_compile) 2>&5
8115 ac_status=$?
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } &&
8118 { ac_try='test -s conftest.$ac_objext'
8119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120 (eval $ac_try) 2>&5
8121 ac_status=$?
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; }; then
8124 ac_hi=-1 ac_mid=-1
8125 while :; do
8126 cat >conftest.$ac_ext <<_ACEOF
8127 #line $LINENO "configure"
8128 #include "confdefs.h"
8129 $ac_includes_default
8130 #ifdef F77_DUMMY_MAIN
8131 # ifdef __cplusplus
8132 extern "C"
8133 # endif
8134 int F77_DUMMY_MAIN() { return 1; }
8135 #endif
8137 main ()
8139 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8140 test_array [0] = 0
8143 return 0;
8145 _ACEOF
8146 rm -f conftest.$ac_objext
8147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8148 (eval $ac_compile) 2>&5
8149 ac_status=$?
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } &&
8152 { ac_try='test -s conftest.$ac_objext'
8153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154 (eval $ac_try) 2>&5
8155 ac_status=$?
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8158 ac_lo=$ac_mid; break
8159 else
8160 echo "$as_me: failed program was:" >&5
8161 cat conftest.$ac_ext >&5
8162 ac_hi=`expr '(' $ac_mid ')' - 1`
8163 if test $ac_mid -le $ac_hi; then
8164 ac_lo= ac_hi=
8165 break
8167 ac_mid=`expr 2 '*' $ac_mid`
8169 rm -f conftest.$ac_objext conftest.$ac_ext
8170 done
8171 else
8172 echo "$as_me: failed program was:" >&5
8173 cat conftest.$ac_ext >&5
8174 ac_lo= ac_hi=
8176 rm -f conftest.$ac_objext conftest.$ac_ext
8178 rm -f conftest.$ac_objext conftest.$ac_ext
8179 # Binary search between lo and hi bounds.
8180 while test "x$ac_lo" != "x$ac_hi"; do
8181 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8182 cat >conftest.$ac_ext <<_ACEOF
8183 #line $LINENO "configure"
8184 #include "confdefs.h"
8185 $ac_includes_default
8186 #ifdef F77_DUMMY_MAIN
8187 # ifdef __cplusplus
8188 extern "C"
8189 # endif
8190 int F77_DUMMY_MAIN() { return 1; }
8191 #endif
8193 main ()
8195 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8196 test_array [0] = 0
8199 return 0;
8201 _ACEOF
8202 rm -f conftest.$ac_objext
8203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8204 (eval $ac_compile) 2>&5
8205 ac_status=$?
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } &&
8208 { ac_try='test -s conftest.$ac_objext'
8209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8210 (eval $ac_try) 2>&5
8211 ac_status=$?
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); }; }; then
8214 ac_hi=$ac_mid
8215 else
8216 echo "$as_me: failed program was:" >&5
8217 cat conftest.$ac_ext >&5
8218 ac_lo=`expr '(' $ac_mid ')' + 1`
8220 rm -f conftest.$ac_objext conftest.$ac_ext
8221 done
8222 case $ac_lo in
8223 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
8224 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5
8225 echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;}
8226 { (exit 1); exit 1; }; } ;;
8227 esac
8228 else
8229 if test "$cross_compiling" = yes; then
8230 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8231 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8232 { (exit 1); exit 1; }; }
8233 else
8234 cat >conftest.$ac_ext <<_ACEOF
8235 #line $LINENO "configure"
8236 #include "confdefs.h"
8237 $ac_includes_default
8238 long longval () { return (long) (sizeof (fpos_t)); }
8239 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
8240 #include <stdio.h>
8241 #include <stdlib.h>
8242 #ifdef F77_DUMMY_MAIN
8243 # ifdef __cplusplus
8244 extern "C"
8245 # endif
8246 int F77_DUMMY_MAIN() { return 1; }
8247 #endif
8249 main ()
8252 FILE *f = fopen ("conftest.val", "w");
8253 if (! f)
8254 exit (1);
8255 if (((long) (sizeof (fpos_t))) < 0)
8257 long i = longval ();
8258 if (i != ((long) (sizeof (fpos_t))))
8259 exit (1);
8260 fprintf (f, "%ld\n", i);
8262 else
8264 unsigned long i = ulongval ();
8265 if (i != ((long) (sizeof (fpos_t))))
8266 exit (1);
8267 fprintf (f, "%lu\n", i);
8269 exit (ferror (f) || fclose (f) != 0);
8272 return 0;
8274 _ACEOF
8275 rm -f conftest$ac_exeext
8276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8277 (eval $ac_link) 2>&5
8278 ac_status=$?
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282 (eval $ac_try) 2>&5
8283 ac_status=$?
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); }; }; then
8286 ac_cv_sizeof_fpos_t=`cat conftest.val`
8287 else
8288 echo "$as_me: program exited with status $ac_status" >&5
8289 echo "$as_me: failed program was:" >&5
8290 cat conftest.$ac_ext >&5
8291 ( exit $ac_status )
8292 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5
8293 echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;}
8294 { (exit 1); exit 1; }; }
8296 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8299 rm -f conftest.val
8300 else
8301 ac_cv_sizeof_fpos_t=0
8304 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
8305 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
8306 cat >>confdefs.h <<_ACEOF
8307 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
8308 _ACEOF
8312 echo "$as_me:$LINENO: checking for long long support" >&5
8313 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
8314 have_long_long=no
8315 cat >conftest.$ac_ext <<_ACEOF
8316 #line $LINENO "configure"
8317 #include "confdefs.h"
8319 #ifdef F77_DUMMY_MAIN
8320 # ifdef __cplusplus
8321 extern "C"
8322 # endif
8323 int F77_DUMMY_MAIN() { return 1; }
8324 #endif
8326 main ()
8328 long long x; x = (long long)0;
8330 return 0;
8332 _ACEOF
8333 rm -f conftest.$ac_objext
8334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8335 (eval $ac_compile) 2>&5
8336 ac_status=$?
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); } &&
8339 { ac_try='test -s conftest.$ac_objext'
8340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341 (eval $ac_try) 2>&5
8342 ac_status=$?
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); }; }; then
8347 cat >>confdefs.h <<\_ACEOF
8348 #define HAVE_LONG_LONG 1
8349 _ACEOF
8351 have_long_long=yes
8353 else
8354 echo "$as_me: failed program was:" >&5
8355 cat conftest.$ac_ext >&5
8357 rm -f conftest.$ac_objext conftest.$ac_ext
8358 echo "$as_me:$LINENO: result: $have_long_long" >&5
8359 echo "${ECHO_T}$have_long_long" >&6
8360 if test "$have_long_long" = yes ; then
8361 echo "$as_me:$LINENO: checking for long long" >&5
8362 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8363 if test "${ac_cv_type_long_long+set}" = set; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 else
8366 cat >conftest.$ac_ext <<_ACEOF
8367 #line $LINENO "configure"
8368 #include "confdefs.h"
8369 $ac_includes_default
8370 #ifdef F77_DUMMY_MAIN
8371 # ifdef __cplusplus
8372 extern "C"
8373 # endif
8374 int F77_DUMMY_MAIN() { return 1; }
8375 #endif
8377 main ()
8379 if ((long long *) 0)
8380 return 0;
8381 if (sizeof (long long))
8382 return 0;
8384 return 0;
8386 _ACEOF
8387 rm -f conftest.$ac_objext
8388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8389 (eval $ac_compile) 2>&5
8390 ac_status=$?
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } &&
8393 { ac_try='test -s conftest.$ac_objext'
8394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395 (eval $ac_try) 2>&5
8396 ac_status=$?
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; }; then
8399 ac_cv_type_long_long=yes
8400 else
8401 echo "$as_me: failed program was:" >&5
8402 cat conftest.$ac_ext >&5
8403 ac_cv_type_long_long=no
8405 rm -f conftest.$ac_objext conftest.$ac_ext
8407 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8408 echo "${ECHO_T}$ac_cv_type_long_long" >&6
8410 echo "$as_me:$LINENO: checking size of long long" >&5
8411 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8412 if test "${ac_cv_sizeof_long_long+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8414 else
8415 if test "$ac_cv_type_long_long" = yes; then
8416 # The cast to unsigned long works around a bug in the HP C Compiler
8417 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8418 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8419 # This bug is HP SR number 8606223364.
8420 if test "$cross_compiling" = yes; then
8421 # Depending upon the size, compute the lo and hi bounds.
8422 cat >conftest.$ac_ext <<_ACEOF
8423 #line $LINENO "configure"
8424 #include "confdefs.h"
8425 $ac_includes_default
8426 #ifdef F77_DUMMY_MAIN
8427 # ifdef __cplusplus
8428 extern "C"
8429 # endif
8430 int F77_DUMMY_MAIN() { return 1; }
8431 #endif
8433 main ()
8435 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8436 test_array [0] = 0
8439 return 0;
8441 _ACEOF
8442 rm -f conftest.$ac_objext
8443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8444 (eval $ac_compile) 2>&5
8445 ac_status=$?
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } &&
8448 { ac_try='test -s conftest.$ac_objext'
8449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450 (eval $ac_try) 2>&5
8451 ac_status=$?
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); }; }; then
8454 ac_lo=0 ac_mid=0
8455 while :; do
8456 cat >conftest.$ac_ext <<_ACEOF
8457 #line $LINENO "configure"
8458 #include "confdefs.h"
8459 $ac_includes_default
8460 #ifdef F77_DUMMY_MAIN
8461 # ifdef __cplusplus
8462 extern "C"
8463 # endif
8464 int F77_DUMMY_MAIN() { return 1; }
8465 #endif
8467 main ()
8469 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8470 test_array [0] = 0
8473 return 0;
8475 _ACEOF
8476 rm -f conftest.$ac_objext
8477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8478 (eval $ac_compile) 2>&5
8479 ac_status=$?
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } &&
8482 { ac_try='test -s conftest.$ac_objext'
8483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484 (eval $ac_try) 2>&5
8485 ac_status=$?
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; }; then
8488 ac_hi=$ac_mid; break
8489 else
8490 echo "$as_me: failed program was:" >&5
8491 cat conftest.$ac_ext >&5
8492 ac_lo=`expr $ac_mid + 1`
8493 if test $ac_lo -le $ac_mid; then
8494 ac_lo= ac_hi=
8495 break
8497 ac_mid=`expr 2 '*' $ac_mid + 1`
8499 rm -f conftest.$ac_objext conftest.$ac_ext
8500 done
8501 else
8502 echo "$as_me: failed program was:" >&5
8503 cat conftest.$ac_ext >&5
8504 cat >conftest.$ac_ext <<_ACEOF
8505 #line $LINENO "configure"
8506 #include "confdefs.h"
8507 $ac_includes_default
8508 #ifdef F77_DUMMY_MAIN
8509 # ifdef __cplusplus
8510 extern "C"
8511 # endif
8512 int F77_DUMMY_MAIN() { return 1; }
8513 #endif
8515 main ()
8517 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
8518 test_array [0] = 0
8521 return 0;
8523 _ACEOF
8524 rm -f conftest.$ac_objext
8525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8526 (eval $ac_compile) 2>&5
8527 ac_status=$?
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } &&
8530 { ac_try='test -s conftest.$ac_objext'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 (eval $ac_try) 2>&5
8533 ac_status=$?
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; }; then
8536 ac_hi=-1 ac_mid=-1
8537 while :; do
8538 cat >conftest.$ac_ext <<_ACEOF
8539 #line $LINENO "configure"
8540 #include "confdefs.h"
8541 $ac_includes_default
8542 #ifdef F77_DUMMY_MAIN
8543 # ifdef __cplusplus
8544 extern "C"
8545 # endif
8546 int F77_DUMMY_MAIN() { return 1; }
8547 #endif
8549 main ()
8551 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
8552 test_array [0] = 0
8555 return 0;
8557 _ACEOF
8558 rm -f conftest.$ac_objext
8559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8560 (eval $ac_compile) 2>&5
8561 ac_status=$?
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); } &&
8564 { ac_try='test -s conftest.$ac_objext'
8565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8566 (eval $ac_try) 2>&5
8567 ac_status=$?
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); }; }; then
8570 ac_lo=$ac_mid; break
8571 else
8572 echo "$as_me: failed program was:" >&5
8573 cat conftest.$ac_ext >&5
8574 ac_hi=`expr '(' $ac_mid ')' - 1`
8575 if test $ac_mid -le $ac_hi; then
8576 ac_lo= ac_hi=
8577 break
8579 ac_mid=`expr 2 '*' $ac_mid`
8581 rm -f conftest.$ac_objext conftest.$ac_ext
8582 done
8583 else
8584 echo "$as_me: failed program was:" >&5
8585 cat conftest.$ac_ext >&5
8586 ac_lo= ac_hi=
8588 rm -f conftest.$ac_objext conftest.$ac_ext
8590 rm -f conftest.$ac_objext conftest.$ac_ext
8591 # Binary search between lo and hi bounds.
8592 while test "x$ac_lo" != "x$ac_hi"; do
8593 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8594 cat >conftest.$ac_ext <<_ACEOF
8595 #line $LINENO "configure"
8596 #include "confdefs.h"
8597 $ac_includes_default
8598 #ifdef F77_DUMMY_MAIN
8599 # ifdef __cplusplus
8600 extern "C"
8601 # endif
8602 int F77_DUMMY_MAIN() { return 1; }
8603 #endif
8605 main ()
8607 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8608 test_array [0] = 0
8611 return 0;
8613 _ACEOF
8614 rm -f conftest.$ac_objext
8615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8616 (eval $ac_compile) 2>&5
8617 ac_status=$?
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); } &&
8620 { ac_try='test -s conftest.$ac_objext'
8621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622 (eval $ac_try) 2>&5
8623 ac_status=$?
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }; }; then
8626 ac_hi=$ac_mid
8627 else
8628 echo "$as_me: failed program was:" >&5
8629 cat conftest.$ac_ext >&5
8630 ac_lo=`expr '(' $ac_mid ')' + 1`
8632 rm -f conftest.$ac_objext conftest.$ac_ext
8633 done
8634 case $ac_lo in
8635 ?*) ac_cv_sizeof_long_long=$ac_lo;;
8636 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
8637 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
8638 { (exit 1); exit 1; }; } ;;
8639 esac
8640 else
8641 if test "$cross_compiling" = yes; then
8642 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8643 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8644 { (exit 1); exit 1; }; }
8645 else
8646 cat >conftest.$ac_ext <<_ACEOF
8647 #line $LINENO "configure"
8648 #include "confdefs.h"
8649 $ac_includes_default
8650 long longval () { return (long) (sizeof (long long)); }
8651 unsigned long ulongval () { return (long) (sizeof (long long)); }
8652 #include <stdio.h>
8653 #include <stdlib.h>
8654 #ifdef F77_DUMMY_MAIN
8655 # ifdef __cplusplus
8656 extern "C"
8657 # endif
8658 int F77_DUMMY_MAIN() { return 1; }
8659 #endif
8661 main ()
8664 FILE *f = fopen ("conftest.val", "w");
8665 if (! f)
8666 exit (1);
8667 if (((long) (sizeof (long long))) < 0)
8669 long i = longval ();
8670 if (i != ((long) (sizeof (long long))))
8671 exit (1);
8672 fprintf (f, "%ld\n", i);
8674 else
8676 unsigned long i = ulongval ();
8677 if (i != ((long) (sizeof (long long))))
8678 exit (1);
8679 fprintf (f, "%lu\n", i);
8681 exit (ferror (f) || fclose (f) != 0);
8684 return 0;
8686 _ACEOF
8687 rm -f conftest$ac_exeext
8688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8689 (eval $ac_link) 2>&5
8690 ac_status=$?
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694 (eval $ac_try) 2>&5
8695 ac_status=$?
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); }; }; then
8698 ac_cv_sizeof_long_long=`cat conftest.val`
8699 else
8700 echo "$as_me: program exited with status $ac_status" >&5
8701 echo "$as_me: failed program was:" >&5
8702 cat conftest.$ac_ext >&5
8703 ( exit $ac_status )
8704 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
8705 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
8706 { (exit 1); exit 1; }; }
8708 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8711 rm -f conftest.val
8712 else
8713 ac_cv_sizeof_long_long=0
8716 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8717 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8718 cat >>confdefs.h <<_ACEOF
8719 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8720 _ACEOF
8725 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
8726 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
8727 have_uintptr_t=no
8728 cat >conftest.$ac_ext <<_ACEOF
8729 #line $LINENO "configure"
8730 #include "confdefs.h"
8732 #ifdef F77_DUMMY_MAIN
8733 # ifdef __cplusplus
8734 extern "C"
8735 # endif
8736 int F77_DUMMY_MAIN() { return 1; }
8737 #endif
8739 main ()
8741 uintptr_t x; x = (uintptr_t)0;
8743 return 0;
8745 _ACEOF
8746 rm -f conftest.$ac_objext
8747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8748 (eval $ac_compile) 2>&5
8749 ac_status=$?
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); } &&
8752 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8760 cat >>confdefs.h <<\_ACEOF
8761 #define HAVE_UINTPTR_T 1
8762 _ACEOF
8764 have_uintptr_t=yes
8766 else
8767 echo "$as_me: failed program was:" >&5
8768 cat conftest.$ac_ext >&5
8770 rm -f conftest.$ac_objext conftest.$ac_ext
8771 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
8772 echo "${ECHO_T}$have_uintptr_t" >&6
8773 if test "$have_uintptr_t" = yes ; then
8774 echo "$as_me:$LINENO: checking for uintptr_t" >&5
8775 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
8776 if test "${ac_cv_type_uintptr_t+set}" = set; then
8777 echo $ECHO_N "(cached) $ECHO_C" >&6
8778 else
8779 cat >conftest.$ac_ext <<_ACEOF
8780 #line $LINENO "configure"
8781 #include "confdefs.h"
8782 $ac_includes_default
8783 #ifdef F77_DUMMY_MAIN
8784 # ifdef __cplusplus
8785 extern "C"
8786 # endif
8787 int F77_DUMMY_MAIN() { return 1; }
8788 #endif
8790 main ()
8792 if ((uintptr_t *) 0)
8793 return 0;
8794 if (sizeof (uintptr_t))
8795 return 0;
8797 return 0;
8799 _ACEOF
8800 rm -f conftest.$ac_objext
8801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8802 (eval $ac_compile) 2>&5
8803 ac_status=$?
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } &&
8806 { ac_try='test -s conftest.$ac_objext'
8807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8808 (eval $ac_try) 2>&5
8809 ac_status=$?
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); }; }; then
8812 ac_cv_type_uintptr_t=yes
8813 else
8814 echo "$as_me: failed program was:" >&5
8815 cat conftest.$ac_ext >&5
8816 ac_cv_type_uintptr_t=no
8818 rm -f conftest.$ac_objext conftest.$ac_ext
8820 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
8821 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
8823 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
8824 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
8825 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
8826 echo $ECHO_N "(cached) $ECHO_C" >&6
8827 else
8828 if test "$ac_cv_type_uintptr_t" = yes; then
8829 # The cast to unsigned long works around a bug in the HP C Compiler
8830 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8831 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8832 # This bug is HP SR number 8606223364.
8833 if test "$cross_compiling" = yes; then
8834 # Depending upon the size, compute the lo and hi bounds.
8835 cat >conftest.$ac_ext <<_ACEOF
8836 #line $LINENO "configure"
8837 #include "confdefs.h"
8838 $ac_includes_default
8839 #ifdef F77_DUMMY_MAIN
8840 # ifdef __cplusplus
8841 extern "C"
8842 # endif
8843 int F77_DUMMY_MAIN() { return 1; }
8844 #endif
8846 main ()
8848 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
8849 test_array [0] = 0
8852 return 0;
8854 _ACEOF
8855 rm -f conftest.$ac_objext
8856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8857 (eval $ac_compile) 2>&5
8858 ac_status=$?
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } &&
8861 { ac_try='test -s conftest.$ac_objext'
8862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863 (eval $ac_try) 2>&5
8864 ac_status=$?
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); }; }; then
8867 ac_lo=0 ac_mid=0
8868 while :; do
8869 cat >conftest.$ac_ext <<_ACEOF
8870 #line $LINENO "configure"
8871 #include "confdefs.h"
8872 $ac_includes_default
8873 #ifdef F77_DUMMY_MAIN
8874 # ifdef __cplusplus
8875 extern "C"
8876 # endif
8877 int F77_DUMMY_MAIN() { return 1; }
8878 #endif
8880 main ()
8882 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
8883 test_array [0] = 0
8886 return 0;
8888 _ACEOF
8889 rm -f conftest.$ac_objext
8890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8891 (eval $ac_compile) 2>&5
8892 ac_status=$?
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } &&
8895 { ac_try='test -s conftest.$ac_objext'
8896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8897 (eval $ac_try) 2>&5
8898 ac_status=$?
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); }; }; then
8901 ac_hi=$ac_mid; break
8902 else
8903 echo "$as_me: failed program was:" >&5
8904 cat conftest.$ac_ext >&5
8905 ac_lo=`expr $ac_mid + 1`
8906 if test $ac_lo -le $ac_mid; then
8907 ac_lo= ac_hi=
8908 break
8910 ac_mid=`expr 2 '*' $ac_mid + 1`
8912 rm -f conftest.$ac_objext conftest.$ac_ext
8913 done
8914 else
8915 echo "$as_me: failed program was:" >&5
8916 cat conftest.$ac_ext >&5
8917 cat >conftest.$ac_ext <<_ACEOF
8918 #line $LINENO "configure"
8919 #include "confdefs.h"
8920 $ac_includes_default
8921 #ifdef F77_DUMMY_MAIN
8922 # ifdef __cplusplus
8923 extern "C"
8924 # endif
8925 int F77_DUMMY_MAIN() { return 1; }
8926 #endif
8928 main ()
8930 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
8931 test_array [0] = 0
8934 return 0;
8936 _ACEOF
8937 rm -f conftest.$ac_objext
8938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8939 (eval $ac_compile) 2>&5
8940 ac_status=$?
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); } &&
8943 { ac_try='test -s conftest.$ac_objext'
8944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945 (eval $ac_try) 2>&5
8946 ac_status=$?
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); }; }; then
8949 ac_hi=-1 ac_mid=-1
8950 while :; do
8951 cat >conftest.$ac_ext <<_ACEOF
8952 #line $LINENO "configure"
8953 #include "confdefs.h"
8954 $ac_includes_default
8955 #ifdef F77_DUMMY_MAIN
8956 # ifdef __cplusplus
8957 extern "C"
8958 # endif
8959 int F77_DUMMY_MAIN() { return 1; }
8960 #endif
8962 main ()
8964 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
8965 test_array [0] = 0
8968 return 0;
8970 _ACEOF
8971 rm -f conftest.$ac_objext
8972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8973 (eval $ac_compile) 2>&5
8974 ac_status=$?
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } &&
8977 { ac_try='test -s conftest.$ac_objext'
8978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979 (eval $ac_try) 2>&5
8980 ac_status=$?
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); }; }; then
8983 ac_lo=$ac_mid; break
8984 else
8985 echo "$as_me: failed program was:" >&5
8986 cat conftest.$ac_ext >&5
8987 ac_hi=`expr '(' $ac_mid ')' - 1`
8988 if test $ac_mid -le $ac_hi; then
8989 ac_lo= ac_hi=
8990 break
8992 ac_mid=`expr 2 '*' $ac_mid`
8994 rm -f conftest.$ac_objext conftest.$ac_ext
8995 done
8996 else
8997 echo "$as_me: failed program was:" >&5
8998 cat conftest.$ac_ext >&5
8999 ac_lo= ac_hi=
9001 rm -f conftest.$ac_objext conftest.$ac_ext
9003 rm -f conftest.$ac_objext conftest.$ac_ext
9004 # Binary search between lo and hi bounds.
9005 while test "x$ac_lo" != "x$ac_hi"; do
9006 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9007 cat >conftest.$ac_ext <<_ACEOF
9008 #line $LINENO "configure"
9009 #include "confdefs.h"
9010 $ac_includes_default
9011 #ifdef F77_DUMMY_MAIN
9012 # ifdef __cplusplus
9013 extern "C"
9014 # endif
9015 int F77_DUMMY_MAIN() { return 1; }
9016 #endif
9018 main ()
9020 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
9021 test_array [0] = 0
9024 return 0;
9026 _ACEOF
9027 rm -f conftest.$ac_objext
9028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9029 (eval $ac_compile) 2>&5
9030 ac_status=$?
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); } &&
9033 { ac_try='test -s conftest.$ac_objext'
9034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9035 (eval $ac_try) 2>&5
9036 ac_status=$?
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); }; }; then
9039 ac_hi=$ac_mid
9040 else
9041 echo "$as_me: failed program was:" >&5
9042 cat conftest.$ac_ext >&5
9043 ac_lo=`expr '(' $ac_mid ')' + 1`
9045 rm -f conftest.$ac_objext conftest.$ac_ext
9046 done
9047 case $ac_lo in
9048 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
9049 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5
9050 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;}
9051 { (exit 1); exit 1; }; } ;;
9052 esac
9053 else
9054 if test "$cross_compiling" = yes; then
9055 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
9056 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9057 { (exit 1); exit 1; }; }
9058 else
9059 cat >conftest.$ac_ext <<_ACEOF
9060 #line $LINENO "configure"
9061 #include "confdefs.h"
9062 $ac_includes_default
9063 long longval () { return (long) (sizeof (uintptr_t)); }
9064 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
9065 #include <stdio.h>
9066 #include <stdlib.h>
9067 #ifdef F77_DUMMY_MAIN
9068 # ifdef __cplusplus
9069 extern "C"
9070 # endif
9071 int F77_DUMMY_MAIN() { return 1; }
9072 #endif
9074 main ()
9077 FILE *f = fopen ("conftest.val", "w");
9078 if (! f)
9079 exit (1);
9080 if (((long) (sizeof (uintptr_t))) < 0)
9082 long i = longval ();
9083 if (i != ((long) (sizeof (uintptr_t))))
9084 exit (1);
9085 fprintf (f, "%ld\n", i);
9087 else
9089 unsigned long i = ulongval ();
9090 if (i != ((long) (sizeof (uintptr_t))))
9091 exit (1);
9092 fprintf (f, "%lu\n", i);
9094 exit (ferror (f) || fclose (f) != 0);
9097 return 0;
9099 _ACEOF
9100 rm -f conftest$ac_exeext
9101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9102 (eval $ac_link) 2>&5
9103 ac_status=$?
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107 (eval $ac_try) 2>&5
9108 ac_status=$?
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); }; }; then
9111 ac_cv_sizeof_uintptr_t=`cat conftest.val`
9112 else
9113 echo "$as_me: program exited with status $ac_status" >&5
9114 echo "$as_me: failed program was:" >&5
9115 cat conftest.$ac_ext >&5
9116 ( exit $ac_status )
9117 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5
9118 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;}
9119 { (exit 1); exit 1; }; }
9121 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9124 rm -f conftest.val
9125 else
9126 ac_cv_sizeof_uintptr_t=0
9129 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
9130 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
9131 cat >>confdefs.h <<_ACEOF
9132 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
9133 _ACEOF
9138 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
9139 echo "$as_me:$LINENO: checking size of off_t" >&5
9140 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
9141 if test "${ac_cv_sizeof_off_t+set}" = set; then
9142 echo $ECHO_N "(cached) $ECHO_C" >&6
9143 else
9144 if test "$cross_compiling" = yes; then
9145 ac_cv_sizeof_off_t=4
9146 else
9147 cat >conftest.$ac_ext <<_ACEOF
9148 #line $LINENO "configure"
9149 #include "confdefs.h"
9150 #include <stdio.h>
9151 #include <sys/types.h>
9152 main()
9154 FILE *f=fopen("conftestval", "w");
9155 if (!f) exit(1);
9156 fprintf(f, "%d\n", sizeof(off_t));
9157 exit(0);
9159 _ACEOF
9160 rm -f conftest$ac_exeext
9161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9162 (eval $ac_link) 2>&5
9163 ac_status=$?
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167 (eval $ac_try) 2>&5
9168 ac_status=$?
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; }; then
9171 ac_cv_sizeof_off_t=`cat conftestval`
9172 else
9173 echo "$as_me: program exited with status $ac_status" >&5
9174 echo "$as_me: failed program was:" >&5
9175 cat conftest.$ac_ext >&5
9176 ( exit $ac_status )
9177 ac_cv_sizeof_off_t=0
9179 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9184 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
9185 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
9187 cat >>confdefs.h <<_ACEOF
9188 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
9189 _ACEOF
9192 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
9193 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
9194 if test "$have_long_long" = yes -a \
9195 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
9196 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
9198 cat >>confdefs.h <<\_ACEOF
9199 #define HAVE_LARGEFILE_SUPPORT 1
9200 _ACEOF
9202 echo "$as_me:$LINENO: result: yes" >&5
9203 echo "${ECHO_T}yes" >&6
9204 else
9205 echo "$as_me:$LINENO: result: no" >&5
9206 echo "${ECHO_T}no" >&6
9209 # AC_CHECK_SIZEOF() doesn't include <time.h>.
9210 echo "$as_me:$LINENO: checking size of time_t" >&5
9211 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
9212 if test "${ac_cv_sizeof_time_t+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9214 else
9215 if test "$cross_compiling" = yes; then
9216 ac_cv_sizeof_time_t=4
9217 else
9218 cat >conftest.$ac_ext <<_ACEOF
9219 #line $LINENO "configure"
9220 #include "confdefs.h"
9221 #include <stdio.h>
9222 #include <time.h>
9223 main()
9225 FILE *f=fopen("conftestval", "w");
9226 if (!f) exit(1);
9227 fprintf(f, "%d\n", sizeof(time_t));
9228 exit(0);
9230 _ACEOF
9231 rm -f conftest$ac_exeext
9232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9233 (eval $ac_link) 2>&5
9234 ac_status=$?
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238 (eval $ac_try) 2>&5
9239 ac_status=$?
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); }; }; then
9242 ac_cv_sizeof_time_t=`cat conftestval`
9243 else
9244 echo "$as_me: program exited with status $ac_status" >&5
9245 echo "$as_me: failed program was:" >&5
9246 cat conftest.$ac_ext >&5
9247 ( exit $ac_status )
9248 ac_cv_sizeof_time_t=0
9250 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9255 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
9256 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
9258 cat >>confdefs.h <<_ACEOF
9259 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
9260 _ACEOF
9264 # if have pthread_t then define SIZEOF_PTHREAD_T
9265 ac_save_cc="$CC"
9266 if test "$ac_cv_kpthread" = "yes"
9267 then CC="$CC -Kpthread"
9268 elif test "$ac_cv_kthread" = "yes"
9269 then CC="$CC -Kthread"
9270 elif test "$ac_cv_pthread" = "yes"
9271 then CC="$CC -pthread"
9273 echo "$as_me:$LINENO: checking for pthread_t" >&5
9274 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
9275 have_pthread_t=no
9276 cat >conftest.$ac_ext <<_ACEOF
9277 #line $LINENO "configure"
9278 #include "confdefs.h"
9279 #include <pthread.h>
9280 #ifdef F77_DUMMY_MAIN
9281 # ifdef __cplusplus
9282 extern "C"
9283 # endif
9284 int F77_DUMMY_MAIN() { return 1; }
9285 #endif
9287 main ()
9289 pthread_t x; x = *(pthread_t*)0;
9291 return 0;
9293 _ACEOF
9294 rm -f conftest.$ac_objext
9295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9296 (eval $ac_compile) 2>&5
9297 ac_status=$?
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); } &&
9300 { ac_try='test -s conftest.$ac_objext'
9301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302 (eval $ac_try) 2>&5
9303 ac_status=$?
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); }; }; then
9306 have_pthread_t=yes
9307 else
9308 echo "$as_me: failed program was:" >&5
9309 cat conftest.$ac_ext >&5
9311 rm -f conftest.$ac_objext conftest.$ac_ext
9312 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
9313 echo "${ECHO_T}$have_pthread_t" >&6
9314 if test "$have_pthread_t" = yes ; then
9315 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
9316 echo "$as_me:$LINENO: checking size of pthread_t" >&5
9317 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
9318 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 else
9321 if test "$cross_compiling" = yes; then
9322 ac_cv_sizeof_pthread_t=4
9323 else
9324 cat >conftest.$ac_ext <<_ACEOF
9325 #line $LINENO "configure"
9326 #include "confdefs.h"
9327 #include <stdio.h>
9328 #include <pthread.h>
9329 main()
9331 FILE *f=fopen("conftestval", "w");
9332 if (!f) exit(1);
9333 fprintf(f, "%d\n", sizeof(pthread_t));
9334 exit(0);
9336 _ACEOF
9337 rm -f conftest$ac_exeext
9338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9339 (eval $ac_link) 2>&5
9340 ac_status=$?
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344 (eval $ac_try) 2>&5
9345 ac_status=$?
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); }; }; then
9348 ac_cv_sizeof_pthread_t=`cat conftestval`
9349 else
9350 echo "$as_me: program exited with status $ac_status" >&5
9351 echo "$as_me: failed program was:" >&5
9352 cat conftest.$ac_ext >&5
9353 ( exit $ac_status )
9354 ac_cv_sizeof_pthread_t=0
9356 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9361 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
9362 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
9364 cat >>confdefs.h <<_ACEOF
9365 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
9366 _ACEOF
9369 CC="$ac_save_cc"
9371 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
9372 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
9373 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
9374 if test "${enable_toolbox_glue+set}" = set; then
9375 enableval="$enable_toolbox_glue"
9379 if test -z "$enable_toolbox_glue"
9380 then
9381 case $ac_sys_system/$ac_sys_release in
9382 Darwin/*)
9383 enable_toolbox_glue="yes";;
9385 enable_toolbox_glue="no";;
9386 esac
9388 case "$enable_toolbox_glue" in
9389 yes)
9390 extra_frameworks="-framework CoreServices -framework Foundation"
9391 extra_machdep_objs="Python/mactoolboxglue.o"
9392 extra_undefs="-u __dummy -u _PyMac_Error"
9394 cat >>confdefs.h <<\_ACEOF
9395 #define USE_TOOLBOX_OBJECT_GLUE 1
9396 _ACEOF
9400 extra_frameworks=""
9401 extra_machdep_objs=""
9402 extra_undefs=""
9404 esac
9405 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
9406 echo "${ECHO_T}$enable_toolbox_glue" >&6
9409 case $ac_sys_system/$ac_sys_release in
9410 Darwin/1.3*)
9411 LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc"
9412 LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks"
9413 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python'
9414 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
9415 Darwin/*)
9416 LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc"
9417 LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks"
9418 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python'
9419 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
9420 esac
9422 echo "$as_me:$LINENO: checking for --enable-framework" >&5
9423 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
9424 if test "$enable_framework"
9425 then
9426 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
9427 # -F. is needed to allow linking to the framework while
9428 # in the build location.
9429 LDFLAGS="$LDFLAGS -Wl,-F."
9431 cat >>confdefs.h <<\_ACEOF
9432 #define WITH_NEXT_FRAMEWORK 1
9433 _ACEOF
9435 echo "$as_me:$LINENO: result: yes" >&5
9436 echo "${ECHO_T}yes" >&6
9437 else
9438 echo "$as_me:$LINENO: result: no" >&5
9439 echo "${ECHO_T}no" >&6
9442 echo "$as_me:$LINENO: checking for dyld" >&5
9443 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
9444 case $ac_sys_system/$ac_sys_release in
9445 Darwin/*)
9447 cat >>confdefs.h <<\_ACEOF
9448 #define WITH_DYLD 1
9449 _ACEOF
9451 echo "$as_me:$LINENO: result: always on for Darwin" >&5
9452 echo "${ECHO_T}always on for Darwin" >&6
9455 echo "$as_me:$LINENO: result: no" >&5
9456 echo "${ECHO_T}no" >&6
9458 esac
9460 # Set info about shared libraries.
9466 # SO is the extension of shared libraries `(including the dot!)
9467 # -- usually .so, .sl on HP-UX, .dll on Cygwin
9468 echo "$as_me:$LINENO: checking SO" >&5
9469 echo $ECHO_N "checking SO... $ECHO_C" >&6
9470 if test -z "$SO"
9471 then
9472 case $ac_sys_system in
9473 hp*|HP*) SO=.sl;;
9474 CYGWIN*) SO=.dll;;
9475 *) SO=.so;;
9476 esac
9478 echo "$as_me:$LINENO: result: $SO" >&5
9479 echo "${ECHO_T}$SO" >&6
9480 # LDSHARED is the ld *command* used to create shared library
9481 # -- "ld" on SunOS 4.x.x, "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
9482 # (Shared libraries in this instance are shared modules to be loaded into
9483 # Python, as opposed to building Python itself as a shared library.)
9484 echo "$as_me:$LINENO: checking LDSHARED" >&5
9485 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
9486 if test -z "$LDSHARED"
9487 then
9488 case $ac_sys_system/$ac_sys_release in
9489 AIX*)
9490 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
9491 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
9493 BeOS*)
9494 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
9495 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
9497 IRIX/5*) LDSHARED="ld -shared";;
9498 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
9499 SunOS/4*) LDSHARED="ld";;
9500 SunOS/5*)
9501 if test "$GCC" = "yes"
9502 then LDSHARED='$(CC) -shared'
9503 else LDSHARED='$(CC) -G';
9504 fi ;;
9505 hp*|HP*) LDSHARED="ld -b";;
9506 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
9507 DYNIX/ptx*) LDSHARED="ld -G";;
9508 Darwin/1.3*)
9509 LDSHARED='$(CC) $(LDFLAGS) -bundle'
9510 if test "$enable_framework" ; then
9511 # Link against the framework. All externals should be defined.
9512 LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)'
9513 else
9514 # No framework. Ignore undefined symbols, assuming they come from Python
9515 LDSHARED="$LDSHARED -undefined suppress"
9516 fi ;;
9517 Darwin/*)
9518 LDSHARED='$(CC) $(LDFLAGS) -bundle'
9519 if test "$enable_framework" ; then
9520 # Link against the framework. All externals should be defined.
9521 LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)'
9522 else
9523 # No framework, use the Python app as bundle-loader
9524 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
9525 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
9526 fi ;;
9527 Linux*|GNU*) LDSHARED='$(CC) -shared';;
9528 dgux*) LDSHARED="ld -G";;
9529 BSD/OS*/4*) LDSHARED="gcc -shared";;
9530 OpenBSD*|FreeBSD*)
9531 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9532 then
9533 LDSHARED="cc -shared ${LDFLAGS}"
9534 else
9535 LDSHARED="ld -Bshareable ${LDFLAGS}"
9536 fi;;
9537 NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";;
9538 OpenUNIX*|UnixWare*)
9539 if test "$GCC" = "yes"
9540 then LDSHARED='$(CC) -shared'
9541 else LDSHARED='$(CC) -G'
9542 fi;;
9543 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
9544 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
9545 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
9546 atheos*) LDSHARED="gcc -shared";;
9547 *) LDSHARED="ld";;
9548 esac
9550 echo "$as_me:$LINENO: result: $LDSHARED" >&5
9551 echo "${ECHO_T}$LDSHARED" >&6
9552 BLDSHARED=${BLDSHARED-$LDSHARED}
9553 # CCSHARED are the C *flags* used to create objects to go into a shared
9554 # library (module) -- this is only needed for a few systems
9555 echo "$as_me:$LINENO: checking CCSHARED" >&5
9556 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
9557 if test -z "$CCSHARED"
9558 then
9559 case $ac_sys_system/$ac_sys_release in
9560 SunOS*) if test "$GCC" = yes;
9561 then CCSHARED="-fPIC";
9562 fi;;
9563 hp*|HP*) if test "$GCC" = yes;
9564 then CCSHARED="-fPIC";
9565 else CCSHARED="+z";
9566 fi;;
9567 Linux*|GNU*) CCSHARED="-fPIC";;
9568 BSD/OS*/4*) CCSHARED="-fpic";;
9569 FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";;
9570 OpenUNIX*|UnixWare*)
9571 if test "$GCC" = "yes"
9572 then CCSHARED="-fPIC"
9573 else CCSHARED="-KPIC"
9574 fi;;
9575 SCO_SV*)
9576 if test "$GCC" = "yes"
9577 then CCSHARED="-fPIC"
9578 else CCSHARED="-Kpic -belf"
9579 fi;;
9580 Monterey*) CCSHARED="-G";;
9581 IRIX*/6*) case $CC in
9582 *gcc*) CCSHARED="-shared";;
9583 *) CCSHARED="";;
9584 esac;;
9585 atheos*) CCSHARED="-fPIC";;
9586 esac
9588 echo "$as_me:$LINENO: result: $CCSHARED" >&5
9589 echo "${ECHO_T}$CCSHARED" >&6
9590 # LINKFORSHARED are the flags passed to the $(CC) command that links
9591 # the python executable -- this is only needed for a few systems
9592 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
9593 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
9594 if test -z "$LINKFORSHARED"
9595 then
9596 case $ac_sys_system/$ac_sys_release in
9597 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
9598 hp*|HP*)
9599 LINKFORSHARED="-Wl,-E -Wl,+s";;
9600 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
9601 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
9602 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
9603 # -u libsys_s pulls in all symbols in libsys
9604 Darwin/*)
9605 # -u __dummy makes the linker aware of the objc runtime
9606 # in System.framework; otherwise, __objcInit (referenced in
9607 # crt1.o) gets erroneously defined as common, which breaks dynamic
9608 # loading of any modules which reference it in System.framework.
9609 # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is
9610 # not used by the core itself but which needs to be in the core so
9611 # that dynamically loaded extension modules have access to it.
9612 # -prebind is no longer used, because it actually seems to give a
9613 # slowdown in stead of a speedup, maybe due to the large number of
9614 # dynamic loads Python does.
9615 LINKFORSHARED="$extra_undefs -framework System"
9616 if test "$enable_framework"
9617 then
9618 LINKFORSHARED="$LINKFORSHARED -framework Python"
9620 LINKFORSHARED="$LINKFORSHARED $extra_frameworks";;
9621 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
9622 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
9623 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
9624 FreeBSD*|NetBSD*|OpenBSD*)
9625 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9626 then
9627 LINKFORSHARED="-Wl,--export-dynamic"
9628 fi;;
9629 SunOS/5*) case $CC in
9630 *gcc*)
9631 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
9632 then
9633 LINKFORSHARED="-Xlinker --export-dynamic"
9634 fi;;
9635 esac;;
9636 esac
9638 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
9639 echo "${ECHO_T}$LINKFORSHARED" >&6
9642 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
9643 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
9644 if test ! "$LIBRARY" = "$LDLIBRARY"
9645 then
9646 case $ac_sys_system in
9647 CYGWIN*)
9648 # Cygwin needs CCSHARED when building extension DLLs
9649 # but not when building the interpreter DLL.
9650 CFLAGSFORSHARED='';;
9652 CFLAGSFORSHARED='$(CCSHARED)'
9653 esac
9655 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
9656 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
9658 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
9659 # library (with --enable-shared).
9660 # For platforms on which shared libraries are not allowed to have unresolved
9661 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
9662 # if it is not required, since it creates a dependency of the shared library
9663 # to LIBS. This, in turn, means that applications linking the shared libpython
9664 # don't need to link LIBS explicitly. The default should be only changed
9665 # on systems where this approach causes problems.
9667 echo "$as_me:$LINENO: checking SHLIBS" >&5
9668 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
9669 case "$ac_sys_system" in
9671 SHLIBS='$(LIBS)';;
9672 esac
9673 echo "$as_me:$LINENO: result: $SHLIBS" >&5
9674 echo "${ECHO_T}$SHLIBS" >&6
9677 # checks for libraries
9679 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9680 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9681 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9683 else
9684 ac_check_lib_save_LIBS=$LIBS
9685 LIBS="-ldl $LIBS"
9686 cat >conftest.$ac_ext <<_ACEOF
9687 #line $LINENO "configure"
9688 #include "confdefs.h"
9690 /* Override any gcc2 internal prototype to avoid an error. */
9691 #ifdef __cplusplus
9692 extern "C"
9693 #endif
9694 /* We use char because int might match the return type of a gcc2
9695 builtin and then its argument prototype would still apply. */
9696 char dlopen ();
9697 #ifdef F77_DUMMY_MAIN
9698 # ifdef __cplusplus
9699 extern "C"
9700 # endif
9701 int F77_DUMMY_MAIN() { return 1; }
9702 #endif
9704 main ()
9706 dlopen ();
9708 return 0;
9710 _ACEOF
9711 rm -f conftest.$ac_objext conftest$ac_exeext
9712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9713 (eval $ac_link) 2>&5
9714 ac_status=$?
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } &&
9717 { ac_try='test -s conftest$ac_exeext'
9718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719 (eval $ac_try) 2>&5
9720 ac_status=$?
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; }; then
9723 ac_cv_lib_dl_dlopen=yes
9724 else
9725 echo "$as_me: failed program was:" >&5
9726 cat conftest.$ac_ext >&5
9727 ac_cv_lib_dl_dlopen=no
9729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9730 LIBS=$ac_check_lib_save_LIBS
9732 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9733 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9734 if test $ac_cv_lib_dl_dlopen = yes; then
9735 cat >>confdefs.h <<_ACEOF
9736 #define HAVE_LIBDL 1
9737 _ACEOF
9739 LIBS="-ldl $LIBS"
9742 # Dynamic linking for SunOS/Solaris and SYSV
9744 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9745 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9746 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9747 echo $ECHO_N "(cached) $ECHO_C" >&6
9748 else
9749 ac_check_lib_save_LIBS=$LIBS
9750 LIBS="-ldld $LIBS"
9751 cat >conftest.$ac_ext <<_ACEOF
9752 #line $LINENO "configure"
9753 #include "confdefs.h"
9755 /* Override any gcc2 internal prototype to avoid an error. */
9756 #ifdef __cplusplus
9757 extern "C"
9758 #endif
9759 /* We use char because int might match the return type of a gcc2
9760 builtin and then its argument prototype would still apply. */
9761 char shl_load ();
9762 #ifdef F77_DUMMY_MAIN
9763 # ifdef __cplusplus
9764 extern "C"
9765 # endif
9766 int F77_DUMMY_MAIN() { return 1; }
9767 #endif
9769 main ()
9771 shl_load ();
9773 return 0;
9775 _ACEOF
9776 rm -f conftest.$ac_objext conftest$ac_exeext
9777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9778 (eval $ac_link) 2>&5
9779 ac_status=$?
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } &&
9782 { ac_try='test -s conftest$ac_exeext'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784 (eval $ac_try) 2>&5
9785 ac_status=$?
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; }; then
9788 ac_cv_lib_dld_shl_load=yes
9789 else
9790 echo "$as_me: failed program was:" >&5
9791 cat conftest.$ac_ext >&5
9792 ac_cv_lib_dld_shl_load=no
9794 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9795 LIBS=$ac_check_lib_save_LIBS
9797 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9798 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9799 if test $ac_cv_lib_dld_shl_load = yes; then
9800 cat >>confdefs.h <<_ACEOF
9801 #define HAVE_LIBDLD 1
9802 _ACEOF
9804 LIBS="-ldld $LIBS"
9807 # Dynamic linking for HP-UX
9808 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
9809 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
9810 if test "${ac_cv_search_sem_init+set}" = set; then
9811 echo $ECHO_N "(cached) $ECHO_C" >&6
9812 else
9813 ac_func_search_save_LIBS=$LIBS
9814 ac_cv_search_sem_init=no
9815 cat >conftest.$ac_ext <<_ACEOF
9816 #line $LINENO "configure"
9817 #include "confdefs.h"
9819 /* Override any gcc2 internal prototype to avoid an error. */
9820 #ifdef __cplusplus
9821 extern "C"
9822 #endif
9823 /* We use char because int might match the return type of a gcc2
9824 builtin and then its argument prototype would still apply. */
9825 char sem_init ();
9826 #ifdef F77_DUMMY_MAIN
9827 # ifdef __cplusplus
9828 extern "C"
9829 # endif
9830 int F77_DUMMY_MAIN() { return 1; }
9831 #endif
9833 main ()
9835 sem_init ();
9837 return 0;
9839 _ACEOF
9840 rm -f conftest.$ac_objext conftest$ac_exeext
9841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9842 (eval $ac_link) 2>&5
9843 ac_status=$?
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } &&
9846 { ac_try='test -s conftest$ac_exeext'
9847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848 (eval $ac_try) 2>&5
9849 ac_status=$?
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }; then
9852 ac_cv_search_sem_init="none required"
9853 else
9854 echo "$as_me: failed program was:" >&5
9855 cat conftest.$ac_ext >&5
9857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9858 if test "$ac_cv_search_sem_init" = no; then
9859 for ac_lib in pthread rt posix4; do
9860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9861 cat >conftest.$ac_ext <<_ACEOF
9862 #line $LINENO "configure"
9863 #include "confdefs.h"
9865 /* Override any gcc2 internal prototype to avoid an error. */
9866 #ifdef __cplusplus
9867 extern "C"
9868 #endif
9869 /* We use char because int might match the return type of a gcc2
9870 builtin and then its argument prototype would still apply. */
9871 char sem_init ();
9872 #ifdef F77_DUMMY_MAIN
9873 # ifdef __cplusplus
9874 extern "C"
9875 # endif
9876 int F77_DUMMY_MAIN() { return 1; }
9877 #endif
9879 main ()
9881 sem_init ();
9883 return 0;
9885 _ACEOF
9886 rm -f conftest.$ac_objext conftest$ac_exeext
9887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9888 (eval $ac_link) 2>&5
9889 ac_status=$?
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); } &&
9892 { ac_try='test -s conftest$ac_exeext'
9893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9894 (eval $ac_try) 2>&5
9895 ac_status=$?
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; }; then
9898 ac_cv_search_sem_init="-l$ac_lib"
9899 break
9900 else
9901 echo "$as_me: failed program was:" >&5
9902 cat conftest.$ac_ext >&5
9904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9905 done
9907 LIBS=$ac_func_search_save_LIBS
9909 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
9910 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
9911 if test "$ac_cv_search_sem_init" != no; then
9912 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
9915 # 'Real Time' functions on Solaris
9916 # posix4 on Solaris 2.6
9917 # pthread (first!) on Linux
9919 # checks for system dependent C++ extensions support
9920 case "$ac_sys_system" in
9921 AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
9922 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
9923 cat >conftest.$ac_ext <<_ACEOF
9924 #line $LINENO "configure"
9925 #include "confdefs.h"
9926 #include "/usr/lpp/xlC/include/load.h"
9927 #ifdef F77_DUMMY_MAIN
9928 # ifdef __cplusplus
9929 extern "C"
9930 # endif
9931 int F77_DUMMY_MAIN() { return 1; }
9932 #endif
9934 main ()
9936 loadAndInit("", 0, "")
9938 return 0;
9940 _ACEOF
9941 rm -f conftest.$ac_objext conftest$ac_exeext
9942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9943 (eval $ac_link) 2>&5
9944 ac_status=$?
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); } &&
9947 { ac_try='test -s conftest$ac_exeext'
9948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9949 (eval $ac_try) 2>&5
9950 ac_status=$?
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; }; then
9954 cat >>confdefs.h <<\_ACEOF
9955 #define AIX_GENUINE_CPLUSPLUS 1
9956 _ACEOF
9958 echo "$as_me:$LINENO: result: yes" >&5
9959 echo "${ECHO_T}yes" >&6
9960 else
9961 echo "$as_me: failed program was:" >&5
9962 cat conftest.$ac_ext >&5
9963 echo "$as_me:$LINENO: result: no" >&5
9964 echo "${ECHO_T}no" >&6
9966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;;
9967 *) ;;
9968 esac
9970 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
9971 # However on SGI IRIX 4, these exist but are broken.
9972 # BeOS' sockets are stashed in libnet.
9973 case "$ac_sys_system" in
9974 IRIX*) ;;
9976 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
9977 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
9978 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 else
9981 ac_check_lib_save_LIBS=$LIBS
9982 LIBS="-lnsl $LIBS"
9983 cat >conftest.$ac_ext <<_ACEOF
9984 #line $LINENO "configure"
9985 #include "confdefs.h"
9987 /* Override any gcc2 internal prototype to avoid an error. */
9988 #ifdef __cplusplus
9989 extern "C"
9990 #endif
9991 /* We use char because int might match the return type of a gcc2
9992 builtin and then its argument prototype would still apply. */
9993 char t_open ();
9994 #ifdef F77_DUMMY_MAIN
9995 # ifdef __cplusplus
9996 extern "C"
9997 # endif
9998 int F77_DUMMY_MAIN() { return 1; }
9999 #endif
10001 main ()
10003 t_open ();
10005 return 0;
10007 _ACEOF
10008 rm -f conftest.$ac_objext conftest$ac_exeext
10009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10010 (eval $ac_link) 2>&5
10011 ac_status=$?
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); } &&
10014 { ac_try='test -s conftest$ac_exeext'
10015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016 (eval $ac_try) 2>&5
10017 ac_status=$?
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); }; }; then
10020 ac_cv_lib_nsl_t_open=yes
10021 else
10022 echo "$as_me: failed program was:" >&5
10023 cat conftest.$ac_ext >&5
10024 ac_cv_lib_nsl_t_open=no
10026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10027 LIBS=$ac_check_lib_save_LIBS
10029 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
10030 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
10031 if test $ac_cv_lib_nsl_t_open = yes; then
10032 LIBS="-lnsl $LIBS"
10034 # SVR4
10035 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
10036 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
10037 if test "${ac_cv_lib_socket_socket+set}" = set; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10039 else
10040 ac_check_lib_save_LIBS=$LIBS
10041 LIBS="-lsocket $LIBS $LIBS"
10042 cat >conftest.$ac_ext <<_ACEOF
10043 #line $LINENO "configure"
10044 #include "confdefs.h"
10046 /* Override any gcc2 internal prototype to avoid an error. */
10047 #ifdef __cplusplus
10048 extern "C"
10049 #endif
10050 /* We use char because int might match the return type of a gcc2
10051 builtin and then its argument prototype would still apply. */
10052 char socket ();
10053 #ifdef F77_DUMMY_MAIN
10054 # ifdef __cplusplus
10055 extern "C"
10056 # endif
10057 int F77_DUMMY_MAIN() { return 1; }
10058 #endif
10060 main ()
10062 socket ();
10064 return 0;
10066 _ACEOF
10067 rm -f conftest.$ac_objext conftest$ac_exeext
10068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10069 (eval $ac_link) 2>&5
10070 ac_status=$?
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); } &&
10073 { ac_try='test -s conftest$ac_exeext'
10074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10075 (eval $ac_try) 2>&5
10076 ac_status=$?
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); }; }; then
10079 ac_cv_lib_socket_socket=yes
10080 else
10081 echo "$as_me: failed program was:" >&5
10082 cat conftest.$ac_ext >&5
10083 ac_cv_lib_socket_socket=no
10085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10086 LIBS=$ac_check_lib_save_LIBS
10088 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
10089 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
10090 if test $ac_cv_lib_socket_socket = yes; then
10091 LIBS="-lsocket $LIBS"
10093 # SVR4 sockets
10095 esac
10096 case "$ac_sys_system" in
10097 BeOS*)
10098 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
10099 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
10100 if test "${ac_cv_lib_net_socket+set}" = set; then
10101 echo $ECHO_N "(cached) $ECHO_C" >&6
10102 else
10103 ac_check_lib_save_LIBS=$LIBS
10104 LIBS="-lnet $LIBS $LIBS"
10105 cat >conftest.$ac_ext <<_ACEOF
10106 #line $LINENO "configure"
10107 #include "confdefs.h"
10109 /* Override any gcc2 internal prototype to avoid an error. */
10110 #ifdef __cplusplus
10111 extern "C"
10112 #endif
10113 /* We use char because int might match the return type of a gcc2
10114 builtin and then its argument prototype would still apply. */
10115 char socket ();
10116 #ifdef F77_DUMMY_MAIN
10117 # ifdef __cplusplus
10118 extern "C"
10119 # endif
10120 int F77_DUMMY_MAIN() { return 1; }
10121 #endif
10123 main ()
10125 socket ();
10127 return 0;
10129 _ACEOF
10130 rm -f conftest.$ac_objext conftest$ac_exeext
10131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10132 (eval $ac_link) 2>&5
10133 ac_status=$?
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); } &&
10136 { ac_try='test -s conftest$ac_exeext'
10137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138 (eval $ac_try) 2>&5
10139 ac_status=$?
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; }; then
10142 ac_cv_lib_net_socket=yes
10143 else
10144 echo "$as_me: failed program was:" >&5
10145 cat conftest.$ac_ext >&5
10146 ac_cv_lib_net_socket=no
10148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10149 LIBS=$ac_check_lib_save_LIBS
10151 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
10152 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
10153 if test $ac_cv_lib_net_socket = yes; then
10154 LIBS="-lnet $LIBS"
10156 # BeOS
10158 esac
10160 echo "$as_me:$LINENO: checking for --with-libs" >&5
10161 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
10163 # Check whether --with-libs or --without-libs was given.
10164 if test "${with_libs+set}" = set; then
10165 withval="$with_libs"
10167 echo "$as_me:$LINENO: result: $withval" >&5
10168 echo "${ECHO_T}$withval" >&6
10169 LIBS="$withval $LIBS"
10171 else
10172 echo "$as_me:$LINENO: result: no" >&5
10173 echo "${ECHO_T}no" >&6
10176 # Determine if signalmodule should be used.
10179 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
10180 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
10182 # Check whether --with-signal-module or --without-signal-module was given.
10183 if test "${with_signal_module+set}" = set; then
10184 withval="$with_signal_module"
10188 if test -z "$with_signal_module"
10189 then with_signal_module="yes"
10191 echo "$as_me:$LINENO: result: $with_signal_module" >&5
10192 echo "${ECHO_T}$with_signal_module" >&6
10194 if test "${with_signal_module}" = "yes"; then
10195 USE_SIGNAL_MODULE=""
10196 SIGNAL_OBJS=""
10197 else
10198 USE_SIGNAL_MODULE="#"
10199 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
10202 # This is used to generate Setup.config
10204 USE_THREAD_MODULE=""
10206 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
10207 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
10210 # Check whether --with-dec-threads or --without-dec-threads was given.
10211 if test "${with_dec_threads+set}" = set; then
10212 withval="$with_dec_threads"
10214 echo "$as_me:$LINENO: result: $withval" >&5
10215 echo "${ECHO_T}$withval" >&6
10216 LDLAST=-threads
10217 if test "${with_thread+set}" != set; then
10218 with_thread="$withval";
10220 else
10221 echo "$as_me:$LINENO: result: no" >&5
10222 echo "${ECHO_T}no" >&6
10225 # Templates for things AC_DEFINEd more than once.
10226 # For a single AC_DEFINE, no template is needed.
10234 echo "$as_me:$LINENO: checking for --with-threads" >&5
10235 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
10237 # Check whether --with-threads or --without-threads was given.
10238 if test "${with_threads+set}" = set; then
10239 withval="$with_threads"
10243 # --with-thread is deprecated, but check for it anyway
10245 # Check whether --with-thread or --without-thread was given.
10246 if test "${with_thread+set}" = set; then
10247 withval="$with_thread"
10248 with_threads=$with_thread
10251 if test -z "$with_threads"
10252 then with_threads="yes"
10254 echo "$as_me:$LINENO: result: $with_threads" >&5
10255 echo "${ECHO_T}$with_threads" >&6
10258 if test "$with_threads" = "no"
10259 then
10260 USE_THREAD_MODULE="#"
10261 elif test "$ac_cv_pthread_is_default" = yes
10262 then
10263 cat >>confdefs.h <<\_ACEOF
10264 #define WITH_THREAD 1
10265 _ACEOF
10267 # Defining _REENTRANT on system with POSIX threads should not hurt.
10268 cat >>confdefs.h <<\_ACEOF
10269 #define _REENTRANT 1
10270 _ACEOF
10272 posix_threads=yes
10273 THREADOBJ="Python/thread.o"
10274 elif test "$ac_cv_kpthread" = "yes"
10275 then
10276 CC="$CC -Kpthread"
10277 cat >>confdefs.h <<\_ACEOF
10278 #define WITH_THREAD 1
10279 _ACEOF
10281 posix_threads=yes
10282 THREADOBJ="Python/thread.o"
10283 elif test "$ac_cv_kthread" = "yes"
10284 then
10285 CC="$CC -Kthread"
10286 cat >>confdefs.h <<\_ACEOF
10287 #define WITH_THREAD 1
10288 _ACEOF
10290 posix_threads=yes
10291 THREADOBJ="Python/thread.o"
10292 elif test "$ac_cv_pthread" = "yes"
10293 then
10294 CC="$CC -pthread"
10295 cat >>confdefs.h <<\_ACEOF
10296 #define WITH_THREAD 1
10297 _ACEOF
10299 posix_threads=yes
10300 THREADOBJ="Python/thread.o"
10301 else
10302 if test ! -z "$with_threads" -a -d "$with_threads"
10303 then LDFLAGS="$LDFLAGS -L$with_threads"
10305 if test ! -z "$withval" -a -d "$withval"
10306 then LDFLAGS="$LDFLAGS -L$withval"
10309 # According to the POSIX spec, a pthreads implementation must
10310 # define _POSIX_THREADS in unistd.h. Some apparently don't (which ones?)
10311 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
10312 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
10313 cat >conftest.$ac_ext <<_ACEOF
10314 #line $LINENO "configure"
10315 #include "confdefs.h"
10317 #include <unistd.h>
10318 #ifdef _POSIX_THREADS
10320 #endif
10322 _ACEOF
10323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10324 egrep "yes" >/dev/null 2>&1; then
10325 unistd_defines_pthreads=yes
10326 else
10327 unistd_defines_pthreads=no
10329 rm -f conftest*
10331 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
10332 echo "${ECHO_T}$unistd_defines_pthreads" >&6
10334 cat >>confdefs.h <<\_ACEOF
10335 #define _REENTRANT 1
10336 _ACEOF
10338 if test "${ac_cv_header_cthreads_h+set}" = set; then
10339 echo "$as_me:$LINENO: checking for cthreads.h" >&5
10340 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
10341 if test "${ac_cv_header_cthreads_h+set}" = set; then
10342 echo $ECHO_N "(cached) $ECHO_C" >&6
10344 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
10345 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
10346 else
10347 # Is the header compilable?
10348 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
10349 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
10350 cat >conftest.$ac_ext <<_ACEOF
10351 #line $LINENO "configure"
10352 #include "confdefs.h"
10353 $ac_includes_default
10354 #include <cthreads.h>
10355 _ACEOF
10356 rm -f conftest.$ac_objext
10357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10358 (eval $ac_compile) 2>&5
10359 ac_status=$?
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); } &&
10362 { ac_try='test -s conftest.$ac_objext'
10363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364 (eval $ac_try) 2>&5
10365 ac_status=$?
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); }; }; then
10368 ac_header_compiler=yes
10369 else
10370 echo "$as_me: failed program was:" >&5
10371 cat conftest.$ac_ext >&5
10372 ac_header_compiler=no
10374 rm -f conftest.$ac_objext conftest.$ac_ext
10375 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10376 echo "${ECHO_T}$ac_header_compiler" >&6
10378 # Is the header present?
10379 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
10380 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
10381 cat >conftest.$ac_ext <<_ACEOF
10382 #line $LINENO "configure"
10383 #include "confdefs.h"
10384 #include <cthreads.h>
10385 _ACEOF
10386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10388 ac_status=$?
10389 egrep -v '^ *\+' conftest.er1 >conftest.err
10390 rm -f conftest.er1
10391 cat conftest.err >&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); } >/dev/null; then
10394 if test -s conftest.err; then
10395 ac_cpp_err=$ac_c_preproc_warn_flag
10396 else
10397 ac_cpp_err=
10399 else
10400 ac_cpp_err=yes
10402 if test -z "$ac_cpp_err"; then
10403 ac_header_preproc=yes
10404 else
10405 echo "$as_me: failed program was:" >&5
10406 cat conftest.$ac_ext >&5
10407 ac_header_preproc=no
10409 rm -f conftest.err conftest.$ac_ext
10410 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10411 echo "${ECHO_T}$ac_header_preproc" >&6
10413 # So? What about this header?
10414 case $ac_header_compiler:$ac_header_preproc in
10415 yes:no )
10416 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
10417 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10418 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
10419 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};;
10420 no:yes )
10421 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
10422 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
10423 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
10424 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
10425 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
10426 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};;
10427 esac
10428 echo "$as_me:$LINENO: checking for cthreads.h" >&5
10429 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
10430 if test "${ac_cv_header_cthreads_h+set}" = set; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
10432 else
10433 ac_cv_header_cthreads_h=$ac_header_preproc
10435 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
10436 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
10439 if test $ac_cv_header_cthreads_h = yes; then
10440 cat >>confdefs.h <<\_ACEOF
10441 #define WITH_THREAD 1
10442 _ACEOF
10444 cat >>confdefs.h <<\_ACEOF
10445 #define C_THREADS 1
10446 _ACEOF
10449 cat >>confdefs.h <<\_ACEOF
10450 #define HURD_C_THREADS 1
10451 _ACEOF
10453 LIBS="$LIBS -lthreads"
10454 THREADOBJ="Python/thread.o"
10455 else
10457 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
10458 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
10459 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
10460 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10463 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
10464 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
10465 else
10466 # Is the header compilable?
10467 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
10468 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
10469 cat >conftest.$ac_ext <<_ACEOF
10470 #line $LINENO "configure"
10471 #include "confdefs.h"
10472 $ac_includes_default
10473 #include <mach/cthreads.h>
10474 _ACEOF
10475 rm -f conftest.$ac_objext
10476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10477 (eval $ac_compile) 2>&5
10478 ac_status=$?
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } &&
10481 { ac_try='test -s conftest.$ac_objext'
10482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483 (eval $ac_try) 2>&5
10484 ac_status=$?
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; }; then
10487 ac_header_compiler=yes
10488 else
10489 echo "$as_me: failed program was:" >&5
10490 cat conftest.$ac_ext >&5
10491 ac_header_compiler=no
10493 rm -f conftest.$ac_objext conftest.$ac_ext
10494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10495 echo "${ECHO_T}$ac_header_compiler" >&6
10497 # Is the header present?
10498 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
10499 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
10500 cat >conftest.$ac_ext <<_ACEOF
10501 #line $LINENO "configure"
10502 #include "confdefs.h"
10503 #include <mach/cthreads.h>
10504 _ACEOF
10505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10507 ac_status=$?
10508 egrep -v '^ *\+' conftest.er1 >conftest.err
10509 rm -f conftest.er1
10510 cat conftest.err >&5
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); } >/dev/null; then
10513 if test -s conftest.err; then
10514 ac_cpp_err=$ac_c_preproc_warn_flag
10515 else
10516 ac_cpp_err=
10518 else
10519 ac_cpp_err=yes
10521 if test -z "$ac_cpp_err"; then
10522 ac_header_preproc=yes
10523 else
10524 echo "$as_me: failed program was:" >&5
10525 cat conftest.$ac_ext >&5
10526 ac_header_preproc=no
10528 rm -f conftest.err conftest.$ac_ext
10529 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10530 echo "${ECHO_T}$ac_header_preproc" >&6
10532 # So? What about this header?
10533 case $ac_header_compiler:$ac_header_preproc in
10534 yes:no )
10535 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
10536 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10537 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
10538 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};;
10539 no:yes )
10540 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
10541 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
10542 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
10543 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
10544 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
10545 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};;
10546 esac
10547 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
10548 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
10549 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10551 else
10552 ac_cv_header_mach_cthreads_h=$ac_header_preproc
10554 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
10555 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
10558 if test $ac_cv_header_mach_cthreads_h = yes; then
10559 cat >>confdefs.h <<\_ACEOF
10560 #define WITH_THREAD 1
10561 _ACEOF
10563 cat >>confdefs.h <<\_ACEOF
10564 #define C_THREADS 1
10565 _ACEOF
10568 cat >>confdefs.h <<\_ACEOF
10569 #define MACH_C_THREADS 1
10570 _ACEOF
10572 THREADOBJ="Python/thread.o"
10573 else
10575 echo "$as_me:$LINENO: checking for --with-pth" >&5
10576 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
10578 # Check whether --with-pth or --without-pth was given.
10579 if test "${with_pth+set}" = set; then
10580 withval="$with_pth"
10581 echo "$as_me:$LINENO: result: $withval" >&5
10582 echo "${ECHO_T}$withval" >&6
10583 cat >>confdefs.h <<\_ACEOF
10584 #define WITH_THREAD 1
10585 _ACEOF
10588 cat >>confdefs.h <<\_ACEOF
10589 #define HAVE_PTH 1
10590 _ACEOF
10592 LIBS="-lpth $LIBS"
10593 THREADOBJ="Python/thread.o"
10594 else
10595 echo "$as_me:$LINENO: result: no" >&5
10596 echo "${ECHO_T}no" >&6
10598 # Just looking for pthread_create in libpthread is not enough:
10599 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
10600 # So we really have to include pthread.h, and then link.
10601 _libs=$LIBS
10602 LIBS="$LIBS -lpthread"
10603 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
10604 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
10605 cat >conftest.$ac_ext <<_ACEOF
10606 #line $LINENO "configure"
10607 #include "confdefs.h"
10608 #include <pthread.h>
10610 void * start_routine (void *arg) { exit (0); }
10611 #ifdef F77_DUMMY_MAIN
10612 # ifdef __cplusplus
10613 extern "C"
10614 # endif
10615 int F77_DUMMY_MAIN() { return 1; }
10616 #endif
10618 main ()
10621 pthread_create (NULL, NULL, start_routine, NULL)
10623 return 0;
10625 _ACEOF
10626 rm -f conftest.$ac_objext conftest$ac_exeext
10627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10628 (eval $ac_link) 2>&5
10629 ac_status=$?
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } &&
10632 { ac_try='test -s conftest$ac_exeext'
10633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10634 (eval $ac_try) 2>&5
10635 ac_status=$?
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); }; }; then
10639 echo "$as_me:$LINENO: result: yes" >&5
10640 echo "${ECHO_T}yes" >&6
10641 cat >>confdefs.h <<\_ACEOF
10642 #define WITH_THREAD 1
10643 _ACEOF
10645 posix_threads=yes
10646 THREADOBJ="Python/thread.o"
10647 else
10648 echo "$as_me: failed program was:" >&5
10649 cat conftest.$ac_ext >&5
10651 LIBS=$_libs
10652 echo "$as_me:$LINENO: checking for pthread_detach" >&5
10653 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
10654 if test "${ac_cv_func_pthread_detach+set}" = set; then
10655 echo $ECHO_N "(cached) $ECHO_C" >&6
10656 else
10657 cat >conftest.$ac_ext <<_ACEOF
10658 #line $LINENO "configure"
10659 #include "confdefs.h"
10660 /* System header to define __stub macros and hopefully few prototypes,
10661 which can conflict with char pthread_detach (); below. */
10662 #include <assert.h>
10663 /* Override any gcc2 internal prototype to avoid an error. */
10664 #ifdef __cplusplus
10665 extern "C"
10666 #endif
10667 /* We use char because int might match the return type of a gcc2
10668 builtin and then its argument prototype would still apply. */
10669 char pthread_detach ();
10670 char (*f) ();
10672 #ifdef F77_DUMMY_MAIN
10673 # ifdef __cplusplus
10674 extern "C"
10675 # endif
10676 int F77_DUMMY_MAIN() { return 1; }
10677 #endif
10679 main ()
10681 /* The GNU C library defines this for functions which it implements
10682 to always fail with ENOSYS. Some functions are actually named
10683 something starting with __ and the normal name is an alias. */
10684 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
10685 choke me
10686 #else
10687 f = pthread_detach;
10688 #endif
10691 return 0;
10693 _ACEOF
10694 rm -f conftest.$ac_objext conftest$ac_exeext
10695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10696 (eval $ac_link) 2>&5
10697 ac_status=$?
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); } &&
10700 { ac_try='test -s conftest$ac_exeext'
10701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10702 (eval $ac_try) 2>&5
10703 ac_status=$?
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); }; }; then
10706 ac_cv_func_pthread_detach=yes
10707 else
10708 echo "$as_me: failed program was:" >&5
10709 cat conftest.$ac_ext >&5
10710 ac_cv_func_pthread_detach=no
10712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10714 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
10715 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
10716 if test $ac_cv_func_pthread_detach = yes; then
10717 cat >>confdefs.h <<\_ACEOF
10718 #define WITH_THREAD 1
10719 _ACEOF
10721 posix_threads=yes
10722 THREADOBJ="Python/thread.o"
10723 else
10725 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
10726 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
10727 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
10728 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
10731 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
10732 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
10733 else
10734 # Is the header compilable?
10735 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
10736 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
10737 cat >conftest.$ac_ext <<_ACEOF
10738 #line $LINENO "configure"
10739 #include "confdefs.h"
10740 $ac_includes_default
10741 #include <atheos/threads.h>
10742 _ACEOF
10743 rm -f conftest.$ac_objext
10744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10745 (eval $ac_compile) 2>&5
10746 ac_status=$?
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); } &&
10749 { ac_try='test -s conftest.$ac_objext'
10750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10751 (eval $ac_try) 2>&5
10752 ac_status=$?
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); }; }; then
10755 ac_header_compiler=yes
10756 else
10757 echo "$as_me: failed program was:" >&5
10758 cat conftest.$ac_ext >&5
10759 ac_header_compiler=no
10761 rm -f conftest.$ac_objext conftest.$ac_ext
10762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10763 echo "${ECHO_T}$ac_header_compiler" >&6
10765 # Is the header present?
10766 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
10767 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
10768 cat >conftest.$ac_ext <<_ACEOF
10769 #line $LINENO "configure"
10770 #include "confdefs.h"
10771 #include <atheos/threads.h>
10772 _ACEOF
10773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10775 ac_status=$?
10776 egrep -v '^ *\+' conftest.er1 >conftest.err
10777 rm -f conftest.er1
10778 cat conftest.err >&5
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); } >/dev/null; then
10781 if test -s conftest.err; then
10782 ac_cpp_err=$ac_c_preproc_warn_flag
10783 else
10784 ac_cpp_err=
10786 else
10787 ac_cpp_err=yes
10789 if test -z "$ac_cpp_err"; then
10790 ac_header_preproc=yes
10791 else
10792 echo "$as_me: failed program was:" >&5
10793 cat conftest.$ac_ext >&5
10794 ac_header_preproc=no
10796 rm -f conftest.err conftest.$ac_ext
10797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10798 echo "${ECHO_T}$ac_header_preproc" >&6
10800 # So? What about this header?
10801 case $ac_header_compiler:$ac_header_preproc in
10802 yes:no )
10803 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
10804 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10805 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
10806 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};;
10807 no:yes )
10808 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
10809 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
10810 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
10811 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
10813 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};;
10814 esac
10815 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
10816 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
10817 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
10819 else
10820 ac_cv_header_atheos_threads_h=$ac_header_preproc
10822 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
10823 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
10826 if test $ac_cv_header_atheos_threads_h = yes; then
10827 cat >>confdefs.h <<\_ACEOF
10828 #define WITH_THREAD 1
10829 _ACEOF
10832 cat >>confdefs.h <<\_ACEOF
10833 #define ATHEOS_THREADS 1
10834 _ACEOF
10836 THREADOBJ="Python/thread.o"
10837 else
10839 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
10840 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
10841 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
10842 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
10843 echo $ECHO_N "(cached) $ECHO_C" >&6
10845 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
10846 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
10847 else
10848 # Is the header compilable?
10849 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
10850 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
10851 cat >conftest.$ac_ext <<_ACEOF
10852 #line $LINENO "configure"
10853 #include "confdefs.h"
10854 $ac_includes_default
10855 #include <kernel/OS.h>
10856 _ACEOF
10857 rm -f conftest.$ac_objext
10858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10859 (eval $ac_compile) 2>&5
10860 ac_status=$?
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); } &&
10863 { ac_try='test -s conftest.$ac_objext'
10864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10865 (eval $ac_try) 2>&5
10866 ac_status=$?
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); }; }; then
10869 ac_header_compiler=yes
10870 else
10871 echo "$as_me: failed program was:" >&5
10872 cat conftest.$ac_ext >&5
10873 ac_header_compiler=no
10875 rm -f conftest.$ac_objext conftest.$ac_ext
10876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10877 echo "${ECHO_T}$ac_header_compiler" >&6
10879 # Is the header present?
10880 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
10881 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
10882 cat >conftest.$ac_ext <<_ACEOF
10883 #line $LINENO "configure"
10884 #include "confdefs.h"
10885 #include <kernel/OS.h>
10886 _ACEOF
10887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10889 ac_status=$?
10890 egrep -v '^ *\+' conftest.er1 >conftest.err
10891 rm -f conftest.er1
10892 cat conftest.err >&5
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); } >/dev/null; then
10895 if test -s conftest.err; then
10896 ac_cpp_err=$ac_c_preproc_warn_flag
10897 else
10898 ac_cpp_err=
10900 else
10901 ac_cpp_err=yes
10903 if test -z "$ac_cpp_err"; then
10904 ac_header_preproc=yes
10905 else
10906 echo "$as_me: failed program was:" >&5
10907 cat conftest.$ac_ext >&5
10908 ac_header_preproc=no
10910 rm -f conftest.err conftest.$ac_ext
10911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10912 echo "${ECHO_T}$ac_header_preproc" >&6
10914 # So? What about this header?
10915 case $ac_header_compiler:$ac_header_preproc in
10916 yes:no )
10917 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
10918 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10919 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
10920 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};;
10921 no:yes )
10922 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
10923 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
10924 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
10925 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
10926 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
10927 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};;
10928 esac
10929 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
10930 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
10931 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10933 else
10934 ac_cv_header_kernel_OS_h=$ac_header_preproc
10936 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
10937 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
10940 if test $ac_cv_header_kernel_OS_h = yes; then
10941 cat >>confdefs.h <<\_ACEOF
10942 #define WITH_THREAD 1
10943 _ACEOF
10946 cat >>confdefs.h <<\_ACEOF
10947 #define BEOS_THREADS 1
10948 _ACEOF
10950 THREADOBJ="Python/thread.o"
10951 else
10953 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
10954 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
10955 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
10956 echo $ECHO_N "(cached) $ECHO_C" >&6
10957 else
10958 ac_check_lib_save_LIBS=$LIBS
10959 LIBS="-lpthreads $LIBS"
10960 cat >conftest.$ac_ext <<_ACEOF
10961 #line $LINENO "configure"
10962 #include "confdefs.h"
10964 /* Override any gcc2 internal prototype to avoid an error. */
10965 #ifdef __cplusplus
10966 extern "C"
10967 #endif
10968 /* We use char because int might match the return type of a gcc2
10969 builtin and then its argument prototype would still apply. */
10970 char pthread_create ();
10971 #ifdef F77_DUMMY_MAIN
10972 # ifdef __cplusplus
10973 extern "C"
10974 # endif
10975 int F77_DUMMY_MAIN() { return 1; }
10976 #endif
10978 main ()
10980 pthread_create ();
10982 return 0;
10984 _ACEOF
10985 rm -f conftest.$ac_objext conftest$ac_exeext
10986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10987 (eval $ac_link) 2>&5
10988 ac_status=$?
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } &&
10991 { ac_try='test -s conftest$ac_exeext'
10992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10993 (eval $ac_try) 2>&5
10994 ac_status=$?
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }; }; then
10997 ac_cv_lib_pthreads_pthread_create=yes
10998 else
10999 echo "$as_me: failed program was:" >&5
11000 cat conftest.$ac_ext >&5
11001 ac_cv_lib_pthreads_pthread_create=no
11003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11004 LIBS=$ac_check_lib_save_LIBS
11006 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
11007 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
11008 if test $ac_cv_lib_pthreads_pthread_create = yes; then
11009 cat >>confdefs.h <<\_ACEOF
11010 #define WITH_THREAD 1
11011 _ACEOF
11013 posix_threads=yes
11014 LIBS="$LIBS -lpthreads"
11015 THREADOBJ="Python/thread.o"
11016 else
11018 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
11019 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
11020 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
11021 echo $ECHO_N "(cached) $ECHO_C" >&6
11022 else
11023 ac_check_lib_save_LIBS=$LIBS
11024 LIBS="-lc_r $LIBS"
11025 cat >conftest.$ac_ext <<_ACEOF
11026 #line $LINENO "configure"
11027 #include "confdefs.h"
11029 /* Override any gcc2 internal prototype to avoid an error. */
11030 #ifdef __cplusplus
11031 extern "C"
11032 #endif
11033 /* We use char because int might match the return type of a gcc2
11034 builtin and then its argument prototype would still apply. */
11035 char pthread_create ();
11036 #ifdef F77_DUMMY_MAIN
11037 # ifdef __cplusplus
11038 extern "C"
11039 # endif
11040 int F77_DUMMY_MAIN() { return 1; }
11041 #endif
11043 main ()
11045 pthread_create ();
11047 return 0;
11049 _ACEOF
11050 rm -f conftest.$ac_objext conftest$ac_exeext
11051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11052 (eval $ac_link) 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_c_r_pthread_create=yes
11063 else
11064 echo "$as_me: failed program was:" >&5
11065 cat conftest.$ac_ext >&5
11066 ac_cv_lib_c_r_pthread_create=no
11068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11069 LIBS=$ac_check_lib_save_LIBS
11071 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
11072 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
11073 if test $ac_cv_lib_c_r_pthread_create = yes; then
11074 cat >>confdefs.h <<\_ACEOF
11075 #define WITH_THREAD 1
11076 _ACEOF
11078 posix_threads=yes
11079 LIBS="$LIBS -lc_r"
11080 THREADOBJ="Python/thread.o"
11081 else
11083 echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5
11084 echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6
11085 if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11087 else
11088 ac_check_lib_save_LIBS=$LIBS
11089 LIBS="-lthread $LIBS"
11090 cat >conftest.$ac_ext <<_ACEOF
11091 #line $LINENO "configure"
11092 #include "confdefs.h"
11094 /* Override any gcc2 internal prototype to avoid an error. */
11095 #ifdef __cplusplus
11096 extern "C"
11097 #endif
11098 /* We use char because int might match the return type of a gcc2
11099 builtin and then its argument prototype would still apply. */
11100 char __d6_pthread_create ();
11101 #ifdef F77_DUMMY_MAIN
11102 # ifdef __cplusplus
11103 extern "C"
11104 # endif
11105 int F77_DUMMY_MAIN() { return 1; }
11106 #endif
11108 main ()
11110 __d6_pthread_create ();
11112 return 0;
11114 _ACEOF
11115 rm -f conftest.$ac_objext conftest$ac_exeext
11116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11117 (eval $ac_link) 2>&5
11118 ac_status=$?
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); } &&
11121 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11127 ac_cv_lib_thread___d6_pthread_create=yes
11128 else
11129 echo "$as_me: failed program was:" >&5
11130 cat conftest.$ac_ext >&5
11131 ac_cv_lib_thread___d6_pthread_create=no
11133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11134 LIBS=$ac_check_lib_save_LIBS
11136 echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5
11137 echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6
11138 if test $ac_cv_lib_thread___d6_pthread_create = yes; then
11139 cat >>confdefs.h <<\_ACEOF
11140 #define WITH_THREAD 1
11141 _ACEOF
11143 echo Systems with __d6_pthread_create are not supported anymore.
11144 echo See README
11145 exit 1
11146 posix_threads=yes
11147 LIBS="$LIBS -lthread"
11148 THREADOBJ="Python/thread.o"
11149 else
11151 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
11152 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
11153 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
11154 echo $ECHO_N "(cached) $ECHO_C" >&6
11155 else
11156 ac_check_lib_save_LIBS=$LIBS
11157 LIBS="-lpthread $LIBS"
11158 cat >conftest.$ac_ext <<_ACEOF
11159 #line $LINENO "configure"
11160 #include "confdefs.h"
11162 /* Override any gcc2 internal prototype to avoid an error. */
11163 #ifdef __cplusplus
11164 extern "C"
11165 #endif
11166 /* We use char because int might match the return type of a gcc2
11167 builtin and then its argument prototype would still apply. */
11168 char __pthread_create_system ();
11169 #ifdef F77_DUMMY_MAIN
11170 # ifdef __cplusplus
11171 extern "C"
11172 # endif
11173 int F77_DUMMY_MAIN() { return 1; }
11174 #endif
11176 main ()
11178 __pthread_create_system ();
11180 return 0;
11182 _ACEOF
11183 rm -f conftest.$ac_objext conftest$ac_exeext
11184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11185 (eval $ac_link) 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } &&
11189 { ac_try='test -s conftest$ac_exeext'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 ac_cv_lib_pthread___pthread_create_system=yes
11196 else
11197 echo "$as_me: failed program was:" >&5
11198 cat conftest.$ac_ext >&5
11199 ac_cv_lib_pthread___pthread_create_system=no
11201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11202 LIBS=$ac_check_lib_save_LIBS
11204 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
11205 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
11206 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
11207 cat >>confdefs.h <<\_ACEOF
11208 #define WITH_THREAD 1
11209 _ACEOF
11211 posix_threads=yes
11212 LIBS="$LIBS -lpthread"
11213 THREADOBJ="Python/thread.o"
11214 else
11216 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
11217 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
11218 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11220 else
11221 ac_check_lib_save_LIBS=$LIBS
11222 LIBS="-lcma $LIBS"
11223 cat >conftest.$ac_ext <<_ACEOF
11224 #line $LINENO "configure"
11225 #include "confdefs.h"
11227 /* Override any gcc2 internal prototype to avoid an error. */
11228 #ifdef __cplusplus
11229 extern "C"
11230 #endif
11231 /* We use char because int might match the return type of a gcc2
11232 builtin and then its argument prototype would still apply. */
11233 char pthread_create ();
11234 #ifdef F77_DUMMY_MAIN
11235 # ifdef __cplusplus
11236 extern "C"
11237 # endif
11238 int F77_DUMMY_MAIN() { return 1; }
11239 #endif
11241 main ()
11243 pthread_create ();
11245 return 0;
11247 _ACEOF
11248 rm -f conftest.$ac_objext conftest$ac_exeext
11249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11250 (eval $ac_link) 2>&5
11251 ac_status=$?
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } &&
11254 { ac_try='test -s conftest$ac_exeext'
11255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256 (eval $ac_try) 2>&5
11257 ac_status=$?
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; }; then
11260 ac_cv_lib_cma_pthread_create=yes
11261 else
11262 echo "$as_me: failed program was:" >&5
11263 cat conftest.$ac_ext >&5
11264 ac_cv_lib_cma_pthread_create=no
11266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11267 LIBS=$ac_check_lib_save_LIBS
11269 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
11270 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
11271 if test $ac_cv_lib_cma_pthread_create = yes; then
11272 cat >>confdefs.h <<\_ACEOF
11273 #define WITH_THREAD 1
11274 _ACEOF
11276 posix_threads=yes
11277 LIBS="$LIBS -lcma"
11278 THREADOBJ="Python/thread.o"
11279 else
11281 USE_THREAD_MODULE="#"
11302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11311 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
11312 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
11313 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11315 else
11316 ac_check_lib_save_LIBS=$LIBS
11317 LIBS="-lmpc $LIBS"
11318 cat >conftest.$ac_ext <<_ACEOF
11319 #line $LINENO "configure"
11320 #include "confdefs.h"
11322 /* Override any gcc2 internal prototype to avoid an error. */
11323 #ifdef __cplusplus
11324 extern "C"
11325 #endif
11326 /* We use char because int might match the return type of a gcc2
11327 builtin and then its argument prototype would still apply. */
11328 char usconfig ();
11329 #ifdef F77_DUMMY_MAIN
11330 # ifdef __cplusplus
11331 extern "C"
11332 # endif
11333 int F77_DUMMY_MAIN() { return 1; }
11334 #endif
11336 main ()
11338 usconfig ();
11340 return 0;
11342 _ACEOF
11343 rm -f conftest.$ac_objext conftest$ac_exeext
11344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11345 (eval $ac_link) 2>&5
11346 ac_status=$?
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); } &&
11349 { ac_try='test -s conftest$ac_exeext'
11350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351 (eval $ac_try) 2>&5
11352 ac_status=$?
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; }; then
11355 ac_cv_lib_mpc_usconfig=yes
11356 else
11357 echo "$as_me: failed program was:" >&5
11358 cat conftest.$ac_ext >&5
11359 ac_cv_lib_mpc_usconfig=no
11361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11362 LIBS=$ac_check_lib_save_LIBS
11364 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
11365 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
11366 if test $ac_cv_lib_mpc_usconfig = yes; then
11367 cat >>confdefs.h <<\_ACEOF
11368 #define WITH_THREAD 1
11369 _ACEOF
11371 LIBS="$LIBS -lmpc"
11372 THREADOBJ="Python/thread.o"
11373 USE_THREAD_MODULE=""
11377 if test "$posix_threads" != "yes"; then
11378 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
11379 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
11380 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11382 else
11383 ac_check_lib_save_LIBS=$LIBS
11384 LIBS="-lthread $LIBS"
11385 cat >conftest.$ac_ext <<_ACEOF
11386 #line $LINENO "configure"
11387 #include "confdefs.h"
11389 /* Override any gcc2 internal prototype to avoid an error. */
11390 #ifdef __cplusplus
11391 extern "C"
11392 #endif
11393 /* We use char because int might match the return type of a gcc2
11394 builtin and then its argument prototype would still apply. */
11395 char thr_create ();
11396 #ifdef F77_DUMMY_MAIN
11397 # ifdef __cplusplus
11398 extern "C"
11399 # endif
11400 int F77_DUMMY_MAIN() { return 1; }
11401 #endif
11403 main ()
11405 thr_create ();
11407 return 0;
11409 _ACEOF
11410 rm -f conftest.$ac_objext conftest$ac_exeext
11411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11412 (eval $ac_link) 2>&5
11413 ac_status=$?
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } &&
11416 { ac_try='test -s conftest$ac_exeext'
11417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418 (eval $ac_try) 2>&5
11419 ac_status=$?
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; }; then
11422 ac_cv_lib_thread_thr_create=yes
11423 else
11424 echo "$as_me: failed program was:" >&5
11425 cat conftest.$ac_ext >&5
11426 ac_cv_lib_thread_thr_create=no
11428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11429 LIBS=$ac_check_lib_save_LIBS
11431 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
11432 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
11433 if test $ac_cv_lib_thread_thr_create = yes; then
11434 cat >>confdefs.h <<\_ACEOF
11435 #define WITH_THREAD 1
11436 _ACEOF
11438 LIBS="$LIBS -lthread"
11439 THREADOBJ="Python/thread.o"
11440 USE_THREAD_MODULE=""
11445 if test "$USE_THREAD_MODULE" != "#"
11446 then
11447 # If the above checks didn't disable threads, (at least) OSF1
11448 # needs this '-threads' argument during linking.
11449 case $ac_sys_system in
11450 OSF1) LDLAST=-threads;;
11451 esac
11455 if test "$posix_threads" = "yes"; then
11456 if test "$unistd_defines_pthreads" = "no"; then
11458 cat >>confdefs.h <<\_ACEOF
11459 #define _POSIX_THREADS 1
11460 _ACEOF
11464 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
11465 case $ac_sys_system/$ac_sys_release in
11466 SunOS/5.6)
11467 cat >>confdefs.h <<\_ACEOF
11468 #define HAVE_PTHREAD_DESTRUCTOR 1
11469 _ACEOF
11472 SunOS/5.8)
11473 cat >>confdefs.h <<\_ACEOF
11474 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
11475 _ACEOF
11478 esac
11480 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
11481 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
11482 if test "${ac_cv_pthread_system_supported+set}" = set; then
11483 echo $ECHO_N "(cached) $ECHO_C" >&6
11484 else
11485 if test "$cross_compiling" = yes; then
11486 ac_cv_pthread_system_supported=no
11487 else
11488 cat >conftest.$ac_ext <<_ACEOF
11489 #line $LINENO "configure"
11490 #include "confdefs.h"
11491 #include <pthread.h>
11492 void *foo(void *parm) {
11493 return NULL;
11495 main() {
11496 pthread_attr_t attr;
11497 pthread_t id;
11498 if (pthread_attr_init(&attr)) exit(-1);
11499 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
11500 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
11501 exit(0);
11503 _ACEOF
11504 rm -f conftest$ac_exeext
11505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11506 (eval $ac_link) 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11511 (eval $ac_try) 2>&5
11512 ac_status=$?
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); }; }; then
11515 ac_cv_pthread_system_supported=yes
11516 else
11517 echo "$as_me: program exited with status $ac_status" >&5
11518 echo "$as_me: failed program was:" >&5
11519 cat conftest.$ac_ext >&5
11520 ( exit $ac_status )
11521 ac_cv_pthread_system_supported=no
11523 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11528 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
11529 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
11530 if test "$ac_cv_pthread_system_supported" = "yes"; then
11532 cat >>confdefs.h <<\_ACEOF
11533 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
11534 _ACEOF
11538 for ac_func in pthread_sigmask
11540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11541 echo "$as_me:$LINENO: checking for $ac_func" >&5
11542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11543 if eval "test \"\${$as_ac_var+set}\" = set"; then
11544 echo $ECHO_N "(cached) $ECHO_C" >&6
11545 else
11546 cat >conftest.$ac_ext <<_ACEOF
11547 #line $LINENO "configure"
11548 #include "confdefs.h"
11549 /* System header to define __stub macros and hopefully few prototypes,
11550 which can conflict with char $ac_func (); below. */
11551 #include <assert.h>
11552 /* Override any gcc2 internal prototype to avoid an error. */
11553 #ifdef __cplusplus
11554 extern "C"
11555 #endif
11556 /* We use char because int might match the return type of a gcc2
11557 builtin and then its argument prototype would still apply. */
11558 char $ac_func ();
11559 char (*f) ();
11561 #ifdef F77_DUMMY_MAIN
11562 # ifdef __cplusplus
11563 extern "C"
11564 # endif
11565 int F77_DUMMY_MAIN() { return 1; }
11566 #endif
11568 main ()
11570 /* The GNU C library defines this for functions which it implements
11571 to always fail with ENOSYS. Some functions are actually named
11572 something starting with __ and the normal name is an alias. */
11573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11574 choke me
11575 #else
11576 f = $ac_func;
11577 #endif
11580 return 0;
11582 _ACEOF
11583 rm -f conftest.$ac_objext conftest$ac_exeext
11584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11585 (eval $ac_link) 2>&5
11586 ac_status=$?
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } &&
11589 { ac_try='test -s conftest$ac_exeext'
11590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11591 (eval $ac_try) 2>&5
11592 ac_status=$?
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); }; }; then
11595 eval "$as_ac_var=yes"
11596 else
11597 echo "$as_me: failed program was:" >&5
11598 cat conftest.$ac_ext >&5
11599 eval "$as_ac_var=no"
11601 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11605 if test `eval echo '${'$as_ac_var'}'` = yes; then
11606 cat >>confdefs.h <<_ACEOF
11607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11608 _ACEOF
11611 done
11616 # Check for enable-ipv6
11619 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
11620 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
11621 # Check whether --enable-ipv6 or --disable-ipv6 was given.
11622 if test "${enable_ipv6+set}" = set; then
11623 enableval="$enable_ipv6"
11624 case "$enableval" in
11626 echo "$as_me:$LINENO: result: no" >&5
11627 echo "${ECHO_T}no" >&6
11628 ipv6=no
11630 *) echo "$as_me:$LINENO: result: yes" >&5
11631 echo "${ECHO_T}yes" >&6
11632 cat >>confdefs.h <<\_ACEOF
11633 #define ENABLE_IPV6 1
11634 _ACEOF
11636 ipv6=yes
11638 esac
11639 else
11641 if test "$cross_compiling" = yes; then
11642 echo "$as_me:$LINENO: result: no" >&5
11643 echo "${ECHO_T}no" >&6
11644 ipv6=no
11646 else
11647 cat >conftest.$ac_ext <<_ACEOF
11648 #line $LINENO "configure"
11649 #include "confdefs.h"
11650 /* AF_INET6 available check */
11651 #include <sys/types.h>
11652 #include <sys/socket.h>
11653 main()
11655 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
11656 exit(1);
11657 else
11658 exit(0);
11661 _ACEOF
11662 rm -f conftest$ac_exeext
11663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11664 (eval $ac_link) 2>&5
11665 ac_status=$?
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11670 ac_status=$?
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; }; then
11673 echo "$as_me:$LINENO: result: yes" >&5
11674 echo "${ECHO_T}yes" >&6
11675 ipv6=yes
11676 else
11677 echo "$as_me: program exited with status $ac_status" >&5
11678 echo "$as_me: failed program was:" >&5
11679 cat conftest.$ac_ext >&5
11680 ( exit $ac_status )
11681 echo "$as_me:$LINENO: result: no" >&5
11682 echo "${ECHO_T}no" >&6
11683 ipv6=no
11685 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11688 if test "$ipv6" = "yes"; then
11689 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
11690 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
11691 cat >conftest.$ac_ext <<_ACEOF
11692 #line $LINENO "configure"
11693 #include "confdefs.h"
11694 #include <sys/types.h>
11695 #include <netinet/in.h>
11696 #ifdef F77_DUMMY_MAIN
11697 # ifdef __cplusplus
11698 extern "C"
11699 # endif
11700 int F77_DUMMY_MAIN() { return 1; }
11701 #endif
11703 main ()
11705 struct sockaddr_in6 x;
11706 x.sin6_scope_id;
11708 return 0;
11710 _ACEOF
11711 rm -f conftest.$ac_objext
11712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11713 (eval $ac_compile) 2>&5
11714 ac_status=$?
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); } &&
11717 { ac_try='test -s conftest.$ac_objext'
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
11723 echo "$as_me:$LINENO: result: yes" >&5
11724 echo "${ECHO_T}yes" >&6
11725 ipv6=yes
11726 else
11727 echo "$as_me: failed program was:" >&5
11728 cat conftest.$ac_ext >&5
11729 echo "$as_me:$LINENO: result: no" >&5
11730 echo "${ECHO_T}no" >&6
11731 ipv6=no
11733 rm -f conftest.$ac_objext conftest.$ac_ext
11736 if test "$ipv6" = "yes"; then
11737 cat >>confdefs.h <<\_ACEOF
11738 #define ENABLE_IPV6 1
11739 _ACEOF
11745 ipv6type=unknown
11746 ipv6lib=none
11747 ipv6trylibc=no
11749 if test "$ipv6" = "yes"; then
11750 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
11751 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
11752 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
11754 case $i in
11755 inria)
11756 cat >conftest.$ac_ext <<_ACEOF
11757 #line $LINENO "configure"
11758 #include "confdefs.h"
11760 #include <netinet/in.h>
11761 #ifdef IPV6_INRIA_VERSION
11763 #endif
11764 _ACEOF
11765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11766 egrep "yes" >/dev/null 2>&1; then
11767 ipv6type=$i
11769 rm -f conftest*
11772 kame)
11773 cat >conftest.$ac_ext <<_ACEOF
11774 #line $LINENO "configure"
11775 #include "confdefs.h"
11777 #include <netinet/in.h>
11778 #ifdef __KAME__
11780 #endif
11781 _ACEOF
11782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11783 egrep "yes" >/dev/null 2>&1; then
11784 ipv6type=$i;
11785 ipv6lib=inet6
11786 ipv6libdir=/usr/local/v6/lib
11787 ipv6trylibc=yes
11789 rm -f conftest*
11792 linux-glibc)
11793 cat >conftest.$ac_ext <<_ACEOF
11794 #line $LINENO "configure"
11795 #include "confdefs.h"
11797 #include <features.h>
11798 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
11800 #endif
11801 _ACEOF
11802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11803 egrep "yes" >/dev/null 2>&1; then
11804 ipv6type=$i;
11805 ipv6trylibc=yes
11807 rm -f conftest*
11810 linux-inet6)
11811 if test -d /usr/inet6; then
11812 ipv6type=$i
11813 ipv6lib=inet6
11814 ipv6libdir=/usr/inet6/lib
11815 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
11818 solaris)
11819 if test -f /etc/netconfig; then
11820 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
11821 ipv6type=$i
11822 ipv6trylibc=yes
11826 toshiba)
11827 cat >conftest.$ac_ext <<_ACEOF
11828 #line $LINENO "configure"
11829 #include "confdefs.h"
11831 #include <sys/param.h>
11832 #ifdef _TOSHIBA_INET6
11834 #endif
11835 _ACEOF
11836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11837 egrep "yes" >/dev/null 2>&1; then
11838 ipv6type=$i;
11839 ipv6lib=inet6;
11840 ipv6libdir=/usr/local/v6/lib
11842 rm -f conftest*
11845 v6d)
11846 cat >conftest.$ac_ext <<_ACEOF
11847 #line $LINENO "configure"
11848 #include "confdefs.h"
11850 #include </usr/local/v6/include/sys/v6config.h>
11851 #ifdef __V6D__
11853 #endif
11854 _ACEOF
11855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11856 egrep "yes" >/dev/null 2>&1; then
11857 ipv6type=$i;
11858 ipv6lib=v6;
11859 ipv6libdir=/usr/local/v6/lib;
11860 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
11862 rm -f conftest*
11865 zeta)
11866 cat >conftest.$ac_ext <<_ACEOF
11867 #line $LINENO "configure"
11868 #include "confdefs.h"
11870 #include <sys/param.h>
11871 #ifdef _ZETA_MINAMI_INET6
11873 #endif
11874 _ACEOF
11875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11876 egrep "yes" >/dev/null 2>&1; then
11877 ipv6type=$i;
11878 ipv6lib=inet6;
11879 ipv6libdir=/usr/local/v6/lib
11881 rm -f conftest*
11884 esac
11885 if test "$ipv6type" != "unknown"; then
11886 break
11888 done
11889 echo "$as_me:$LINENO: result: $ipv6type" >&5
11890 echo "${ECHO_T}$ipv6type" >&6
11893 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
11894 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
11895 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
11896 echo "using lib$ipv6lib"
11897 else
11898 if test $ipv6trylibc = "yes"; then
11899 echo "using libc"
11900 else
11901 echo 'Fatal: no $ipv6lib library found. cannot continue.'
11902 echo "You need to fetch lib$ipv6lib.a from appropriate"
11903 echo 'ipv6 kit and compile beforehand.'
11904 exit 1
11909 # Check for universal newline support
11910 echo "$as_me:$LINENO: checking for --with-universal-newlines" >&5
11911 echo $ECHO_N "checking for --with-universal-newlines... $ECHO_C" >&6
11913 # Check whether --with-universal-newlines or --without-universal-newlines was given.
11914 if test "${with_universal_newlines+set}" = set; then
11915 withval="$with_universal_newlines"
11919 if test -z "$with_universal_newlines"
11920 then with_universal_newlines="yes"
11922 if test "$with_universal_newlines" = "no"
11923 then
11924 echo --without-universal-newlines is unsupported, see README
11925 exit 1
11926 else
11928 cat >>confdefs.h <<\_ACEOF
11929 #define WITH_UNIVERSAL_NEWLINES 1
11930 _ACEOF
11933 echo "$as_me:$LINENO: result: $with_universal_newlines" >&5
11934 echo "${ECHO_T}$with_universal_newlines" >&6
11936 # Check for --with-doc-strings
11937 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
11938 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
11940 # Check whether --with-doc-strings or --without-doc-strings was given.
11941 if test "${with_doc_strings+set}" = set; then
11942 withval="$with_doc_strings"
11946 if test -z "$with_doc_strings"
11947 then with_doc_strings="yes"
11949 if test "$with_doc_strings" != "no"
11950 then
11952 cat >>confdefs.h <<\_ACEOF
11953 #define WITH_DOC_STRINGS 1
11954 _ACEOF
11957 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
11958 echo "${ECHO_T}$with_doc_strings" >&6
11960 # Check for Python-specific malloc support
11961 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
11962 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
11964 # Check whether --with-pymalloc or --without-pymalloc was given.
11965 if test "${with_pymalloc+set}" = set; then
11966 withval="$with_pymalloc"
11970 if test -z "$with_pymalloc"
11971 then with_pymalloc="yes"
11973 if test "$with_pymalloc" != "no"
11974 then
11976 cat >>confdefs.h <<\_ACEOF
11977 #define WITH_PYMALLOC 1
11978 _ACEOF
11981 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
11982 echo "${ECHO_T}$with_pymalloc" >&6
11984 # Check for --with-wctype-functions
11985 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
11986 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
11988 # Check whether --with-wctype-functions or --without-wctype-functions was given.
11989 if test "${with_wctype_functions+set}" = set; then
11990 withval="$with_wctype_functions"
11992 if test "$withval" != no
11993 then
11995 cat >>confdefs.h <<\_ACEOF
11996 #define WANT_WCTYPE_FUNCTIONS 1
11997 _ACEOF
11999 echo "$as_me:$LINENO: result: yes" >&5
12000 echo "${ECHO_T}yes" >&6
12001 else echo "$as_me:$LINENO: result: no" >&5
12002 echo "${ECHO_T}no" >&6
12004 else
12005 echo "$as_me:$LINENO: result: no" >&5
12006 echo "${ECHO_T}no" >&6
12009 # -I${DLINCLDIR} is added to the compile rule for importdl.o
12011 DLINCLDIR=.
12013 echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5
12014 echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6
12016 # Check whether --with-sgi-dl or --without-sgi-dl was given.
12017 if test "${with_sgi_dl+set}" = set; then
12018 withval="$with_sgi_dl"
12020 echo "$as_me:$LINENO: result: $withval" >&5
12021 echo "${ECHO_T}$withval" >&6
12022 echo --with-sgi-dl is unsupported, see README
12023 exit 1
12025 cat >>confdefs.h <<\_ACEOF
12026 #define WITH_SGI_DL 1
12027 _ACEOF
12029 DYNLOADFILE="dynload_dl.o"
12030 dldir=$withval
12031 if test ! -z "$dldir" -a -d "$dldir"
12032 then LDFLAGS="$LDFLAGS -L$dldir"
12033 else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5
12034 echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;}
12035 { (exit 1); exit 1; }; }
12037 DLINCLDIR=${dldir}
12038 LIBS="$LIBS -ldl -lmld"
12039 else
12040 echo "$as_me:$LINENO: result: no" >&5
12041 echo "${ECHO_T}no" >&6
12044 echo "$as_me:$LINENO: checking for --with-dl-dld" >&5
12045 echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6
12047 # Check whether --with-dl-dld or --without-dl-dld was given.
12048 if test "${with_dl_dld+set}" = set; then
12049 withval="$with_dl_dld"
12051 echo "$as_me:$LINENO: result: $withval" >&5
12052 echo "${ECHO_T}$withval" >&6
12053 echo --with-dl-dld is unsupported, see README
12054 exit 1
12056 cat >>confdefs.h <<\_ACEOF
12057 #define WITH_DL_DLD 1
12058 _ACEOF
12060 DYNLOADFILE="dynload_dl.o"
12061 dldir=`echo "$withval" | sed 's/,.*//'`
12062 dlddir=`echo "$withval" | sed 's/.*,//'`
12063 if test ! -z "$dldir" -a -d "$dldir" -a ! -z "$dlddir" -a -d "$dlddir"
12064 then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir"
12065 else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&5
12066 echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&2;}
12067 { (exit 1); exit 1; }; }
12069 DLINCLDIR=${dldir}
12070 LIBS="$LIBS -ldl -ldld"
12071 else
12072 echo "$as_me:$LINENO: result: no" >&5
12073 echo "${ECHO_T}no" >&6
12076 # the dlopen() function means we might want to use dynload_shlib.o. some
12077 # platforms, such as AIX, have dlopen(), but don't want to use it.
12079 for ac_func in dlopen
12081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12082 echo "$as_me:$LINENO: checking for $ac_func" >&5
12083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12084 if eval "test \"\${$as_ac_var+set}\" = set"; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
12086 else
12087 cat >conftest.$ac_ext <<_ACEOF
12088 #line $LINENO "configure"
12089 #include "confdefs.h"
12090 /* System header to define __stub macros and hopefully few prototypes,
12091 which can conflict with char $ac_func (); below. */
12092 #include <assert.h>
12093 /* Override any gcc2 internal prototype to avoid an error. */
12094 #ifdef __cplusplus
12095 extern "C"
12096 #endif
12097 /* We use char because int might match the return type of a gcc2
12098 builtin and then its argument prototype would still apply. */
12099 char $ac_func ();
12100 char (*f) ();
12102 #ifdef F77_DUMMY_MAIN
12103 # ifdef __cplusplus
12104 extern "C"
12105 # endif
12106 int F77_DUMMY_MAIN() { return 1; }
12107 #endif
12109 main ()
12111 /* The GNU C library defines this for functions which it implements
12112 to always fail with ENOSYS. Some functions are actually named
12113 something starting with __ and the normal name is an alias. */
12114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12115 choke me
12116 #else
12117 f = $ac_func;
12118 #endif
12121 return 0;
12123 _ACEOF
12124 rm -f conftest.$ac_objext conftest$ac_exeext
12125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12126 (eval $ac_link) 2>&5
12127 ac_status=$?
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); } &&
12130 { ac_try='test -s conftest$ac_exeext'
12131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12132 (eval $ac_try) 2>&5
12133 ac_status=$?
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; }; then
12136 eval "$as_ac_var=yes"
12137 else
12138 echo "$as_me: failed program was:" >&5
12139 cat conftest.$ac_ext >&5
12140 eval "$as_ac_var=no"
12142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12146 if test `eval echo '${'$as_ac_var'}'` = yes; then
12147 cat >>confdefs.h <<_ACEOF
12148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12149 _ACEOF
12152 done
12155 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
12156 # loading of modules.
12158 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
12159 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
12160 if test -z "$DYNLOADFILE"
12161 then
12162 case $ac_sys_system/$ac_sys_release in
12163 AIX*) DYNLOADFILE="dynload_aix.o";;
12164 BeOS*) DYNLOADFILE="dynload_beos.o";;
12165 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
12166 Darwin/*) DYNLOADFILE="dynload_next.o";;
12167 atheos*) DYNLOADFILE="dynload_atheos.o";;
12169 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
12170 # out any dynamic loading
12171 if test "$ac_cv_func_dlopen" = yes
12172 then DYNLOADFILE="dynload_shlib.o"
12173 else DYNLOADFILE="dynload_stub.o"
12176 esac
12178 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
12179 echo "${ECHO_T}$DYNLOADFILE" >&6
12180 if test "$DYNLOADFILE" != "dynload_stub.o"
12181 then
12183 cat >>confdefs.h <<\_ACEOF
12184 #define HAVE_DYNAMIC_LOADING 1
12185 _ACEOF
12189 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
12192 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
12193 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
12194 if test -z "$MACHDEP_OBJS"
12195 then
12196 MACHDEP_OBJS=$extra_machdep_objs
12197 else
12198 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
12200 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
12201 echo "${ECHO_T}MACHDEP_OBJS" >&6
12203 # checks for library functions
12278 for ac_func in alarm chown clock confstr ctermid execv \
12279 fchdir fork fsync fdatasync fpathconf ftime ftruncate \
12280 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
12281 getpriority getpwent getwd \
12282 kill killpg lchown lstat mkfifo mknod mktime \
12283 mremap nice pathconf pause plock poll pthread_init \
12284 putenv readlink realpath \
12285 select setegid seteuid setgid \
12286 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
12287 sigaction siginterrupt sigrelse strftime strptime \
12288 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
12289 truncate uname unsetenv utimes waitpid wcscoll _getpty
12291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12292 echo "$as_me:$LINENO: checking for $ac_func" >&5
12293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12294 if eval "test \"\${$as_ac_var+set}\" = set"; then
12295 echo $ECHO_N "(cached) $ECHO_C" >&6
12296 else
12297 cat >conftest.$ac_ext <<_ACEOF
12298 #line $LINENO "configure"
12299 #include "confdefs.h"
12300 /* System header to define __stub macros and hopefully few prototypes,
12301 which can conflict with char $ac_func (); below. */
12302 #include <assert.h>
12303 /* Override any gcc2 internal prototype to avoid an error. */
12304 #ifdef __cplusplus
12305 extern "C"
12306 #endif
12307 /* We use char because int might match the return type of a gcc2
12308 builtin and then its argument prototype would still apply. */
12309 char $ac_func ();
12310 char (*f) ();
12312 #ifdef F77_DUMMY_MAIN
12313 # ifdef __cplusplus
12314 extern "C"
12315 # endif
12316 int F77_DUMMY_MAIN() { return 1; }
12317 #endif
12319 main ()
12321 /* The GNU C library defines this for functions which it implements
12322 to always fail with ENOSYS. Some functions are actually named
12323 something starting with __ and the normal name is an alias. */
12324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12325 choke me
12326 #else
12327 f = $ac_func;
12328 #endif
12331 return 0;
12333 _ACEOF
12334 rm -f conftest.$ac_objext conftest$ac_exeext
12335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12336 (eval $ac_link) 2>&5
12337 ac_status=$?
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); } &&
12340 { ac_try='test -s conftest$ac_exeext'
12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342 (eval $ac_try) 2>&5
12343 ac_status=$?
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); }; }; then
12346 eval "$as_ac_var=yes"
12347 else
12348 echo "$as_me: failed program was:" >&5
12349 cat conftest.$ac_ext >&5
12350 eval "$as_ac_var=no"
12352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12356 if test `eval echo '${'$as_ac_var'}'` = yes; then
12357 cat >>confdefs.h <<_ACEOF
12358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12359 _ACEOF
12362 done
12365 # For some functions, having a definition is not sufficient, since
12366 # we want to take their address.
12367 echo "$as_me:$LINENO: checking for chroot" >&5
12368 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
12369 cat >conftest.$ac_ext <<_ACEOF
12370 #line $LINENO "configure"
12371 #include "confdefs.h"
12372 #include <unistd.h>
12373 #ifdef F77_DUMMY_MAIN
12374 # ifdef __cplusplus
12375 extern "C"
12376 # endif
12377 int F77_DUMMY_MAIN() { return 1; }
12378 #endif
12380 main ()
12382 void *x=chroot
12384 return 0;
12386 _ACEOF
12387 rm -f conftest.$ac_objext
12388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12389 (eval $ac_compile) 2>&5
12390 ac_status=$?
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } &&
12393 { ac_try='test -s conftest.$ac_objext'
12394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12395 (eval $ac_try) 2>&5
12396 ac_status=$?
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }; }; then
12400 cat >>confdefs.h <<\_ACEOF
12401 #define HAVE_CHROOT 1
12402 _ACEOF
12404 echo "$as_me:$LINENO: result: yes" >&5
12405 echo "${ECHO_T}yes" >&6
12406 else
12407 echo "$as_me: failed program was:" >&5
12408 cat conftest.$ac_ext >&5
12409 echo "$as_me:$LINENO: result: no" >&5
12410 echo "${ECHO_T}no" >&6
12413 rm -f conftest.$ac_objext conftest.$ac_ext
12414 echo "$as_me:$LINENO: checking for link" >&5
12415 echo $ECHO_N "checking for link... $ECHO_C" >&6
12416 cat >conftest.$ac_ext <<_ACEOF
12417 #line $LINENO "configure"
12418 #include "confdefs.h"
12419 #include <unistd.h>
12420 #ifdef F77_DUMMY_MAIN
12421 # ifdef __cplusplus
12422 extern "C"
12423 # endif
12424 int F77_DUMMY_MAIN() { return 1; }
12425 #endif
12427 main ()
12429 void *x=link
12431 return 0;
12433 _ACEOF
12434 rm -f conftest.$ac_objext
12435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12436 (eval $ac_compile) 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); } &&
12440 { ac_try='test -s conftest.$ac_objext'
12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442 (eval $ac_try) 2>&5
12443 ac_status=$?
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; }; then
12447 cat >>confdefs.h <<\_ACEOF
12448 #define HAVE_LINK 1
12449 _ACEOF
12451 echo "$as_me:$LINENO: result: yes" >&5
12452 echo "${ECHO_T}yes" >&6
12453 else
12454 echo "$as_me: failed program was:" >&5
12455 cat conftest.$ac_ext >&5
12456 echo "$as_me:$LINENO: result: no" >&5
12457 echo "${ECHO_T}no" >&6
12460 rm -f conftest.$ac_objext conftest.$ac_ext
12461 echo "$as_me:$LINENO: checking for symlink" >&5
12462 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
12463 cat >conftest.$ac_ext <<_ACEOF
12464 #line $LINENO "configure"
12465 #include "confdefs.h"
12466 #include <unistd.h>
12467 #ifdef F77_DUMMY_MAIN
12468 # ifdef __cplusplus
12469 extern "C"
12470 # endif
12471 int F77_DUMMY_MAIN() { return 1; }
12472 #endif
12474 main ()
12476 void *x=symlink
12478 return 0;
12480 _ACEOF
12481 rm -f conftest.$ac_objext
12482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12483 (eval $ac_compile) 2>&5
12484 ac_status=$?
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); } &&
12487 { ac_try='test -s conftest.$ac_objext'
12488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489 (eval $ac_try) 2>&5
12490 ac_status=$?
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; }; then
12494 cat >>confdefs.h <<\_ACEOF
12495 #define HAVE_SYMLINK 1
12496 _ACEOF
12498 echo "$as_me:$LINENO: result: yes" >&5
12499 echo "${ECHO_T}yes" >&6
12500 else
12501 echo "$as_me: failed program was:" >&5
12502 cat conftest.$ac_ext >&5
12503 echo "$as_me:$LINENO: result: no" >&5
12504 echo "${ECHO_T}no" >&6
12507 rm -f conftest.$ac_objext conftest.$ac_ext
12509 # On some systems (eg. FreeBSD 5), we would find a definition of the
12510 # functions ctermid_r, setgroups in the library, but no prototype
12511 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
12512 # address to avoid compiler warnings and potential miscompilations
12513 # because of the missing prototypes.
12515 echo "$as_me:$LINENO: checking for ctermid_r" >&5
12516 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
12517 cat >conftest.$ac_ext <<_ACEOF
12518 #line $LINENO "configure"
12519 #include "confdefs.h"
12521 #include "confdefs.h"
12522 #include <stdio.h>
12524 #ifdef F77_DUMMY_MAIN
12525 # ifdef __cplusplus
12526 extern "C"
12527 # endif
12528 int F77_DUMMY_MAIN() { return 1; }
12529 #endif
12531 main ()
12533 void* p = ctermid_r
12535 return 0;
12537 _ACEOF
12538 rm -f conftest.$ac_objext
12539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12540 (eval $ac_compile) 2>&5
12541 ac_status=$?
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try='test -s conftest.$ac_objext'
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12547 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
12551 cat >>confdefs.h <<\_ACEOF
12552 #define HAVE_CTERMID_R 1
12553 _ACEOF
12555 echo "$as_me:$LINENO: result: yes" >&5
12556 echo "${ECHO_T}yes" >&6
12557 else
12558 echo "$as_me: failed program was:" >&5
12559 cat conftest.$ac_ext >&5
12560 echo "$as_me:$LINENO: result: no" >&5
12561 echo "${ECHO_T}no" >&6
12564 rm -f conftest.$ac_objext conftest.$ac_ext
12566 echo "$as_me:$LINENO: checking for flock" >&5
12567 echo $ECHO_N "checking for flock... $ECHO_C" >&6
12568 cat >conftest.$ac_ext <<_ACEOF
12569 #line $LINENO "configure"
12570 #include "confdefs.h"
12572 #include "confdefs.h"
12573 #include <sys/file.h>
12575 #ifdef F77_DUMMY_MAIN
12576 # ifdef __cplusplus
12577 extern "C"
12578 # endif
12579 int F77_DUMMY_MAIN() { return 1; }
12580 #endif
12582 main ()
12584 void* p = flock
12586 return 0;
12588 _ACEOF
12589 rm -f conftest.$ac_objext
12590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12591 (eval $ac_compile) 2>&5
12592 ac_status=$?
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); } &&
12595 { ac_try='test -s conftest.$ac_objext'
12596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12597 (eval $ac_try) 2>&5
12598 ac_status=$?
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); }; }; then
12602 cat >>confdefs.h <<\_ACEOF
12603 #define HAVE_FLOCK 1
12604 _ACEOF
12606 echo "$as_me:$LINENO: result: yes" >&5
12607 echo "${ECHO_T}yes" >&6
12608 else
12609 echo "$as_me: failed program was:" >&5
12610 cat conftest.$ac_ext >&5
12611 echo "$as_me:$LINENO: result: no" >&5
12612 echo "${ECHO_T}no" >&6
12615 rm -f conftest.$ac_objext conftest.$ac_ext
12617 echo "$as_me:$LINENO: checking for getpagesize" >&5
12618 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
12619 cat >conftest.$ac_ext <<_ACEOF
12620 #line $LINENO "configure"
12621 #include "confdefs.h"
12623 #include "confdefs.h"
12624 #include <unistd.h>
12626 #ifdef F77_DUMMY_MAIN
12627 # ifdef __cplusplus
12628 extern "C"
12629 # endif
12630 int F77_DUMMY_MAIN() { return 1; }
12631 #endif
12633 main ()
12635 void* p = getpagesize
12637 return 0;
12639 _ACEOF
12640 rm -f conftest.$ac_objext
12641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12642 (eval $ac_compile) 2>&5
12643 ac_status=$?
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); } &&
12646 { ac_try='test -s conftest.$ac_objext'
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12649 ac_status=$?
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; }; then
12653 cat >>confdefs.h <<\_ACEOF
12654 #define HAVE_GETPAGESIZE 1
12655 _ACEOF
12657 echo "$as_me:$LINENO: result: yes" >&5
12658 echo "${ECHO_T}yes" >&6
12659 else
12660 echo "$as_me: failed program was:" >&5
12661 cat conftest.$ac_ext >&5
12662 echo "$as_me:$LINENO: result: no" >&5
12663 echo "${ECHO_T}no" >&6
12666 rm -f conftest.$ac_objext conftest.$ac_ext
12668 for ac_prog in true
12670 # Extract the first word of "$ac_prog", so it can be a program name with args.
12671 set dummy $ac_prog; ac_word=$2
12672 echo "$as_me:$LINENO: checking for $ac_word" >&5
12673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12674 if test "${ac_cv_prog_TRUE+set}" = set; then
12675 echo $ECHO_N "(cached) $ECHO_C" >&6
12676 else
12677 if test -n "$TRUE"; then
12678 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
12679 else
12680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12681 for as_dir in $PATH
12683 IFS=$as_save_IFS
12684 test -z "$as_dir" && as_dir=.
12685 for ac_exec_ext in '' $ac_executable_extensions; do
12686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12687 ac_cv_prog_TRUE="$ac_prog"
12688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12689 break 2
12691 done
12692 done
12696 TRUE=$ac_cv_prog_TRUE
12697 if test -n "$TRUE"; then
12698 echo "$as_me:$LINENO: result: $TRUE" >&5
12699 echo "${ECHO_T}$TRUE" >&6
12700 else
12701 echo "$as_me:$LINENO: result: no" >&5
12702 echo "${ECHO_T}no" >&6
12705 test -n "$TRUE" && break
12706 done
12707 test -n "$TRUE" || TRUE="/bin/true"
12710 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
12711 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
12712 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12714 else
12715 ac_check_lib_save_LIBS=$LIBS
12716 LIBS="-lc $LIBS"
12717 cat >conftest.$ac_ext <<_ACEOF
12718 #line $LINENO "configure"
12719 #include "confdefs.h"
12721 /* Override any gcc2 internal prototype to avoid an error. */
12722 #ifdef __cplusplus
12723 extern "C"
12724 #endif
12725 /* We use char because int might match the return type of a gcc2
12726 builtin and then its argument prototype would still apply. */
12727 char inet_aton ();
12728 #ifdef F77_DUMMY_MAIN
12729 # ifdef __cplusplus
12730 extern "C"
12731 # endif
12732 int F77_DUMMY_MAIN() { return 1; }
12733 #endif
12735 main ()
12737 inet_aton ();
12739 return 0;
12741 _ACEOF
12742 rm -f conftest.$ac_objext conftest$ac_exeext
12743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12744 (eval $ac_link) 2>&5
12745 ac_status=$?
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); } &&
12748 { ac_try='test -s conftest$ac_exeext'
12749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12750 (eval $ac_try) 2>&5
12751 ac_status=$?
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); }; }; then
12754 ac_cv_lib_c_inet_aton=yes
12755 else
12756 echo "$as_me: failed program was:" >&5
12757 cat conftest.$ac_ext >&5
12758 ac_cv_lib_c_inet_aton=no
12760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12761 LIBS=$ac_check_lib_save_LIBS
12763 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
12764 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
12765 if test $ac_cv_lib_c_inet_aton = yes; then
12766 $ac_cv_prog_TRUE
12767 else
12769 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
12770 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
12771 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
12772 echo $ECHO_N "(cached) $ECHO_C" >&6
12773 else
12774 ac_check_lib_save_LIBS=$LIBS
12775 LIBS="-lresolv $LIBS"
12776 cat >conftest.$ac_ext <<_ACEOF
12777 #line $LINENO "configure"
12778 #include "confdefs.h"
12780 /* Override any gcc2 internal prototype to avoid an error. */
12781 #ifdef __cplusplus
12782 extern "C"
12783 #endif
12784 /* We use char because int might match the return type of a gcc2
12785 builtin and then its argument prototype would still apply. */
12786 char inet_aton ();
12787 #ifdef F77_DUMMY_MAIN
12788 # ifdef __cplusplus
12789 extern "C"
12790 # endif
12791 int F77_DUMMY_MAIN() { return 1; }
12792 #endif
12794 main ()
12796 inet_aton ();
12798 return 0;
12800 _ACEOF
12801 rm -f conftest.$ac_objext conftest$ac_exeext
12802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12803 (eval $ac_link) 2>&5
12804 ac_status=$?
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); } &&
12807 { ac_try='test -s conftest$ac_exeext'
12808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12809 (eval $ac_try) 2>&5
12810 ac_status=$?
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; }; then
12813 ac_cv_lib_resolv_inet_aton=yes
12814 else
12815 echo "$as_me: failed program was:" >&5
12816 cat conftest.$ac_ext >&5
12817 ac_cv_lib_resolv_inet_aton=no
12819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12820 LIBS=$ac_check_lib_save_LIBS
12822 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
12823 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
12824 if test $ac_cv_lib_resolv_inet_aton = yes; then
12825 cat >>confdefs.h <<_ACEOF
12826 #define HAVE_LIBRESOLV 1
12827 _ACEOF
12829 LIBS="-lresolv $LIBS"
12837 echo "$as_me:$LINENO: checking for hstrerror" >&5
12838 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
12839 cat >conftest.$ac_ext <<_ACEOF
12840 #line $LINENO "configure"
12841 #include "confdefs.h"
12843 #include "confdefs.h"
12844 #include <netdb.h>
12846 #ifdef F77_DUMMY_MAIN
12847 # ifdef __cplusplus
12848 extern "C"
12849 # endif
12850 int F77_DUMMY_MAIN() { return 1; }
12851 #endif
12853 main ()
12855 void* p = hstrerror; hstrerror(0)
12857 return 0;
12859 _ACEOF
12860 rm -f conftest.$ac_objext 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); } &&
12866 { ac_try='test -s conftest$ac_exeext'
12867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868 (eval $ac_try) 2>&5
12869 ac_status=$?
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }; }; then
12873 cat >>confdefs.h <<\_ACEOF
12874 #define HAVE_HSTRERROR 1
12875 _ACEOF
12877 echo "$as_me:$LINENO: result: yes" >&5
12878 echo "${ECHO_T}yes" >&6
12879 else
12880 echo "$as_me: failed program was:" >&5
12881 cat conftest.$ac_ext >&5
12882 echo "$as_me:$LINENO: result: no" >&5
12883 echo "${ECHO_T}no" >&6
12886 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12888 echo "$as_me:$LINENO: checking for inet_aton" >&5
12889 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
12890 cat >conftest.$ac_ext <<_ACEOF
12891 #line $LINENO "configure"
12892 #include "confdefs.h"
12894 #include "confdefs.h"
12895 #include <sys/socket.h>
12896 #include <netinet/in.h>
12897 #include <arpa/inet.h>
12899 #ifdef F77_DUMMY_MAIN
12900 # ifdef __cplusplus
12901 extern "C"
12902 # endif
12903 int F77_DUMMY_MAIN() { return 1; }
12904 #endif
12906 main ()
12908 void* p = inet_aton;inet_aton(0,0)
12910 return 0;
12912 _ACEOF
12913 rm -f conftest.$ac_objext conftest$ac_exeext
12914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12915 (eval $ac_link) 2>&5
12916 ac_status=$?
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); } &&
12919 { ac_try='test -s conftest$ac_exeext'
12920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921 (eval $ac_try) 2>&5
12922 ac_status=$?
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; }; then
12926 cat >>confdefs.h <<\_ACEOF
12927 #define HAVE_INET_ATON 1
12928 _ACEOF
12930 echo "$as_me:$LINENO: result: yes" >&5
12931 echo "${ECHO_T}yes" >&6
12932 else
12933 echo "$as_me: failed program was:" >&5
12934 cat conftest.$ac_ext >&5
12935 echo "$as_me:$LINENO: result: no" >&5
12936 echo "${ECHO_T}no" >&6
12939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12941 echo "$as_me:$LINENO: checking for inet_pton" >&5
12942 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
12943 cat >conftest.$ac_ext <<_ACEOF
12944 #line $LINENO "configure"
12945 #include "confdefs.h"
12947 #include "confdefs.h"
12948 #include <sys/types.h>
12949 #include <sys/socket.h>
12950 #include <netinet/in.h>
12951 #include <arpa/inet.h>
12953 #ifdef F77_DUMMY_MAIN
12954 # ifdef __cplusplus
12955 extern "C"
12956 # endif
12957 int F77_DUMMY_MAIN() { return 1; }
12958 #endif
12960 main ()
12962 void* p = inet_pton
12964 return 0;
12966 _ACEOF
12967 rm -f conftest.$ac_objext
12968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12969 (eval $ac_compile) 2>&5
12970 ac_status=$?
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); } &&
12973 { ac_try='test -s conftest.$ac_objext'
12974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975 (eval $ac_try) 2>&5
12976 ac_status=$?
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; }; then
12980 cat >>confdefs.h <<\_ACEOF
12981 #define HAVE_INET_PTON 1
12982 _ACEOF
12984 echo "$as_me:$LINENO: result: yes" >&5
12985 echo "${ECHO_T}yes" >&6
12986 else
12987 echo "$as_me: failed program was:" >&5
12988 cat conftest.$ac_ext >&5
12989 echo "$as_me:$LINENO: result: no" >&5
12990 echo "${ECHO_T}no" >&6
12993 rm -f conftest.$ac_objext conftest.$ac_ext
12995 echo "$as_me:$LINENO: checking for setgroups" >&5
12996 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
12997 cat >conftest.$ac_ext <<_ACEOF
12998 #line $LINENO "configure"
12999 #include "confdefs.h"
13001 #include "confdefs.h"
13002 #include <unistd.h>
13004 #ifdef F77_DUMMY_MAIN
13005 # ifdef __cplusplus
13006 extern "C"
13007 # endif
13008 int F77_DUMMY_MAIN() { return 1; }
13009 #endif
13011 main ()
13013 void* p = setgroups
13015 return 0;
13017 _ACEOF
13018 rm -f conftest.$ac_objext
13019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13020 (eval $ac_compile) 2>&5
13021 ac_status=$?
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); } &&
13024 { ac_try='test -s conftest.$ac_objext'
13025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13026 (eval $ac_try) 2>&5
13027 ac_status=$?
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); }; }; then
13031 cat >>confdefs.h <<\_ACEOF
13032 #define HAVE_SETGROUPS 1
13033 _ACEOF
13035 echo "$as_me:$LINENO: result: yes" >&5
13036 echo "${ECHO_T}yes" >&6
13037 else
13038 echo "$as_me: failed program was:" >&5
13039 cat conftest.$ac_ext >&5
13040 echo "$as_me:$LINENO: result: no" >&5
13041 echo "${ECHO_T}no" >&6
13044 rm -f conftest.$ac_objext conftest.$ac_ext
13046 # check for openpty and forkpty
13049 for ac_func in openpty
13051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13052 echo "$as_me:$LINENO: checking for $ac_func" >&5
13053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13054 if eval "test \"\${$as_ac_var+set}\" = set"; then
13055 echo $ECHO_N "(cached) $ECHO_C" >&6
13056 else
13057 cat >conftest.$ac_ext <<_ACEOF
13058 #line $LINENO "configure"
13059 #include "confdefs.h"
13060 /* System header to define __stub macros and hopefully few prototypes,
13061 which can conflict with char $ac_func (); below. */
13062 #include <assert.h>
13063 /* Override any gcc2 internal prototype to avoid an error. */
13064 #ifdef __cplusplus
13065 extern "C"
13066 #endif
13067 /* We use char because int might match the return type of a gcc2
13068 builtin and then its argument prototype would still apply. */
13069 char $ac_func ();
13070 char (*f) ();
13072 #ifdef F77_DUMMY_MAIN
13073 # ifdef __cplusplus
13074 extern "C"
13075 # endif
13076 int F77_DUMMY_MAIN() { return 1; }
13077 #endif
13079 main ()
13081 /* The GNU C library defines this for functions which it implements
13082 to always fail with ENOSYS. Some functions are actually named
13083 something starting with __ and the normal name is an alias. */
13084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13085 choke me
13086 #else
13087 f = $ac_func;
13088 #endif
13091 return 0;
13093 _ACEOF
13094 rm -f conftest.$ac_objext conftest$ac_exeext
13095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13096 (eval $ac_link) 2>&5
13097 ac_status=$?
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } &&
13100 { ac_try='test -s conftest$ac_exeext'
13101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13102 (eval $ac_try) 2>&5
13103 ac_status=$?
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; }; then
13106 eval "$as_ac_var=yes"
13107 else
13108 echo "$as_me: failed program was:" >&5
13109 cat conftest.$ac_ext >&5
13110 eval "$as_ac_var=no"
13112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13115 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13116 if test `eval echo '${'$as_ac_var'}'` = yes; then
13117 cat >>confdefs.h <<_ACEOF
13118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13119 _ACEOF
13121 else
13122 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
13123 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
13124 if test "${ac_cv_lib_util_openpty+set}" = set; then
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
13126 else
13127 ac_check_lib_save_LIBS=$LIBS
13128 LIBS="-lutil $LIBS"
13129 cat >conftest.$ac_ext <<_ACEOF
13130 #line $LINENO "configure"
13131 #include "confdefs.h"
13133 /* Override any gcc2 internal prototype to avoid an error. */
13134 #ifdef __cplusplus
13135 extern "C"
13136 #endif
13137 /* We use char because int might match the return type of a gcc2
13138 builtin and then its argument prototype would still apply. */
13139 char openpty ();
13140 #ifdef F77_DUMMY_MAIN
13141 # ifdef __cplusplus
13142 extern "C"
13143 # endif
13144 int F77_DUMMY_MAIN() { return 1; }
13145 #endif
13147 main ()
13149 openpty ();
13151 return 0;
13153 _ACEOF
13154 rm -f conftest.$ac_objext conftest$ac_exeext
13155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13156 (eval $ac_link) 2>&5
13157 ac_status=$?
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); } &&
13160 { ac_try='test -s conftest$ac_exeext'
13161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13162 (eval $ac_try) 2>&5
13163 ac_status=$?
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); }; }; then
13166 ac_cv_lib_util_openpty=yes
13167 else
13168 echo "$as_me: failed program was:" >&5
13169 cat conftest.$ac_ext >&5
13170 ac_cv_lib_util_openpty=no
13172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13173 LIBS=$ac_check_lib_save_LIBS
13175 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
13176 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
13177 if test $ac_cv_lib_util_openpty = yes; then
13178 cat >>confdefs.h <<\_ACEOF
13179 #define HAVE_OPENPTY 1
13180 _ACEOF
13181 LIBS="$LIBS -lutil"
13185 done
13188 for ac_func in forkpty
13190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13191 echo "$as_me:$LINENO: checking for $ac_func" >&5
13192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13193 if eval "test \"\${$as_ac_var+set}\" = set"; then
13194 echo $ECHO_N "(cached) $ECHO_C" >&6
13195 else
13196 cat >conftest.$ac_ext <<_ACEOF
13197 #line $LINENO "configure"
13198 #include "confdefs.h"
13199 /* System header to define __stub macros and hopefully few prototypes,
13200 which can conflict with char $ac_func (); below. */
13201 #include <assert.h>
13202 /* Override any gcc2 internal prototype to avoid an error. */
13203 #ifdef __cplusplus
13204 extern "C"
13205 #endif
13206 /* We use char because int might match the return type of a gcc2
13207 builtin and then its argument prototype would still apply. */
13208 char $ac_func ();
13209 char (*f) ();
13211 #ifdef F77_DUMMY_MAIN
13212 # ifdef __cplusplus
13213 extern "C"
13214 # endif
13215 int F77_DUMMY_MAIN() { return 1; }
13216 #endif
13218 main ()
13220 /* The GNU C library defines this for functions which it implements
13221 to always fail with ENOSYS. Some functions are actually named
13222 something starting with __ and the normal name is an alias. */
13223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13224 choke me
13225 #else
13226 f = $ac_func;
13227 #endif
13230 return 0;
13232 _ACEOF
13233 rm -f conftest.$ac_objext conftest$ac_exeext
13234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13235 (eval $ac_link) 2>&5
13236 ac_status=$?
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); } &&
13239 { ac_try='test -s conftest$ac_exeext'
13240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13241 (eval $ac_try) 2>&5
13242 ac_status=$?
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); }; }; then
13245 eval "$as_ac_var=yes"
13246 else
13247 echo "$as_me: failed program was:" >&5
13248 cat conftest.$ac_ext >&5
13249 eval "$as_ac_var=no"
13251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13254 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13255 if test `eval echo '${'$as_ac_var'}'` = yes; then
13256 cat >>confdefs.h <<_ACEOF
13257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13258 _ACEOF
13260 else
13261 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
13262 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
13263 if test "${ac_cv_lib_util_forkpty+set}" = set; then
13264 echo $ECHO_N "(cached) $ECHO_C" >&6
13265 else
13266 ac_check_lib_save_LIBS=$LIBS
13267 LIBS="-lutil $LIBS"
13268 cat >conftest.$ac_ext <<_ACEOF
13269 #line $LINENO "configure"
13270 #include "confdefs.h"
13272 /* Override any gcc2 internal prototype to avoid an error. */
13273 #ifdef __cplusplus
13274 extern "C"
13275 #endif
13276 /* We use char because int might match the return type of a gcc2
13277 builtin and then its argument prototype would still apply. */
13278 char forkpty ();
13279 #ifdef F77_DUMMY_MAIN
13280 # ifdef __cplusplus
13281 extern "C"
13282 # endif
13283 int F77_DUMMY_MAIN() { return 1; }
13284 #endif
13286 main ()
13288 forkpty ();
13290 return 0;
13292 _ACEOF
13293 rm -f conftest.$ac_objext conftest$ac_exeext
13294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13295 (eval $ac_link) 2>&5
13296 ac_status=$?
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); } &&
13299 { ac_try='test -s conftest$ac_exeext'
13300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13301 (eval $ac_try) 2>&5
13302 ac_status=$?
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); }; }; then
13305 ac_cv_lib_util_forkpty=yes
13306 else
13307 echo "$as_me: failed program was:" >&5
13308 cat conftest.$ac_ext >&5
13309 ac_cv_lib_util_forkpty=no
13311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13312 LIBS=$ac_check_lib_save_LIBS
13314 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
13315 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
13316 if test $ac_cv_lib_util_forkpty = yes; then
13317 cat >>confdefs.h <<\_ACEOF
13318 #define HAVE_FORKPTY 1
13319 _ACEOF
13320 LIBS="$LIBS -lutil"
13324 done
13327 # check for long file support functions
13334 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
13336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13337 echo "$as_me:$LINENO: checking for $ac_func" >&5
13338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13339 if eval "test \"\${$as_ac_var+set}\" = set"; then
13340 echo $ECHO_N "(cached) $ECHO_C" >&6
13341 else
13342 cat >conftest.$ac_ext <<_ACEOF
13343 #line $LINENO "configure"
13344 #include "confdefs.h"
13345 /* System header to define __stub macros and hopefully few prototypes,
13346 which can conflict with char $ac_func (); below. */
13347 #include <assert.h>
13348 /* Override any gcc2 internal prototype to avoid an error. */
13349 #ifdef __cplusplus
13350 extern "C"
13351 #endif
13352 /* We use char because int might match the return type of a gcc2
13353 builtin and then its argument prototype would still apply. */
13354 char $ac_func ();
13355 char (*f) ();
13357 #ifdef F77_DUMMY_MAIN
13358 # ifdef __cplusplus
13359 extern "C"
13360 # endif
13361 int F77_DUMMY_MAIN() { return 1; }
13362 #endif
13364 main ()
13366 /* The GNU C library defines this for functions which it implements
13367 to always fail with ENOSYS. Some functions are actually named
13368 something starting with __ and the normal name is an alias. */
13369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13370 choke me
13371 #else
13372 f = $ac_func;
13373 #endif
13376 return 0;
13378 _ACEOF
13379 rm -f conftest.$ac_objext conftest$ac_exeext
13380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13381 (eval $ac_link) 2>&5
13382 ac_status=$?
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); } &&
13385 { ac_try='test -s conftest$ac_exeext'
13386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387 (eval $ac_try) 2>&5
13388 ac_status=$?
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; }; then
13391 eval "$as_ac_var=yes"
13392 else
13393 echo "$as_me: failed program was:" >&5
13394 cat conftest.$ac_ext >&5
13395 eval "$as_ac_var=no"
13397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13400 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13401 if test `eval echo '${'$as_ac_var'}'` = yes; then
13402 cat >>confdefs.h <<_ACEOF
13403 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13404 _ACEOF
13407 done
13415 for ac_func in dup2 getcwd strdup strerror memmove
13417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13418 echo "$as_me:$LINENO: checking for $ac_func" >&5
13419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13420 if eval "test \"\${$as_ac_var+set}\" = set"; then
13421 echo $ECHO_N "(cached) $ECHO_C" >&6
13422 else
13423 cat >conftest.$ac_ext <<_ACEOF
13424 #line $LINENO "configure"
13425 #include "confdefs.h"
13426 /* System header to define __stub macros and hopefully few prototypes,
13427 which can conflict with char $ac_func (); below. */
13428 #include <assert.h>
13429 /* Override any gcc2 internal prototype to avoid an error. */
13430 #ifdef __cplusplus
13431 extern "C"
13432 #endif
13433 /* We use char because int might match the return type of a gcc2
13434 builtin and then its argument prototype would still apply. */
13435 char $ac_func ();
13436 char (*f) ();
13438 #ifdef F77_DUMMY_MAIN
13439 # ifdef __cplusplus
13440 extern "C"
13441 # endif
13442 int F77_DUMMY_MAIN() { return 1; }
13443 #endif
13445 main ()
13447 /* The GNU C library defines this for functions which it implements
13448 to always fail with ENOSYS. Some functions are actually named
13449 something starting with __ and the normal name is an alias. */
13450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13451 choke me
13452 #else
13453 f = $ac_func;
13454 #endif
13457 return 0;
13459 _ACEOF
13460 rm -f conftest.$ac_objext conftest$ac_exeext
13461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13462 (eval $ac_link) 2>&5
13463 ac_status=$?
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } &&
13466 { ac_try='test -s conftest$ac_exeext'
13467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13468 (eval $ac_try) 2>&5
13469 ac_status=$?
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); }; }; then
13472 eval "$as_ac_var=yes"
13473 else
13474 echo "$as_me: failed program was:" >&5
13475 cat conftest.$ac_ext >&5
13476 eval "$as_ac_var=no"
13478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13482 if test `eval echo '${'$as_ac_var'}'` = yes; then
13483 cat >>confdefs.h <<_ACEOF
13484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13485 _ACEOF
13487 else
13488 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13490 done
13494 for ac_func in getpgrp
13496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13497 echo "$as_me:$LINENO: checking for $ac_func" >&5
13498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13499 if eval "test \"\${$as_ac_var+set}\" = set"; then
13500 echo $ECHO_N "(cached) $ECHO_C" >&6
13501 else
13502 cat >conftest.$ac_ext <<_ACEOF
13503 #line $LINENO "configure"
13504 #include "confdefs.h"
13505 /* System header to define __stub macros and hopefully few prototypes,
13506 which can conflict with char $ac_func (); below. */
13507 #include <assert.h>
13508 /* Override any gcc2 internal prototype to avoid an error. */
13509 #ifdef __cplusplus
13510 extern "C"
13511 #endif
13512 /* We use char because int might match the return type of a gcc2
13513 builtin and then its argument prototype would still apply. */
13514 char $ac_func ();
13515 char (*f) ();
13517 #ifdef F77_DUMMY_MAIN
13518 # ifdef __cplusplus
13519 extern "C"
13520 # endif
13521 int F77_DUMMY_MAIN() { return 1; }
13522 #endif
13524 main ()
13526 /* The GNU C library defines this for functions which it implements
13527 to always fail with ENOSYS. Some functions are actually named
13528 something starting with __ and the normal name is an alias. */
13529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13530 choke me
13531 #else
13532 f = $ac_func;
13533 #endif
13536 return 0;
13538 _ACEOF
13539 rm -f conftest.$ac_objext conftest$ac_exeext
13540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13541 (eval $ac_link) 2>&5
13542 ac_status=$?
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); } &&
13545 { ac_try='test -s conftest$ac_exeext'
13546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13547 (eval $ac_try) 2>&5
13548 ac_status=$?
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; }; then
13551 eval "$as_ac_var=yes"
13552 else
13553 echo "$as_me: failed program was:" >&5
13554 cat conftest.$ac_ext >&5
13555 eval "$as_ac_var=no"
13557 rm -f conftest.$ac_objext 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
13565 cat >conftest.$ac_ext <<_ACEOF
13566 #line $LINENO "configure"
13567 #include "confdefs.h"
13568 #include <unistd.h>
13569 #ifdef F77_DUMMY_MAIN
13570 # ifdef __cplusplus
13571 extern "C"
13572 # endif
13573 int F77_DUMMY_MAIN() { return 1; }
13574 #endif
13576 main ()
13578 getpgrp(0);
13580 return 0;
13582 _ACEOF
13583 rm -f conftest.$ac_objext
13584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13585 (eval $ac_compile) 2>&5
13586 ac_status=$?
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); } &&
13589 { ac_try='test -s conftest.$ac_objext'
13590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13591 (eval $ac_try) 2>&5
13592 ac_status=$?
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); }; }; then
13596 cat >>confdefs.h <<\_ACEOF
13597 #define GETPGRP_HAVE_ARG 1
13598 _ACEOF
13601 else
13602 echo "$as_me: failed program was:" >&5
13603 cat conftest.$ac_ext >&5
13605 rm -f conftest.$ac_objext conftest.$ac_ext
13608 done
13611 for ac_func in setpgrp
13613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13614 echo "$as_me:$LINENO: checking for $ac_func" >&5
13615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13616 if eval "test \"\${$as_ac_var+set}\" = set"; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13618 else
13619 cat >conftest.$ac_ext <<_ACEOF
13620 #line $LINENO "configure"
13621 #include "confdefs.h"
13622 /* System header to define __stub macros and hopefully few prototypes,
13623 which can conflict with char $ac_func (); below. */
13624 #include <assert.h>
13625 /* Override any gcc2 internal prototype to avoid an error. */
13626 #ifdef __cplusplus
13627 extern "C"
13628 #endif
13629 /* We use char because int might match the return type of a gcc2
13630 builtin and then its argument prototype would still apply. */
13631 char $ac_func ();
13632 char (*f) ();
13634 #ifdef F77_DUMMY_MAIN
13635 # ifdef __cplusplus
13636 extern "C"
13637 # endif
13638 int F77_DUMMY_MAIN() { return 1; }
13639 #endif
13641 main ()
13643 /* The GNU C library defines this for functions which it implements
13644 to always fail with ENOSYS. Some functions are actually named
13645 something starting with __ and the normal name is an alias. */
13646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13647 choke me
13648 #else
13649 f = $ac_func;
13650 #endif
13653 return 0;
13655 _ACEOF
13656 rm -f conftest.$ac_objext conftest$ac_exeext
13657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13658 (eval $ac_link) 2>&5
13659 ac_status=$?
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); } &&
13662 { ac_try='test -s conftest$ac_exeext'
13663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13664 (eval $ac_try) 2>&5
13665 ac_status=$?
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); }; }; then
13668 eval "$as_ac_var=yes"
13669 else
13670 echo "$as_me: failed program was:" >&5
13671 cat conftest.$ac_ext >&5
13672 eval "$as_ac_var=no"
13674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13677 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13678 if test `eval echo '${'$as_ac_var'}'` = yes; then
13679 cat >>confdefs.h <<_ACEOF
13680 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13681 _ACEOF
13682 cat >conftest.$ac_ext <<_ACEOF
13683 #line $LINENO "configure"
13684 #include "confdefs.h"
13685 #include <unistd.h>
13686 #ifdef F77_DUMMY_MAIN
13687 # ifdef __cplusplus
13688 extern "C"
13689 # endif
13690 int F77_DUMMY_MAIN() { return 1; }
13691 #endif
13693 main ()
13695 setpgrp(0,0);
13697 return 0;
13699 _ACEOF
13700 rm -f conftest.$ac_objext
13701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13702 (eval $ac_compile) 2>&5
13703 ac_status=$?
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); } &&
13706 { ac_try='test -s conftest.$ac_objext'
13707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13708 (eval $ac_try) 2>&5
13709 ac_status=$?
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }; }; then
13713 cat >>confdefs.h <<\_ACEOF
13714 #define SETPGRP_HAVE_ARG 1
13715 _ACEOF
13718 else
13719 echo "$as_me: failed program was:" >&5
13720 cat conftest.$ac_ext >&5
13722 rm -f conftest.$ac_objext conftest.$ac_ext
13725 done
13728 for ac_func in gettimeofday
13730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13731 echo "$as_me:$LINENO: checking for $ac_func" >&5
13732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13733 if eval "test \"\${$as_ac_var+set}\" = set"; then
13734 echo $ECHO_N "(cached) $ECHO_C" >&6
13735 else
13736 cat >conftest.$ac_ext <<_ACEOF
13737 #line $LINENO "configure"
13738 #include "confdefs.h"
13739 /* System header to define __stub macros and hopefully few prototypes,
13740 which can conflict with char $ac_func (); below. */
13741 #include <assert.h>
13742 /* Override any gcc2 internal prototype to avoid an error. */
13743 #ifdef __cplusplus
13744 extern "C"
13745 #endif
13746 /* We use char because int might match the return type of a gcc2
13747 builtin and then its argument prototype would still apply. */
13748 char $ac_func ();
13749 char (*f) ();
13751 #ifdef F77_DUMMY_MAIN
13752 # ifdef __cplusplus
13753 extern "C"
13754 # endif
13755 int F77_DUMMY_MAIN() { return 1; }
13756 #endif
13758 main ()
13760 /* The GNU C library defines this for functions which it implements
13761 to always fail with ENOSYS. Some functions are actually named
13762 something starting with __ and the normal name is an alias. */
13763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13764 choke me
13765 #else
13766 f = $ac_func;
13767 #endif
13770 return 0;
13772 _ACEOF
13773 rm -f conftest.$ac_objext conftest$ac_exeext
13774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13775 (eval $ac_link) 2>&5
13776 ac_status=$?
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } &&
13779 { ac_try='test -s conftest$ac_exeext'
13780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781 (eval $ac_try) 2>&5
13782 ac_status=$?
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); }; }; then
13785 eval "$as_ac_var=yes"
13786 else
13787 echo "$as_me: failed program was:" >&5
13788 cat conftest.$ac_ext >&5
13789 eval "$as_ac_var=no"
13791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13794 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13795 if test `eval echo '${'$as_ac_var'}'` = yes; then
13796 cat >>confdefs.h <<_ACEOF
13797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13798 _ACEOF
13799 cat >conftest.$ac_ext <<_ACEOF
13800 #line $LINENO "configure"
13801 #include "confdefs.h"
13802 #include <sys/time.h>
13803 #ifdef F77_DUMMY_MAIN
13804 # ifdef __cplusplus
13805 extern "C"
13806 # endif
13807 int F77_DUMMY_MAIN() { return 1; }
13808 #endif
13810 main ()
13812 gettimeofday((struct timeval*)0,(struct timezone*)0);
13814 return 0;
13816 _ACEOF
13817 rm -f conftest.$ac_objext
13818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13819 (eval $ac_compile) 2>&5
13820 ac_status=$?
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } &&
13823 { ac_try='test -s conftest.$ac_objext'
13824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13825 (eval $ac_try) 2>&5
13826 ac_status=$?
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); }; }; then
13830 else
13831 echo "$as_me: failed program was:" >&5
13832 cat conftest.$ac_ext >&5
13834 cat >>confdefs.h <<\_ACEOF
13835 #define GETTIMEOFDAY_NO_TZ 1
13836 _ACEOF
13840 rm -f conftest.$ac_objext conftest.$ac_ext
13843 done
13846 echo "$as_me:$LINENO: checking for major" >&5
13847 echo $ECHO_N "checking for major... $ECHO_C" >&6
13848 cat >conftest.$ac_ext <<_ACEOF
13849 #line $LINENO "configure"
13850 #include "confdefs.h"
13852 #if defined(MAJOR_IN_MKDEV)
13853 #include <sys/mkdev.h>
13854 #elif defined(MAJOR_IN_SYSMACROS)
13855 #include <sys/sysmacros.h>
13856 #else
13857 #include <sys/types.h>
13858 #endif
13860 #ifdef F77_DUMMY_MAIN
13861 # ifdef __cplusplus
13862 extern "C"
13863 # endif
13864 int F77_DUMMY_MAIN() { return 1; }
13865 #endif
13867 main ()
13870 makedev(major(0),minor(0));
13873 return 0;
13875 _ACEOF
13876 rm -f conftest.$ac_objext conftest$ac_exeext
13877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13878 (eval $ac_link) 2>&5
13879 ac_status=$?
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } &&
13882 { ac_try='test -s conftest$ac_exeext'
13883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13884 (eval $ac_try) 2>&5
13885 ac_status=$?
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); }; }; then
13890 cat >>confdefs.h <<\_ACEOF
13891 #define HAVE_DEVICE_MACROS 1
13892 _ACEOF
13894 echo "$as_me:$LINENO: result: yes" >&5
13895 echo "${ECHO_T}yes" >&6
13897 else
13898 echo "$as_me: failed program was:" >&5
13899 cat conftest.$ac_ext >&5
13901 echo "$as_me:$LINENO: result: no" >&5
13902 echo "${ECHO_T}no" >&6
13905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13907 # On OSF/1 V5.1, getaddrinfo is available, but a define
13908 # for [no]getaddrinfo in netdb.h.
13909 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
13910 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
13911 cat >conftest.$ac_ext <<_ACEOF
13912 #line $LINENO "configure"
13913 #include "confdefs.h"
13915 #include <sys/types.h>
13916 #include <sys/socket.h>
13917 #include <netdb.h>
13918 #include <stdio.h>
13920 #ifdef F77_DUMMY_MAIN
13921 # ifdef __cplusplus
13922 extern "C"
13923 # endif
13924 int F77_DUMMY_MAIN() { return 1; }
13925 #endif
13927 main ()
13930 getaddrinfo(NULL, NULL, NULL, NULL);
13933 return 0;
13935 _ACEOF
13936 rm -f conftest.$ac_objext conftest$ac_exeext
13937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13938 (eval $ac_link) 2>&5
13939 ac_status=$?
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); } &&
13942 { ac_try='test -s conftest$ac_exeext'
13943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944 (eval $ac_try) 2>&5
13945 ac_status=$?
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; }; then
13949 echo "$as_me:$LINENO: result: yes" >&5
13950 echo "${ECHO_T}yes" >&6
13951 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
13952 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
13953 if test "$cross_compiling" = yes; then
13954 echo "$as_me:$LINENO: result: buggy" >&5
13955 echo "${ECHO_T}buggy" >&6
13956 buggygetaddrinfo=yes
13957 else
13958 cat >conftest.$ac_ext <<_ACEOF
13959 #line $LINENO "configure"
13960 #include "confdefs.h"
13962 #include <sys/types.h>
13963 #include <netdb.h>
13964 #include <string.h>
13965 #include <sys/socket.h>
13966 #include <netinet/in.h>
13968 main()
13970 int passive, gaierr, inet4 = 0, inet6 = 0;
13971 struct addrinfo hints, *ai, *aitop;
13972 char straddr[INET6_ADDRSTRLEN], strport[16];
13974 for (passive = 0; passive <= 1; passive++) {
13975 memset(&hints, 0, sizeof(hints));
13976 hints.ai_family = AF_UNSPEC;
13977 hints.ai_flags = passive ? AI_PASSIVE : 0;
13978 hints.ai_socktype = SOCK_STREAM;
13979 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
13980 (void)gai_strerror(gaierr);
13981 goto bad;
13983 for (ai = aitop; ai; ai = ai->ai_next) {
13984 if (ai->ai_addr == NULL ||
13985 ai->ai_addrlen == 0 ||
13986 getnameinfo(ai->ai_addr, ai->ai_addrlen,
13987 straddr, sizeof(straddr), strport, sizeof(strport),
13988 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
13989 goto bad;
13991 switch (ai->ai_family) {
13992 case AF_INET:
13993 if (strcmp(strport, "54321") != 0) {
13994 goto bad;
13996 if (passive) {
13997 if (strcmp(straddr, "0.0.0.0") != 0) {
13998 goto bad;
14000 } else {
14001 if (strcmp(straddr, "127.0.0.1") != 0) {
14002 goto bad;
14005 inet4++;
14006 break;
14007 case AF_INET6:
14008 if (strcmp(strport, "54321") != 0) {
14009 goto bad;
14011 if (passive) {
14012 if (strcmp(straddr, "::") != 0) {
14013 goto bad;
14015 } else {
14016 if (strcmp(straddr, "::1") != 0) {
14017 goto bad;
14020 inet6++;
14021 break;
14022 case AF_UNSPEC:
14023 goto bad;
14024 break;
14025 default:
14026 /* another family support? */
14027 break;
14032 if (!(inet4 == 0 || inet4 == 2))
14033 goto bad;
14034 if (!(inet6 == 0 || inet6 == 2))
14035 goto bad;
14037 if (aitop)
14038 freeaddrinfo(aitop);
14039 exit(0);
14041 bad:
14042 if (aitop)
14043 freeaddrinfo(aitop);
14044 exit(1);
14047 _ACEOF
14048 rm -f conftest$ac_exeext
14049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14050 (eval $ac_link) 2>&5
14051 ac_status=$?
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055 (eval $ac_try) 2>&5
14056 ac_status=$?
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }; }; then
14059 echo "$as_me:$LINENO: result: good" >&5
14060 echo "${ECHO_T}good" >&6
14061 buggygetaddrinfo=no
14062 else
14063 echo "$as_me: program exited with status $ac_status" >&5
14064 echo "$as_me: failed program was:" >&5
14065 cat conftest.$ac_ext >&5
14066 ( exit $ac_status )
14067 echo "$as_me:$LINENO: result: buggy" >&5
14068 echo "${ECHO_T}buggy" >&6
14069 buggygetaddrinfo=yes
14071 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14073 else
14074 echo "$as_me: failed program was:" >&5
14075 cat conftest.$ac_ext >&5
14077 echo "$as_me:$LINENO: result: no" >&5
14078 echo "${ECHO_T}no" >&6
14079 buggygetaddrinfo=yes
14082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14084 if test "$buggygetaddrinfo" = "yes"; then
14085 if test "$ipv6" = "yes"; then
14086 echo 'Fatal: You must get working getaddrinfo() function.'
14087 echo ' or you can specify "--disable-ipv6"'.
14088 exit 1
14090 else
14092 cat >>confdefs.h <<\_ACEOF
14093 #define HAVE_GETADDRINFO 1
14094 _ACEOF
14098 for ac_func in getnameinfo
14100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14101 echo "$as_me:$LINENO: checking for $ac_func" >&5
14102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14103 if eval "test \"\${$as_ac_var+set}\" = set"; then
14104 echo $ECHO_N "(cached) $ECHO_C" >&6
14105 else
14106 cat >conftest.$ac_ext <<_ACEOF
14107 #line $LINENO "configure"
14108 #include "confdefs.h"
14109 /* System header to define __stub macros and hopefully few prototypes,
14110 which can conflict with char $ac_func (); below. */
14111 #include <assert.h>
14112 /* Override any gcc2 internal prototype to avoid an error. */
14113 #ifdef __cplusplus
14114 extern "C"
14115 #endif
14116 /* We use char because int might match the return type of a gcc2
14117 builtin and then its argument prototype would still apply. */
14118 char $ac_func ();
14119 char (*f) ();
14121 #ifdef F77_DUMMY_MAIN
14122 # ifdef __cplusplus
14123 extern "C"
14124 # endif
14125 int F77_DUMMY_MAIN() { return 1; }
14126 #endif
14128 main ()
14130 /* The GNU C library defines this for functions which it implements
14131 to always fail with ENOSYS. Some functions are actually named
14132 something starting with __ and the normal name is an alias. */
14133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14134 choke me
14135 #else
14136 f = $ac_func;
14137 #endif
14140 return 0;
14142 _ACEOF
14143 rm -f conftest.$ac_objext conftest$ac_exeext
14144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14145 (eval $ac_link) 2>&5
14146 ac_status=$?
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); } &&
14149 { ac_try='test -s conftest$ac_exeext'
14150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151 (eval $ac_try) 2>&5
14152 ac_status=$?
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); }; }; then
14155 eval "$as_ac_var=yes"
14156 else
14157 echo "$as_me: failed program was:" >&5
14158 cat conftest.$ac_ext >&5
14159 eval "$as_ac_var=no"
14161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14165 if test `eval echo '${'$as_ac_var'}'` = yes; then
14166 cat >>confdefs.h <<_ACEOF
14167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14168 _ACEOF
14171 done
14174 # checks for structures
14175 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14176 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
14177 if test "${ac_cv_header_time+set}" = set; then
14178 echo $ECHO_N "(cached) $ECHO_C" >&6
14179 else
14180 cat >conftest.$ac_ext <<_ACEOF
14181 #line $LINENO "configure"
14182 #include "confdefs.h"
14183 #include <sys/types.h>
14184 #include <sys/time.h>
14185 #include <time.h>
14187 #ifdef F77_DUMMY_MAIN
14188 # ifdef __cplusplus
14189 extern "C"
14190 # endif
14191 int F77_DUMMY_MAIN() { return 1; }
14192 #endif
14194 main ()
14196 if ((struct tm *) 0)
14197 return 0;
14199 return 0;
14201 _ACEOF
14202 rm -f conftest.$ac_objext
14203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14204 (eval $ac_compile) 2>&5
14205 ac_status=$?
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); } &&
14208 { ac_try='test -s conftest.$ac_objext'
14209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14210 (eval $ac_try) 2>&5
14211 ac_status=$?
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); }; }; then
14214 ac_cv_header_time=yes
14215 else
14216 echo "$as_me: failed program was:" >&5
14217 cat conftest.$ac_ext >&5
14218 ac_cv_header_time=no
14220 rm -f conftest.$ac_objext conftest.$ac_ext
14222 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14223 echo "${ECHO_T}$ac_cv_header_time" >&6
14224 if test $ac_cv_header_time = yes; then
14226 cat >>confdefs.h <<\_ACEOF
14227 #define TIME_WITH_SYS_TIME 1
14228 _ACEOF
14232 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14233 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14234 if test "${ac_cv_struct_tm+set}" = set; then
14235 echo $ECHO_N "(cached) $ECHO_C" >&6
14236 else
14237 cat >conftest.$ac_ext <<_ACEOF
14238 #line $LINENO "configure"
14239 #include "confdefs.h"
14240 #include <sys/types.h>
14241 #include <time.h>
14243 #ifdef F77_DUMMY_MAIN
14244 # ifdef __cplusplus
14245 extern "C"
14246 # endif
14247 int F77_DUMMY_MAIN() { return 1; }
14248 #endif
14250 main ()
14252 struct tm *tp; tp->tm_sec;
14254 return 0;
14256 _ACEOF
14257 rm -f conftest.$ac_objext
14258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14259 (eval $ac_compile) 2>&5
14260 ac_status=$?
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); } &&
14263 { ac_try='test -s conftest.$ac_objext'
14264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265 (eval $ac_try) 2>&5
14266 ac_status=$?
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; }; then
14269 ac_cv_struct_tm=time.h
14270 else
14271 echo "$as_me: failed program was:" >&5
14272 cat conftest.$ac_ext >&5
14273 ac_cv_struct_tm=sys/time.h
14275 rm -f conftest.$ac_objext conftest.$ac_ext
14277 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14278 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14279 if test $ac_cv_struct_tm = sys/time.h; then
14281 cat >>confdefs.h <<\_ACEOF
14282 #define TM_IN_SYS_TIME 1
14283 _ACEOF
14287 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14288 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
14289 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14290 echo $ECHO_N "(cached) $ECHO_C" >&6
14291 else
14292 cat >conftest.$ac_ext <<_ACEOF
14293 #line $LINENO "configure"
14294 #include "confdefs.h"
14295 #include <sys/types.h>
14296 #include <$ac_cv_struct_tm>
14299 #ifdef F77_DUMMY_MAIN
14300 # ifdef __cplusplus
14301 extern "C"
14302 # endif
14303 int F77_DUMMY_MAIN() { return 1; }
14304 #endif
14306 main ()
14308 static struct tm ac_aggr;
14309 if (ac_aggr.tm_zone)
14310 return 0;
14312 return 0;
14314 _ACEOF
14315 rm -f conftest.$ac_objext
14316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14317 (eval $ac_compile) 2>&5
14318 ac_status=$?
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } &&
14321 { ac_try='test -s conftest.$ac_objext'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14324 ac_status=$?
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; }; then
14327 ac_cv_member_struct_tm_tm_zone=yes
14328 else
14329 echo "$as_me: failed program was:" >&5
14330 cat conftest.$ac_ext >&5
14331 ac_cv_member_struct_tm_tm_zone=no
14333 rm -f conftest.$ac_objext conftest.$ac_ext
14335 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14336 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
14337 if test $ac_cv_member_struct_tm_tm_zone = yes; then
14339 cat >>confdefs.h <<_ACEOF
14340 #define HAVE_STRUCT_TM_TM_ZONE 1
14341 _ACEOF
14346 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14348 cat >>confdefs.h <<\_ACEOF
14349 #define HAVE_TM_ZONE 1
14350 _ACEOF
14352 else
14353 echo "$as_me:$LINENO: checking for tzname" >&5
14354 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
14355 if test "${ac_cv_var_tzname+set}" = set; then
14356 echo $ECHO_N "(cached) $ECHO_C" >&6
14357 else
14358 cat >conftest.$ac_ext <<_ACEOF
14359 #line $LINENO "configure"
14360 #include "confdefs.h"
14361 #include <time.h>
14362 #ifndef tzname /* For SGI. */
14363 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
14364 #endif
14366 #ifdef F77_DUMMY_MAIN
14367 # ifdef __cplusplus
14368 extern "C"
14369 # endif
14370 int F77_DUMMY_MAIN() { return 1; }
14371 #endif
14373 main ()
14375 atoi(*tzname);
14377 return 0;
14379 _ACEOF
14380 rm -f conftest.$ac_objext conftest$ac_exeext
14381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14382 (eval $ac_link) 2>&5
14383 ac_status=$?
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); } &&
14386 { ac_try='test -s conftest$ac_exeext'
14387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388 (eval $ac_try) 2>&5
14389 ac_status=$?
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; }; then
14392 ac_cv_var_tzname=yes
14393 else
14394 echo "$as_me: failed program was:" >&5
14395 cat conftest.$ac_ext >&5
14396 ac_cv_var_tzname=no
14398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14400 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14401 echo "${ECHO_T}$ac_cv_var_tzname" >&6
14402 if test $ac_cv_var_tzname = yes; then
14404 cat >>confdefs.h <<\_ACEOF
14405 #define HAVE_TZNAME 1
14406 _ACEOF
14411 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
14412 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
14413 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
14414 echo $ECHO_N "(cached) $ECHO_C" >&6
14415 else
14416 cat >conftest.$ac_ext <<_ACEOF
14417 #line $LINENO "configure"
14418 #include "confdefs.h"
14419 $ac_includes_default
14420 #ifdef F77_DUMMY_MAIN
14421 # ifdef __cplusplus
14422 extern "C"
14423 # endif
14424 int F77_DUMMY_MAIN() { return 1; }
14425 #endif
14427 main ()
14429 static struct stat ac_aggr;
14430 if (ac_aggr.st_rdev)
14431 return 0;
14433 return 0;
14435 _ACEOF
14436 rm -f conftest.$ac_objext
14437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14438 (eval $ac_compile) 2>&5
14439 ac_status=$?
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); } &&
14442 { ac_try='test -s conftest.$ac_objext'
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14445 ac_status=$?
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; }; then
14448 ac_cv_member_struct_stat_st_rdev=yes
14449 else
14450 echo "$as_me: failed program was:" >&5
14451 cat conftest.$ac_ext >&5
14452 ac_cv_member_struct_stat_st_rdev=no
14454 rm -f conftest.$ac_objext conftest.$ac_ext
14456 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
14457 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
14458 if test $ac_cv_member_struct_stat_st_rdev = yes; then
14460 cat >>confdefs.h <<_ACEOF
14461 #define HAVE_STRUCT_STAT_ST_RDEV 1
14462 _ACEOF
14467 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
14468 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
14469 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14470 echo $ECHO_N "(cached) $ECHO_C" >&6
14471 else
14472 cat >conftest.$ac_ext <<_ACEOF
14473 #line $LINENO "configure"
14474 #include "confdefs.h"
14475 $ac_includes_default
14476 #ifdef F77_DUMMY_MAIN
14477 # ifdef __cplusplus
14478 extern "C"
14479 # endif
14480 int F77_DUMMY_MAIN() { return 1; }
14481 #endif
14483 main ()
14485 static struct stat ac_aggr;
14486 if (ac_aggr.st_blksize)
14487 return 0;
14489 return 0;
14491 _ACEOF
14492 rm -f conftest.$ac_objext
14493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14494 (eval $ac_compile) 2>&5
14495 ac_status=$?
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); } &&
14498 { ac_try='test -s conftest.$ac_objext'
14499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14500 (eval $ac_try) 2>&5
14501 ac_status=$?
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); }; }; then
14504 ac_cv_member_struct_stat_st_blksize=yes
14505 else
14506 echo "$as_me: failed program was:" >&5
14507 cat conftest.$ac_ext >&5
14508 ac_cv_member_struct_stat_st_blksize=no
14510 rm -f conftest.$ac_objext conftest.$ac_ext
14512 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
14513 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
14514 if test $ac_cv_member_struct_stat_st_blksize = yes; then
14516 cat >>confdefs.h <<_ACEOF
14517 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14518 _ACEOF
14523 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14524 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14525 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14526 echo $ECHO_N "(cached) $ECHO_C" >&6
14527 else
14528 cat >conftest.$ac_ext <<_ACEOF
14529 #line $LINENO "configure"
14530 #include "confdefs.h"
14531 $ac_includes_default
14532 #ifdef F77_DUMMY_MAIN
14533 # ifdef __cplusplus
14534 extern "C"
14535 # endif
14536 int F77_DUMMY_MAIN() { return 1; }
14537 #endif
14539 main ()
14541 static struct stat ac_aggr;
14542 if (ac_aggr.st_blocks)
14543 return 0;
14545 return 0;
14547 _ACEOF
14548 rm -f conftest.$ac_objext
14549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14550 (eval $ac_compile) 2>&5
14551 ac_status=$?
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); } &&
14554 { ac_try='test -s conftest.$ac_objext'
14555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14556 (eval $ac_try) 2>&5
14557 ac_status=$?
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); }; }; then
14560 ac_cv_member_struct_stat_st_blocks=yes
14561 else
14562 echo "$as_me: failed program was:" >&5
14563 cat conftest.$ac_ext >&5
14564 ac_cv_member_struct_stat_st_blocks=no
14566 rm -f conftest.$ac_objext conftest.$ac_ext
14568 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14569 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14570 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14572 cat >>confdefs.h <<_ACEOF
14573 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14574 _ACEOF
14577 cat >>confdefs.h <<\_ACEOF
14578 #define HAVE_ST_BLOCKS 1
14579 _ACEOF
14581 else
14582 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
14587 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
14588 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
14589 if test "${ac_cv_header_time_altzone+set}" = set; then
14590 echo $ECHO_N "(cached) $ECHO_C" >&6
14591 else
14592 cat >conftest.$ac_ext <<_ACEOF
14593 #line $LINENO "configure"
14594 #include "confdefs.h"
14595 #include <time.h>
14596 #ifdef F77_DUMMY_MAIN
14597 # ifdef __cplusplus
14598 extern "C"
14599 # endif
14600 int F77_DUMMY_MAIN() { return 1; }
14601 #endif
14603 main ()
14605 return altzone;
14607 return 0;
14609 _ACEOF
14610 rm -f conftest.$ac_objext
14611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14612 (eval $ac_compile) 2>&5
14613 ac_status=$?
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); } &&
14616 { ac_try='test -s conftest.$ac_objext'
14617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14618 (eval $ac_try) 2>&5
14619 ac_status=$?
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); }; }; then
14622 ac_cv_header_time_altzone=yes
14623 else
14624 echo "$as_me: failed program was:" >&5
14625 cat conftest.$ac_ext >&5
14626 ac_cv_header_time_altzone=no
14628 rm -f conftest.$ac_objext conftest.$ac_ext
14631 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
14632 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
14633 if test $ac_cv_header_time_altzone = yes; then
14635 cat >>confdefs.h <<\_ACEOF
14636 #define HAVE_ALTZONE 1
14637 _ACEOF
14641 was_it_defined=no
14642 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
14643 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
14644 cat >conftest.$ac_ext <<_ACEOF
14645 #line $LINENO "configure"
14646 #include "confdefs.h"
14648 #include <sys/types.h>
14649 #include <sys/select.h>
14650 #include <sys/time.h>
14652 #ifdef F77_DUMMY_MAIN
14653 # ifdef __cplusplus
14654 extern "C"
14655 # endif
14656 int F77_DUMMY_MAIN() { return 1; }
14657 #endif
14659 main ()
14663 return 0;
14665 _ACEOF
14666 rm -f conftest.$ac_objext
14667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14668 (eval $ac_compile) 2>&5
14669 ac_status=$?
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } &&
14672 { ac_try='test -s conftest.$ac_objext'
14673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674 (eval $ac_try) 2>&5
14675 ac_status=$?
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); }; }; then
14680 cat >>confdefs.h <<\_ACEOF
14681 #define SYS_SELECT_WITH_SYS_TIME 1
14682 _ACEOF
14684 was_it_defined=yes
14686 else
14687 echo "$as_me: failed program was:" >&5
14688 cat conftest.$ac_ext >&5
14690 rm -f conftest.$ac_objext conftest.$ac_ext
14691 echo "$as_me:$LINENO: result: $was_it_defined" >&5
14692 echo "${ECHO_T}$was_it_defined" >&6
14694 echo "$as_me:$LINENO: checking for addrinfo" >&5
14695 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
14696 if test "${ac_cv_struct_addrinfo+set}" = set; then
14697 echo $ECHO_N "(cached) $ECHO_C" >&6
14698 else
14699 cat >conftest.$ac_ext <<_ACEOF
14700 #line $LINENO "configure"
14701 #include "confdefs.h"
14703 # include <netdb.h>
14704 #ifdef F77_DUMMY_MAIN
14705 # ifdef __cplusplus
14706 extern "C"
14707 # endif
14708 int F77_DUMMY_MAIN() { return 1; }
14709 #endif
14711 main ()
14713 struct addrinfo a
14715 return 0;
14717 _ACEOF
14718 rm -f conftest.$ac_objext
14719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14720 (eval $ac_compile) 2>&5
14721 ac_status=$?
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); } &&
14724 { ac_try='test -s conftest.$ac_objext'
14725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726 (eval $ac_try) 2>&5
14727 ac_status=$?
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); }; }; then
14730 ac_cv_struct_addrinfo=yes
14731 else
14732 echo "$as_me: failed program was:" >&5
14733 cat conftest.$ac_ext >&5
14734 ac_cv_struct_addrinfo=no
14736 rm -f conftest.$ac_objext conftest.$ac_ext
14739 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
14740 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
14741 if test $ac_cv_struct_addrinfo = yes; then
14743 cat >>confdefs.h <<\_ACEOF
14744 #define HAVE_ADDRINFO 1
14745 _ACEOF
14749 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
14750 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
14751 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
14752 echo $ECHO_N "(cached) $ECHO_C" >&6
14753 else
14754 cat >conftest.$ac_ext <<_ACEOF
14755 #line $LINENO "configure"
14756 #include "confdefs.h"
14758 # include <sys/types.h>
14759 # include <sys/socket.h>
14760 #ifdef F77_DUMMY_MAIN
14761 # ifdef __cplusplus
14762 extern "C"
14763 # endif
14764 int F77_DUMMY_MAIN() { return 1; }
14765 #endif
14767 main ()
14769 struct sockaddr_storage s
14771 return 0;
14773 _ACEOF
14774 rm -f conftest.$ac_objext
14775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14776 (eval $ac_compile) 2>&5
14777 ac_status=$?
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); } &&
14780 { ac_try='test -s conftest.$ac_objext'
14781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782 (eval $ac_try) 2>&5
14783 ac_status=$?
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); }; }; then
14786 ac_cv_struct_sockaddr_storage=yes
14787 else
14788 echo "$as_me: failed program was:" >&5
14789 cat conftest.$ac_ext >&5
14790 ac_cv_struct_sockaddr_storage=no
14792 rm -f conftest.$ac_objext conftest.$ac_ext
14795 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
14796 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
14797 if test $ac_cv_struct_sockaddr_storage = yes; then
14799 cat >>confdefs.h <<\_ACEOF
14800 #define HAVE_SOCKADDR_STORAGE 1
14801 _ACEOF
14805 # checks for compiler characteristics
14808 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
14809 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
14810 if test "${ac_cv_c_char_unsigned+set}" = set; then
14811 echo $ECHO_N "(cached) $ECHO_C" >&6
14812 else
14813 cat >conftest.$ac_ext <<_ACEOF
14814 #line $LINENO "configure"
14815 #include "confdefs.h"
14816 $ac_includes_default
14817 #ifdef F77_DUMMY_MAIN
14818 # ifdef __cplusplus
14819 extern "C"
14820 # endif
14821 int F77_DUMMY_MAIN() { return 1; }
14822 #endif
14824 main ()
14826 static int test_array [1 - 2 * !(((char) -1) < 0)];
14827 test_array [0] = 0
14830 return 0;
14832 _ACEOF
14833 rm -f conftest.$ac_objext
14834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14835 (eval $ac_compile) 2>&5
14836 ac_status=$?
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); } &&
14839 { ac_try='test -s conftest.$ac_objext'
14840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14841 (eval $ac_try) 2>&5
14842 ac_status=$?
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); }; }; then
14845 ac_cv_c_char_unsigned=no
14846 else
14847 echo "$as_me: failed program was:" >&5
14848 cat conftest.$ac_ext >&5
14849 ac_cv_c_char_unsigned=yes
14851 rm -f conftest.$ac_objext conftest.$ac_ext
14853 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
14854 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
14855 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
14856 cat >>confdefs.h <<\_ACEOF
14857 #define __CHAR_UNSIGNED__ 1
14858 _ACEOF
14862 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
14863 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
14864 if test "${ac_cv_prog_cc_stdc+set}" = set; then
14865 echo $ECHO_N "(cached) $ECHO_C" >&6
14866 else
14867 ac_cv_prog_cc_stdc=no
14868 ac_save_CC=$CC
14869 cat >conftest.$ac_ext <<_ACEOF
14870 #line $LINENO "configure"
14871 #include "confdefs.h"
14872 #include <stdarg.h>
14873 #include <stdio.h>
14874 #include <sys/types.h>
14875 #include <sys/stat.h>
14876 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
14877 struct buf { int x; };
14878 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14879 static char *e (p, i)
14880 char **p;
14881 int i;
14883 return p[i];
14885 static char *f (char * (*g) (char **, int), char **p, ...)
14887 char *s;
14888 va_list v;
14889 va_start (v,p);
14890 s = g (p, va_arg (v,int));
14891 va_end (v);
14892 return s;
14894 int test (int i, double x);
14895 struct s1 {int (*f) (int a);};
14896 struct s2 {int (*f) (double a);};
14897 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14898 int argc;
14899 char **argv;
14900 #ifdef F77_DUMMY_MAIN
14901 # ifdef __cplusplus
14902 extern "C"
14903 # endif
14904 int F77_DUMMY_MAIN() { return 1; }
14905 #endif
14907 main ()
14909 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
14911 return 0;
14913 _ACEOF
14914 # Don't try gcc -ansi; that turns off useful extensions and
14915 # breaks some systems' header files.
14916 # AIX -qlanglvl=ansi
14917 # Ultrix and OSF/1 -std1
14918 # HP-UX 10.20 and later -Ae
14919 # HP-UX older versions -Aa -D_HPUX_SOURCE
14920 # SVR4 -Xc -D__EXTENSIONS__
14921 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14923 CC="$ac_save_CC $ac_arg"
14924 rm -f conftest.$ac_objext
14925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14926 (eval $ac_compile) 2>&5
14927 ac_status=$?
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); } &&
14930 { ac_try='test -s conftest.$ac_objext'
14931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14932 (eval $ac_try) 2>&5
14933 ac_status=$?
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); }; }; then
14936 ac_cv_prog_cc_stdc=$ac_arg
14937 break
14938 else
14939 echo "$as_me: failed program was:" >&5
14940 cat conftest.$ac_ext >&5
14942 rm -f conftest.$ac_objext
14943 done
14944 rm -f conftest.$ac_ext conftest.$ac_objext
14945 CC=$ac_save_CC
14949 case "x$ac_cv_prog_cc_stdc" in
14950 x|xno)
14951 echo "$as_me:$LINENO: result: none needed" >&5
14952 echo "${ECHO_T}none needed" >&6 ;;
14954 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
14955 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
14956 CC="$CC $ac_cv_prog_cc_stdc" ;;
14957 esac
14959 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14960 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14961 if test "${ac_cv_c_const+set}" = set; then
14962 echo $ECHO_N "(cached) $ECHO_C" >&6
14963 else
14964 cat >conftest.$ac_ext <<_ACEOF
14965 #line $LINENO "configure"
14966 #include "confdefs.h"
14968 #ifdef F77_DUMMY_MAIN
14969 # ifdef __cplusplus
14970 extern "C"
14971 # endif
14972 int F77_DUMMY_MAIN() { return 1; }
14973 #endif
14975 main ()
14977 /* FIXME: Include the comments suggested by Paul. */
14978 #ifndef __cplusplus
14979 /* Ultrix mips cc rejects this. */
14980 typedef int charset[2];
14981 const charset x;
14982 /* SunOS 4.1.1 cc rejects this. */
14983 char const *const *ccp;
14984 char **p;
14985 /* NEC SVR4.0.2 mips cc rejects this. */
14986 struct point {int x, y;};
14987 static struct point const zero = {0,0};
14988 /* AIX XL C 1.02.0.0 rejects this.
14989 It does not let you subtract one const X* pointer from another in
14990 an arm of an if-expression whose if-part is not a constant
14991 expression */
14992 const char *g = "string";
14993 ccp = &g + (g ? g-g : 0);
14994 /* HPUX 7.0 cc rejects these. */
14995 ++ccp;
14996 p = (char**) ccp;
14997 ccp = (char const *const *) p;
14998 { /* SCO 3.2v4 cc rejects this. */
14999 char *t;
15000 char const *s = 0 ? (char *) 0 : (char const *) 0;
15002 *t++ = 0;
15004 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15005 int x[] = {25, 17};
15006 const int *foo = &x[0];
15007 ++foo;
15009 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15010 typedef const int *iptr;
15011 iptr p = 0;
15012 ++p;
15014 { /* AIX XL C 1.02.0.0 rejects this saying
15015 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15016 struct s { int j; const int *ap[3]; };
15017 struct s *b; b->j = 5;
15019 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15020 const int foo = 10;
15022 #endif
15025 return 0;
15027 _ACEOF
15028 rm -f conftest.$ac_objext
15029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15030 (eval $ac_compile) 2>&5
15031 ac_status=$?
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); } &&
15034 { ac_try='test -s conftest.$ac_objext'
15035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036 (eval $ac_try) 2>&5
15037 ac_status=$?
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; }; then
15040 ac_cv_c_const=yes
15041 else
15042 echo "$as_me: failed program was:" >&5
15043 cat conftest.$ac_ext >&5
15044 ac_cv_c_const=no
15046 rm -f conftest.$ac_objext conftest.$ac_ext
15048 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15049 echo "${ECHO_T}$ac_cv_c_const" >&6
15050 if test $ac_cv_c_const = no; then
15052 cat >>confdefs.h <<\_ACEOF
15053 #define const
15054 _ACEOF
15059 works=no
15060 echo "$as_me:$LINENO: checking for working volatile" >&5
15061 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
15062 cat >conftest.$ac_ext <<_ACEOF
15063 #line $LINENO "configure"
15064 #include "confdefs.h"
15066 #ifdef F77_DUMMY_MAIN
15067 # ifdef __cplusplus
15068 extern "C"
15069 # endif
15070 int F77_DUMMY_MAIN() { return 1; }
15071 #endif
15073 main ()
15075 volatile int x; x = 0;
15077 return 0;
15079 _ACEOF
15080 rm -f conftest.$ac_objext
15081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15082 (eval $ac_compile) 2>&5
15083 ac_status=$?
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); } &&
15086 { ac_try='test -s conftest.$ac_objext'
15087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088 (eval $ac_try) 2>&5
15089 ac_status=$?
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; }; then
15092 works=yes
15093 else
15094 echo "$as_me: failed program was:" >&5
15095 cat conftest.$ac_ext >&5
15097 cat >>confdefs.h <<\_ACEOF
15098 #define volatile
15099 _ACEOF
15103 rm -f conftest.$ac_objext conftest.$ac_ext
15104 echo "$as_me:$LINENO: result: $works" >&5
15105 echo "${ECHO_T}$works" >&6
15107 works=no
15108 echo "$as_me:$LINENO: checking for working signed char" >&5
15109 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
15110 cat >conftest.$ac_ext <<_ACEOF
15111 #line $LINENO "configure"
15112 #include "confdefs.h"
15114 #ifdef F77_DUMMY_MAIN
15115 # ifdef __cplusplus
15116 extern "C"
15117 # endif
15118 int F77_DUMMY_MAIN() { return 1; }
15119 #endif
15121 main ()
15123 signed char c;
15125 return 0;
15127 _ACEOF
15128 rm -f conftest.$ac_objext
15129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15130 (eval $ac_compile) 2>&5
15131 ac_status=$?
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); } &&
15134 { ac_try='test -s conftest.$ac_objext'
15135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15136 (eval $ac_try) 2>&5
15137 ac_status=$?
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); }; }; then
15140 works=yes
15141 else
15142 echo "$as_me: failed program was:" >&5
15143 cat conftest.$ac_ext >&5
15145 cat >>confdefs.h <<\_ACEOF
15146 #define signed
15147 _ACEOF
15151 rm -f conftest.$ac_objext conftest.$ac_ext
15152 echo "$as_me:$LINENO: result: $works" >&5
15153 echo "${ECHO_T}$works" >&6
15155 have_prototypes=no
15156 echo "$as_me:$LINENO: checking for prototypes" >&5
15157 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
15158 cat >conftest.$ac_ext <<_ACEOF
15159 #line $LINENO "configure"
15160 #include "confdefs.h"
15161 int foo(int x) { return 0; }
15162 #ifdef F77_DUMMY_MAIN
15163 # ifdef __cplusplus
15164 extern "C"
15165 # endif
15166 int F77_DUMMY_MAIN() { return 1; }
15167 #endif
15169 main ()
15171 return foo(10);
15173 return 0;
15175 _ACEOF
15176 rm -f conftest.$ac_objext
15177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15178 (eval $ac_compile) 2>&5
15179 ac_status=$?
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); } &&
15182 { ac_try='test -s conftest.$ac_objext'
15183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15184 (eval $ac_try) 2>&5
15185 ac_status=$?
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; }; then
15190 cat >>confdefs.h <<\_ACEOF
15191 #define HAVE_PROTOTYPES 1
15192 _ACEOF
15194 have_prototypes=yes
15196 else
15197 echo "$as_me: failed program was:" >&5
15198 cat conftest.$ac_ext >&5
15200 rm -f conftest.$ac_objext conftest.$ac_ext
15201 echo "$as_me:$LINENO: result: $have_prototypes" >&5
15202 echo "${ECHO_T}$have_prototypes" >&6
15204 works=no
15205 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
15206 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
15207 cat >conftest.$ac_ext <<_ACEOF
15208 #line $LINENO "configure"
15209 #include "confdefs.h"
15211 #include <stdarg.h>
15212 int foo(int x, ...) {
15213 va_list va;
15214 va_start(va, x);
15215 va_arg(va, int);
15216 va_arg(va, char *);
15217 va_arg(va, double);
15218 return 0;
15221 #ifdef F77_DUMMY_MAIN
15222 # ifdef __cplusplus
15223 extern "C"
15224 # endif
15225 int F77_DUMMY_MAIN() { return 1; }
15226 #endif
15228 main ()
15230 return foo(10, "", 3.14);
15232 return 0;
15234 _ACEOF
15235 rm -f conftest.$ac_objext
15236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15237 (eval $ac_compile) 2>&5
15238 ac_status=$?
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); } &&
15241 { ac_try='test -s conftest.$ac_objext'
15242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15243 (eval $ac_try) 2>&5
15244 ac_status=$?
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); }; }; then
15249 cat >>confdefs.h <<\_ACEOF
15250 #define HAVE_STDARG_PROTOTYPES 1
15251 _ACEOF
15253 works=yes
15255 else
15256 echo "$as_me: failed program was:" >&5
15257 cat conftest.$ac_ext >&5
15259 rm -f conftest.$ac_objext conftest.$ac_ext
15260 echo "$as_me:$LINENO: result: $works" >&5
15261 echo "${ECHO_T}$works" >&6
15263 if test "$have_prototypes" = yes; then
15264 bad_prototypes=no
15265 echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5
15266 echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6
15267 cat >conftest.$ac_ext <<_ACEOF
15268 #line $LINENO "configure"
15269 #include "confdefs.h"
15270 #include <unistd.h>
15271 #ifdef F77_DUMMY_MAIN
15272 # ifdef __cplusplus
15273 extern "C"
15274 # endif
15275 int F77_DUMMY_MAIN() { return 1; }
15276 #endif
15278 main ()
15280 char **t;execve("@",t,t);
15282 return 0;
15284 _ACEOF
15285 rm -f conftest.$ac_objext
15286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15287 (eval $ac_compile) 2>&5
15288 ac_status=$?
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 (exit $ac_status); } &&
15291 { ac_try='test -s conftest.$ac_objext'
15292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15293 (eval $ac_try) 2>&5
15294 ac_status=$?
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); }; }; then
15298 else
15299 echo "$as_me: failed program was:" >&5
15300 cat conftest.$ac_ext >&5
15302 cat >>confdefs.h <<\_ACEOF
15303 #define BAD_EXEC_PROTOTYPES 1
15304 _ACEOF
15306 bad_prototypes=yes
15309 rm -f conftest.$ac_objext conftest.$ac_ext
15310 echo "$as_me:$LINENO: result: $bad_prototypes" >&5
15311 echo "${ECHO_T}$bad_prototypes" >&6
15314 # check if sockaddr has sa_len member
15315 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
15316 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
15317 cat >conftest.$ac_ext <<_ACEOF
15318 #line $LINENO "configure"
15319 #include "confdefs.h"
15320 #include <sys/types.h>
15321 #include <sys/socket.h>
15322 #ifdef F77_DUMMY_MAIN
15323 # ifdef __cplusplus
15324 extern "C"
15325 # endif
15326 int F77_DUMMY_MAIN() { return 1; }
15327 #endif
15329 main ()
15331 struct sockaddr x;
15332 x.sa_len = 0;
15334 return 0;
15336 _ACEOF
15337 rm -f conftest.$ac_objext
15338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15339 (eval $ac_compile) 2>&5
15340 ac_status=$?
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); } &&
15343 { ac_try='test -s conftest.$ac_objext'
15344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345 (eval $ac_try) 2>&5
15346 ac_status=$?
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); }; }; then
15349 echo "$as_me:$LINENO: result: yes" >&5
15350 echo "${ECHO_T}yes" >&6
15352 cat >>confdefs.h <<\_ACEOF
15353 #define HAVE_SOCKADDR_SA_LEN 1
15354 _ACEOF
15356 else
15357 echo "$as_me: failed program was:" >&5
15358 cat conftest.$ac_ext >&5
15359 echo "$as_me:$LINENO: result: no" >&5
15360 echo "${ECHO_T}no" >&6
15362 rm -f conftest.$ac_objext conftest.$ac_ext
15364 va_list_is_array=no
15365 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
15366 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
15367 cat >conftest.$ac_ext <<_ACEOF
15368 #line $LINENO "configure"
15369 #include "confdefs.h"
15371 #ifdef HAVE_STDARG_PROTOTYPES
15372 #include <stdarg.h>
15373 #else
15374 #include <varargs.h>
15375 #endif
15377 #ifdef F77_DUMMY_MAIN
15378 # ifdef __cplusplus
15379 extern "C"
15380 # endif
15381 int F77_DUMMY_MAIN() { return 1; }
15382 #endif
15384 main ()
15386 va_list list1, list2; list1 = list2;
15388 return 0;
15390 _ACEOF
15391 rm -f conftest.$ac_objext
15392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15393 (eval $ac_compile) 2>&5
15394 ac_status=$?
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); } &&
15397 { ac_try='test -s conftest.$ac_objext'
15398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15399 (eval $ac_try) 2>&5
15400 ac_status=$?
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); }; }; then
15404 else
15405 echo "$as_me: failed program was:" >&5
15406 cat conftest.$ac_ext >&5
15409 cat >>confdefs.h <<\_ACEOF
15410 #define VA_LIST_IS_ARRAY 1
15411 _ACEOF
15413 va_list_is_array=yes
15416 rm -f conftest.$ac_objext conftest.$ac_ext
15417 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
15418 echo "${ECHO_T}$va_list_is_array" >&6
15420 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
15424 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15425 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15426 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15427 echo $ECHO_N "(cached) $ECHO_C" >&6
15428 else
15429 cat >conftest.$ac_ext <<_ACEOF
15430 #line $LINENO "configure"
15431 #include "confdefs.h"
15432 /* System header to define __stub macros and hopefully few prototypes,
15433 which can conflict with char gethostbyname_r (); below. */
15434 #include <assert.h>
15435 /* Override any gcc2 internal prototype to avoid an error. */
15436 #ifdef __cplusplus
15437 extern "C"
15438 #endif
15439 /* We use char because int might match the return type of a gcc2
15440 builtin and then its argument prototype would still apply. */
15441 char gethostbyname_r ();
15442 char (*f) ();
15444 #ifdef F77_DUMMY_MAIN
15445 # ifdef __cplusplus
15446 extern "C"
15447 # endif
15448 int F77_DUMMY_MAIN() { return 1; }
15449 #endif
15451 main ()
15453 /* The GNU C library defines this for functions which it implements
15454 to always fail with ENOSYS. Some functions are actually named
15455 something starting with __ and the normal name is an alias. */
15456 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15457 choke me
15458 #else
15459 f = gethostbyname_r;
15460 #endif
15463 return 0;
15465 _ACEOF
15466 rm -f conftest.$ac_objext conftest$ac_exeext
15467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15468 (eval $ac_link) 2>&5
15469 ac_status=$?
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); } &&
15472 { ac_try='test -s conftest$ac_exeext'
15473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15474 (eval $ac_try) 2>&5
15475 ac_status=$?
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); }; }; then
15478 ac_cv_func_gethostbyname_r=yes
15479 else
15480 echo "$as_me: failed program was:" >&5
15481 cat conftest.$ac_ext >&5
15482 ac_cv_func_gethostbyname_r=no
15484 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15486 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15487 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15488 if test $ac_cv_func_gethostbyname_r = yes; then
15490 cat >>confdefs.h <<\_ACEOF
15491 #define HAVE_GETHOSTBYNAME_R 1
15492 _ACEOF
15494 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
15495 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
15496 OLD_CFLAGS=$CFLAGS
15497 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
15498 cat >conftest.$ac_ext <<_ACEOF
15499 #line $LINENO "configure"
15500 #include "confdefs.h"
15502 # include <netdb.h>
15504 #ifdef F77_DUMMY_MAIN
15505 # ifdef __cplusplus
15506 extern "C"
15507 # endif
15508 int F77_DUMMY_MAIN() { return 1; }
15509 #endif
15511 main ()
15514 char *name;
15515 struct hostent *he, *res;
15516 char buffer[2048];
15517 int buflen = 2048;
15518 int h_errnop;
15520 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
15523 return 0;
15525 _ACEOF
15526 rm -f conftest.$ac_objext
15527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15528 (eval $ac_compile) 2>&5
15529 ac_status=$?
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); } &&
15532 { ac_try='test -s conftest.$ac_objext'
15533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15535 ac_status=$?
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; }; then
15539 cat >>confdefs.h <<\_ACEOF
15540 #define HAVE_GETHOSTBYNAME_R 1
15541 _ACEOF
15544 cat >>confdefs.h <<\_ACEOF
15545 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
15546 _ACEOF
15548 echo "$as_me:$LINENO: result: yes" >&5
15549 echo "${ECHO_T}yes" >&6
15551 else
15552 echo "$as_me: failed program was:" >&5
15553 cat conftest.$ac_ext >&5
15555 echo "$as_me:$LINENO: result: no" >&5
15556 echo "${ECHO_T}no" >&6
15557 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
15558 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
15559 cat >conftest.$ac_ext <<_ACEOF
15560 #line $LINENO "configure"
15561 #include "confdefs.h"
15563 # include <netdb.h>
15565 #ifdef F77_DUMMY_MAIN
15566 # ifdef __cplusplus
15567 extern "C"
15568 # endif
15569 int F77_DUMMY_MAIN() { return 1; }
15570 #endif
15572 main ()
15575 char *name;
15576 struct hostent *he;
15577 char buffer[2048];
15578 int buflen = 2048;
15579 int h_errnop;
15581 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
15584 return 0;
15586 _ACEOF
15587 rm -f conftest.$ac_objext
15588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15589 (eval $ac_compile) 2>&5
15590 ac_status=$?
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); } &&
15593 { ac_try='test -s conftest.$ac_objext'
15594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595 (eval $ac_try) 2>&5
15596 ac_status=$?
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; }; then
15600 cat >>confdefs.h <<\_ACEOF
15601 #define HAVE_GETHOSTBYNAME_R 1
15602 _ACEOF
15605 cat >>confdefs.h <<\_ACEOF
15606 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
15607 _ACEOF
15609 echo "$as_me:$LINENO: result: yes" >&5
15610 echo "${ECHO_T}yes" >&6
15612 else
15613 echo "$as_me: failed program was:" >&5
15614 cat conftest.$ac_ext >&5
15616 echo "$as_me:$LINENO: result: no" >&5
15617 echo "${ECHO_T}no" >&6
15618 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
15619 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
15620 cat >conftest.$ac_ext <<_ACEOF
15621 #line $LINENO "configure"
15622 #include "confdefs.h"
15624 # include <netdb.h>
15626 #ifdef F77_DUMMY_MAIN
15627 # ifdef __cplusplus
15628 extern "C"
15629 # endif
15630 int F77_DUMMY_MAIN() { return 1; }
15631 #endif
15633 main ()
15636 char *name;
15637 struct hostent *he;
15638 struct hostent_data data;
15640 (void) gethostbyname_r(name, he, &data);
15643 return 0;
15645 _ACEOF
15646 rm -f conftest.$ac_objext
15647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15648 (eval $ac_compile) 2>&5
15649 ac_status=$?
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); } &&
15652 { ac_try='test -s conftest.$ac_objext'
15653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15654 (eval $ac_try) 2>&5
15655 ac_status=$?
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); }; }; then
15659 cat >>confdefs.h <<\_ACEOF
15660 #define HAVE_GETHOSTBYNAME_R 1
15661 _ACEOF
15664 cat >>confdefs.h <<\_ACEOF
15665 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
15666 _ACEOF
15668 echo "$as_me:$LINENO: result: yes" >&5
15669 echo "${ECHO_T}yes" >&6
15671 else
15672 echo "$as_me: failed program was:" >&5
15673 cat conftest.$ac_ext >&5
15675 echo "$as_me:$LINENO: result: no" >&5
15676 echo "${ECHO_T}no" >&6
15679 rm -f conftest.$ac_objext conftest.$ac_ext
15682 rm -f conftest.$ac_objext conftest.$ac_ext
15685 rm -f conftest.$ac_objext conftest.$ac_ext
15686 CFLAGS=$OLD_CFLAGS
15688 else
15691 for ac_func in gethostbyname
15693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15694 echo "$as_me:$LINENO: checking for $ac_func" >&5
15695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15696 if eval "test \"\${$as_ac_var+set}\" = set"; then
15697 echo $ECHO_N "(cached) $ECHO_C" >&6
15698 else
15699 cat >conftest.$ac_ext <<_ACEOF
15700 #line $LINENO "configure"
15701 #include "confdefs.h"
15702 /* System header to define __stub macros and hopefully few prototypes,
15703 which can conflict with char $ac_func (); below. */
15704 #include <assert.h>
15705 /* Override any gcc2 internal prototype to avoid an error. */
15706 #ifdef __cplusplus
15707 extern "C"
15708 #endif
15709 /* We use char because int might match the return type of a gcc2
15710 builtin and then its argument prototype would still apply. */
15711 char $ac_func ();
15712 char (*f) ();
15714 #ifdef F77_DUMMY_MAIN
15715 # ifdef __cplusplus
15716 extern "C"
15717 # endif
15718 int F77_DUMMY_MAIN() { return 1; }
15719 #endif
15721 main ()
15723 /* The GNU C library defines this for functions which it implements
15724 to always fail with ENOSYS. Some functions are actually named
15725 something starting with __ and the normal name is an alias. */
15726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15727 choke me
15728 #else
15729 f = $ac_func;
15730 #endif
15733 return 0;
15735 _ACEOF
15736 rm -f conftest.$ac_objext conftest$ac_exeext
15737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15738 (eval $ac_link) 2>&5
15739 ac_status=$?
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); } &&
15742 { ac_try='test -s conftest$ac_exeext'
15743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744 (eval $ac_try) 2>&5
15745 ac_status=$?
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; }; then
15748 eval "$as_ac_var=yes"
15749 else
15750 echo "$as_me: failed program was:" >&5
15751 cat conftest.$ac_ext >&5
15752 eval "$as_ac_var=no"
15754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15758 if test `eval echo '${'$as_ac_var'}'` = yes; then
15759 cat >>confdefs.h <<_ACEOF
15760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15761 _ACEOF
15764 done
15775 # checks for system services
15776 # (none yet)
15778 # Linux requires this for correct f.p. operations
15779 echo "$as_me:$LINENO: checking for __fpu_control" >&5
15780 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
15781 if test "${ac_cv_func___fpu_control+set}" = set; then
15782 echo $ECHO_N "(cached) $ECHO_C" >&6
15783 else
15784 cat >conftest.$ac_ext <<_ACEOF
15785 #line $LINENO "configure"
15786 #include "confdefs.h"
15787 /* System header to define __stub macros and hopefully few prototypes,
15788 which can conflict with char __fpu_control (); below. */
15789 #include <assert.h>
15790 /* Override any gcc2 internal prototype to avoid an error. */
15791 #ifdef __cplusplus
15792 extern "C"
15793 #endif
15794 /* We use char because int might match the return type of a gcc2
15795 builtin and then its argument prototype would still apply. */
15796 char __fpu_control ();
15797 char (*f) ();
15799 #ifdef F77_DUMMY_MAIN
15800 # ifdef __cplusplus
15801 extern "C"
15802 # endif
15803 int F77_DUMMY_MAIN() { return 1; }
15804 #endif
15806 main ()
15808 /* The GNU C library defines this for functions which it implements
15809 to always fail with ENOSYS. Some functions are actually named
15810 something starting with __ and the normal name is an alias. */
15811 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
15812 choke me
15813 #else
15814 f = __fpu_control;
15815 #endif
15818 return 0;
15820 _ACEOF
15821 rm -f conftest.$ac_objext conftest$ac_exeext
15822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15823 (eval $ac_link) 2>&5
15824 ac_status=$?
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); } &&
15827 { ac_try='test -s conftest$ac_exeext'
15828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15829 (eval $ac_try) 2>&5
15830 ac_status=$?
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); }; }; then
15833 ac_cv_func___fpu_control=yes
15834 else
15835 echo "$as_me: failed program was:" >&5
15836 cat conftest.$ac_ext >&5
15837 ac_cv_func___fpu_control=no
15839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15841 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
15842 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
15843 if test $ac_cv_func___fpu_control = yes; then
15845 else
15847 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
15848 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
15849 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
15850 echo $ECHO_N "(cached) $ECHO_C" >&6
15851 else
15852 ac_check_lib_save_LIBS=$LIBS
15853 LIBS="-lieee $LIBS"
15854 cat >conftest.$ac_ext <<_ACEOF
15855 #line $LINENO "configure"
15856 #include "confdefs.h"
15858 /* Override any gcc2 internal prototype to avoid an error. */
15859 #ifdef __cplusplus
15860 extern "C"
15861 #endif
15862 /* We use char because int might match the return type of a gcc2
15863 builtin and then its argument prototype would still apply. */
15864 char __fpu_control ();
15865 #ifdef F77_DUMMY_MAIN
15866 # ifdef __cplusplus
15867 extern "C"
15868 # endif
15869 int F77_DUMMY_MAIN() { return 1; }
15870 #endif
15872 main ()
15874 __fpu_control ();
15876 return 0;
15878 _ACEOF
15879 rm -f conftest.$ac_objext conftest$ac_exeext
15880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15881 (eval $ac_link) 2>&5
15882 ac_status=$?
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } &&
15885 { ac_try='test -s conftest$ac_exeext'
15886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887 (eval $ac_try) 2>&5
15888 ac_status=$?
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); }; }; then
15891 ac_cv_lib_ieee___fpu_control=yes
15892 else
15893 echo "$as_me: failed program was:" >&5
15894 cat conftest.$ac_ext >&5
15895 ac_cv_lib_ieee___fpu_control=no
15897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15898 LIBS=$ac_check_lib_save_LIBS
15900 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
15901 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
15902 if test $ac_cv_lib_ieee___fpu_control = yes; then
15903 cat >>confdefs.h <<_ACEOF
15904 #define HAVE_LIBIEEE 1
15905 _ACEOF
15907 LIBS="-lieee $LIBS"
15915 # Check for --with-fpectl
15916 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
15917 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
15919 # Check whether --with-fpectl or --without-fpectl was given.
15920 if test "${with_fpectl+set}" = set; then
15921 withval="$with_fpectl"
15923 if test "$withval" != no
15924 then
15926 cat >>confdefs.h <<\_ACEOF
15927 #define WANT_SIGFPE_HANDLER 1
15928 _ACEOF
15930 echo "$as_me:$LINENO: result: yes" >&5
15931 echo "${ECHO_T}yes" >&6
15932 else echo "$as_me:$LINENO: result: no" >&5
15933 echo "${ECHO_T}no" >&6
15935 else
15936 echo "$as_me:$LINENO: result: no" >&5
15937 echo "${ECHO_T}no" >&6
15940 # check for --with-libm=...
15942 case $ac_sys_system in
15943 Darwin) ;;
15944 BeOS) ;;
15945 *) LIBM=-lm
15946 esac
15947 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
15948 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
15950 # Check whether --with-libm or --without-libm was given.
15951 if test "${with_libm+set}" = set; then
15952 withval="$with_libm"
15954 if test "$withval" = no
15955 then LIBM=
15956 echo "$as_me:$LINENO: result: force LIBM empty" >&5
15957 echo "${ECHO_T}force LIBM empty" >&6
15958 elif test "$withval" != yes
15959 then LIBM=$withval
15960 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
15961 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
15962 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
15963 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
15964 { (exit 1); exit 1; }; }
15966 else
15967 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
15968 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
15971 # check for --with-libc=...
15973 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
15974 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
15976 # Check whether --with-libc or --without-libc was given.
15977 if test "${with_libc+set}" = set; then
15978 withval="$with_libc"
15980 if test "$withval" = no
15981 then LIBC=
15982 echo "$as_me:$LINENO: result: force LIBC empty" >&5
15983 echo "${ECHO_T}force LIBC empty" >&6
15984 elif test "$withval" != yes
15985 then LIBC=$withval
15986 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
15987 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
15988 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
15989 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
15990 { (exit 1); exit 1; }; }
15992 else
15993 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
15994 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
15997 # check for hypot() in math library
15998 LIBS_SAVE=$LIBS
15999 LIBS="$LIBS $LIBM"
16001 for ac_func in hypot
16003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16004 echo "$as_me:$LINENO: checking for $ac_func" >&5
16005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16006 if eval "test \"\${$as_ac_var+set}\" = set"; then
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16008 else
16009 cat >conftest.$ac_ext <<_ACEOF
16010 #line $LINENO "configure"
16011 #include "confdefs.h"
16012 /* System header to define __stub macros and hopefully few prototypes,
16013 which can conflict with char $ac_func (); below. */
16014 #include <assert.h>
16015 /* Override any gcc2 internal prototype to avoid an error. */
16016 #ifdef __cplusplus
16017 extern "C"
16018 #endif
16019 /* We use char because int might match the return type of a gcc2
16020 builtin and then its argument prototype would still apply. */
16021 char $ac_func ();
16022 char (*f) ();
16024 #ifdef F77_DUMMY_MAIN
16025 # ifdef __cplusplus
16026 extern "C"
16027 # endif
16028 int F77_DUMMY_MAIN() { return 1; }
16029 #endif
16031 main ()
16033 /* The GNU C library defines this for functions which it implements
16034 to always fail with ENOSYS. Some functions are actually named
16035 something starting with __ and the normal name is an alias. */
16036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16037 choke me
16038 #else
16039 f = $ac_func;
16040 #endif
16043 return 0;
16045 _ACEOF
16046 rm -f conftest.$ac_objext conftest$ac_exeext
16047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16048 (eval $ac_link) 2>&5
16049 ac_status=$?
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } &&
16052 { ac_try='test -s conftest$ac_exeext'
16053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054 (eval $ac_try) 2>&5
16055 ac_status=$?
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
16058 eval "$as_ac_var=yes"
16059 else
16060 echo "$as_me: failed program was:" >&5
16061 cat conftest.$ac_ext >&5
16062 eval "$as_ac_var=no"
16064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16067 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16068 if test `eval echo '${'$as_ac_var'}'` = yes; then
16069 cat >>confdefs.h <<_ACEOF
16070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16071 _ACEOF
16073 else
16074 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16076 done
16079 LIBS=$LIBS_SAVE
16081 # check for wchar.h
16082 if test "${ac_cv_header_wchar_h+set}" = set; then
16083 echo "$as_me:$LINENO: checking for wchar.h" >&5
16084 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
16085 if test "${ac_cv_header_wchar_h+set}" = set; then
16086 echo $ECHO_N "(cached) $ECHO_C" >&6
16088 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
16089 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
16090 else
16091 # Is the header compilable?
16092 echo "$as_me:$LINENO: checking wchar.h usability" >&5
16093 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
16094 cat >conftest.$ac_ext <<_ACEOF
16095 #line $LINENO "configure"
16096 #include "confdefs.h"
16097 $ac_includes_default
16098 #include <wchar.h>
16099 _ACEOF
16100 rm -f conftest.$ac_objext
16101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16102 (eval $ac_compile) 2>&5
16103 ac_status=$?
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); } &&
16106 { ac_try='test -s conftest.$ac_objext'
16107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108 (eval $ac_try) 2>&5
16109 ac_status=$?
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; }; then
16112 ac_header_compiler=yes
16113 else
16114 echo "$as_me: failed program was:" >&5
16115 cat conftest.$ac_ext >&5
16116 ac_header_compiler=no
16118 rm -f conftest.$ac_objext conftest.$ac_ext
16119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16120 echo "${ECHO_T}$ac_header_compiler" >&6
16122 # Is the header present?
16123 echo "$as_me:$LINENO: checking wchar.h presence" >&5
16124 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
16125 cat >conftest.$ac_ext <<_ACEOF
16126 #line $LINENO "configure"
16127 #include "confdefs.h"
16128 #include <wchar.h>
16129 _ACEOF
16130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16132 ac_status=$?
16133 egrep -v '^ *\+' conftest.er1 >conftest.err
16134 rm -f conftest.er1
16135 cat conftest.err >&5
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); } >/dev/null; then
16138 if test -s conftest.err; then
16139 ac_cpp_err=$ac_c_preproc_warn_flag
16140 else
16141 ac_cpp_err=
16143 else
16144 ac_cpp_err=yes
16146 if test -z "$ac_cpp_err"; then
16147 ac_header_preproc=yes
16148 else
16149 echo "$as_me: failed program was:" >&5
16150 cat conftest.$ac_ext >&5
16151 ac_header_preproc=no
16153 rm -f conftest.err conftest.$ac_ext
16154 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16155 echo "${ECHO_T}$ac_header_preproc" >&6
16157 # So? What about this header?
16158 case $ac_header_compiler:$ac_header_preproc in
16159 yes:no )
16160 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
16161 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16162 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
16163 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};;
16164 no:yes )
16165 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
16166 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
16167 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
16168 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
16169 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
16170 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};;
16171 esac
16172 echo "$as_me:$LINENO: checking for wchar.h" >&5
16173 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
16174 if test "${ac_cv_header_wchar_h+set}" = set; then
16175 echo $ECHO_N "(cached) $ECHO_C" >&6
16176 else
16177 ac_cv_header_wchar_h=$ac_header_preproc
16179 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
16180 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
16183 if test $ac_cv_header_wchar_h = yes; then
16186 cat >>confdefs.h <<\_ACEOF
16187 #define HAVE_WCHAR_H 1
16188 _ACEOF
16190 wchar_h="yes"
16192 else
16193 wchar_h="no"
16199 # determine wchar_t size
16200 if test "$wchar_h" = yes
16201 then
16202 echo "$as_me:$LINENO: checking for wchar_t" >&5
16203 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
16204 if test "${ac_cv_type_wchar_t+set}" = set; then
16205 echo $ECHO_N "(cached) $ECHO_C" >&6
16206 else
16207 cat >conftest.$ac_ext <<_ACEOF
16208 #line $LINENO "configure"
16209 #include "confdefs.h"
16210 #include <wchar.h>
16212 #ifdef F77_DUMMY_MAIN
16213 # ifdef __cplusplus
16214 extern "C"
16215 # endif
16216 int F77_DUMMY_MAIN() { return 1; }
16217 #endif
16219 main ()
16221 if ((wchar_t *) 0)
16222 return 0;
16223 if (sizeof (wchar_t))
16224 return 0;
16226 return 0;
16228 _ACEOF
16229 rm -f conftest.$ac_objext
16230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16231 (eval $ac_compile) 2>&5
16232 ac_status=$?
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); } &&
16235 { ac_try='test -s conftest.$ac_objext'
16236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16237 (eval $ac_try) 2>&5
16238 ac_status=$?
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); }; }; then
16241 ac_cv_type_wchar_t=yes
16242 else
16243 echo "$as_me: failed program was:" >&5
16244 cat conftest.$ac_ext >&5
16245 ac_cv_type_wchar_t=no
16247 rm -f conftest.$ac_objext conftest.$ac_ext
16249 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
16250 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
16252 echo "$as_me:$LINENO: checking size of wchar_t" >&5
16253 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
16254 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
16255 echo $ECHO_N "(cached) $ECHO_C" >&6
16256 else
16257 if test "$ac_cv_type_wchar_t" = yes; then
16258 # The cast to unsigned long works around a bug in the HP C Compiler
16259 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16260 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16261 # This bug is HP SR number 8606223364.
16262 if test "$cross_compiling" = yes; then
16263 # Depending upon the size, compute the lo and hi bounds.
16264 cat >conftest.$ac_ext <<_ACEOF
16265 #line $LINENO "configure"
16266 #include "confdefs.h"
16267 #include <wchar.h>
16269 #ifdef F77_DUMMY_MAIN
16270 # ifdef __cplusplus
16271 extern "C"
16272 # endif
16273 int F77_DUMMY_MAIN() { return 1; }
16274 #endif
16276 main ()
16278 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
16279 test_array [0] = 0
16282 return 0;
16284 _ACEOF
16285 rm -f conftest.$ac_objext
16286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16287 (eval $ac_compile) 2>&5
16288 ac_status=$?
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); } &&
16291 { ac_try='test -s conftest.$ac_objext'
16292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16293 (eval $ac_try) 2>&5
16294 ac_status=$?
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); }; }; then
16297 ac_lo=0 ac_mid=0
16298 while :; do
16299 cat >conftest.$ac_ext <<_ACEOF
16300 #line $LINENO "configure"
16301 #include "confdefs.h"
16302 #include <wchar.h>
16304 #ifdef F77_DUMMY_MAIN
16305 # ifdef __cplusplus
16306 extern "C"
16307 # endif
16308 int F77_DUMMY_MAIN() { return 1; }
16309 #endif
16311 main ()
16313 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
16314 test_array [0] = 0
16317 return 0;
16319 _ACEOF
16320 rm -f conftest.$ac_objext
16321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16322 (eval $ac_compile) 2>&5
16323 ac_status=$?
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); } &&
16326 { ac_try='test -s conftest.$ac_objext'
16327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16328 (eval $ac_try) 2>&5
16329 ac_status=$?
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); }; }; then
16332 ac_hi=$ac_mid; break
16333 else
16334 echo "$as_me: failed program was:" >&5
16335 cat conftest.$ac_ext >&5
16336 ac_lo=`expr $ac_mid + 1`
16337 if test $ac_lo -le $ac_mid; then
16338 ac_lo= ac_hi=
16339 break
16341 ac_mid=`expr 2 '*' $ac_mid + 1`
16343 rm -f conftest.$ac_objext conftest.$ac_ext
16344 done
16345 else
16346 echo "$as_me: failed program was:" >&5
16347 cat conftest.$ac_ext >&5
16348 cat >conftest.$ac_ext <<_ACEOF
16349 #line $LINENO "configure"
16350 #include "confdefs.h"
16351 #include <wchar.h>
16353 #ifdef F77_DUMMY_MAIN
16354 # ifdef __cplusplus
16355 extern "C"
16356 # endif
16357 int F77_DUMMY_MAIN() { return 1; }
16358 #endif
16360 main ()
16362 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
16363 test_array [0] = 0
16366 return 0;
16368 _ACEOF
16369 rm -f conftest.$ac_objext
16370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16371 (eval $ac_compile) 2>&5
16372 ac_status=$?
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); } &&
16375 { ac_try='test -s conftest.$ac_objext'
16376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377 (eval $ac_try) 2>&5
16378 ac_status=$?
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; }; then
16381 ac_hi=-1 ac_mid=-1
16382 while :; do
16383 cat >conftest.$ac_ext <<_ACEOF
16384 #line $LINENO "configure"
16385 #include "confdefs.h"
16386 #include <wchar.h>
16388 #ifdef F77_DUMMY_MAIN
16389 # ifdef __cplusplus
16390 extern "C"
16391 # endif
16392 int F77_DUMMY_MAIN() { return 1; }
16393 #endif
16395 main ()
16397 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
16398 test_array [0] = 0
16401 return 0;
16403 _ACEOF
16404 rm -f conftest.$ac_objext
16405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16406 (eval $ac_compile) 2>&5
16407 ac_status=$?
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } &&
16410 { ac_try='test -s conftest.$ac_objext'
16411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16412 (eval $ac_try) 2>&5
16413 ac_status=$?
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); }; }; then
16416 ac_lo=$ac_mid; break
16417 else
16418 echo "$as_me: failed program was:" >&5
16419 cat conftest.$ac_ext >&5
16420 ac_hi=`expr '(' $ac_mid ')' - 1`
16421 if test $ac_mid -le $ac_hi; then
16422 ac_lo= ac_hi=
16423 break
16425 ac_mid=`expr 2 '*' $ac_mid`
16427 rm -f conftest.$ac_objext conftest.$ac_ext
16428 done
16429 else
16430 echo "$as_me: failed program was:" >&5
16431 cat conftest.$ac_ext >&5
16432 ac_lo= ac_hi=
16434 rm -f conftest.$ac_objext conftest.$ac_ext
16436 rm -f conftest.$ac_objext conftest.$ac_ext
16437 # Binary search between lo and hi bounds.
16438 while test "x$ac_lo" != "x$ac_hi"; do
16439 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16440 cat >conftest.$ac_ext <<_ACEOF
16441 #line $LINENO "configure"
16442 #include "confdefs.h"
16443 #include <wchar.h>
16445 #ifdef F77_DUMMY_MAIN
16446 # ifdef __cplusplus
16447 extern "C"
16448 # endif
16449 int F77_DUMMY_MAIN() { return 1; }
16450 #endif
16452 main ()
16454 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
16455 test_array [0] = 0
16458 return 0;
16460 _ACEOF
16461 rm -f conftest.$ac_objext
16462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16463 (eval $ac_compile) 2>&5
16464 ac_status=$?
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); } &&
16467 { ac_try='test -s conftest.$ac_objext'
16468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16469 (eval $ac_try) 2>&5
16470 ac_status=$?
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); }; }; then
16473 ac_hi=$ac_mid
16474 else
16475 echo "$as_me: failed program was:" >&5
16476 cat conftest.$ac_ext >&5
16477 ac_lo=`expr '(' $ac_mid ')' + 1`
16479 rm -f conftest.$ac_objext conftest.$ac_ext
16480 done
16481 case $ac_lo in
16482 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
16483 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5
16484 echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;}
16485 { (exit 1); exit 1; }; } ;;
16486 esac
16487 else
16488 if test "$cross_compiling" = yes; then
16489 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16490 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16491 { (exit 1); exit 1; }; }
16492 else
16493 cat >conftest.$ac_ext <<_ACEOF
16494 #line $LINENO "configure"
16495 #include "confdefs.h"
16496 #include <wchar.h>
16498 long longval () { return (long) (sizeof (wchar_t)); }
16499 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
16500 #include <stdio.h>
16501 #include <stdlib.h>
16502 #ifdef F77_DUMMY_MAIN
16503 # ifdef __cplusplus
16504 extern "C"
16505 # endif
16506 int F77_DUMMY_MAIN() { return 1; }
16507 #endif
16509 main ()
16512 FILE *f = fopen ("conftest.val", "w");
16513 if (! f)
16514 exit (1);
16515 if (((long) (sizeof (wchar_t))) < 0)
16517 long i = longval ();
16518 if (i != ((long) (sizeof (wchar_t))))
16519 exit (1);
16520 fprintf (f, "%ld\n", i);
16522 else
16524 unsigned long i = ulongval ();
16525 if (i != ((long) (sizeof (wchar_t))))
16526 exit (1);
16527 fprintf (f, "%lu\n", i);
16529 exit (ferror (f) || fclose (f) != 0);
16532 return 0;
16534 _ACEOF
16535 rm -f conftest$ac_exeext
16536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16537 (eval $ac_link) 2>&5
16538 ac_status=$?
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16542 (eval $ac_try) 2>&5
16543 ac_status=$?
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); }; }; then
16546 ac_cv_sizeof_wchar_t=`cat conftest.val`
16547 else
16548 echo "$as_me: program exited with status $ac_status" >&5
16549 echo "$as_me: failed program was:" >&5
16550 cat conftest.$ac_ext >&5
16551 ( exit $ac_status )
16552 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5
16553 echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;}
16554 { (exit 1); exit 1; }; }
16556 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16559 rm -f conftest.val
16560 else
16561 ac_cv_sizeof_wchar_t=0
16564 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
16565 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
16566 cat >>confdefs.h <<_ACEOF
16567 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
16568 _ACEOF
16573 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
16574 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
16575 # Check whether --enable-unicode or --disable-unicode was given.
16576 if test "${enable_unicode+set}" = set; then
16577 enableval="$enable_unicode"
16579 else
16580 enable_unicode=yes
16583 if test $enable_unicode = yes
16584 then
16585 # Without any arguments, Py_UNICODE defaults to two-byte mode
16586 enable_unicode="ucs2"
16591 case "$enable_unicode" in
16592 ucs2) unicode_size="2"
16593 cat >>confdefs.h <<\_ACEOF
16594 #define Py_UNICODE_SIZE 2
16595 _ACEOF
16598 ucs4) unicode_size="4"
16599 cat >>confdefs.h <<\_ACEOF
16600 #define Py_UNICODE_SIZE 4
16601 _ACEOF
16604 esac
16610 if test "$enable_unicode" = "no"
16611 then
16612 UNICODE_OBJS=""
16613 echo "$as_me:$LINENO: result: not used" >&5
16614 echo "${ECHO_T}not used" >&6
16615 else
16616 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
16618 cat >>confdefs.h <<\_ACEOF
16619 #define Py_USING_UNICODE 1
16620 _ACEOF
16622 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t"
16623 then
16624 PY_UNICODE_TYPE="wchar_t"
16626 cat >>confdefs.h <<\_ACEOF
16627 #define HAVE_USABLE_WCHAR_T 1
16628 _ACEOF
16630 cat >>confdefs.h <<\_ACEOF
16631 #define PY_UNICODE_TYPE wchar_t
16632 _ACEOF
16634 elif test "$ac_cv_sizeof_short" = "$unicode_size"
16635 then
16636 PY_UNICODE_TYPE="unsigned short"
16637 cat >>confdefs.h <<\_ACEOF
16638 #define PY_UNICODE_TYPE unsigned short
16639 _ACEOF
16641 elif test "$ac_cv_sizeof_long" = "$unicode_size"
16642 then
16643 PY_UNICODE_TYPE="unsigned long"
16644 cat >>confdefs.h <<\_ACEOF
16645 #define PY_UNICODE_TYPE unsigned long
16646 _ACEOF
16648 else
16649 PY_UNICODE_TYPE="no type found"
16651 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
16652 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
16655 # check for endianness
16656 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16657 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16658 if test "${ac_cv_c_bigendian+set}" = set; then
16659 echo $ECHO_N "(cached) $ECHO_C" >&6
16660 else
16661 # See if sys/param.h defines the BYTE_ORDER macro.
16662 cat >conftest.$ac_ext <<_ACEOF
16663 #line $LINENO "configure"
16664 #include "confdefs.h"
16665 #include <sys/types.h>
16666 #include <sys/param.h>
16668 #ifdef F77_DUMMY_MAIN
16669 # ifdef __cplusplus
16670 extern "C"
16671 # endif
16672 int F77_DUMMY_MAIN() { return 1; }
16673 #endif
16675 main ()
16677 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16678 bogus endian macros
16679 #endif
16682 return 0;
16684 _ACEOF
16685 rm -f conftest.$ac_objext
16686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16687 (eval $ac_compile) 2>&5
16688 ac_status=$?
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); } &&
16691 { ac_try='test -s conftest.$ac_objext'
16692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693 (eval $ac_try) 2>&5
16694 ac_status=$?
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; }; then
16697 # It does; now see whether it defined to BIG_ENDIAN or not.
16698 cat >conftest.$ac_ext <<_ACEOF
16699 #line $LINENO "configure"
16700 #include "confdefs.h"
16701 #include <sys/types.h>
16702 #include <sys/param.h>
16704 #ifdef F77_DUMMY_MAIN
16705 # ifdef __cplusplus
16706 extern "C"
16707 # endif
16708 int F77_DUMMY_MAIN() { return 1; }
16709 #endif
16711 main ()
16713 #if BYTE_ORDER != BIG_ENDIAN
16714 not big endian
16715 #endif
16718 return 0;
16720 _ACEOF
16721 rm -f conftest.$ac_objext
16722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16723 (eval $ac_compile) 2>&5
16724 ac_status=$?
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); } &&
16727 { ac_try='test -s conftest.$ac_objext'
16728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16729 (eval $ac_try) 2>&5
16730 ac_status=$?
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); }; }; then
16733 ac_cv_c_bigendian=yes
16734 else
16735 echo "$as_me: failed program was:" >&5
16736 cat conftest.$ac_ext >&5
16737 ac_cv_c_bigendian=no
16739 rm -f conftest.$ac_objext conftest.$ac_ext
16740 else
16741 echo "$as_me: failed program was:" >&5
16742 cat conftest.$ac_ext >&5
16743 # It does not; compile a test program.
16744 if test "$cross_compiling" = yes; then
16745 # try to guess the endianess by grep'ing values into an object file
16746 ac_cv_c_bigendian=unknown
16747 cat >conftest.$ac_ext <<_ACEOF
16748 #line $LINENO "configure"
16749 #include "confdefs.h"
16750 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16751 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16752 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
16753 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16754 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16755 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
16756 #ifdef F77_DUMMY_MAIN
16757 # ifdef __cplusplus
16758 extern "C"
16759 # endif
16760 int F77_DUMMY_MAIN() { return 1; }
16761 #endif
16763 main ()
16765 _ascii (); _ebcdic ();
16767 return 0;
16769 _ACEOF
16770 rm -f conftest.$ac_objext
16771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16772 (eval $ac_compile) 2>&5
16773 ac_status=$?
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); } &&
16776 { ac_try='test -s conftest.$ac_objext'
16777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16778 (eval $ac_try) 2>&5
16779 ac_status=$?
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); }; }; then
16782 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
16783 ac_cv_c_bigendian=yes
16785 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16786 if test "$ac_cv_c_bigendian" = unknown; then
16787 ac_cv_c_bigendian=no
16788 else
16789 # finding both strings is unlikely to happen, but who knows?
16790 ac_cv_c_bigendian=unknown
16793 else
16794 echo "$as_me: failed program was:" >&5
16795 cat conftest.$ac_ext >&5
16797 rm -f conftest.$ac_objext conftest.$ac_ext
16798 else
16799 cat >conftest.$ac_ext <<_ACEOF
16800 #line $LINENO "configure"
16801 #include "confdefs.h"
16803 main ()
16805 /* Are we little or big endian? From Harbison&Steele. */
16806 union
16808 long l;
16809 char c[sizeof (long)];
16810 } u;
16811 u.l = 1;
16812 exit (u.c[sizeof (long) - 1] == 1);
16814 _ACEOF
16815 rm -f conftest$ac_exeext
16816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16817 (eval $ac_link) 2>&5
16818 ac_status=$?
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16822 (eval $ac_try) 2>&5
16823 ac_status=$?
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); }; }; then
16826 ac_cv_c_bigendian=no
16827 else
16828 echo "$as_me: program exited with status $ac_status" >&5
16829 echo "$as_me: failed program was:" >&5
16830 cat conftest.$ac_ext >&5
16831 ( exit $ac_status )
16832 ac_cv_c_bigendian=yes
16834 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16837 rm -f conftest.$ac_objext conftest.$ac_ext
16839 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16840 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
16841 case $ac_cv_c_bigendian in
16842 yes)
16844 cat >>confdefs.h <<\_ACEOF
16845 #define WORDS_BIGENDIAN 1
16846 _ACEOF
16851 { { echo "$as_me:$LINENO: error: unknown endianess
16852 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
16853 echo "$as_me: error: unknown endianess
16854 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
16855 { (exit 1); exit 1; }; } ;;
16856 esac
16859 # Check whether right shifting a negative integer extends the sign bit
16860 # or fills with zeros (like the Cray J90, according to Tim Peters).
16861 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
16862 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
16863 if test "${ac_cv_rshift_extends_sign+set}" = set; then
16864 echo $ECHO_N "(cached) $ECHO_C" >&6
16865 else
16867 if test "$cross_compiling" = yes; then
16868 ac_cv_rshift_extends_sign=yes
16869 else
16870 cat >conftest.$ac_ext <<_ACEOF
16871 #line $LINENO "configure"
16872 #include "confdefs.h"
16874 int main()
16876 exit(((-1)>>3 == -1) ? 0 : 1);
16879 _ACEOF
16880 rm -f conftest$ac_exeext
16881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16882 (eval $ac_link) 2>&5
16883 ac_status=$?
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16887 (eval $ac_try) 2>&5
16888 ac_status=$?
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); }; }; then
16891 ac_cv_rshift_extends_sign=yes
16892 else
16893 echo "$as_me: program exited with status $ac_status" >&5
16894 echo "$as_me: failed program was:" >&5
16895 cat conftest.$ac_ext >&5
16896 ( exit $ac_status )
16897 ac_cv_rshift_extends_sign=no
16899 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16903 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
16904 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
16905 if test "$ac_cv_rshift_extends_sign" = no
16906 then
16908 cat >>confdefs.h <<\_ACEOF
16909 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
16910 _ACEOF
16914 # check for getc_unlocked and related locking functions
16915 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
16916 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
16917 if test "${ac_cv_have_getc_unlocked+set}" = set; then
16918 echo $ECHO_N "(cached) $ECHO_C" >&6
16919 else
16921 cat >conftest.$ac_ext <<_ACEOF
16922 #line $LINENO "configure"
16923 #include "confdefs.h"
16924 #include <stdio.h>
16925 #ifdef F77_DUMMY_MAIN
16926 # ifdef __cplusplus
16927 extern "C"
16928 # endif
16929 int F77_DUMMY_MAIN() { return 1; }
16930 #endif
16932 main ()
16935 FILE *f = fopen("/dev/null", "r");
16936 flockfile(f);
16937 getc_unlocked(f);
16938 funlockfile(f);
16941 return 0;
16943 _ACEOF
16944 rm -f conftest.$ac_objext conftest$ac_exeext
16945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16946 (eval $ac_link) 2>&5
16947 ac_status=$?
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); } &&
16950 { ac_try='test -s conftest$ac_exeext'
16951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16952 (eval $ac_try) 2>&5
16953 ac_status=$?
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); }; }; then
16956 ac_cv_have_getc_unlocked=yes
16957 else
16958 echo "$as_me: failed program was:" >&5
16959 cat conftest.$ac_ext >&5
16960 ac_cv_have_getc_unlocked=no
16962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16965 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
16966 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
16967 if test "$ac_cv_have_getc_unlocked" = yes
16968 then
16970 cat >>confdefs.h <<\_ACEOF
16971 #define HAVE_GETC_UNLOCKED 1
16972 _ACEOF
16976 # check for readline 2.2
16977 cat >conftest.$ac_ext <<_ACEOF
16978 #line $LINENO "configure"
16979 #include "confdefs.h"
16980 #include <readline/readline.h>
16981 _ACEOF
16982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16984 ac_status=$?
16985 egrep -v '^ *\+' conftest.er1 >conftest.err
16986 rm -f conftest.er1
16987 cat conftest.err >&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); } >/dev/null; then
16990 if test -s conftest.err; then
16991 ac_cpp_err=$ac_c_preproc_warn_flag
16992 else
16993 ac_cpp_err=
16995 else
16996 ac_cpp_err=yes
16998 if test -z "$ac_cpp_err"; then
16999 have_readline=yes
17000 else
17001 echo "$as_me: failed program was:" >&5
17002 cat conftest.$ac_ext >&5
17003 have_readline=no
17005 rm -f conftest.err conftest.$ac_ext
17006 if test $have_readline = yes
17007 then
17008 cat >conftest.$ac_ext <<_ACEOF
17009 #line $LINENO "configure"
17010 #include "confdefs.h"
17011 #include <readline/readline.h>
17013 _ACEOF
17014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17015 egrep "extern int rl_completion_append_character;" >/dev/null 2>&1; then
17017 cat >>confdefs.h <<\_ACEOF
17018 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
17019 _ACEOF
17022 rm -f conftest*
17026 # check for readline 4.0
17027 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
17028 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
17029 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
17030 echo $ECHO_N "(cached) $ECHO_C" >&6
17031 else
17032 ac_check_lib_save_LIBS=$LIBS
17033 LIBS="-lreadline -ltermcap $LIBS"
17034 cat >conftest.$ac_ext <<_ACEOF
17035 #line $LINENO "configure"
17036 #include "confdefs.h"
17038 /* Override any gcc2 internal prototype to avoid an error. */
17039 #ifdef __cplusplus
17040 extern "C"
17041 #endif
17042 /* We use char because int might match the return type of a gcc2
17043 builtin and then its argument prototype would still apply. */
17044 char rl_pre_input_hook ();
17045 #ifdef F77_DUMMY_MAIN
17046 # ifdef __cplusplus
17047 extern "C"
17048 # endif
17049 int F77_DUMMY_MAIN() { return 1; }
17050 #endif
17052 main ()
17054 rl_pre_input_hook ();
17056 return 0;
17058 _ACEOF
17059 rm -f conftest.$ac_objext conftest$ac_exeext
17060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17061 (eval $ac_link) 2>&5
17062 ac_status=$?
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); } &&
17065 { ac_try='test -s conftest$ac_exeext'
17066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067 (eval $ac_try) 2>&5
17068 ac_status=$?
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; }; then
17071 ac_cv_lib_readline_rl_pre_input_hook=yes
17072 else
17073 echo "$as_me: failed program was:" >&5
17074 cat conftest.$ac_ext >&5
17075 ac_cv_lib_readline_rl_pre_input_hook=no
17077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17078 LIBS=$ac_check_lib_save_LIBS
17080 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
17081 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
17082 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
17084 cat >>confdefs.h <<\_ACEOF
17085 #define HAVE_RL_PRE_INPUT_HOOK 1
17086 _ACEOF
17091 # check for readline 4.2
17092 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
17093 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
17094 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
17095 echo $ECHO_N "(cached) $ECHO_C" >&6
17096 else
17097 ac_check_lib_save_LIBS=$LIBS
17098 LIBS="-lreadline -ltermcap $LIBS"
17099 cat >conftest.$ac_ext <<_ACEOF
17100 #line $LINENO "configure"
17101 #include "confdefs.h"
17103 /* Override any gcc2 internal prototype to avoid an error. */
17104 #ifdef __cplusplus
17105 extern "C"
17106 #endif
17107 /* We use char because int might match the return type of a gcc2
17108 builtin and then its argument prototype would still apply. */
17109 char rl_completion_matches ();
17110 #ifdef F77_DUMMY_MAIN
17111 # ifdef __cplusplus
17112 extern "C"
17113 # endif
17114 int F77_DUMMY_MAIN() { return 1; }
17115 #endif
17117 main ()
17119 rl_completion_matches ();
17121 return 0;
17123 _ACEOF
17124 rm -f conftest.$ac_objext conftest$ac_exeext
17125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17126 (eval $ac_link) 2>&5
17127 ac_status=$?
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } &&
17130 { ac_try='test -s conftest$ac_exeext'
17131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17132 (eval $ac_try) 2>&5
17133 ac_status=$?
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); }; }; then
17136 ac_cv_lib_readline_rl_completion_matches=yes
17137 else
17138 echo "$as_me: failed program was:" >&5
17139 cat conftest.$ac_ext >&5
17140 ac_cv_lib_readline_rl_completion_matches=no
17142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17143 LIBS=$ac_check_lib_save_LIBS
17145 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
17146 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
17147 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
17149 cat >>confdefs.h <<\_ACEOF
17150 #define HAVE_RL_COMPLETION_MATCHES 1
17151 _ACEOF
17156 echo "$as_me:$LINENO: checking for broken nice()" >&5
17157 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
17158 if test "${ac_cv_broken_nice+set}" = set; then
17159 echo $ECHO_N "(cached) $ECHO_C" >&6
17160 else
17162 if test "$cross_compiling" = yes; then
17163 ac_cv_broken_nice=no
17164 else
17165 cat >conftest.$ac_ext <<_ACEOF
17166 #line $LINENO "configure"
17167 #include "confdefs.h"
17169 int main()
17171 int val1 = nice(1);
17172 if (val1 != -1 && val1 == nice(2))
17173 exit(0);
17174 exit(1);
17177 _ACEOF
17178 rm -f conftest$ac_exeext
17179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17180 (eval $ac_link) 2>&5
17181 ac_status=$?
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17185 (eval $ac_try) 2>&5
17186 ac_status=$?
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); }; }; then
17189 ac_cv_broken_nice=yes
17190 else
17191 echo "$as_me: program exited with status $ac_status" >&5
17192 echo "$as_me: failed program was:" >&5
17193 cat conftest.$ac_ext >&5
17194 ( exit $ac_status )
17195 ac_cv_broken_nice=no
17197 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17201 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
17202 echo "${ECHO_T}$ac_cv_broken_nice" >&6
17203 if test "$ac_cv_broken_nice" = yes
17204 then
17206 cat >>confdefs.h <<\_ACEOF
17207 #define HAVE_BROKEN_NICE 1
17208 _ACEOF
17212 # tzset(3) exists and works like we expect it to
17213 echo "$as_me:$LINENO: checking for working tzset()" >&5
17214 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
17215 if test "${ac_cv_working_tzset+set}" = set; then
17216 echo $ECHO_N "(cached) $ECHO_C" >&6
17217 else
17219 if test "$cross_compiling" = yes; then
17220 ac_cv_working_tzset=no
17221 else
17222 cat >conftest.$ac_ext <<_ACEOF
17223 #line $LINENO "configure"
17224 #include "confdefs.h"
17226 #include <stdlib.h>
17227 #include <time.h>
17228 int main()
17230 int gmt_hour;
17231 int eastern_hour;
17232 time_t now;
17233 now = time((time_t*)NULL);
17234 putenv("TZ=UTC+0");
17235 tzset();
17236 gmt_hour = localtime(&now)->tm_hour;
17237 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
17238 tzset();
17239 eastern_hour = localtime(&now)->tm_hour;
17240 if (eastern_hour == gmt_hour)
17241 exit(1);
17242 exit(0);
17245 _ACEOF
17246 rm -f conftest$ac_exeext
17247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17248 (eval $ac_link) 2>&5
17249 ac_status=$?
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253 (eval $ac_try) 2>&5
17254 ac_status=$?
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; }; then
17257 ac_cv_working_tzset=yes
17258 else
17259 echo "$as_me: program exited with status $ac_status" >&5
17260 echo "$as_me: failed program was:" >&5
17261 cat conftest.$ac_ext >&5
17262 ( exit $ac_status )
17263 ac_cv_working_tzset=no
17265 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17269 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
17270 echo "${ECHO_T}$ac_cv_working_tzset" >&6
17271 if test "$ac_cv_working_tzset" = yes
17272 then
17274 cat >>confdefs.h <<\_ACEOF
17275 #define HAVE_WORKING_TZSET 1
17276 _ACEOF
17280 # Look for subsecond timestamps in struct stat
17281 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
17282 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
17283 if test "${ac_cv_stat_tv_nsec+set}" = set; then
17284 echo $ECHO_N "(cached) $ECHO_C" >&6
17285 else
17286 cat >conftest.$ac_ext <<_ACEOF
17287 #line $LINENO "configure"
17288 #include "confdefs.h"
17289 #include <sys/stat.h>
17290 #ifdef F77_DUMMY_MAIN
17291 # ifdef __cplusplus
17292 extern "C"
17293 # endif
17294 int F77_DUMMY_MAIN() { return 1; }
17295 #endif
17297 main ()
17300 struct stat st;
17301 st.st_mtim.tv_nsec = 1;
17304 return 0;
17306 _ACEOF
17307 rm -f conftest.$ac_objext
17308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17309 (eval $ac_compile) 2>&5
17310 ac_status=$?
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); } &&
17313 { ac_try='test -s conftest.$ac_objext'
17314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17315 (eval $ac_try) 2>&5
17316 ac_status=$?
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); }; }; then
17319 ac_cv_stat_tv_nsec=yes
17320 else
17321 echo "$as_me: failed program was:" >&5
17322 cat conftest.$ac_ext >&5
17323 ac_cv_stat_tv_nsec=no
17325 rm -f conftest.$ac_objext conftest.$ac_ext
17328 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
17329 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
17330 if test "$ac_cv_stat_tv_nsec" = yes
17331 then
17333 cat >>confdefs.h <<\_ACEOF
17334 #define HAVE_STAT_TV_NSEC 1
17335 _ACEOF
17339 # On HP/UX 11.0, mvwdelch is a block with a return statement
17340 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
17341 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
17342 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
17343 echo $ECHO_N "(cached) $ECHO_C" >&6
17344 else
17345 cat >conftest.$ac_ext <<_ACEOF
17346 #line $LINENO "configure"
17347 #include "confdefs.h"
17348 #include <curses.h>
17349 #ifdef F77_DUMMY_MAIN
17350 # ifdef __cplusplus
17351 extern "C"
17352 # endif
17353 int F77_DUMMY_MAIN() { return 1; }
17354 #endif
17356 main ()
17359 int rtn;
17360 rtn = mvwdelch(0,0,0);
17363 return 0;
17365 _ACEOF
17366 rm -f conftest.$ac_objext
17367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17368 (eval $ac_compile) 2>&5
17369 ac_status=$?
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } &&
17372 { ac_try='test -s conftest.$ac_objext'
17373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17374 (eval $ac_try) 2>&5
17375 ac_status=$?
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); }; }; then
17378 ac_cv_mvwdelch_is_expression=yes
17379 else
17380 echo "$as_me: failed program was:" >&5
17381 cat conftest.$ac_ext >&5
17382 ac_cv_mvwdelch_is_expression=no
17384 rm -f conftest.$ac_objext conftest.$ac_ext
17387 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
17388 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
17390 if test "$ac_cv_mvwdelch_is_expression" = yes
17391 then
17393 cat >>confdefs.h <<\_ACEOF
17394 #define MVWDELCH_IS_EXPRESSION 1
17395 _ACEOF
17399 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
17400 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
17401 if test "${ac_cv_window_has_flags+set}" = set; then
17402 echo $ECHO_N "(cached) $ECHO_C" >&6
17403 else
17404 cat >conftest.$ac_ext <<_ACEOF
17405 #line $LINENO "configure"
17406 #include "confdefs.h"
17407 #include <curses.h>
17408 #ifdef F77_DUMMY_MAIN
17409 # ifdef __cplusplus
17410 extern "C"
17411 # endif
17412 int F77_DUMMY_MAIN() { return 1; }
17413 #endif
17415 main ()
17418 WINDOW *w;
17419 w->_flags = 0;
17422 return 0;
17424 _ACEOF
17425 rm -f conftest.$ac_objext
17426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17427 (eval $ac_compile) 2>&5
17428 ac_status=$?
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); } &&
17431 { ac_try='test -s conftest.$ac_objext'
17432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17434 ac_status=$?
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
17437 ac_cv_window_has_flags=yes
17438 else
17439 echo "$as_me: failed program was:" >&5
17440 cat conftest.$ac_ext >&5
17441 ac_cv_window_has_flags=no
17443 rm -f conftest.$ac_objext conftest.$ac_ext
17446 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
17447 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
17450 if test "$ac_cv_window_has_flags" = yes
17451 then
17453 cat >>confdefs.h <<\_ACEOF
17454 #define WINDOW_HAS_FLAGS 1
17455 _ACEOF
17459 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
17460 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
17462 if test -e /dev/ptmx
17463 then
17464 echo "$as_me:$LINENO: result: yes" >&5
17465 echo "${ECHO_T}yes" >&6
17467 cat >>confdefs.h <<\_ACEOF
17468 #define HAVE_DEV_PTMX 1
17469 _ACEOF
17471 else
17472 echo "$as_me:$LINENO: result: no" >&5
17473 echo "${ECHO_T}no" >&6
17476 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
17477 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
17479 if test -e /dev/ptc
17480 then
17481 echo "$as_me:$LINENO: result: yes" >&5
17482 echo "${ECHO_T}yes" >&6
17484 cat >>confdefs.h <<\_ACEOF
17485 #define HAVE_DEV_PTC 1
17486 _ACEOF
17488 else
17489 echo "$as_me:$LINENO: result: no" >&5
17490 echo "${ECHO_T}no" >&6
17493 echo "$as_me:$LINENO: checking for socklen_t" >&5
17494 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
17495 if test "${ac_cv_type_socklen_t+set}" = set; then
17496 echo $ECHO_N "(cached) $ECHO_C" >&6
17497 else
17498 cat >conftest.$ac_ext <<_ACEOF
17499 #line $LINENO "configure"
17500 #include "confdefs.h"
17502 #ifdef HAVE_SYS_TYPES_H
17503 #include <sys/types.h>
17504 #endif
17505 #ifdef HAVE_SYS_SOCKET_H
17506 #include <sys/socket.h>
17507 #endif
17510 #ifdef F77_DUMMY_MAIN
17511 # ifdef __cplusplus
17512 extern "C"
17513 # endif
17514 int F77_DUMMY_MAIN() { return 1; }
17515 #endif
17517 main ()
17519 if ((socklen_t *) 0)
17520 return 0;
17521 if (sizeof (socklen_t))
17522 return 0;
17524 return 0;
17526 _ACEOF
17527 rm -f conftest.$ac_objext
17528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17529 (eval $ac_compile) 2>&5
17530 ac_status=$?
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); } &&
17533 { ac_try='test -s conftest.$ac_objext'
17534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17536 ac_status=$?
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; }; then
17539 ac_cv_type_socklen_t=yes
17540 else
17541 echo "$as_me: failed program was:" >&5
17542 cat conftest.$ac_ext >&5
17543 ac_cv_type_socklen_t=no
17545 rm -f conftest.$ac_objext conftest.$ac_ext
17547 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
17548 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
17549 if test $ac_cv_type_socklen_t = yes; then
17551 else
17553 cat >>confdefs.h <<\_ACEOF
17554 #define socklen_t int
17555 _ACEOF
17562 for h in `(cd $srcdir;echo Python/thread_*.h)`
17564 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
17565 done
17568 SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python"
17569 echo "$as_me:$LINENO: checking for build directories" >&5
17570 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
17571 for dir in $SRCDIRS; do
17572 if test ! -d $dir; then
17573 mkdir $dir
17575 done
17576 echo "$as_me:$LINENO: result: done" >&5
17577 echo "${ECHO_T}done" >&6
17579 # generate output files
17580 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
17582 cat >confcache <<\_ACEOF
17583 # This file is a shell script that caches the results of configure
17584 # tests run on this system so they can be shared between configure
17585 # scripts and configure runs, see configure's option --config-cache.
17586 # It is not useful on other systems. If it contains results you don't
17587 # want to keep, you may remove or edit it.
17589 # config.status only pays attention to the cache file if you give it
17590 # the --recheck option to rerun configure.
17592 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17593 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17594 # following values.
17596 _ACEOF
17598 # The following way of writing the cache mishandles newlines in values,
17599 # but we know of no workaround that is simple, portable, and efficient.
17600 # So, don't put newlines in cache variables' values.
17601 # Ultrix sh set writes to stderr and can't be redirected directly,
17602 # and sets the high bit in the cache file unless we assign to the vars.
17604 (set) 2>&1 |
17605 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17606 *ac_space=\ *)
17607 # `set' does not quote correctly, so add quotes (double-quote
17608 # substitution turns \\\\ into \\, and sed turns \\ into \).
17609 sed -n \
17610 "s/'/'\\\\''/g;
17611 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17614 # `set' quotes correctly as required by POSIX, so do not add quotes.
17615 sed -n \
17616 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17618 esac;
17620 sed '
17621 t clear
17622 : clear
17623 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17624 t end
17625 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17626 : end' >>confcache
17627 if cmp -s $cache_file confcache; then :; else
17628 if test -w $cache_file; then
17629 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17630 cat confcache >$cache_file
17631 else
17632 echo "not updating unwritable cache $cache_file"
17635 rm -f confcache
17637 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17638 # Let make expand exec_prefix.
17639 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17641 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17642 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17643 # trailing colons and then remove the whole line if VPATH becomes empty
17644 # (actually we leave an empty line to preserve line numbers).
17645 if test "x$srcdir" = x.; then
17646 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17647 s/:*\$(srcdir):*/:/;
17648 s/:*\${srcdir}:*/:/;
17649 s/:*@srcdir@:*/:/;
17650 s/^\([^=]*=[ ]*\):*/\1/;
17651 s/:*$//;
17652 s/^[^=]*=[ ]*$//;
17656 DEFS=-DHAVE_CONFIG_H
17659 : ${CONFIG_STATUS=./config.status}
17660 ac_clean_files_save=$ac_clean_files
17661 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17662 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17663 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17664 cat >$CONFIG_STATUS <<_ACEOF
17665 #! $SHELL
17666 # Generated by $as_me.
17667 # Run this file to recreate the current configuration.
17668 # Compiler output produced by configure, useful for debugging
17669 # configure, is in config.log if it exists.
17671 debug=false
17672 SHELL=\${CONFIG_SHELL-$SHELL}
17673 _ACEOF
17675 cat >>$CONFIG_STATUS <<\_ACEOF
17677 ## --------------------- ##
17678 ## M4sh Initialization. ##
17679 ## --------------------- ##
17681 # Be Bourne compatible
17682 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17683 emulate sh
17684 NULLCMD=:
17685 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17686 set -o posix
17689 # NLS nuisances.
17690 # Support unset when possible.
17691 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17692 as_unset=unset
17693 else
17694 as_unset=false
17697 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17698 { $as_unset LANG || test "${LANG+set}" != set; } ||
17699 { LANG=C; export LANG; }
17700 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17701 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17702 { LC_ALL=C; export LC_ALL; }
17703 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17704 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17705 { LC_TIME=C; export LC_TIME; }
17706 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17707 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17708 { LC_CTYPE=C; export LC_CTYPE; }
17709 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17710 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17711 { LANGUAGE=C; export LANGUAGE; }
17712 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17713 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17714 { LC_COLLATE=C; export LC_COLLATE; }
17715 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17716 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17717 { LC_NUMERIC=C; export LC_NUMERIC; }
17718 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17719 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17720 { LC_MESSAGES=C; export LC_MESSAGES; }
17723 # Name of the executable.
17724 as_me=`(basename "$0") 2>/dev/null ||
17725 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17726 X"$0" : 'X\(//\)$' \| \
17727 X"$0" : 'X\(/\)$' \| \
17728 . : '\(.\)' 2>/dev/null ||
17729 echo X/"$0" |
17730 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17731 /^X\/\(\/\/\)$/{ s//\1/; q; }
17732 /^X\/\(\/\).*/{ s//\1/; q; }
17733 s/.*/./; q'`
17735 # PATH needs CR, and LINENO needs CR and PATH.
17736 # Avoid depending upon Character Ranges.
17737 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17738 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17739 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17740 as_cr_digits='0123456789'
17741 as_cr_alnum=$as_cr_Letters$as_cr_digits
17743 # The user is always right.
17744 if test "${PATH_SEPARATOR+set}" != set; then
17745 echo "#! /bin/sh" >conftest.sh
17746 echo "exit 0" >>conftest.sh
17747 chmod +x conftest.sh
17748 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17749 PATH_SEPARATOR=';'
17750 else
17751 PATH_SEPARATOR=:
17753 rm -f conftest.sh
17757 as_lineno_1=$LINENO
17758 as_lineno_2=$LINENO
17759 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17760 test "x$as_lineno_1" != "x$as_lineno_2" &&
17761 test "x$as_lineno_3" = "x$as_lineno_2" || {
17762 # Find who we are. Look in the path if we contain no path at all
17763 # relative or not.
17764 case $0 in
17765 *[\\/]* ) as_myself=$0 ;;
17766 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17767 for as_dir in $PATH
17769 IFS=$as_save_IFS
17770 test -z "$as_dir" && as_dir=.
17771 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17772 done
17775 esac
17776 # We did not find ourselves, most probably we were run as `sh COMMAND'
17777 # in which case we are not to be found in the path.
17778 if test "x$as_myself" = x; then
17779 as_myself=$0
17781 if test ! -f "$as_myself"; then
17782 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17783 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17784 { (exit 1); exit 1; }; }
17786 case $CONFIG_SHELL in
17788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17789 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17791 IFS=$as_save_IFS
17792 test -z "$as_dir" && as_dir=.
17793 for as_base in sh bash ksh sh5; do
17794 case $as_dir in
17796 if ("$as_dir/$as_base" -c '
17797 as_lineno_1=$LINENO
17798 as_lineno_2=$LINENO
17799 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17800 test "x$as_lineno_1" != "x$as_lineno_2" &&
17801 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17802 CONFIG_SHELL=$as_dir/$as_base
17803 export CONFIG_SHELL
17804 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17805 fi;;
17806 esac
17807 done
17808 done
17810 esac
17812 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17813 # uniformly replaced by the line number. The first 'sed' inserts a
17814 # line-number line before each line; the second 'sed' does the real
17815 # work. The second script uses 'N' to pair each line-number line
17816 # with the numbered line, and appends trailing '-' during
17817 # substitution so that $LINENO is not a special case at line end.
17818 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17819 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17820 sed '=' <$as_myself |
17821 sed '
17823 s,$,-,
17824 : loop
17825 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17826 t loop
17827 s,-$,,
17828 s,^['$as_cr_digits']*\n,,
17829 ' >$as_me.lineno &&
17830 chmod +x $as_me.lineno ||
17831 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17832 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17833 { (exit 1); exit 1; }; }
17835 # Don't try to exec as it changes $[0], causing all sort of problems
17836 # (the dirname of $[0] is not the place where we might find the
17837 # original and so on. Autoconf is especially sensible to this).
17838 . ./$as_me.lineno
17839 # Exit status is that of the last command.
17840 exit
17844 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17845 *c*,-n*) ECHO_N= ECHO_C='
17846 ' ECHO_T=' ' ;;
17847 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17848 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17849 esac
17851 if expr a : '\(a\)' >/dev/null 2>&1; then
17852 as_expr=expr
17853 else
17854 as_expr=false
17857 rm -f conf$$ conf$$.exe conf$$.file
17858 echo >conf$$.file
17859 if ln -s conf$$.file conf$$ 2>/dev/null; then
17860 # We could just check for DJGPP; but this test a) works b) is more generic
17861 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17862 if test -f conf$$.exe; then
17863 # Don't use ln at all; we don't have any links
17864 as_ln_s='cp -p'
17865 else
17866 as_ln_s='ln -s'
17868 elif ln conf$$.file conf$$ 2>/dev/null; then
17869 as_ln_s=ln
17870 else
17871 as_ln_s='cp -p'
17873 rm -f conf$$ conf$$.exe conf$$.file
17875 as_executable_p="test -f"
17877 # Sed expression to map a string onto a valid CPP name.
17878 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17880 # Sed expression to map a string onto a valid variable name.
17881 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17884 # IFS
17885 # We need space, tab and new line, in precisely that order.
17886 as_nl='
17888 IFS=" $as_nl"
17890 # CDPATH.
17891 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17893 exec 6>&1
17895 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17896 # report actual input values of CONFIG_FILES etc. instead of their
17897 # values after options handling. Logging --version etc. is OK.
17898 exec 5>>config.log
17900 echo
17901 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17902 ## Running $as_me. ##
17903 _ASBOX
17904 } >&5
17905 cat >&5 <<_CSEOF
17907 This file was extended by python $as_me 2.3, which was
17908 generated by GNU Autoconf 2.53. Invocation command line was
17910 CONFIG_FILES = $CONFIG_FILES
17911 CONFIG_HEADERS = $CONFIG_HEADERS
17912 CONFIG_LINKS = $CONFIG_LINKS
17913 CONFIG_COMMANDS = $CONFIG_COMMANDS
17914 $ $0 $@
17916 _CSEOF
17917 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17918 echo >&5
17919 _ACEOF
17921 # Files that config.status was made for.
17922 if test -n "$ac_config_files"; then
17923 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17926 if test -n "$ac_config_headers"; then
17927 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17930 if test -n "$ac_config_links"; then
17931 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17934 if test -n "$ac_config_commands"; then
17935 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17938 cat >>$CONFIG_STATUS <<\_ACEOF
17940 ac_cs_usage="\
17941 \`$as_me' instantiates files from templates according to the
17942 current configuration.
17944 Usage: $0 [OPTIONS] [FILE]...
17946 -h, --help print this help, then exit
17947 -V, --version print version number, then exit
17948 -d, --debug don't remove temporary files
17949 --recheck update $as_me by reconfiguring in the same conditions
17950 --file=FILE[:TEMPLATE]
17951 instantiate the configuration file FILE
17952 --header=FILE[:TEMPLATE]
17953 instantiate the configuration header FILE
17955 Configuration files:
17956 $config_files
17958 Configuration headers:
17959 $config_headers
17961 Report bugs to <bug-autoconf@gnu.org>."
17962 _ACEOF
17964 cat >>$CONFIG_STATUS <<_ACEOF
17965 ac_cs_version="\\
17966 python config.status 2.3
17967 configured by $0, generated by GNU Autoconf 2.53,
17968 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17970 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17971 Free Software Foundation, Inc.
17972 This config.status script is free software; the Free Software Foundation
17973 gives unlimited permission to copy, distribute and modify it."
17974 srcdir=$srcdir
17975 INSTALL="$INSTALL"
17976 _ACEOF
17978 cat >>$CONFIG_STATUS <<\_ACEOF
17979 # If no file are specified by the user, then we need to provide default
17980 # value. By we need to know if files were specified by the user.
17981 ac_need_defaults=:
17982 while test $# != 0
17984 case $1 in
17985 --*=*)
17986 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17987 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17988 shift
17989 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17990 shift
17992 -*);;
17993 *) # This is not an option, so the user has probably given explicit
17994 # arguments.
17995 ac_need_defaults=false;;
17996 esac
17998 case $1 in
17999 # Handling of the options.
18000 _ACEOF
18001 cat >>$CONFIG_STATUS <<_ACEOF
18002 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18003 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18004 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18005 _ACEOF
18006 cat >>$CONFIG_STATUS <<\_ACEOF
18007 --version | --vers* | -V )
18008 echo "$ac_cs_version"; exit 0 ;;
18009 --he | --h)
18010 # Conflict between --help and --header
18011 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18012 Try \`$0 --help' for more information." >&5
18013 echo "$as_me: error: ambiguous option: $1
18014 Try \`$0 --help' for more information." >&2;}
18015 { (exit 1); exit 1; }; };;
18016 --help | --hel | -h )
18017 echo "$ac_cs_usage"; exit 0 ;;
18018 --debug | --d* | -d )
18019 debug=: ;;
18020 --file | --fil | --fi | --f )
18021 shift
18022 CONFIG_FILES="$CONFIG_FILES $1"
18023 ac_need_defaults=false;;
18024 --header | --heade | --head | --hea )
18025 shift
18026 CONFIG_HEADERS="$CONFIG_HEADERS $1"
18027 ac_need_defaults=false;;
18029 # This is an error.
18030 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18031 Try \`$0 --help' for more information." >&5
18032 echo "$as_me: error: unrecognized option: $1
18033 Try \`$0 --help' for more information." >&2;}
18034 { (exit 1); exit 1; }; } ;;
18036 *) ac_config_targets="$ac_config_targets $1" ;;
18038 esac
18039 shift
18040 done
18042 _ACEOF
18048 cat >>$CONFIG_STATUS <<\_ACEOF
18049 for ac_config_target in $ac_config_targets
18051 case "$ac_config_target" in
18052 # Handling of arguments.
18053 "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
18054 "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
18055 "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
18056 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18057 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18058 { (exit 1); exit 1; }; };;
18059 esac
18060 done
18062 # If the user did not use the arguments to specify the items to instantiate,
18063 # then the envvar interface is used. Set only those that are not.
18064 # We use the long form for the default assignment because of an extremely
18065 # bizarre bug on SunOS 4.1.3.
18066 if $ac_need_defaults; then
18067 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18068 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18071 # Create a temporary directory, and hook for its removal unless debugging.
18072 $debug ||
18074 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18075 trap '{ (exit 1); exit 1; }' 1 2 13 15
18078 # Create a (secure) tmp directory for tmp files.
18079 : ${TMPDIR=/tmp}
18081 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18082 test -n "$tmp" && test -d "$tmp"
18083 } ||
18085 tmp=$TMPDIR/cs$$-$RANDOM
18086 (umask 077 && mkdir $tmp)
18087 } ||
18089 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18090 { (exit 1); exit 1; }
18093 _ACEOF
18095 cat >>$CONFIG_STATUS <<_ACEOF
18098 # CONFIG_FILES section.
18101 # No need to generate the scripts if there are no CONFIG_FILES.
18102 # This happens for instance when ./config.status config.h
18103 if test -n "\$CONFIG_FILES"; then
18104 # Protect against being on the right side of a sed subst in config.status.
18105 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18106 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18107 s,@SHELL@,$SHELL,;t t
18108 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18109 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18110 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18111 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18112 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18113 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18114 s,@exec_prefix@,$exec_prefix,;t t
18115 s,@prefix@,$prefix,;t t
18116 s,@program_transform_name@,$program_transform_name,;t t
18117 s,@bindir@,$bindir,;t t
18118 s,@sbindir@,$sbindir,;t t
18119 s,@libexecdir@,$libexecdir,;t t
18120 s,@datadir@,$datadir,;t t
18121 s,@sysconfdir@,$sysconfdir,;t t
18122 s,@sharedstatedir@,$sharedstatedir,;t t
18123 s,@localstatedir@,$localstatedir,;t t
18124 s,@libdir@,$libdir,;t t
18125 s,@includedir@,$includedir,;t t
18126 s,@oldincludedir@,$oldincludedir,;t t
18127 s,@infodir@,$infodir,;t t
18128 s,@mandir@,$mandir,;t t
18129 s,@build_alias@,$build_alias,;t t
18130 s,@host_alias@,$host_alias,;t t
18131 s,@target_alias@,$target_alias,;t t
18132 s,@DEFS@,$DEFS,;t t
18133 s,@ECHO_C@,$ECHO_C,;t t
18134 s,@ECHO_N@,$ECHO_N,;t t
18135 s,@ECHO_T@,$ECHO_T,;t t
18136 s,@LIBS@,$LIBS,;t t
18137 s,@VERSION@,$VERSION,;t t
18138 s,@SOVERSION@,$SOVERSION,;t t
18139 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
18140 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
18141 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
18142 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
18143 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
18144 s,@MACHDEP@,$MACHDEP,;t t
18145 s,@SGI_ABI@,$SGI_ABI,;t t
18146 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
18147 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
18148 s,@CXX@,$CXX,;t t
18149 s,@MAINOBJ@,$MAINOBJ,;t t
18150 s,@EXEEXT@,$EXEEXT,;t t
18151 s,@CC@,$CC,;t t
18152 s,@CFLAGS@,$CFLAGS,;t t
18153 s,@LDFLAGS@,$LDFLAGS,;t t
18154 s,@CPPFLAGS@,$CPPFLAGS,;t t
18155 s,@ac_ct_CC@,$ac_ct_CC,;t t
18156 s,@OBJEXT@,$OBJEXT,;t t
18157 s,@CPP@,$CPP,;t t
18158 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
18159 s,@LIBRARY@,$LIBRARY,;t t
18160 s,@LDLIBRARY@,$LDLIBRARY,;t t
18161 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
18162 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
18163 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
18164 s,@INSTSONAME@,$INSTSONAME,;t t
18165 s,@RUNSHARED@,$RUNSHARED,;t t
18166 s,@LINKCC@,$LINKCC,;t t
18167 s,@RANLIB@,$RANLIB,;t t
18168 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18169 s,@AR@,$AR,;t t
18170 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18171 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18172 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18173 s,@LN@,$LN,;t t
18174 s,@OPT@,$OPT,;t t
18175 s,@BASECFLAGS@,$BASECFLAGS,;t t
18176 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
18177 s,@SO@,$SO,;t t
18178 s,@LDSHARED@,$LDSHARED,;t t
18179 s,@BLDSHARED@,$BLDSHARED,;t t
18180 s,@CCSHARED@,$CCSHARED,;t t
18181 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
18182 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
18183 s,@SHLIBS@,$SHLIBS,;t t
18184 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
18185 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
18186 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
18187 s,@LDLAST@,$LDLAST,;t t
18188 s,@THREADOBJ@,$THREADOBJ,;t t
18189 s,@DLINCLDIR@,$DLINCLDIR,;t t
18190 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
18191 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
18192 s,@TRUE@,$TRUE,;t t
18193 s,@LIBOBJS@,$LIBOBJS,;t t
18194 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
18195 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
18196 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
18197 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
18198 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
18199 s,@LIBM@,$LIBM,;t t
18200 s,@LIBC@,$LIBC,;t t
18201 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
18202 s,@THREADHEADERS@,$THREADHEADERS,;t t
18203 s,@SRCDIRS@,$SRCDIRS,;t t
18204 CEOF
18206 _ACEOF
18208 cat >>$CONFIG_STATUS <<\_ACEOF
18209 # Split the substitutions into bite-sized pieces for seds with
18210 # small command number limits, like on Digital OSF/1 and HP-UX.
18211 ac_max_sed_lines=48
18212 ac_sed_frag=1 # Number of current file.
18213 ac_beg=1 # First line for current file.
18214 ac_end=$ac_max_sed_lines # Line after last line for current file.
18215 ac_more_lines=:
18216 ac_sed_cmds=
18217 while $ac_more_lines; do
18218 if test $ac_beg -gt 1; then
18219 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18220 else
18221 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18223 if test ! -s $tmp/subs.frag; then
18224 ac_more_lines=false
18225 else
18226 # The purpose of the label and of the branching condition is to
18227 # speed up the sed processing (if there are no `@' at all, there
18228 # is no need to browse any of the substitutions).
18229 # These are the two extra sed commands mentioned above.
18230 (echo ':t
18231 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18232 if test -z "$ac_sed_cmds"; then
18233 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18234 else
18235 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18237 ac_sed_frag=`expr $ac_sed_frag + 1`
18238 ac_beg=$ac_end
18239 ac_end=`expr $ac_end + $ac_max_sed_lines`
18241 done
18242 if test -z "$ac_sed_cmds"; then
18243 ac_sed_cmds=cat
18245 fi # test -n "$CONFIG_FILES"
18247 _ACEOF
18248 cat >>$CONFIG_STATUS <<\_ACEOF
18249 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18250 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18251 case $ac_file in
18252 - | *:- | *:-:* ) # input from stdin
18253 cat >$tmp/stdin
18254 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18255 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18256 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18257 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18258 * ) ac_file_in=$ac_file.in ;;
18259 esac
18261 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18262 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18263 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18264 X"$ac_file" : 'X\(//\)[^/]' \| \
18265 X"$ac_file" : 'X\(//\)$' \| \
18266 X"$ac_file" : 'X\(/\)' \| \
18267 . : '\(.\)' 2>/dev/null ||
18268 echo X"$ac_file" |
18269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18270 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18271 /^X\(\/\/\)$/{ s//\1/; q; }
18272 /^X\(\/\).*/{ s//\1/; q; }
18273 s/.*/./; q'`
18274 { case "$ac_dir" in
18275 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18276 *) as_incr_dir=.;;
18277 esac
18278 as_dummy="$ac_dir"
18279 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18280 case $as_mkdir_dir in
18281 # Skip DOS drivespec
18282 ?:) as_incr_dir=$as_mkdir_dir ;;
18284 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18285 test -d "$as_incr_dir" ||
18286 mkdir "$as_incr_dir" ||
18287 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18288 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18289 { (exit 1); exit 1; }; }
18291 esac
18292 done; }
18294 ac_builddir=.
18296 if test "$ac_dir" != .; then
18297 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18298 # A "../" for each directory in $ac_dir_suffix.
18299 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18300 else
18301 ac_dir_suffix= ac_top_builddir=
18304 case $srcdir in
18305 .) # No --srcdir option. We are building in place.
18306 ac_srcdir=.
18307 if test -z "$ac_top_builddir"; then
18308 ac_top_srcdir=.
18309 else
18310 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18311 fi ;;
18312 [\\/]* | ?:[\\/]* ) # Absolute path.
18313 ac_srcdir=$srcdir$ac_dir_suffix;
18314 ac_top_srcdir=$srcdir ;;
18315 *) # Relative path.
18316 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18317 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18318 esac
18319 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18320 # absolute.
18321 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18322 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18323 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18324 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18327 case $INSTALL in
18328 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18329 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18330 esac
18332 if test x"$ac_file" != x-; then
18333 { echo "$as_me:$LINENO: creating $ac_file" >&5
18334 echo "$as_me: creating $ac_file" >&6;}
18335 rm -f "$ac_file"
18337 # Let's still pretend it is `configure' which instantiates (i.e., don't
18338 # use $as_me), people would be surprised to read:
18339 # /* config.h. Generated by config.status. */
18340 if test x"$ac_file" = x-; then
18341 configure_input=
18342 else
18343 configure_input="$ac_file. "
18345 configure_input=$configure_input"Generated from `echo $ac_file_in |
18346 sed 's,.*/,,'` by configure."
18348 # First look for the input files in the build tree, otherwise in the
18349 # src tree.
18350 ac_file_inputs=`IFS=:
18351 for f in $ac_file_in; do
18352 case $f in
18353 -) echo $tmp/stdin ;;
18354 [\\/$]*)
18355 # Absolute (can't be DOS-style, as IFS=:)
18356 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18357 echo "$as_me: error: cannot find input file: $f" >&2;}
18358 { (exit 1); exit 1; }; }
18359 echo $f;;
18360 *) # Relative
18361 if test -f "$f"; then
18362 # Build tree
18363 echo $f
18364 elif test -f "$srcdir/$f"; then
18365 # Source tree
18366 echo $srcdir/$f
18367 else
18368 # /dev/null tree
18369 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18370 echo "$as_me: error: cannot find input file: $f" >&2;}
18371 { (exit 1); exit 1; }; }
18372 fi;;
18373 esac
18374 done` || { (exit 1); exit 1; }
18375 _ACEOF
18376 cat >>$CONFIG_STATUS <<_ACEOF
18377 sed "$ac_vpsub
18378 $extrasub
18379 _ACEOF
18380 cat >>$CONFIG_STATUS <<\_ACEOF
18382 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18383 s,@configure_input@,$configure_input,;t t
18384 s,@srcdir@,$ac_srcdir,;t t
18385 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18386 s,@top_srcdir@,$ac_top_srcdir,;t t
18387 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18388 s,@builddir@,$ac_builddir,;t t
18389 s,@abs_builddir@,$ac_abs_builddir,;t t
18390 s,@top_builddir@,$ac_top_builddir,;t t
18391 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18392 s,@INSTALL@,$ac_INSTALL,;t t
18393 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18394 rm -f $tmp/stdin
18395 if test x"$ac_file" != x-; then
18396 mv $tmp/out $ac_file
18397 else
18398 cat $tmp/out
18399 rm -f $tmp/out
18402 done
18403 _ACEOF
18404 cat >>$CONFIG_STATUS <<\_ACEOF
18407 # CONFIG_HEADER section.
18410 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18411 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18413 # ac_d sets the value in "#define NAME VALUE" lines.
18414 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18415 ac_dB='[ ].*$,\1#\2'
18416 ac_dC=' '
18417 ac_dD=',;t'
18418 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18419 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18420 ac_uB='$,\1#\2define\3'
18421 ac_uC=' '
18422 ac_uD=',;t'
18424 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18425 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18426 case $ac_file in
18427 - | *:- | *:-:* ) # input from stdin
18428 cat >$tmp/stdin
18429 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18430 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18431 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18432 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18433 * ) ac_file_in=$ac_file.in ;;
18434 esac
18436 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18437 echo "$as_me: creating $ac_file" >&6;}
18439 # First look for the input files in the build tree, otherwise in the
18440 # src tree.
18441 ac_file_inputs=`IFS=:
18442 for f in $ac_file_in; do
18443 case $f in
18444 -) echo $tmp/stdin ;;
18445 [\\/$]*)
18446 # Absolute (can't be DOS-style, as IFS=:)
18447 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18448 echo "$as_me: error: cannot find input file: $f" >&2;}
18449 { (exit 1); exit 1; }; }
18450 echo $f;;
18451 *) # Relative
18452 if test -f "$f"; then
18453 # Build tree
18454 echo $f
18455 elif test -f "$srcdir/$f"; then
18456 # Source tree
18457 echo $srcdir/$f
18458 else
18459 # /dev/null tree
18460 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18461 echo "$as_me: error: cannot find input file: $f" >&2;}
18462 { (exit 1); exit 1; }; }
18463 fi;;
18464 esac
18465 done` || { (exit 1); exit 1; }
18466 # Remove the trailing spaces.
18467 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18469 _ACEOF
18471 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18472 # `conftest.undefs', that substitutes the proper values into
18473 # config.h.in to produce config.h. The first handles `#define'
18474 # templates, and the second `#undef' templates.
18475 # And first: Protect against being on the right side of a sed subst in
18476 # config.status. Protect against being in an unquoted here document
18477 # in config.status.
18478 rm -f conftest.defines conftest.undefs
18479 # Using a here document instead of a string reduces the quoting nightmare.
18480 # Putting comments in sed scripts is not portable.
18482 # `end' is used to avoid that the second main sed command (meant for
18483 # 0-ary CPP macros) applies to n-ary macro definitions.
18484 # See the Autoconf documentation for `clear'.
18485 cat >confdef2sed.sed <<\_ACEOF
18486 s/[\\&,]/\\&/g
18487 s,[\\$`],\\&,g
18488 t clear
18489 : clear
18490 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18491 t end
18492 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18493 : end
18494 _ACEOF
18495 # If some macros were called several times there might be several times
18496 # the same #defines, which is useless. Nevertheless, we may not want to
18497 # sort them, since we want the *last* AC-DEFINE to be honored.
18498 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18499 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18500 rm -f confdef2sed.sed
18502 # This sed command replaces #undef with comments. This is necessary, for
18503 # example, in the case of _POSIX_SOURCE, which is predefined and required
18504 # on some systems where configure will not decide to define it.
18505 cat >>conftest.undefs <<\_ACEOF
18506 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18507 _ACEOF
18509 # Break up conftest.defines because some shells have a limit on the size
18510 # of here documents, and old seds have small limits too (100 cmds).
18511 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18512 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18513 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18514 echo ' :' >>$CONFIG_STATUS
18515 rm -f conftest.tail
18516 while grep . conftest.defines >/dev/null
18518 # Write a limited-size here document to $tmp/defines.sed.
18519 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18520 # Speed up: don't consider the non `#define' lines.
18521 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18522 # Work around the forget-to-reset-the-flag bug.
18523 echo 't clr' >>$CONFIG_STATUS
18524 echo ': clr' >>$CONFIG_STATUS
18525 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18526 echo 'CEOF
18527 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18528 rm -f $tmp/in
18529 mv $tmp/out $tmp/in
18530 ' >>$CONFIG_STATUS
18531 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18532 rm -f conftest.defines
18533 mv conftest.tail conftest.defines
18534 done
18535 rm -f conftest.defines
18536 echo ' fi # egrep' >>$CONFIG_STATUS
18537 echo >>$CONFIG_STATUS
18539 # Break up conftest.undefs because some shells have a limit on the size
18540 # of here documents, and old seds have small limits too (100 cmds).
18541 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18542 rm -f conftest.tail
18543 while grep . conftest.undefs >/dev/null
18545 # Write a limited-size here document to $tmp/undefs.sed.
18546 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18547 # Speed up: don't consider the non `#undef'
18548 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18549 # Work around the forget-to-reset-the-flag bug.
18550 echo 't clr' >>$CONFIG_STATUS
18551 echo ': clr' >>$CONFIG_STATUS
18552 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18553 echo 'CEOF
18554 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18555 rm -f $tmp/in
18556 mv $tmp/out $tmp/in
18557 ' >>$CONFIG_STATUS
18558 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18559 rm -f conftest.undefs
18560 mv conftest.tail conftest.undefs
18561 done
18562 rm -f conftest.undefs
18564 cat >>$CONFIG_STATUS <<\_ACEOF
18565 # Let's still pretend it is `configure' which instantiates (i.e., don't
18566 # use $as_me), people would be surprised to read:
18567 # /* config.h. Generated by config.status. */
18568 if test x"$ac_file" = x-; then
18569 echo "/* Generated by configure. */" >$tmp/config.h
18570 else
18571 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18573 cat $tmp/in >>$tmp/config.h
18574 rm -f $tmp/in
18575 if test x"$ac_file" != x-; then
18576 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18577 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18578 echo "$as_me: $ac_file is unchanged" >&6;}
18579 else
18580 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18581 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18582 X"$ac_file" : 'X\(//\)[^/]' \| \
18583 X"$ac_file" : 'X\(//\)$' \| \
18584 X"$ac_file" : 'X\(/\)' \| \
18585 . : '\(.\)' 2>/dev/null ||
18586 echo X"$ac_file" |
18587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18588 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18589 /^X\(\/\/\)$/{ s//\1/; q; }
18590 /^X\(\/\).*/{ s//\1/; q; }
18591 s/.*/./; q'`
18592 { case "$ac_dir" in
18593 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18594 *) as_incr_dir=.;;
18595 esac
18596 as_dummy="$ac_dir"
18597 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18598 case $as_mkdir_dir in
18599 # Skip DOS drivespec
18600 ?:) as_incr_dir=$as_mkdir_dir ;;
18602 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18603 test -d "$as_incr_dir" ||
18604 mkdir "$as_incr_dir" ||
18605 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18606 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18607 { (exit 1); exit 1; }; }
18609 esac
18610 done; }
18612 rm -f $ac_file
18613 mv $tmp/config.h $ac_file
18615 else
18616 cat $tmp/config.h
18617 rm -f $tmp/config.h
18619 done
18620 _ACEOF
18622 cat >>$CONFIG_STATUS <<\_ACEOF
18624 { (exit 0); exit 0; }
18625 _ACEOF
18626 chmod +x $CONFIG_STATUS
18627 ac_clean_files=$ac_clean_files_save
18630 # configure is writing to config.log, and then calls config.status.
18631 # config.status does its own redirection, appending to config.log.
18632 # Unfortunately, on DOS this fails, as config.log is still kept open
18633 # by configure, so config.status won't be able to write to it; its
18634 # output is simply discarded. So we exec the FD to /dev/null,
18635 # effectively closing config.log, so it can be properly (re)opened and
18636 # appended to by config.status. When coming back to configure, we
18637 # need to make the FD available again.
18638 if test "$no_create" != yes; then
18639 ac_cs_success=:
18640 exec 5>/dev/null
18641 $SHELL $CONFIG_STATUS || ac_cs_success=false
18642 exec 5>>config.log
18643 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18644 # would make configure fail if this is the last instruction.
18645 $ac_cs_success || { (exit 1); exit 1; }
18649 echo "creating Setup"
18650 if test ! -f Modules/Setup
18651 then
18652 cp $srcdir/Modules/Setup.dist Modules/Setup
18655 echo "creating Setup.local"
18656 if test ! -f Modules/Setup.local
18657 then
18658 echo "# Edit this file for local setup changes" >Modules/Setup.local
18661 echo "creating Makefile"
18662 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
18663 -s Modules Modules/Setup.config \
18664 Modules/Setup.local Modules/Setup
18665 mv config.c Modules