2 # From configure.in Revision: 1.381 .
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
18 ## --------------------- ##
19 ## M4sh Initialization. ##
20 ## --------------------- ##
22 # Be Bourne compatible
23 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
26 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
31 # Support unset when possible.
32 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
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 ||
71 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72 /^X\/\(\/\/\)$/{ s//\1/; q; }
73 /^X\/\(\/\).*/{ s//\1/; 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
89 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
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
106 *[\\/]* ) as_myself
=$0 ;;
107 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
111 test -z "$as_dir" && as_dir
=.
112 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
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
132 test -z "$as_dir" && as_dir
=.
133 for as_base
in sh bash ksh sh5
; do
136 if ("$as_dir/$as_base" -c '
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
144 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
165 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
168 s,^['$as_cr_digits']*\n,,
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).
178 # Exit status is that of the last command.
183 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
184 *c
*,-n*) ECHO_N
= ECHO_C
='
186 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
187 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
190 if expr a
: '\(a\)' >/dev
/null
2>&1; then
196 rm -f conf$$ conf$$.exe 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
207 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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"
224 # We need space, tab and new line, in precisely that order.
230 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
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`
243 ac_default_prefix
=/usr
/local
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'
262 ac_unique_file
="Include/object.h"
263 # Factoring default headers for most tests.
264 ac_includes_default
="\
267 # include <sys/types.h>
270 # include <sys/stat.h>
281 # if !STDC_HEADERS && HAVE_MEMORY_H
287 # include <strings.h>
290 # include <inttypes.h>
301 # Initialize some variables set by options.
303 ac_init_version
=false
304 # The variables have the same names as the options, with
305 # dashes changed to underlines.
313 program_transform_name
=s
,x
,x
,
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'
342 # If the previous option needs an argument, assign it.
343 if test -n "$ac_prev"; then
344 eval "$ac_prev=\$ac_option"
349 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
351 # Accept the important Cygnus configure options, so we can diagnose typos.
355 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
357 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
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 ;;
373 cache_file
=config.cache
;;
375 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
377 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
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'`
398 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
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.
416 -help |
--help |
--hel |
--he |
-h)
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)
437 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
438 infodir
=$ac_optarg ;;
440 -libdir |
--libdir |
--libdi |
--libd)
442 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
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)
463 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
467 # Obsolete; use --without-fp.
470 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
471 |
--no-cr |
--no-c |
-n)
474 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
475 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
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)
489 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
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)
527 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
529 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
531 sbindir
=$ac_optarg ;;
533 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
534 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
535 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
537 ac_prev
=sharedstatedir
;;
538 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
539 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
540 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
542 sharedstatedir
=$ac_optarg ;;
544 -site |
--site |
--sit)
546 -site=* |
--site=* |
--sit=*)
549 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
551 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
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)
569 -version |
--version |
--versio |
--versi |
--vers |
-V)
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'`
580 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
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" ;;
595 # Obsolete; use --with-x.
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; }; }
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'"
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}
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`
649 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
650 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
651 { (exit 1); exit 1; }; };;
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`
661 [\\/$
]* | ?
:[\\/]* ) ;;
662 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
663 { (exit 1); exit 1; }; };;
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.
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
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 ||
702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
703 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
704 /^X\(\/\/\)$/{ s//\1/; q; }
705 /^X\(\/\).*/{ s//\1/; q; }
708 if test ! -r $srcdir/$ac_unique_file; then
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; }; }
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}
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.
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.
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 \`..']
787 Installation directories:
788 --prefix=PREFIX install architecture-independent files in PREFIX
790 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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]
819 if test -n "$ac_init_help"; then
820 case $ac_init_help in
821 short | recursive
) echo "Configuration of python 2.3:";;
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)
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
>
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.
878 if test "$ac_init_help" = "recursive"; then
879 # If there are subdirs, report their specific --help.
881 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
882 test -d $ac_dir || continue
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'`
890 ac_dir_suffix= ac_top_builddir=
894 .) # No --srcdir option. We are building in place.
896 if test -z "$ac_top_builddir"; then
899 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
901 [\\/]* | ?:[\\/]* ) # Absolute path.
902 ac_srcdir=$srcdir$ac_dir_suffix;
903 ac_top_srcdir=$srcdir ;;
905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
906 ac_top_srcdir=$ac_top_builddir$srcdir ;;
908 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
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`
916 # Check for guested configure; otherwise get Cygnus style configure.
917 if test -f $ac_srcdir/configure.gnu; then
919 $SHELL $ac_srcdir/configure.gnu --help=recursive
920 elif test -f $ac_srcdir/configure; then
922 $SHELL $ac_srcdir/configure --help=recursive
923 elif test -f $ac_srcdir/configure.ac ||
924 test -f $ac_srcdir/configure.in; then
928 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
934 test -n "$ac_init_help" && exit 0
935 if $ac_init_version; then
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.
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
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
`
983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
987 test -z "$as_dir" && as_dir=.
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.
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)
1016 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1017 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
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'"
1024 # Get rid of the leading space.
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.
1037 ## ---------------- ##
1038 ## Cache variables. ##
1039 ## ---------------- ##
1042 # The following way of writing the cache mishandles newlines in values,
1045 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1048 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1049 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1053 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1058 if test -s confdefs.h
; then
1065 sed "/^$/d" confdefs.h
1068 test "$ac_signal" != 0 &&
1069 echo "$as_me: caught signal $ac_signal"
1070 echo "$as_me: exit $exit_status"
1072 rm -f core core.
* *.core
&&
1073 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1076 for ac_signal in 1 2 13 15; do
1077 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
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.
1086 # Predefined preprocessor variables.
1088 cat >>confdefs.h <<_ACEOF
1089 #define PACKAGE_NAME "$PACKAGE_NAME"
1093 cat >>confdefs.h <<_ACEOF
1094 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1098 cat >>confdefs.h <<_ACEOF
1099 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1103 cat >>confdefs.h <<_ACEOF
1104 #define PACKAGE_STRING "$PACKAGE_STRING"
1108 cat >>confdefs.h <<_ACEOF
1109 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
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"
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
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;}
1138 [\\/]* | ?:[\\/]* ) . $cache_file;;
1139 *) . ./$cache_file;;
1143 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1144 echo "$as_me: creating cache $cache_file" >&6;}
1148 # Check that the precious variables saved in the cache have kept the same
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
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=: ;;
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=: ;;
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=:
1178 # Pass precious variables to config.status.
1179 if test "$ac_new_set" = set; then
1181 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1182 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1183 *) ac_arg=$ac_var=$ac_new_val ;;
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'" ;;
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; }; }
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.
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
1255 define_xopen_source=yes
1257 # Arguments passed to configure.
1259 CONFIG_ARGS="$ac_configure_args"
1261 # Check whether --enable-framework or --disable-framework was given.
1262 if test "${enable_framework+set}" = set; then
1263 enableval="$enable_framework"
1267 enableval=/Library/Frameworks
1272 PYTHONFRAMEWORKDIR=no-framework
1273 PYTHONFRAMEWORKPREFIX=
1274 PYTHONFRAMEWORKINSTALLDIR=
1278 PYTHONFRAMEWORK=Python
1279 PYTHONFRAMEWORKDIR=Python.framework
1280 PYTHONFRAMEWORKPREFIX=$enableval
1281 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1282 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1288 PYTHONFRAMEWORKDIR=no-framework
1289 PYTHONFRAMEWORKPREFIX=
1290 PYTHONFRAMEWORKINSTALLDIR=
1300 ## AC_HELP_STRING(--with-dyld,
1301 ## Use (OpenStep|Rhapsody) dynamic linker))
1303 # Set name for machine-dependent library files
1305 echo "$as_me:$LINENO: checking MACHDEP" >&5
1306 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1307 if test -z "$MACHDEP"
1309 ac_sys_system=`uname -s`
1310 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1311 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1312 ac_sys_release=`uname -v`
1314 ac_sys_release=`uname -r`
1316 ac_md_system=`echo $ac_sys_system |
1317 tr -d '/ ' | tr '[A-Z
]' '[a-z
]'`
1318 ac_md_release=`echo $ac_sys_release |
1319 tr -d '/ ' | sed 's
/^
[A-Z
]\.
//' | sed 's
/\..
*//'`
1320 MACHDEP="$ac_md_system$ac_md_release"
1323 cygwin*) MACHDEP="cygwin";;
1324 darwin*) MACHDEP="darwin";;
1325 atheos*) MACHDEP="atheos";;
1326 '') MACHDEP="unknown";;
1330 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1331 # disable features if it is defined, without any means to access these
1332 # features as extensions. For these systems, we skip the definition of
1333 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1334 # some feature, make sure there is no alternative way to access this
1335 # feature. Also, when using wildcards, make sure you have verified the
1336 # need for not defining _XOPEN_SOURCE on all systems matching the
1337 # wildcard, and that the wildcard does not include future systems
1338 # (which may remove their limitations).
1339 case $ac_sys_system/$ac_sys_release in
1340 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1341 # even though select is a POSIX function. Reported by J. Ribbens.
1342 OpenBSD/2.* | OpenBSD/3.[012])
1343 define_xopen_source=no;;
1346 if test $define_xopen_source = yes
1349 cat >>confdefs.h <<\_ACEOF
1350 #define _XOPEN_SOURCE 600
1354 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1355 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1356 # several APIs are not declared. Since this is also needed in some
1357 # cases for HP-UX, we define it globally.
1360 cat >>confdefs.h <<\_ACEOF
1361 #define _XOPEN_SOURCE_EXTENDED 1
1365 cat >>confdefs.h <<\_ACEOF
1366 #define _POSIX_C_SOURCE 200112L
1373 # SGI compilers allow the specification of the both the ABI and the
1374 # ISA on the command line. Depending on the values of these switches,
1375 # different and often incompatable code will be generated.
1377 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1378 # thus supply support for various ABI/ISA combinations. The MACHDEP
1379 # variable is also adjusted.
1382 if test ! -z "$SGI_ABI"
1385 LDFLAGS="$SGI_ABI $LDFLAGS"
1386 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's
/ *//g
'`
1388 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1389 echo "${ECHO_T}$MACHDEP" >&6
1391 # And add extra plat-mac for darwin
1393 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1394 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1395 if test -z "$EXTRAPLATDIR"
1398 darwin) EXTRAPLATDIR="\$(PLATMACDIRS)";;
1399 *) EXTRAPLATDIR="";;
1402 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1403 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1405 # checks for alternative programs
1406 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1407 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1409 # Check whether --with-gcc or --without-gcc was given.
1410 if test "${with_gcc+set}" = set; then
1419 without_gcc=$withval;;
1423 case $ac_sys_system in
1427 case $BE_HOST_CPU in
1431 OPT="-O -export pragma"
1432 LDFLAGS="$LDFLAGS -nodup"
1440 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1441 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1442 { (exit 1); exit 1; }; }
1445 AR="\$(srcdir)/Modules/ar_beos"
1454 echo "$as_me:$LINENO: result: $without_gcc" >&5
1455 echo "${ECHO_T}$without_gcc" >&6
1460 echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5
1461 echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6
1463 # Check whether --with-cxx or --without-cxx was given.
1464 if test "${with_cxx+set}" = set; then
1481 echo "$as_me:$LINENO: result: $with_cxx" >&5
1482 echo "${ECHO_T}$with_cxx" >&6
1484 if test "$with_cxx" = "yes"
1486 { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5
1487 echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;}
1488 { (exit 1); exit 1; }; }
1494 if test "$check_cxx" = "yes"
1496 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1498 # Extract the first word of "$ac_prog", so it can be a program name with args.
1499 set dummy $ac_prog; ac_word=$2
1500 echo "$as_me:$LINENO: checking for $ac_word" >&5
1501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1502 if test "${ac_cv_prog_CXX+set}" = set; then
1503 echo $ECHO_N "(cached) $ECHO_C" >&6
1505 if test -n "$CXX"; then
1506 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1512 test -z "$as_dir" && as_dir=.
1513 for ac_exec_ext in '' $ac_executable_extensions; do
1514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1515 ac_cv_prog_CXX="$ac_prog"
1516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1525 if test -n "$CXX"; then
1526 echo "$as_me:$LINENO: result: $CXX" >&5
1527 echo "${ECHO_T}$CXX" >&6
1529 echo "$as_me:$LINENO: result: no" >&5
1530 echo "${ECHO_T}no" >&6
1533 test -n "$CXX" && break
1535 test -n "$CXX" || CXX="notfound"
1537 if test "$CXX" = "notfound"
1542 ac_cpp='$CXXCPP $CPPFLAGS'
1543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1544 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1546 cat >conftest.$ac_ext <<_ACEOF
1547 #line $LINENO "configure"
1548 #include "confdefs.h"
1550 #ifdef F77_DUMMY_MAIN
1554 int F77_DUMMY_MAIN() { return 1; }
1564 ac_clean_files_save=$ac_clean_files
1565 ac_clean_files="$ac_clean_files a.out a.exe"
1566 # Try to create an executable without -o first, disregard a.out.
1567 # It will help us diagnose broken compilers, and finding out an intuition
1569 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1570 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1571 ac_link_default=`echo "$ac_link" | sed 's
/ -o *conftest
[^
]*//'`
1572 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1573 (eval $ac_link_default) 2>&5
1575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1576 (exit $ac_status); }; then
1577 # Find the output, starting from the most likely. This scheme is
1578 # not robust to junk in `.', hence go to wildcards
(a.
*) only as a last
1581 # Be careful to initialize this variable, since it used to be cached.
1582 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1584 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1585 ls a.out conftest 2>/dev/null;
1586 ls a.* conftest.* 2>/dev/null`; do
1588 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM
) ;;
1589 a.out
) # We found the default executable, but exeext='' is most
1592 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1593 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1600 echo "$as_me: failed program was:" >&5
1601 cat conftest.
$ac_ext >&5
1602 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5
1603 echo "$as_me: error: C++ compiler cannot create executables" >&2;}
1604 { (exit 77); exit 77; }; }
1607 ac_exeext
=$ac_cv_exeext
1608 echo "$as_me:$LINENO: result: $ac_file" >&5
1609 echo "${ECHO_T}$ac_file" >&6
1611 # Check the compiler produces executables we can run. If not, either
1612 # the compiler is broken, or we cross compile.
1613 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1614 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1615 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1616 # If not cross compiling, check that we can run a simple program.
1617 if test "$cross_compiling" != yes; then
1618 if { ac_try
='./$ac_file'
1619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1623 (exit $ac_status); }; }; then
1626 if test "$cross_compiling" = maybe
; then
1629 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1630 If you meant to cross compile, use \`--host'." >&5
1631 echo "$as_me: error: cannot run C++ compiled programs.
1632 If you meant to cross compile, use \`--host'." >&2;}
1633 { (exit 1); exit 1; }; }
1637 echo "$as_me:$LINENO: result: yes" >&5
1638 echo "${ECHO_T}yes" >&6
1640 rm -f a.out a.exe conftest
$ac_cv_exeext
1641 ac_clean_files
=$ac_clean_files_save
1642 # Check the compiler produces executables we can run. If not, either
1643 # the compiler is broken, or we cross compile.
1644 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1645 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1646 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1647 echo "${ECHO_T}$cross_compiling" >&6
1649 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1650 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1652 (eval $ac_link) 2>&5
1654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1655 (exit $ac_status); }; then
1656 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1657 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1658 # work properly (i.e., refer to `conftest.exe'), while it won't with
1660 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1662 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1663 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1670 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1671 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1672 { (exit 1); exit 1; }; }
1675 rm -f conftest
$ac_cv_exeext
1676 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1677 echo "${ECHO_T}$ac_cv_exeext" >&6
1679 rm -f conftest.
$ac_ext
1680 EXEEXT
=$ac_cv_exeext
1684 ac_cpp
='$CPP $CPPFLAGS'
1685 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1686 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1687 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1694 # If the user switches compilers, we can't believe the cache
1695 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1697 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1698 (it is also a good idea to do 'make clean' before compiling)" >&5
1699 echo "$as_me: error: cached CC is different -- throw away $cache_file
1700 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1701 { (exit 1); exit 1; }; }
1705 ac_cpp
='$CPP $CPPFLAGS'
1706 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1707 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1708 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1709 if test -n "$ac_tool_prefix"; then
1710 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1711 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1712 echo "$as_me:$LINENO: checking for $ac_word" >&5
1713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1714 if test "${ac_cv_prog_CC+set}" = set; then
1715 echo $ECHO_N "(cached) $ECHO_C" >&6
1717 if test -n "$CC"; then
1718 ac_cv_prog_CC
="$CC" # Let the user override the test.
1720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1724 test -z "$as_dir" && as_dir
=.
1725 for ac_exec_ext
in '' $ac_executable_extensions; do
1726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1727 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1737 if test -n "$CC"; then
1738 echo "$as_me:$LINENO: result: $CC" >&5
1739 echo "${ECHO_T}$CC" >&6
1741 echo "$as_me:$LINENO: result: no" >&5
1742 echo "${ECHO_T}no" >&6
1746 if test -z "$ac_cv_prog_CC"; then
1748 # Extract the first word of "gcc", so it can be a program name with args.
1749 set dummy gcc
; ac_word
=$2
1750 echo "$as_me:$LINENO: checking for $ac_word" >&5
1751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1752 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1755 if test -n "$ac_ct_CC"; then
1756 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1758 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1762 test -z "$as_dir" && as_dir
=.
1763 for ac_exec_ext
in '' $ac_executable_extensions; do
1764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1765 ac_cv_prog_ac_ct_CC
="gcc"
1766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1774 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1775 if test -n "$ac_ct_CC"; then
1776 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1777 echo "${ECHO_T}$ac_ct_CC" >&6
1779 echo "$as_me:$LINENO: result: no" >&5
1780 echo "${ECHO_T}no" >&6
1788 if test -z "$CC"; then
1789 if test -n "$ac_tool_prefix"; then
1790 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1791 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1792 echo "$as_me:$LINENO: checking for $ac_word" >&5
1793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1794 if test "${ac_cv_prog_CC+set}" = set; then
1795 echo $ECHO_N "(cached) $ECHO_C" >&6
1797 if test -n "$CC"; then
1798 ac_cv_prog_CC
="$CC" # Let the user override the test.
1800 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1804 test -z "$as_dir" && as_dir
=.
1805 for ac_exec_ext
in '' $ac_executable_extensions; do
1806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1807 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817 if test -n "$CC"; then
1818 echo "$as_me:$LINENO: result: $CC" >&5
1819 echo "${ECHO_T}$CC" >&6
1821 echo "$as_me:$LINENO: result: no" >&5
1822 echo "${ECHO_T}no" >&6
1826 if test -z "$ac_cv_prog_CC"; then
1828 # Extract the first word of "cc", so it can be a program name with args.
1829 set dummy cc
; ac_word
=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 if test -n "$ac_ct_CC"; then
1836 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1842 test -z "$as_dir" && as_dir
=.
1843 for ac_exec_ext
in '' $ac_executable_extensions; do
1844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845 ac_cv_prog_ac_ct_CC
="cc"
1846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1854 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1855 if test -n "$ac_ct_CC"; then
1856 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1857 echo "${ECHO_T}$ac_ct_CC" >&6
1859 echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6
1869 if test -z "$CC"; then
1870 # Extract the first word of "cc", so it can be a program name with args.
1871 set dummy cc
; ac_word
=$2
1872 echo "$as_me:$LINENO: checking for $ac_word" >&5
1873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1874 if test "${ac_cv_prog_CC+set}" = set; then
1875 echo $ECHO_N "(cached) $ECHO_C" >&6
1877 if test -n "$CC"; then
1878 ac_cv_prog_CC
="$CC" # Let the user override the test.
1881 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1885 test -z "$as_dir" && as_dir
=.
1886 for ac_exec_ext
in '' $ac_executable_extensions; do
1887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1889 ac_prog_rejected
=yes
1893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899 if test $ac_prog_rejected = yes; then
1900 # We found a bogon in the path, so make sure we never use it.
1901 set dummy
$ac_cv_prog_CC
1903 if test $# != 0; then
1904 # We chose a different compiler from the bogus one.
1905 # However, it has the same basename, so the bogon will be chosen
1906 # first if we set CC to just the basename; use the full file name.
1908 set dummy
"$as_dir/$ac_word" ${1+"$@"}
1916 if test -n "$CC"; then
1917 echo "$as_me:$LINENO: result: $CC" >&5
1918 echo "${ECHO_T}$CC" >&6
1920 echo "$as_me:$LINENO: result: no" >&5
1921 echo "${ECHO_T}no" >&6
1925 if test -z "$CC"; then
1926 if test -n "$ac_tool_prefix"; then
1929 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1930 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1931 echo "$as_me:$LINENO: checking for $ac_word" >&5
1932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933 if test "${ac_cv_prog_CC+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 if test -n "$CC"; then
1937 ac_cv_prog_CC
="$CC" # Let the user override the test.
1939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1943 test -z "$as_dir" && as_dir
=.
1944 for ac_exec_ext
in '' $ac_executable_extensions; do
1945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1946 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1956 if test -n "$CC"; then
1957 echo "$as_me:$LINENO: result: $CC" >&5
1958 echo "${ECHO_T}$CC" >&6
1960 echo "$as_me:$LINENO: result: no" >&5
1961 echo "${ECHO_T}no" >&6
1964 test -n "$CC" && break
1967 if test -z "$CC"; then
1971 # Extract the first word of "$ac_prog", so it can be a program name with args.
1972 set dummy
$ac_prog; ac_word
=$2
1973 echo "$as_me:$LINENO: checking for $ac_word" >&5
1974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1975 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 if test -n "$ac_ct_CC"; then
1979 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1981 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1985 test -z "$as_dir" && as_dir
=.
1986 for ac_exec_ext
in '' $ac_executable_extensions; do
1987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1988 ac_cv_prog_ac_ct_CC
="$ac_prog"
1989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1998 if test -n "$ac_ct_CC"; then
1999 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2000 echo "${ECHO_T}$ac_ct_CC" >&6
2002 echo "$as_me:$LINENO: result: no" >&5
2003 echo "${ECHO_T}no" >&6
2006 test -n "$ac_ct_CC" && break
2015 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2016 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2017 { (exit 1); exit 1; }; }
2019 # Provide some information about the compiler.
2020 echo "$as_me:$LINENO:" \
2021 "checking for C compiler version" >&5
2022 ac_compiler
=`set X $ac_compile; echo $2`
2023 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2024 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027 (exit $ac_status); }
2028 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2029 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }
2033 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2034 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }
2039 cat >conftest.
$ac_ext <<_ACEOF
2040 #line $LINENO "configure"
2041 #include "confdefs.h"
2043 #ifdef F77_DUMMY_MAIN
2047 int F77_DUMMY_MAIN() { return 1; }
2057 ac_clean_files_save
=$ac_clean_files
2058 ac_clean_files
="$ac_clean_files a.out a.exe"
2059 # Try to create an executable without -o first, disregard a.out.
2060 # It will help us diagnose broken compilers, and finding out an intuition
2062 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2063 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2064 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2065 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2066 (eval $ac_link_default) 2>&5
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; then
2070 # Find the output, starting from the most likely. This scheme is
2071 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2074 # Be careful to initialize this variable, since it used to be cached.
2075 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2077 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2078 ls a.out conftest 2>/dev/null;
2079 ls a.* conftest.* 2>/dev/null`; do
2081 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM
) ;;
2082 a.out
) # We found the default executable, but exeext='' is most
2085 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2086 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2093 echo "$as_me: failed program was:" >&5
2094 cat conftest.
$ac_ext >&5
2095 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2096 echo "$as_me: error: C compiler cannot create executables" >&2;}
2097 { (exit 77); exit 77; }; }
2100 ac_exeext
=$ac_cv_exeext
2101 echo "$as_me:$LINENO: result: $ac_file" >&5
2102 echo "${ECHO_T}$ac_file" >&6
2104 # Check the compiler produces executables we can run. If not, either
2105 # the compiler is broken, or we cross compile.
2106 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2107 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2108 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2109 # If not cross compiling, check that we can run a simple program.
2110 if test "$cross_compiling" != yes; then
2111 if { ac_try
='./$ac_file'
2112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; }; then
2119 if test "$cross_compiling" = maybe
; then
2122 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2123 If you meant to cross compile, use \`--host'." >&5
2124 echo "$as_me: error: cannot run C compiled programs.
2125 If you meant to cross compile, use \`--host'." >&2;}
2126 { (exit 1); exit 1; }; }
2130 echo "$as_me:$LINENO: result: yes" >&5
2131 echo "${ECHO_T}yes" >&6
2133 rm -f a.out a.exe conftest
$ac_cv_exeext
2134 ac_clean_files
=$ac_clean_files_save
2135 # Check the compiler produces executables we can run. If not, either
2136 # the compiler is broken, or we cross compile.
2137 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2138 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2139 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2140 echo "${ECHO_T}$cross_compiling" >&6
2142 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2143 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2145 (eval $ac_link) 2>&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }; then
2149 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2150 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2151 # work properly (i.e., refer to `conftest.exe'), while it won't with
2153 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2155 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2156 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2163 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2164 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2165 { (exit 1); exit 1; }; }
2168 rm -f conftest
$ac_cv_exeext
2169 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2170 echo "${ECHO_T}$ac_cv_exeext" >&6
2172 rm -f conftest.
$ac_ext
2173 EXEEXT
=$ac_cv_exeext
2175 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2176 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2177 if test "${ac_cv_objext+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 cat >conftest.
$ac_ext <<_ACEOF
2181 #line $LINENO "configure"
2182 #include "confdefs.h"
2184 #ifdef F77_DUMMY_MAIN
2188 int F77_DUMMY_MAIN() { return 1; }
2198 rm -f conftest.o conftest.obj
2199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200 (eval $ac_compile) 2>&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; then
2204 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2206 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2207 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2212 echo "$as_me: failed program was:" >&5
2213 cat conftest.
$ac_ext >&5
2214 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2215 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2216 { (exit 1); exit 1; }; }
2219 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2221 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2222 echo "${ECHO_T}$ac_cv_objext" >&6
2223 OBJEXT
=$ac_cv_objext
2225 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2226 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2227 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2230 cat >conftest.
$ac_ext <<_ACEOF
2231 #line $LINENO "configure"
2232 #include "confdefs.h"
2234 #ifdef F77_DUMMY_MAIN
2238 int F77_DUMMY_MAIN() { return 1; }
2251 rm -f conftest.
$ac_objext
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253 (eval $ac_compile) 2>&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); } &&
2257 { ac_try
='test -s conftest.$ac_objext'
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; }; then
2265 echo "$as_me: failed program was:" >&5
2266 cat conftest.
$ac_ext >&5
2269 rm -f conftest.
$ac_objext conftest.
$ac_ext
2270 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2273 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2274 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2275 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2276 ac_test_CFLAGS
=${CFLAGS+set}
2277 ac_save_CFLAGS
=$CFLAGS
2279 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2280 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2281 if test "${ac_cv_prog_cc_g+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 cat >conftest.
$ac_ext <<_ACEOF
2285 #line $LINENO "configure"
2286 #include "confdefs.h"
2288 #ifdef F77_DUMMY_MAIN
2292 int F77_DUMMY_MAIN() { return 1; }
2302 rm -f conftest.
$ac_objext
2303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2304 (eval $ac_compile) 2>&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); } &&
2308 { ac_try
='test -s conftest.$ac_objext'
2309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; }; then
2316 echo "$as_me: failed program was:" >&5
2317 cat conftest.
$ac_ext >&5
2320 rm -f conftest.
$ac_objext conftest.
$ac_ext
2322 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2323 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2324 if test "$ac_test_CFLAGS" = set; then
2325 CFLAGS
=$ac_save_CFLAGS
2326 elif test $ac_cv_prog_cc_g = yes; then
2327 if test "$GCC" = yes; then
2333 if test "$GCC" = yes; then
2339 # Some people use a C++ compiler to compile C. Since we use `exit',
2340 # in C++ we need to declare it. In case someone uses the same compiler
2341 # for both compiling C and C++ we need to have the C++ compiler decide
2342 # the declaration of exit, since it's the most demanding environment.
2343 cat >conftest.
$ac_ext <<_ACEOF
2348 rm -f conftest.
$ac_objext
2349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2350 (eval $ac_compile) 2>&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); } &&
2354 { ac_try
='test -s conftest.$ac_objext'
2355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; }; then
2360 for ac_declaration
in \
2362 '#include <stdlib.h>' \
2363 'extern "C" void std::exit (int) throw (); using std::exit;' \
2364 'extern "C" void std::exit (int); using std::exit;' \
2365 'extern "C" void exit (int) throw ();' \
2366 'extern "C" void exit (int);' \
2369 cat >conftest.
$ac_ext <<_ACEOF
2370 #line $LINENO "configure"
2371 #include "confdefs.h"
2374 #ifdef F77_DUMMY_MAIN
2378 int F77_DUMMY_MAIN() { return 1; }
2388 rm -f conftest.
$ac_objext
2389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2390 (eval $ac_compile) 2>&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); } &&
2394 { ac_try
='test -s conftest.$ac_objext'
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
2402 echo "$as_me: failed program was:" >&5
2403 cat conftest.
$ac_ext >&5
2406 rm -f conftest.
$ac_objext conftest.
$ac_ext
2407 cat >conftest.
$ac_ext <<_ACEOF
2408 #line $LINENO "configure"
2409 #include "confdefs.h"
2411 #ifdef F77_DUMMY_MAIN
2415 int F77_DUMMY_MAIN() { return 1; }
2425 rm -f conftest.
$ac_objext
2426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2427 (eval $ac_compile) 2>&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); } &&
2431 { ac_try
='test -s conftest.$ac_objext'
2432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; }; then
2439 echo "$as_me: failed program was:" >&5
2440 cat conftest.
$ac_ext >&5
2442 rm -f conftest.
$ac_objext conftest.
$ac_ext
2445 if test -n "$ac_declaration"; then
2446 echo '#ifdef __cplusplus' >>confdefs.h
2447 echo $ac_declaration >>confdefs.h
2448 echo '#endif' >>confdefs.h
2452 echo "$as_me: failed program was:" >&5
2453 cat conftest.
$ac_ext >&5
2455 rm -f conftest.
$ac_objext conftest.
$ac_ext
2457 ac_cpp
='$CPP $CPPFLAGS'
2458 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2463 # checks for UNIX variants that set C preprocessor variables
2466 ac_cpp
='$CPP $CPPFLAGS'
2467 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2468 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2469 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2470 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2471 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2472 # On Suns, sometimes $CPP names a directory.
2473 if test -n "$CPP" && test -d "$CPP"; then
2476 if test -z "$CPP"; then
2477 if test "${ac_cv_prog_CPP+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 # Double quotes because CPP needs to be expanded
2481 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2484 for ac_c_preproc_warn_flag
in '' yes
2486 # Use a header file that comes with gcc, so configuring glibc
2487 # with a fresh cross-compiler works.
2488 # On the NeXT, cc -E runs the code through the compiler's parser,
2489 # not just through cpp. "Syntax error" is here to catch this case.
2490 cat >conftest.
$ac_ext <<_ACEOF
2491 #line $LINENO "configure"
2492 #include "confdefs.h"
2496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2497 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2499 egrep -v '^ *\+' conftest.er1
>conftest.err
2501 cat conftest.err
>&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } >/dev
/null
; then
2504 if test -s conftest.err
; then
2505 ac_cpp_err
=$ac_c_preproc_warn_flag
2512 if test -z "$ac_cpp_err"; then
2515 echo "$as_me: failed program was:" >&5
2516 cat conftest.
$ac_ext >&5
2517 # Broken: fails on valid input.
2520 rm -f conftest.err conftest.
$ac_ext
2522 # OK, works on sane cases. Now check whether non-existent headers
2523 # can be detected and how.
2524 cat >conftest.
$ac_ext <<_ACEOF
2525 #line $LINENO "configure"
2526 #include "confdefs.h"
2527 #include <ac_nonexistent.h>
2529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2530 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2532 egrep -v '^ *\+' conftest.er1
>conftest.err
2534 cat conftest.err
>&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } >/dev
/null
; then
2537 if test -s conftest.err
; then
2538 ac_cpp_err
=$ac_c_preproc_warn_flag
2545 if test -z "$ac_cpp_err"; then
2546 # Broken: success on invalid input.
2549 echo "$as_me: failed program was:" >&5
2550 cat conftest.
$ac_ext >&5
2551 # Passes both tests.
2555 rm -f conftest.err conftest.
$ac_ext
2558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2559 rm -f conftest.err conftest.
$ac_ext
2560 if $ac_preproc_ok; then
2572 echo "$as_me:$LINENO: result: $CPP" >&5
2573 echo "${ECHO_T}$CPP" >&6
2575 for ac_c_preproc_warn_flag
in '' yes
2577 # Use a header file that comes with gcc, so configuring glibc
2578 # with a fresh cross-compiler works.
2579 # On the NeXT, cc -E runs the code through the compiler's parser,
2580 # not just through cpp. "Syntax error" is here to catch this case.
2581 cat >conftest.
$ac_ext <<_ACEOF
2582 #line $LINENO "configure"
2583 #include "confdefs.h"
2587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2588 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2590 egrep -v '^ *\+' conftest.er1
>conftest.err
2592 cat conftest.err
>&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); } >/dev
/null
; then
2595 if test -s conftest.err
; then
2596 ac_cpp_err
=$ac_c_preproc_warn_flag
2603 if test -z "$ac_cpp_err"; then
2606 echo "$as_me: failed program was:" >&5
2607 cat conftest.
$ac_ext >&5
2608 # Broken: fails on valid input.
2611 rm -f conftest.err conftest.
$ac_ext
2613 # OK, works on sane cases. Now check whether non-existent headers
2614 # can be detected and how.
2615 cat >conftest.
$ac_ext <<_ACEOF
2616 #line $LINENO "configure"
2617 #include "confdefs.h"
2618 #include <ac_nonexistent.h>
2620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2621 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2623 egrep -v '^ *\+' conftest.er1
>conftest.err
2625 cat conftest.err
>&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } >/dev
/null
; then
2628 if test -s conftest.err
; then
2629 ac_cpp_err
=$ac_c_preproc_warn_flag
2636 if test -z "$ac_cpp_err"; then
2637 # Broken: success on invalid input.
2640 echo "$as_me: failed program was:" >&5
2641 cat conftest.
$ac_ext >&5
2642 # Passes both tests.
2646 rm -f conftest.err conftest.
$ac_ext
2649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2650 rm -f conftest.err conftest.
$ac_ext
2651 if $ac_preproc_ok; then
2654 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2655 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2656 { (exit 1); exit 1; }; }
2660 ac_cpp
='$CPP $CPPFLAGS'
2661 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2662 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2663 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2667 echo "$as_me:$LINENO: checking for AIX" >&5
2668 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2669 cat >conftest.
$ac_ext <<_ACEOF
2670 #line $LINENO "configure"
2671 #include "confdefs.h"
2677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2678 egrep "yes" >/dev
/null
2>&1; then
2679 echo "$as_me:$LINENO: result: yes" >&5
2680 echo "${ECHO_T}yes" >&6
2681 cat >>confdefs.h
<<\_ACEOF
2682 #define _ALL_SOURCE 1
2686 echo "$as_me:$LINENO: result: no" >&5
2687 echo "${ECHO_T}no" >&6
2692 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2693 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2694 if test "${ac_cv_header_stdc+set}" = set; then
2695 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 cat >conftest.
$ac_ext <<_ACEOF
2698 #line $LINENO "configure"
2699 #include "confdefs.h"
2706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2707 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2709 egrep -v '^ *\+' conftest.er1
>conftest.err
2711 cat conftest.err
>&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } >/dev
/null
; then
2714 if test -s conftest.err
; then
2715 ac_cpp_err
=$ac_c_preproc_warn_flag
2722 if test -z "$ac_cpp_err"; then
2723 ac_cv_header_stdc
=yes
2725 echo "$as_me: failed program was:" >&5
2726 cat conftest.
$ac_ext >&5
2727 ac_cv_header_stdc
=no
2729 rm -f conftest.err conftest.
$ac_ext
2731 if test $ac_cv_header_stdc = yes; then
2732 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2733 cat >conftest.
$ac_ext <<_ACEOF
2734 #line $LINENO "configure"
2735 #include "confdefs.h"
2739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2740 egrep "memchr" >/dev
/null
2>&1; then
2743 ac_cv_header_stdc
=no
2749 if test $ac_cv_header_stdc = yes; then
2750 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2751 cat >conftest.
$ac_ext <<_ACEOF
2752 #line $LINENO "configure"
2753 #include "confdefs.h"
2757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2758 egrep "free" >/dev
/null
2>&1; then
2761 ac_cv_header_stdc
=no
2767 if test $ac_cv_header_stdc = yes; then
2768 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2769 if test "$cross_compiling" = yes; then
2772 cat >conftest.
$ac_ext <<_ACEOF
2773 #line $LINENO "configure"
2774 #include "confdefs.h"
2776 #if ((' ' & 0x0FF) == 0x020)
2777 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2778 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2780 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2781 || ('j' <= (c) && (c) <= 'r') \
2782 || ('s' <= (c) && (c) <= 'z'))
2783 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2786 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2791 for (i = 0; i < 256; i++)
2792 if (XOR (islower (i), ISLOWER (i))
2793 || toupper (i) != TOUPPER (i))
2798 rm -f conftest
$ac_exeext
2799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2800 (eval $ac_link) 2>&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; }; then
2811 echo "$as_me: program exited with status $ac_status" >&5
2812 echo "$as_me: failed program was:" >&5
2813 cat conftest.
$ac_ext >&5
2815 ac_cv_header_stdc
=no
2817 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2821 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2822 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2823 if test $ac_cv_header_stdc = yes; then
2825 cat >>confdefs.h
<<\_ACEOF
2826 #define STDC_HEADERS 1
2831 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2841 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2842 inttypes.h stdint.h unistd.h
2844 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2845 echo "$as_me:$LINENO: checking for $ac_header" >&5
2846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2850 cat >conftest.
$ac_ext <<_ACEOF
2851 #line $LINENO "configure"
2852 #include "confdefs.h"
2853 $ac_includes_default
2855 #include <$ac_header>
2857 rm -f conftest.
$ac_objext
2858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2859 (eval $ac_compile) 2>&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); } &&
2863 { ac_try
='test -s conftest.$ac_objext'
2864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2869 eval "$as_ac_Header=yes"
2871 echo "$as_me: failed program was:" >&5
2872 cat conftest.
$ac_ext >&5
2873 eval "$as_ac_Header=no"
2875 rm -f conftest.
$ac_objext conftest.
$ac_ext
2877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2880 cat >>confdefs.h
<<_ACEOF
2881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2889 if test "${ac_cv_header_minix_config_h+set}" = set; then
2890 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2891 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2892 if test "${ac_cv_header_minix_config_h+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2896 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2898 # Is the header compilable?
2899 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2900 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2901 cat >conftest.
$ac_ext <<_ACEOF
2902 #line $LINENO "configure"
2903 #include "confdefs.h"
2904 $ac_includes_default
2905 #include <minix/config.h>
2907 rm -f conftest.
$ac_objext
2908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2909 (eval $ac_compile) 2>&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); } &&
2913 { ac_try
='test -s conftest.$ac_objext'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; }; then
2919 ac_header_compiler
=yes
2921 echo "$as_me: failed program was:" >&5
2922 cat conftest.
$ac_ext >&5
2923 ac_header_compiler
=no
2925 rm -f conftest.
$ac_objext conftest.
$ac_ext
2926 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2927 echo "${ECHO_T}$ac_header_compiler" >&6
2929 # Is the header present?
2930 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2931 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2932 cat >conftest.
$ac_ext <<_ACEOF
2933 #line $LINENO "configure"
2934 #include "confdefs.h"
2935 #include <minix/config.h>
2937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2938 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2940 egrep -v '^ *\+' conftest.er1
>conftest.err
2942 cat conftest.err
>&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } >/dev
/null
; then
2945 if test -s conftest.err
; then
2946 ac_cpp_err
=$ac_c_preproc_warn_flag
2953 if test -z "$ac_cpp_err"; then
2954 ac_header_preproc
=yes
2956 echo "$as_me: failed program was:" >&5
2957 cat conftest.
$ac_ext >&5
2958 ac_header_preproc
=no
2960 rm -f conftest.err conftest.
$ac_ext
2961 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2962 echo "${ECHO_T}$ac_header_preproc" >&6
2964 # So? What about this header?
2965 case $ac_header_compiler:$ac_header_preproc in
2967 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
2968 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2969 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2970 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2972 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
2973 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
2974 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
2975 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
2976 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2977 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2979 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2980 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2981 if test "${ac_cv_header_minix_config_h+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 ac_cv_header_minix_config_h
=$ac_header_preproc
2986 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2987 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2990 if test $ac_cv_header_minix_config_h = yes; then
2997 if test "$MINIX" = yes; then
2999 cat >>confdefs.h
<<\_ACEOF
3000 #define _POSIX_SOURCE 1
3004 cat >>confdefs.h
<<\_ACEOF
3005 #define _POSIX_1_SOURCE 2
3009 cat >>confdefs.h
<<\_ACEOF
3016 # Check for unsupported systems
3017 case $ac_sys_system/$ac_sys_release in
3018 SunOS
/4*|DYNIX
/*|dgux
*/*|IRIX
/4*|Linux
*/1*)
3019 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3020 echo See README
for details.
3024 if test "$MINIX" = yes; then
3025 echo This system \
(MINIX\
) is no longer supported.
3026 echo Read README
for details.
3031 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3032 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3034 # Check whether --with-suffix or --without-suffix was given.
3035 if test "${with_suffix+set}" = set; then
3036 withval
="$with_suffix"
3041 *) EXEEXT
=$withval;;
3044 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3045 echo "${ECHO_T}$EXEEXT" >&6
3047 # Test whether we're running on a non-case-sensitive system, in which
3048 # case we give a warning if no ext is given
3050 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3051 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3052 if test ! -d CaseSensitiveTestDir
; then
3053 mkdir CaseSensitiveTestDir
3056 if test -d casesensitivetestdir
3058 echo "$as_me:$LINENO: result: yes" >&5
3059 echo "${ECHO_T}yes" >&6
3062 echo "$as_me:$LINENO: result: no" >&5
3063 echo "${ECHO_T}no" >&6
3066 rmdir CaseSensitiveTestDir
3071 gcc
) CC
="$CC -D_HAVE_BSDI";;
3075 case $ac_sys_system in
3078 cc|
*/cc
) CC
="$CC -Ae";;
3082 cc
) CC
="$CC -Wl,-Bexport";;
3085 # Some functions have a prototype only with that define, e.g. confstr
3087 cat >>confdefs.h
<<\_ACEOF
3088 #define __EXTENSIONS__ 1
3096 echo "$as_me:$LINENO: checking LIBRARY" >&5
3097 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3098 if test -z "$LIBRARY"
3100 LIBRARY
='libpython$(VERSION).a'
3102 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3103 echo "${ECHO_T}$LIBRARY" >&6
3105 # LDLIBRARY is the name of the library to link against (as opposed to the
3106 # name of the library into which to insert object files). BLDLIBRARY is also
3107 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3108 # is blank as the main program is not linked directly against LDLIBRARY.
3109 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3110 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3111 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3112 # DLLLIBRARY is the shared (i.e., DLL) library.
3114 # RUNSHARED is used to run shared python without installed libraries
3116 # INSTSONAME is the name of the shared library that will be use to install
3117 # on the system - some systems like version suffix, others don't
3124 LDLIBRARY
="$LIBRARY"
3125 BLDLIBRARY
='$(LDLIBRARY)'
3126 INSTSONAME
='$(LDLIBRARY)'
3131 # LINKCC is the command that links the python executable -- default is $(CC).
3132 # If CXX is set, and if it is needed to link a main function that was
3133 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3134 # python might then depend on the C++ runtime
3135 # This is altered for AIX in order to build the export list before
3138 echo "$as_me:$LINENO: checking LINKCC" >&5
3139 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3140 if test -z "$LINKCC"
3142 if test -z "$CXX"; then
3143 LINKCC
="\$(PURIFY) \$(CC)"
3145 echo 'void foo();int main(){foo();}void foo(){}' > conftest.
$ac_ext
3146 $CXX -c conftest.
$ac_ext 2>&5
3147 if $CC -o conftest
$ac_exeext conftest.
$ac_objext 2>&5 \
3148 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
3150 LINKCC
="\$(PURIFY) \$(CC)"
3152 LINKCC
="\$(PURIFY) \$(CXX)"
3156 case $ac_sys_system in
3158 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); $LINKCC";;
3160 LINKCC
="LD_RUN_PATH=$libdir $LINKCC";;
3162 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3165 echo "$as_me:$LINENO: result: $LINKCC" >&5
3166 echo "${ECHO_T}$LINKCC" >&6
3168 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3169 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3170 # Check whether --enable-shared or --disable-shared was given.
3171 if test "${enable_shared+set}" = set; then
3172 enableval
="$enable_shared"
3176 if test -z "$enable_shared"
3178 case $ac_sys_system in
3180 enable_shared
="yes";;
3182 enable_shared
="no";;
3185 echo "$as_me:$LINENO: result: $enable_shared" >&5
3186 echo "${ECHO_T}$enable_shared" >&6
3189 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3190 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3192 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3193 # library that we build, but we do not want to link against it (we
3194 # will find it with a -framework option). For this reason there is an
3195 # extra variable BLDLIBRARY against which Python and the extension
3196 # modules are linked, BLDLIBRARY. This is normally the same as
3197 # LDLIBRARY, but empty for MacOSX framework builds.
3198 if test "$enable_framework"
3200 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3201 LDLIBRARYDIR
='$(PYTHONFRAMEWORKDIR)'
3204 BLDLIBRARY
='$(LDLIBRARY)'
3207 # Other platforms follow
3208 if test $enable_shared = "yes"; then
3210 cat >>confdefs.h
<<\_ACEOF
3211 #define Py_ENABLE_SHARED 1
3214 case $ac_sys_system in
3216 LDLIBRARY
='libpython$(VERSION).so'
3219 LDLIBRARY
='libpython$(VERSION).dll.a'
3220 DLLLIBRARY
='libpython$(VERSION).dll'
3223 LDLIBRARY
='libpython$(VERSION).so'
3224 BLDLIBRARY
='-Wl,-rpath,$(LIBDIR) -L. -lpython$(VERSION)'
3225 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:$LD_LIBRARY_PATH
3228 LDLIBRARY
='libpython$(VERSION).so'
3229 BLDLIBRARY
='-L. -lpython$(VERSION)'
3230 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:$LD_LIBRARY_PATH
3231 INSTSONAME
="$LDLIBRARY".
$SOVERSION
3234 LDLIBRARY
='libpython$(VERSION).sl'
3235 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3236 RUNSHARED
=SHLIB_PATH
=`pwd`:$SHLIB_PATH
3239 LDLIBRARY
='libpython$(VERSION).so'
3240 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3241 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:$LD_LIBRARY_PATH
3244 LDLIBRARY
='libpython$(VERSION).so'
3245 BLDLIBRARY
='-L. -lpython$(VERSION)'
3246 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3249 # DG/UX requires some fancy ld contortions to produce a .so from an .a
3252 LDLIBRARY
='libpython$(VERSION).so'
3258 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3259 echo "${ECHO_T}$LDLIBRARY" >&6
3261 if test -n "$ac_tool_prefix"; then
3262 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3263 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3264 echo "$as_me:$LINENO: checking for $ac_word" >&5
3265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3266 if test "${ac_cv_prog_RANLIB+set}" = set; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 if test -n "$RANLIB"; then
3270 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3276 test -z "$as_dir" && as_dir
=.
3277 for ac_exec_ext
in '' $ac_executable_extensions; do
3278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3279 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 RANLIB
=$ac_cv_prog_RANLIB
3289 if test -n "$RANLIB"; then
3290 echo "$as_me:$LINENO: result: $RANLIB" >&5
3291 echo "${ECHO_T}$RANLIB" >&6
3293 echo "$as_me:$LINENO: result: no" >&5
3294 echo "${ECHO_T}no" >&6
3298 if test -z "$ac_cv_prog_RANLIB"; then
3299 ac_ct_RANLIB
=$RANLIB
3300 # Extract the first word of "ranlib", so it can be a program name with args.
3301 set dummy ranlib
; ac_word
=$2
3302 echo "$as_me:$LINENO: checking for $ac_word" >&5
3303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3304 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 if test -n "$ac_ct_RANLIB"; then
3308 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3310 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3314 test -z "$as_dir" && as_dir
=.
3315 for ac_exec_ext
in '' $ac_executable_extensions; do
3316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3324 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3327 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3328 if test -n "$ac_ct_RANLIB"; then
3329 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3330 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3332 echo "$as_me:$LINENO: result: no" >&5
3333 echo "${ECHO_T}no" >&6
3336 RANLIB
=$ac_ct_RANLIB
3338 RANLIB
="$ac_cv_prog_RANLIB"
3342 for ac_prog
in ar aal
3344 # Extract the first word of "$ac_prog", so it can be a program name with args.
3345 set dummy
$ac_prog; 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_AR+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 if test -n "$AR"; then
3352 ac_cv_prog_AR
="$AR" # Let the user override the test.
3354 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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_AR
="$ac_prog"
3362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 if test -n "$AR"; then
3372 echo "$as_me:$LINENO: result: $AR" >&5
3373 echo "${ECHO_T}$AR" >&6
3375 echo "$as_me:$LINENO: result: no" >&5
3376 echo "${ECHO_T}no" >&6
3379 test -n "$AR" && break
3381 test -n "$AR" || AR
="ar"
3386 # install -d does not work on BSDI or HP-UX
3387 if test -z "$INSTALL"
3389 INSTALL
="${srcdir}/install-sh -c"
3393 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
3394 if test -f $ac_dir/install-sh
; then
3396 ac_install_sh
="$ac_aux_dir/install-sh -c"
3398 elif test -f $ac_dir/install.sh
; then
3400 ac_install_sh
="$ac_aux_dir/install.sh -c"
3402 elif test -f $ac_dir/shtool
; then
3404 ac_install_sh
="$ac_aux_dir/shtool install -c"
3408 if test -z "$ac_aux_dir"; then
3409 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3410 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3411 { (exit 1); exit 1; }; }
3413 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
3414 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
3415 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3417 # Find a good install program. We prefer a C program (faster),
3418 # so one script is as good as another. But avoid the broken or
3419 # incompatible versions:
3420 # SysV /etc/install, /usr/sbin/install
3421 # SunOS /usr/etc/install
3422 # IRIX /sbin/install
3424 # AmigaOS /C/install, which installs bootblocks on floppy discs
3425 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3426 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3427 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3428 # ./install, which can be erroneously created by make from ./install.sh.
3429 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3430 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3431 if test -z "$INSTALL"; then
3432 if test "${ac_cv_path_install+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3439 test -z "$as_dir" && as_dir
=.
3440 # Account for people who put trailing slashes in PATH elements.
3442 .
/ | .
// |
/cC
/* | \
3443 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3446 # OSF1 and SCO ODT 3.0 have their own names for install.
3447 # Don't use installbsd from OSF since it installs stuff as root
3449 for ac_prog
in ginstall scoinst
install; do
3450 for ac_exec_ext
in '' $ac_executable_extensions; do
3451 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3452 if test $ac_prog = install &&
3453 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3454 # AIX install. It has an incompatible calling convention.
3456 elif test $ac_prog = install &&
3457 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3458 # program-specific install script used by HP pwplus--don't use.
3461 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3473 if test "${ac_cv_path_install+set}" = set; then
3474 INSTALL
=$ac_cv_path_install
3476 # As a last resort, use the slow shell script. We don't cache a
3477 # path for INSTALL within a source directory, because that will
3478 # break other packages using the cache if that directory is
3479 # removed, or if the path is relative.
3480 INSTALL
=$ac_install_sh
3483 echo "$as_me:$LINENO: result: $INSTALL" >&5
3484 echo "${ECHO_T}$INSTALL" >&6
3486 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3487 # It thinks the first close brace ends the variable substitution.
3488 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3490 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3492 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3495 # Not every filesystem supports hard links
3497 if test -z "$LN" ; then
3498 case $ac_sys_system in
3500 CYGWIN
*) LN
="ln -s";;
3501 atheos
*) LN
="ln -s";;
3506 # Check for --with-pydebug
3507 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3508 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3510 # Check whether --with-pydebug or --without-pydebug was given.
3511 if test "${with_pydebug+set}" = set; then
3512 withval
="$with_pydebug"
3514 if test "$withval" != no
3517 cat >>confdefs.h
<<\_ACEOF
3521 echo "$as_me:$LINENO: result: yes" >&5
3522 echo "${ECHO_T}yes" >&6;
3524 else echo "$as_me:$LINENO: result: no" >&5
3525 echo "${ECHO_T}no" >&6; Py_DEBUG
='false'
3528 echo "$as_me:$LINENO: result: no" >&5
3529 echo "${ECHO_T}no" >&6
3532 # Optimizer/debugger flags
3538 case $ac_cv_prog_cc_g in
3540 if test "$Py_DEBUG" = 'true' ; then
3541 # Optimization messes up debuggers, so turn it off for
3543 OPT
="-g -Wall -Wstrict-prototypes"
3545 OPT
="-g -O3 -Wall -Wstrict-prototypes"
3548 OPT
="-O3 -Wall -Wstrict-prototypes";;
3550 case $ac_sys_system in
3551 SCO_SV
*) OPT
="$OPT -m486 -DSCO5";;
3555 case $ac_sys_system in
3556 OpenUNIX
*|UnixWare
*)
3557 OPT
="-O -K pentium,host,inline,loop_unroll,alloca ";;
3559 CFLAGS
="$CFLAGS -belf"
3560 OPT
="-belf -O -Ki486 -DSCO5";;
3565 case $ac_sys_system in
3567 OPT
="$OPT -Wno-long-double -no-cpp-precomp";;
3571 if test "$Py_DEBUG" = 'true'; then
3577 # The current (beta) Monterey compiler dies with optimizations
3578 case $ac_sys_system in
3582 if test "$ac_arch_flags"
3584 OPT
="$OPT $ac_arch_flags"
3587 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3588 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3589 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 CC
="$CC -OPT:Olimit=0"
3594 if test "$cross_compiling" = yes; then
3595 ac_cv_opt_olimit_ok
=no
3597 cat >conftest.
$ac_ext <<_ACEOF
3598 #line $LINENO "configure"
3599 #include "confdefs.h"
3600 int main() { return 0; }
3602 rm -f conftest
$ac_exeext
3603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3604 (eval $ac_link) 2>&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; }; then
3613 ac_cv_opt_olimit_ok
=yes
3615 echo "$as_me: program exited with status $ac_status" >&5
3616 echo "$as_me: failed program was:" >&5
3617 cat conftest.
$ac_ext >&5
3619 ac_cv_opt_olimit_ok
=no
3621 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3626 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3627 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3628 if test $ac_cv_opt_olimit_ok = yes; then
3629 case $ac_sys_system in
3630 Darwin
*) OPT
="$OPT" ;;
3631 *) OPT
="$OPT -OPT:Olimit=0";;
3634 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3635 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3636 if test "${ac_cv_olimit_ok+set}" = set; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3640 CC
="$CC -Olimit 1500"
3641 if test "$cross_compiling" = yes; then
3644 cat >conftest.
$ac_ext <<_ACEOF
3645 #line $LINENO "configure"
3646 #include "confdefs.h"
3647 int main() { return 0; }
3649 rm -f conftest
$ac_exeext
3650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3651 (eval $ac_link) 2>&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); }; }; then
3662 echo "$as_me: program exited with status $ac_status" >&5
3663 echo "$as_me: failed program was:" >&5
3664 cat conftest.
$ac_ext >&5
3668 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3673 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
3674 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
3675 if test $ac_cv_olimit_ok = yes; then
3676 OPT
="$OPT -Olimit 1500"
3680 # On some compilers, pthreads are available without further options
3681 # (e.g. MacOS X). On some of these systems, the compiler will not
3682 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
3683 # So we have to see first whether pthreads are available without
3684 # options before we can check whether -Kpthread improves anything.
3685 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
3686 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
3687 if test "${ac_cv_pthread_is_default+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 if test "$cross_compiling" = yes; then
3691 ac_cv_pthread_is_default
=no
3693 cat >conftest.
$ac_ext <<_ACEOF
3694 #line $LINENO "configure"
3695 #include "confdefs.h"
3697 #include <pthread.h>
3699 void* routine(void* p){return NULL;}
3703 if(pthread_create(&p,NULL,routine,NULL)!=0)
3705 (void)pthread_detach(p);
3710 rm -f conftest
$ac_exeext
3711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3712 (eval $ac_link) 2>&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; }; then
3721 ac_cv_pthread_is_default
=yes
3723 echo "$as_me: program exited with status $ac_status" >&5
3724 echo "$as_me: failed program was:" >&5
3725 cat conftest.
$ac_ext >&5
3727 ac_cv_pthread_is_default
=no
3729 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3734 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
3735 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
3738 if test $ac_cv_pthread_is_default = yes
3742 # -Kpthread, if available, provides the right #defines
3743 # and linker options to make pthread_create available
3744 # Some compilers won't report that they do not support -Kpthread,
3745 # so we need to run a program to see whether it really made the
3746 # function available.
3747 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
3748 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
3749 if test "${ac_cv_kpthread+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 if test "$cross_compiling" = yes; then
3757 cat >conftest.
$ac_ext <<_ACEOF
3758 #line $LINENO "configure"
3759 #include "confdefs.h"
3761 #include <pthread.h>
3763 void* routine(void* p){return NULL;}
3767 if(pthread_create(&p,NULL,routine,NULL)!=0)
3769 (void)pthread_detach(p);
3774 rm -f conftest
$ac_exeext
3775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3776 (eval $ac_link) 2>&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); }; }; then
3787 echo "$as_me: program exited with status $ac_status" >&5
3788 echo "$as_me: failed program was:" >&5
3789 cat conftest.
$ac_ext >&5
3793 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3798 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
3799 echo "${ECHO_T}$ac_cv_kpthread" >&6
3803 # checks for header files
3804 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3805 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3806 if test "${ac_cv_header_stdc+set}" = set; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3809 cat >conftest.
$ac_ext <<_ACEOF
3810 #line $LINENO "configure"
3811 #include "confdefs.h"
3818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3819 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3821 egrep -v '^ *\+' conftest.er1
>conftest.err
3823 cat conftest.err
>&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); } >/dev
/null
; then
3826 if test -s conftest.err
; then
3827 ac_cpp_err
=$ac_c_preproc_warn_flag
3834 if test -z "$ac_cpp_err"; then
3835 ac_cv_header_stdc
=yes
3837 echo "$as_me: failed program was:" >&5
3838 cat conftest.
$ac_ext >&5
3839 ac_cv_header_stdc
=no
3841 rm -f conftest.err conftest.
$ac_ext
3843 if test $ac_cv_header_stdc = yes; then
3844 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3845 cat >conftest.
$ac_ext <<_ACEOF
3846 #line $LINENO "configure"
3847 #include "confdefs.h"
3851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3852 egrep "memchr" >/dev
/null
2>&1; then
3855 ac_cv_header_stdc
=no
3861 if test $ac_cv_header_stdc = yes; then
3862 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3863 cat >conftest.
$ac_ext <<_ACEOF
3864 #line $LINENO "configure"
3865 #include "confdefs.h"
3869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3870 egrep "free" >/dev
/null
2>&1; then
3873 ac_cv_header_stdc
=no
3879 if test $ac_cv_header_stdc = yes; then
3880 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3881 if test "$cross_compiling" = yes; then
3884 cat >conftest.
$ac_ext <<_ACEOF
3885 #line $LINENO "configure"
3886 #include "confdefs.h"
3888 #if ((' ' & 0x0FF) == 0x020)
3889 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3890 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3892 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3893 || ('j' <= (c) && (c) <= 'r') \
3894 || ('s' <= (c) && (c) <= 'z'))
3895 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3898 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3903 for (i = 0; i < 256; i++)
3904 if (XOR (islower (i), ISLOWER (i))
3905 || toupper (i) != TOUPPER (i))
3910 rm -f conftest
$ac_exeext
3911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3912 (eval $ac_link) 2>&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); }; }; then
3923 echo "$as_me: program exited with status $ac_status" >&5
3924 echo "$as_me: failed program was:" >&5
3925 cat conftest.
$ac_ext >&5
3927 ac_cv_header_stdc
=no
3929 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3933 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3934 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3935 if test $ac_cv_header_stdc = yes; then
3937 cat >>confdefs.h
<<\_ACEOF
3938 #define STDC_HEADERS 1
3980 for ac_header
in dlfcn.h fcntl.h grp.h limits.h langinfo.h \
3981 libintl.h locale.h ncurses.h poll.h pthread.h \
3982 signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h termios.h \
3983 sys
/audioio.h sys
/file.h sys
/lock.h sys
/mkdev.h sys
/modem.h \
3984 sys
/param.h sys
/poll.h sys
/select.h sys
/socket.h sys
/time.h sys
/times.h \
3985 sys
/un.h sys
/utsname.h sys
/wait.h pty.h term.h libutil.h \
3986 sys
/resource.h netpacket
/packet.h
3988 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3990 echo "$as_me:$LINENO: checking for $ac_header" >&5
3991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3998 # Is the header compilable?
3999 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4000 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4001 cat >conftest.
$ac_ext <<_ACEOF
4002 #line $LINENO "configure"
4003 #include "confdefs.h"
4004 $ac_includes_default
4005 #include <$ac_header>
4007 rm -f conftest.
$ac_objext
4008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4009 (eval $ac_compile) 2>&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } &&
4013 { ac_try
='test -s conftest.$ac_objext'
4014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; }; then
4019 ac_header_compiler
=yes
4021 echo "$as_me: failed program was:" >&5
4022 cat conftest.
$ac_ext >&5
4023 ac_header_compiler
=no
4025 rm -f conftest.
$ac_objext conftest.
$ac_ext
4026 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4027 echo "${ECHO_T}$ac_header_compiler" >&6
4029 # Is the header present?
4030 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4031 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4032 cat >conftest.
$ac_ext <<_ACEOF
4033 #line $LINENO "configure"
4034 #include "confdefs.h"
4035 #include <$ac_header>
4037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4038 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4040 egrep -v '^ *\+' conftest.er1
>conftest.err
4042 cat conftest.err
>&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } >/dev
/null
; then
4045 if test -s conftest.err
; then
4046 ac_cpp_err
=$ac_c_preproc_warn_flag
4053 if test -z "$ac_cpp_err"; then
4054 ac_header_preproc
=yes
4056 echo "$as_me: failed program was:" >&5
4057 cat conftest.
$ac_ext >&5
4058 ac_header_preproc
=no
4060 rm -f conftest.err conftest.
$ac_ext
4061 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4062 echo "${ECHO_T}$ac_header_preproc" >&6
4064 # So? What about this header?
4065 case $ac_header_compiler:$ac_header_preproc in
4067 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4072 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4074 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4075 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4079 echo "$as_me:$LINENO: checking for $ac_header" >&5
4080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 eval "$as_ac_Header=$ac_header_preproc"
4086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4091 cat >>confdefs.h
<<_ACEOF
4092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4105 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4106 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4107 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4108 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 cat >conftest.
$ac_ext <<_ACEOF
4113 #line $LINENO "configure"
4114 #include "confdefs.h"
4115 #include <sys/types.h>
4118 #ifdef F77_DUMMY_MAIN
4122 int F77_DUMMY_MAIN() { return 1; }
4133 rm -f conftest.
$ac_objext
4134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4135 (eval $ac_compile) 2>&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } &&
4139 { ac_try
='test -s conftest.$ac_objext'
4140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; }; then
4145 eval "$as_ac_Header=yes"
4147 echo "$as_me: failed program was:" >&5
4148 cat conftest.
$ac_ext >&5
4149 eval "$as_ac_Header=no"
4151 rm -f conftest.
$ac_objext conftest.
$ac_ext
4153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4156 cat >>confdefs.h
<<_ACEOF
4157 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4160 ac_header_dirent
=$ac_hdr; break
4164 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4165 if test $ac_header_dirent = dirent.h
; then
4166 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4167 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4168 if test "${ac_cv_search_opendir+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 ac_func_search_save_LIBS
=$LIBS
4172 ac_cv_search_opendir
=no
4173 cat >conftest.
$ac_ext <<_ACEOF
4174 #line $LINENO "configure"
4175 #include "confdefs.h"
4177 /* Override any gcc2 internal prototype to avoid an error. */
4181 /* We use char because int might match the return type of a gcc2
4182 builtin and then its argument prototype would still apply. */
4184 #ifdef F77_DUMMY_MAIN
4188 int F77_DUMMY_MAIN() { return 1; }
4198 rm -f conftest.
$ac_objext conftest
$ac_exeext
4199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4200 (eval $ac_link) 2>&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } &&
4204 { ac_try
='test -s conftest$ac_exeext'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; }; then
4210 ac_cv_search_opendir
="none required"
4212 echo "$as_me: failed program was:" >&5
4213 cat conftest.
$ac_ext >&5
4215 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4216 if test "$ac_cv_search_opendir" = no
; then
4217 for ac_lib
in dir
; do
4218 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4219 cat >conftest.
$ac_ext <<_ACEOF
4220 #line $LINENO "configure"
4221 #include "confdefs.h"
4223 /* Override any gcc2 internal prototype to avoid an error. */
4227 /* We use char because int might match the return type of a gcc2
4228 builtin and then its argument prototype would still apply. */
4230 #ifdef F77_DUMMY_MAIN
4234 int F77_DUMMY_MAIN() { return 1; }
4244 rm -f conftest.
$ac_objext conftest
$ac_exeext
4245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4246 (eval $ac_link) 2>&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } &&
4250 { ac_try
='test -s conftest$ac_exeext'
4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; }; then
4256 ac_cv_search_opendir
="-l$ac_lib"
4259 echo "$as_me: failed program was:" >&5
4260 cat conftest.
$ac_ext >&5
4262 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4265 LIBS
=$ac_func_search_save_LIBS
4267 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4268 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4269 if test "$ac_cv_search_opendir" != no
; then
4270 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4275 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4276 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4277 if test "${ac_cv_search_opendir+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 ac_func_search_save_LIBS
=$LIBS
4281 ac_cv_search_opendir
=no
4282 cat >conftest.
$ac_ext <<_ACEOF
4283 #line $LINENO "configure"
4284 #include "confdefs.h"
4286 /* Override any gcc2 internal prototype to avoid an error. */
4290 /* We use char because int might match the return type of a gcc2
4291 builtin and then its argument prototype would still apply. */
4293 #ifdef F77_DUMMY_MAIN
4297 int F77_DUMMY_MAIN() { return 1; }
4307 rm -f conftest.
$ac_objext conftest
$ac_exeext
4308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4309 (eval $ac_link) 2>&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } &&
4313 { ac_try
='test -s conftest$ac_exeext'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4319 ac_cv_search_opendir
="none required"
4321 echo "$as_me: failed program was:" >&5
4322 cat conftest.
$ac_ext >&5
4324 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4325 if test "$ac_cv_search_opendir" = no
; then
4327 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4328 cat >conftest.
$ac_ext <<_ACEOF
4329 #line $LINENO "configure"
4330 #include "confdefs.h"
4332 /* Override any gcc2 internal prototype to avoid an error. */
4336 /* We use char because int might match the return type of a gcc2
4337 builtin and then its argument prototype would still apply. */
4339 #ifdef F77_DUMMY_MAIN
4343 int F77_DUMMY_MAIN() { return 1; }
4353 rm -f conftest.
$ac_objext conftest
$ac_exeext
4354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4355 (eval $ac_link) 2>&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } &&
4359 { ac_try
='test -s conftest$ac_exeext'
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 ac_cv_search_opendir
="-l$ac_lib"
4368 echo "$as_me: failed program was:" >&5
4369 cat conftest.
$ac_ext >&5
4371 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4374 LIBS
=$ac_func_search_save_LIBS
4376 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4377 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4378 if test "$ac_cv_search_opendir" != no
; then
4379 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4385 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
4386 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
4387 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 cat >conftest.
$ac_ext <<_ACEOF
4391 #line $LINENO "configure"
4392 #include "confdefs.h"
4393 #include <sys/types.h>
4394 #ifdef F77_DUMMY_MAIN
4398 int F77_DUMMY_MAIN() { return 1; }
4403 return makedev(0, 0);
4408 rm -f conftest.
$ac_objext conftest
$ac_exeext
4409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4410 (eval $ac_link) 2>&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } &&
4414 { ac_try
='test -s conftest$ac_exeext'
4415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }; }; then
4420 ac_cv_header_sys_types_h_makedev
=yes
4422 echo "$as_me: failed program was:" >&5
4423 cat conftest.
$ac_ext >&5
4424 ac_cv_header_sys_types_h_makedev
=no
4426 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4429 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
4430 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
4432 if test $ac_cv_header_sys_types_h_makedev = no
; then
4433 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4434 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4435 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
4436 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4440 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
4442 # Is the header compilable?
4443 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
4444 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
4445 cat >conftest.
$ac_ext <<_ACEOF
4446 #line $LINENO "configure"
4447 #include "confdefs.h"
4448 $ac_includes_default
4449 #include <sys/mkdev.h>
4451 rm -f conftest.
$ac_objext
4452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4453 (eval $ac_compile) 2>&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } &&
4457 { ac_try
='test -s conftest.$ac_objext'
4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }; }; then
4463 ac_header_compiler
=yes
4465 echo "$as_me: failed program was:" >&5
4466 cat conftest.
$ac_ext >&5
4467 ac_header_compiler
=no
4469 rm -f conftest.
$ac_objext conftest.
$ac_ext
4470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4471 echo "${ECHO_T}$ac_header_compiler" >&6
4473 # Is the header present?
4474 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
4475 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
4476 cat >conftest.
$ac_ext <<_ACEOF
4477 #line $LINENO "configure"
4478 #include "confdefs.h"
4479 #include <sys/mkdev.h>
4481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4482 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4484 egrep -v '^ *\+' conftest.er1
>conftest.err
4486 cat conftest.err
>&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } >/dev
/null
; then
4489 if test -s conftest.err
; then
4490 ac_cpp_err
=$ac_c_preproc_warn_flag
4497 if test -z "$ac_cpp_err"; then
4498 ac_header_preproc
=yes
4500 echo "$as_me: failed program was:" >&5
4501 cat conftest.
$ac_ext >&5
4502 ac_header_preproc
=no
4504 rm -f conftest.err conftest.
$ac_ext
4505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4506 echo "${ECHO_T}$ac_header_preproc" >&6
4508 # So? What about this header?
4509 case $ac_header_compiler:$ac_header_preproc in
4511 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
4512 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4513 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4514 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};;
4516 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
4517 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
4518 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
4519 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
4520 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4521 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};;
4523 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4524 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
4525 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 ac_cv_header_sys_mkdev_h
=$ac_header_preproc
4530 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4531 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
4534 if test $ac_cv_header_sys_mkdev_h = yes; then
4536 cat >>confdefs.h
<<\_ACEOF
4537 #define MAJOR_IN_MKDEV 1
4544 if test $ac_cv_header_sys_mkdev_h = no
; then
4545 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4546 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4547 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
4548 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4551 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4552 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
4554 # Is the header compilable?
4555 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
4556 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
4557 cat >conftest.
$ac_ext <<_ACEOF
4558 #line $LINENO "configure"
4559 #include "confdefs.h"
4560 $ac_includes_default
4561 #include <sys/sysmacros.h>
4563 rm -f conftest.
$ac_objext
4564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4565 (eval $ac_compile) 2>&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } &&
4569 { ac_try
='test -s conftest.$ac_objext'
4570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; }; then
4575 ac_header_compiler
=yes
4577 echo "$as_me: failed program was:" >&5
4578 cat conftest.
$ac_ext >&5
4579 ac_header_compiler
=no
4581 rm -f conftest.
$ac_objext conftest.
$ac_ext
4582 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4583 echo "${ECHO_T}$ac_header_compiler" >&6
4585 # Is the header present?
4586 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
4587 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
4588 cat >conftest.
$ac_ext <<_ACEOF
4589 #line $LINENO "configure"
4590 #include "confdefs.h"
4591 #include <sys/sysmacros.h>
4593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4594 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4596 egrep -v '^ *\+' conftest.er1
>conftest.err
4598 cat conftest.err
>&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } >/dev
/null
; then
4601 if test -s conftest.err
; then
4602 ac_cpp_err
=$ac_c_preproc_warn_flag
4609 if test -z "$ac_cpp_err"; then
4610 ac_header_preproc
=yes
4612 echo "$as_me: failed program was:" >&5
4613 cat conftest.
$ac_ext >&5
4614 ac_header_preproc
=no
4616 rm -f conftest.err conftest.
$ac_ext
4617 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4618 echo "${ECHO_T}$ac_header_preproc" >&6
4620 # So? What about this header?
4621 case $ac_header_compiler:$ac_header_preproc in
4623 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
4624 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4625 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4626 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};;
4628 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
4629 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
4630 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
4631 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
4632 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4633 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};;
4635 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4636 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
4637 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 ac_cv_header_sys_sysmacros_h
=$ac_header_preproc
4642 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4643 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
4646 if test $ac_cv_header_sys_sysmacros_h = yes; then
4648 cat >>confdefs.h
<<\_ACEOF
4649 #define MAJOR_IN_SYSMACROS 1
4659 # checks for typedefs
4661 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
4662 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
4663 cat >conftest.
$ac_ext <<_ACEOF
4664 #line $LINENO "configure"
4665 #include "confdefs.h"
4669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4670 egrep "clock_t" >/dev
/null
2>&1; then
4675 cat >>confdefs.h
<<\_ACEOF
4676 #define clock_t long
4683 echo "$as_me:$LINENO: result: $was_it_defined" >&5
4684 echo "${ECHO_T}$was_it_defined" >&6
4686 # Check whether using makedev requires defining _OSF_SOURCE
4687 echo "$as_me:$LINENO: checking for makedev" >&5
4688 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
4689 cat >conftest.
$ac_ext <<_ACEOF
4690 #line $LINENO "configure"
4691 #include "confdefs.h"
4692 #include <sys/types.h>
4693 #ifdef F77_DUMMY_MAIN
4697 int F77_DUMMY_MAIN() { return 1; }
4707 rm -f conftest.
$ac_objext conftest
$ac_exeext
4708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4709 (eval $ac_link) 2>&5
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); } &&
4713 { ac_try
='test -s conftest$ac_exeext'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; }; then
4719 ac_cv_has_makedev
=yes
4721 echo "$as_me: failed program was:" >&5
4722 cat conftest.
$ac_ext >&5
4723 ac_cv_has_makedev
=no
4725 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4726 if test "$ac_cv_has_makedev" = "no"; then
4727 # we didn't link, try if _OSF_SOURCE will allow us to link
4728 cat >conftest.
$ac_ext <<_ACEOF
4729 #line $LINENO "configure"
4730 #include "confdefs.h"
4732 #define _OSF_SOURCE 1
4733 #include <sys/types.h>
4735 #ifdef F77_DUMMY_MAIN
4739 int F77_DUMMY_MAIN() { return 1; }
4749 rm -f conftest.
$ac_objext conftest
$ac_exeext
4750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4751 (eval $ac_link) 2>&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } &&
4755 { ac_try
='test -s conftest$ac_exeext'
4756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); }; }; then
4761 ac_cv_has_makedev
=yes
4763 echo "$as_me: failed program was:" >&5
4764 cat conftest.
$ac_ext >&5
4765 ac_cv_has_makedev
=no
4767 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4768 if test "$ac_cv_has_makedev" = "yes"; then
4770 cat >>confdefs.h
<<\_ACEOF
4771 #define _OSF_SOURCE 1
4776 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
4777 echo "${ECHO_T}$ac_cv_has_makedev" >&6
4778 if test "$ac_cv_has_makedev" = "yes"; then
4780 cat >>confdefs.h
<<\_ACEOF
4781 #define HAVE_MAKEDEV 1
4786 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
4787 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
4788 # defined, but the compiler does not support pragma redefine_extname,
4789 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
4790 # structures (such as rlimit64) without declaring them. As a
4791 # work-around, disable LFS on such configurations
4794 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
4795 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
4796 cat >conftest.
$ac_ext <<_ACEOF
4797 #line $LINENO "configure"
4798 #include "confdefs.h"
4800 #define _LARGEFILE_SOURCE 1
4801 #define _FILE_OFFSET_BITS 64
4802 #include <sys/resource.h>
4804 #ifdef F77_DUMMY_MAIN
4808 int F77_DUMMY_MAIN() { return 1; }
4818 rm -f conftest.
$ac_objext
4819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4820 (eval $ac_compile) 2>&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); } &&
4824 { ac_try
='test -s conftest.$ac_objext'
4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; }; then
4832 echo "$as_me: failed program was:" >&5
4833 cat conftest.
$ac_ext >&5
4836 rm -f conftest.
$ac_objext conftest.
$ac_ext
4837 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
4838 echo "${ECHO_T}$sol_lfs_bug" >&6
4839 if test "$sol_lfs_bug" = "yes"; then
4843 if test "$use_lfs" = "yes"; then
4844 # Two defines needed to enable largefile support on various platforms
4845 # These may affect some typedefs
4847 cat >>confdefs.h
<<\_ACEOF
4848 #define _LARGEFILE_SOURCE 1
4852 cat >>confdefs.h
<<\_ACEOF
4853 #define _FILE_OFFSET_BITS 64
4858 # Add some code to confdefs.h so that the test for off_t works on SCO
4859 cat >> confdefs.h
<<\EOF
4865 # Type availability checks
4866 echo "$as_me:$LINENO: checking for mode_t" >&5
4867 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4868 if test "${ac_cv_type_mode_t+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4871 cat >conftest.
$ac_ext <<_ACEOF
4872 #line $LINENO "configure"
4873 #include "confdefs.h"
4874 $ac_includes_default
4875 #ifdef F77_DUMMY_MAIN
4879 int F77_DUMMY_MAIN() { return 1; }
4886 if (sizeof (mode_t))
4892 rm -f conftest.
$ac_objext
4893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4894 (eval $ac_compile) 2>&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); } &&
4898 { ac_try
='test -s conftest.$ac_objext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 ac_cv_type_mode_t
=yes
4906 echo "$as_me: failed program was:" >&5
4907 cat conftest.
$ac_ext >&5
4908 ac_cv_type_mode_t
=no
4910 rm -f conftest.
$ac_objext conftest.
$ac_ext
4912 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4913 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4914 if test $ac_cv_type_mode_t = yes; then
4918 cat >>confdefs.h
<<_ACEOF
4924 echo "$as_me:$LINENO: checking for off_t" >&5
4925 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4926 if test "${ac_cv_type_off_t+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 cat >conftest.
$ac_ext <<_ACEOF
4930 #line $LINENO "configure"
4931 #include "confdefs.h"
4932 $ac_includes_default
4933 #ifdef F77_DUMMY_MAIN
4937 int F77_DUMMY_MAIN() { return 1; }
4950 rm -f conftest.
$ac_objext
4951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4952 (eval $ac_compile) 2>&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } &&
4956 { ac_try
='test -s conftest.$ac_objext'
4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; }; then
4962 ac_cv_type_off_t
=yes
4964 echo "$as_me: failed program was:" >&5
4965 cat conftest.
$ac_ext >&5
4968 rm -f conftest.
$ac_objext conftest.
$ac_ext
4970 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4971 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4972 if test $ac_cv_type_off_t = yes; then
4976 cat >>confdefs.h
<<_ACEOF
4982 echo "$as_me:$LINENO: checking for pid_t" >&5
4983 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4984 if test "${ac_cv_type_pid_t+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4987 cat >conftest.
$ac_ext <<_ACEOF
4988 #line $LINENO "configure"
4989 #include "confdefs.h"
4990 $ac_includes_default
4991 #ifdef F77_DUMMY_MAIN
4995 int F77_DUMMY_MAIN() { return 1; }
5008 rm -f conftest.
$ac_objext
5009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5010 (eval $ac_compile) 2>&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } &&
5014 { ac_try
='test -s conftest.$ac_objext'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5020 ac_cv_type_pid_t
=yes
5022 echo "$as_me: failed program was:" >&5
5023 cat conftest.
$ac_ext >&5
5026 rm -f conftest.
$ac_objext conftest.
$ac_ext
5028 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5029 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5030 if test $ac_cv_type_pid_t = yes; then
5034 cat >>confdefs.h
<<_ACEOF
5040 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5041 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5042 if test "${ac_cv_type_signal+set}" = set; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5045 cat >conftest.
$ac_ext <<_ACEOF
5046 #line $LINENO "configure"
5047 #include "confdefs.h"
5048 #include <sys/types.h>
5054 extern "C" void (*signal (int, void (*)(int)))(int);
5056 void (*signal ()) ();
5059 #ifdef F77_DUMMY_MAIN
5063 int F77_DUMMY_MAIN() { return 1; }
5073 rm -f conftest.
$ac_objext
5074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5075 (eval $ac_compile) 2>&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } &&
5079 { ac_try
='test -s conftest.$ac_objext'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; }; then
5085 ac_cv_type_signal
=void
5087 echo "$as_me: failed program was:" >&5
5088 cat conftest.
$ac_ext >&5
5089 ac_cv_type_signal
=int
5091 rm -f conftest.
$ac_objext conftest.
$ac_ext
5093 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5094 echo "${ECHO_T}$ac_cv_type_signal" >&6
5096 cat >>confdefs.h
<<_ACEOF
5097 #define RETSIGTYPE $ac_cv_type_signal
5101 echo "$as_me:$LINENO: checking for size_t" >&5
5102 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5103 if test "${ac_cv_type_size_t+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 cat >conftest.
$ac_ext <<_ACEOF
5107 #line $LINENO "configure"
5108 #include "confdefs.h"
5109 $ac_includes_default
5110 #ifdef F77_DUMMY_MAIN
5114 int F77_DUMMY_MAIN() { return 1; }
5121 if (sizeof (size_t))
5127 rm -f conftest.
$ac_objext
5128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5129 (eval $ac_compile) 2>&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } &&
5133 { ac_try
='test -s conftest.$ac_objext'
5134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }; }; then
5139 ac_cv_type_size_t
=yes
5141 echo "$as_me: failed program was:" >&5
5142 cat conftest.
$ac_ext >&5
5143 ac_cv_type_size_t
=no
5145 rm -f conftest.
$ac_objext conftest.
$ac_ext
5147 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5148 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5149 if test $ac_cv_type_size_t = yes; then
5153 cat >>confdefs.h
<<_ACEOF
5154 #define size_t unsigned
5159 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5160 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5161 if test "${ac_cv_type_uid_t+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 cat >conftest.
$ac_ext <<_ACEOF
5165 #line $LINENO "configure"
5166 #include "confdefs.h"
5167 #include <sys/types.h>
5170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5171 egrep "uid_t" >/dev
/null
2>&1; then
5172 ac_cv_type_uid_t
=yes
5179 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5180 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5181 if test $ac_cv_type_uid_t = no
; then
5183 cat >>confdefs.h
<<\_ACEOF
5188 cat >>confdefs.h
<<\_ACEOF
5195 # Sizes of various common basic types
5196 echo "$as_me:$LINENO: checking for int" >&5
5197 echo $ECHO_N "checking for int... $ECHO_C" >&6
5198 if test "${ac_cv_type_int+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5201 cat >conftest.
$ac_ext <<_ACEOF
5202 #line $LINENO "configure"
5203 #include "confdefs.h"
5204 $ac_includes_default
5205 #ifdef F77_DUMMY_MAIN
5209 int F77_DUMMY_MAIN() { return 1; }
5222 rm -f conftest.
$ac_objext
5223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5224 (eval $ac_compile) 2>&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); } &&
5228 { ac_try
='test -s conftest.$ac_objext'
5229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }; }; then
5236 echo "$as_me: failed program was:" >&5
5237 cat conftest.
$ac_ext >&5
5240 rm -f conftest.
$ac_objext conftest.
$ac_ext
5242 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5243 echo "${ECHO_T}$ac_cv_type_int" >&6
5245 echo "$as_me:$LINENO: checking size of int" >&5
5246 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5247 if test "${ac_cv_sizeof_int+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5250 if test "$ac_cv_type_int" = yes; then
5251 # The cast to unsigned long works around a bug in the HP C Compiler
5252 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5253 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5254 # This bug is HP SR number 8606223364.
5255 if test "$cross_compiling" = yes; then
5256 # Depending upon the size, compute the lo and hi bounds.
5257 cat >conftest.
$ac_ext <<_ACEOF
5258 #line $LINENO "configure"
5259 #include "confdefs.h"
5260 $ac_includes_default
5261 #ifdef F77_DUMMY_MAIN
5265 int F77_DUMMY_MAIN() { return 1; }
5270 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5277 rm -f conftest.
$ac_objext
5278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5279 (eval $ac_compile) 2>&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); } &&
5283 { ac_try
='test -s conftest.$ac_objext'
5284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }; }; then
5291 cat >conftest.
$ac_ext <<_ACEOF
5292 #line $LINENO "configure"
5293 #include "confdefs.h"
5294 $ac_includes_default
5295 #ifdef F77_DUMMY_MAIN
5299 int F77_DUMMY_MAIN() { return 1; }
5304 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5311 rm -f conftest.
$ac_objext
5312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5313 (eval $ac_compile) 2>&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try
='test -s conftest.$ac_objext'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5323 ac_hi
=$ac_mid; break
5325 echo "$as_me: failed program was:" >&5
5326 cat conftest.
$ac_ext >&5
5327 ac_lo
=`expr $ac_mid + 1`
5328 if test $ac_lo -le $ac_mid; then
5332 ac_mid
=`expr 2 '*' $ac_mid + 1`
5334 rm -f conftest.
$ac_objext conftest.
$ac_ext
5337 echo "$as_me: failed program was:" >&5
5338 cat conftest.
$ac_ext >&5
5339 cat >conftest.
$ac_ext <<_ACEOF
5340 #line $LINENO "configure"
5341 #include "confdefs.h"
5342 $ac_includes_default
5343 #ifdef F77_DUMMY_MAIN
5347 int F77_DUMMY_MAIN() { return 1; }
5352 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5359 rm -f conftest.
$ac_objext
5360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5361 (eval $ac_compile) 2>&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } &&
5365 { ac_try
='test -s conftest.$ac_objext'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; }; then
5373 cat >conftest.
$ac_ext <<_ACEOF
5374 #line $LINENO "configure"
5375 #include "confdefs.h"
5376 $ac_includes_default
5377 #ifdef F77_DUMMY_MAIN
5381 int F77_DUMMY_MAIN() { return 1; }
5386 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5393 rm -f conftest.
$ac_objext
5394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5395 (eval $ac_compile) 2>&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } &&
5399 { ac_try
='test -s conftest.$ac_objext'
5400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); }; }; then
5405 ac_lo
=$ac_mid; break
5407 echo "$as_me: failed program was:" >&5
5408 cat conftest.
$ac_ext >&5
5409 ac_hi
=`expr '(' $ac_mid ')' - 1`
5410 if test $ac_mid -le $ac_hi; then
5414 ac_mid
=`expr 2 '*' $ac_mid`
5416 rm -f conftest.
$ac_objext conftest.
$ac_ext
5419 echo "$as_me: failed program was:" >&5
5420 cat conftest.
$ac_ext >&5
5423 rm -f conftest.
$ac_objext conftest.
$ac_ext
5425 rm -f conftest.
$ac_objext conftest.
$ac_ext
5426 # Binary search between lo and hi bounds.
5427 while test "x$ac_lo" != "x$ac_hi"; do
5428 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5429 cat >conftest.
$ac_ext <<_ACEOF
5430 #line $LINENO "configure"
5431 #include "confdefs.h"
5432 $ac_includes_default
5433 #ifdef F77_DUMMY_MAIN
5437 int F77_DUMMY_MAIN() { return 1; }
5442 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5449 rm -f conftest.
$ac_objext
5450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5451 (eval $ac_compile) 2>&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); } &&
5455 { ac_try
='test -s conftest.$ac_objext'
5456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); }; }; then
5463 echo "$as_me: failed program was:" >&5
5464 cat conftest.
$ac_ext >&5
5465 ac_lo
=`expr '(' $ac_mid ')' + 1`
5467 rm -f conftest.
$ac_objext conftest.
$ac_ext
5470 ?
*) ac_cv_sizeof_int
=$ac_lo;;
5471 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5472 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5473 { (exit 1); exit 1; }; } ;;
5476 if test "$cross_compiling" = yes; then
5477 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5478 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5479 { (exit 1); exit 1; }; }
5481 cat >conftest.
$ac_ext <<_ACEOF
5482 #line $LINENO "configure"
5483 #include "confdefs.h"
5484 $ac_includes_default
5485 long longval () { return (long) (sizeof (int)); }
5486 unsigned long ulongval () { return (long) (sizeof (int)); }
5489 #ifdef F77_DUMMY_MAIN
5493 int F77_DUMMY_MAIN() { return 1; }
5499 FILE *f = fopen ("conftest.val", "w");
5502 if (((long) (sizeof (int))) < 0)
5504 long i = longval ();
5505 if (i != ((long) (sizeof (int))))
5507 fprintf (f, "%ld\n", i);
5511 unsigned long i = ulongval ();
5512 if (i != ((long) (sizeof (int))))
5514 fprintf (f, "%lu\n", i);
5516 exit (ferror (f) || fclose (f) != 0);
5522 rm -f conftest
$ac_exeext
5523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5524 (eval $ac_link) 2>&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); }; }; then
5533 ac_cv_sizeof_int
=`cat conftest.val`
5535 echo "$as_me: program exited with status $ac_status" >&5
5536 echo "$as_me: failed program was:" >&5
5537 cat conftest.
$ac_ext >&5
5539 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5540 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5541 { (exit 1); exit 1; }; }
5543 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5551 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5552 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5553 cat >>confdefs.h
<<_ACEOF
5554 #define SIZEOF_INT $ac_cv_sizeof_int
5558 echo "$as_me:$LINENO: checking for long" >&5
5559 echo $ECHO_N "checking for long... $ECHO_C" >&6
5560 if test "${ac_cv_type_long+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5563 cat >conftest.
$ac_ext <<_ACEOF
5564 #line $LINENO "configure"
5565 #include "confdefs.h"
5566 $ac_includes_default
5567 #ifdef F77_DUMMY_MAIN
5571 int F77_DUMMY_MAIN() { return 1; }
5584 rm -f conftest.
$ac_objext
5585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5586 (eval $ac_compile) 2>&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); } &&
5590 { ac_try
='test -s conftest.$ac_objext'
5591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; }; then
5598 echo "$as_me: failed program was:" >&5
5599 cat conftest.
$ac_ext >&5
5602 rm -f conftest.
$ac_objext conftest.
$ac_ext
5604 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5605 echo "${ECHO_T}$ac_cv_type_long" >&6
5607 echo "$as_me:$LINENO: checking size of long" >&5
5608 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5609 if test "${ac_cv_sizeof_long+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 if test "$ac_cv_type_long" = yes; then
5613 # The cast to unsigned long works around a bug in the HP C Compiler
5614 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5615 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5616 # This bug is HP SR number 8606223364.
5617 if test "$cross_compiling" = yes; then
5618 # Depending upon the size, compute the lo and hi bounds.
5619 cat >conftest.
$ac_ext <<_ACEOF
5620 #line $LINENO "configure"
5621 #include "confdefs.h"
5622 $ac_includes_default
5623 #ifdef F77_DUMMY_MAIN
5627 int F77_DUMMY_MAIN() { return 1; }
5632 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5639 rm -f conftest.
$ac_objext
5640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5641 (eval $ac_compile) 2>&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } &&
5645 { ac_try
='test -s conftest.$ac_objext'
5646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); }; }; then
5653 cat >conftest.
$ac_ext <<_ACEOF
5654 #line $LINENO "configure"
5655 #include "confdefs.h"
5656 $ac_includes_default
5657 #ifdef F77_DUMMY_MAIN
5661 int F77_DUMMY_MAIN() { return 1; }
5666 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5673 rm -f conftest.
$ac_objext
5674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5675 (eval $ac_compile) 2>&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } &&
5679 { ac_try
='test -s conftest.$ac_objext'
5680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; }; then
5685 ac_hi
=$ac_mid; break
5687 echo "$as_me: failed program was:" >&5
5688 cat conftest.
$ac_ext >&5
5689 ac_lo
=`expr $ac_mid + 1`
5690 if test $ac_lo -le $ac_mid; then
5694 ac_mid
=`expr 2 '*' $ac_mid + 1`
5696 rm -f conftest.
$ac_objext conftest.
$ac_ext
5699 echo "$as_me: failed program was:" >&5
5700 cat conftest.
$ac_ext >&5
5701 cat >conftest.
$ac_ext <<_ACEOF
5702 #line $LINENO "configure"
5703 #include "confdefs.h"
5704 $ac_includes_default
5705 #ifdef F77_DUMMY_MAIN
5709 int F77_DUMMY_MAIN() { return 1; }
5714 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5721 rm -f conftest.
$ac_objext
5722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5723 (eval $ac_compile) 2>&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); } &&
5727 { ac_try
='test -s conftest.$ac_objext'
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; }; then
5735 cat >conftest.
$ac_ext <<_ACEOF
5736 #line $LINENO "configure"
5737 #include "confdefs.h"
5738 $ac_includes_default
5739 #ifdef F77_DUMMY_MAIN
5743 int F77_DUMMY_MAIN() { return 1; }
5748 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5755 rm -f conftest.
$ac_objext
5756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5757 (eval $ac_compile) 2>&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } &&
5761 { ac_try
='test -s conftest.$ac_objext'
5762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; }; then
5767 ac_lo
=$ac_mid; break
5769 echo "$as_me: failed program was:" >&5
5770 cat conftest.
$ac_ext >&5
5771 ac_hi
=`expr '(' $ac_mid ')' - 1`
5772 if test $ac_mid -le $ac_hi; then
5776 ac_mid
=`expr 2 '*' $ac_mid`
5778 rm -f conftest.
$ac_objext conftest.
$ac_ext
5781 echo "$as_me: failed program was:" >&5
5782 cat conftest.
$ac_ext >&5
5785 rm -f conftest.
$ac_objext conftest.
$ac_ext
5787 rm -f conftest.
$ac_objext conftest.
$ac_ext
5788 # Binary search between lo and hi bounds.
5789 while test "x$ac_lo" != "x$ac_hi"; do
5790 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5791 cat >conftest.
$ac_ext <<_ACEOF
5792 #line $LINENO "configure"
5793 #include "confdefs.h"
5794 $ac_includes_default
5795 #ifdef F77_DUMMY_MAIN
5799 int F77_DUMMY_MAIN() { return 1; }
5804 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5811 rm -f conftest.
$ac_objext
5812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5813 (eval $ac_compile) 2>&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } &&
5817 { ac_try
='test -s conftest.$ac_objext'
5818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; }; then
5825 echo "$as_me: failed program was:" >&5
5826 cat conftest.
$ac_ext >&5
5827 ac_lo
=`expr '(' $ac_mid ')' + 1`
5829 rm -f conftest.
$ac_objext conftest.
$ac_ext
5832 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5833 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5834 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5835 { (exit 1); exit 1; }; } ;;
5838 if test "$cross_compiling" = yes; then
5839 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5840 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5841 { (exit 1); exit 1; }; }
5843 cat >conftest.
$ac_ext <<_ACEOF
5844 #line $LINENO "configure"
5845 #include "confdefs.h"
5846 $ac_includes_default
5847 long longval () { return (long) (sizeof (long)); }
5848 unsigned long ulongval () { return (long) (sizeof (long)); }
5851 #ifdef F77_DUMMY_MAIN
5855 int F77_DUMMY_MAIN() { return 1; }
5861 FILE *f = fopen ("conftest.val", "w");
5864 if (((long) (sizeof (long))) < 0)
5866 long i = longval ();
5867 if (i != ((long) (sizeof (long))))
5869 fprintf (f, "%ld\n", i);
5873 unsigned long i = ulongval ();
5874 if (i != ((long) (sizeof (long))))
5876 fprintf (f, "%lu\n", i);
5878 exit (ferror (f) || fclose (f) != 0);
5884 rm -f conftest
$ac_exeext
5885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5886 (eval $ac_link) 2>&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; }; then
5895 ac_cv_sizeof_long
=`cat conftest.val`
5897 echo "$as_me: program exited with status $ac_status" >&5
5898 echo "$as_me: failed program was:" >&5
5899 cat conftest.
$ac_ext >&5
5901 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5902 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5903 { (exit 1); exit 1; }; }
5905 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5913 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5914 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5915 cat >>confdefs.h
<<_ACEOF
5916 #define SIZEOF_LONG $ac_cv_sizeof_long
5920 echo "$as_me:$LINENO: checking for void *" >&5
5921 echo $ECHO_N "checking for void *... $ECHO_C" >&6
5922 if test "${ac_cv_type_void_p+set}" = set; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 cat >conftest.
$ac_ext <<_ACEOF
5926 #line $LINENO "configure"
5927 #include "confdefs.h"
5928 $ac_includes_default
5929 #ifdef F77_DUMMY_MAIN
5933 int F77_DUMMY_MAIN() { return 1; }
5940 if (sizeof (void *))
5946 rm -f conftest.
$ac_objext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5948 (eval $ac_compile) 2>&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); } &&
5952 { ac_try
='test -s conftest.$ac_objext'
5953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; }; then
5958 ac_cv_type_void_p
=yes
5960 echo "$as_me: failed program was:" >&5
5961 cat conftest.
$ac_ext >&5
5962 ac_cv_type_void_p
=no
5964 rm -f conftest.
$ac_objext conftest.
$ac_ext
5966 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
5967 echo "${ECHO_T}$ac_cv_type_void_p" >&6
5969 echo "$as_me:$LINENO: checking size of void *" >&5
5970 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
5971 if test "${ac_cv_sizeof_void_p+set}" = set; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5974 if test "$ac_cv_type_void_p" = yes; then
5975 # The cast to unsigned long works around a bug in the HP C Compiler
5976 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5977 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5978 # This bug is HP SR number 8606223364.
5979 if test "$cross_compiling" = yes; then
5980 # Depending upon the size, compute the lo and hi bounds.
5981 cat >conftest.
$ac_ext <<_ACEOF
5982 #line $LINENO "configure"
5983 #include "confdefs.h"
5984 $ac_includes_default
5985 #ifdef F77_DUMMY_MAIN
5989 int F77_DUMMY_MAIN() { return 1; }
5994 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6001 rm -f conftest.
$ac_objext
6002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6003 (eval $ac_compile) 2>&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } &&
6007 { ac_try
='test -s conftest.$ac_objext'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6015 cat >conftest.
$ac_ext <<_ACEOF
6016 #line $LINENO "configure"
6017 #include "confdefs.h"
6018 $ac_includes_default
6019 #ifdef F77_DUMMY_MAIN
6023 int F77_DUMMY_MAIN() { return 1; }
6028 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6035 rm -f conftest.
$ac_objext
6036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6037 (eval $ac_compile) 2>&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } &&
6041 { ac_try
='test -s conftest.$ac_objext'
6042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); }; }; then
6047 ac_hi
=$ac_mid; break
6049 echo "$as_me: failed program was:" >&5
6050 cat conftest.
$ac_ext >&5
6051 ac_lo
=`expr $ac_mid + 1`
6052 if test $ac_lo -le $ac_mid; then
6056 ac_mid
=`expr 2 '*' $ac_mid + 1`
6058 rm -f conftest.
$ac_objext conftest.
$ac_ext
6061 echo "$as_me: failed program was:" >&5
6062 cat conftest.
$ac_ext >&5
6063 cat >conftest.
$ac_ext <<_ACEOF
6064 #line $LINENO "configure"
6065 #include "confdefs.h"
6066 $ac_includes_default
6067 #ifdef F77_DUMMY_MAIN
6071 int F77_DUMMY_MAIN() { return 1; }
6076 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
6083 rm -f conftest.
$ac_objext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6085 (eval $ac_compile) 2>&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } &&
6089 { ac_try
='test -s conftest.$ac_objext'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
6097 cat >conftest.
$ac_ext <<_ACEOF
6098 #line $LINENO "configure"
6099 #include "confdefs.h"
6100 $ac_includes_default
6101 #ifdef F77_DUMMY_MAIN
6105 int F77_DUMMY_MAIN() { return 1; }
6110 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
6117 rm -f conftest.
$ac_objext
6118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6119 (eval $ac_compile) 2>&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } &&
6123 { ac_try
='test -s conftest.$ac_objext'
6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; }; then
6129 ac_lo
=$ac_mid; break
6131 echo "$as_me: failed program was:" >&5
6132 cat conftest.
$ac_ext >&5
6133 ac_hi
=`expr '(' $ac_mid ')' - 1`
6134 if test $ac_mid -le $ac_hi; then
6138 ac_mid
=`expr 2 '*' $ac_mid`
6140 rm -f conftest.
$ac_objext conftest.
$ac_ext
6143 echo "$as_me: failed program was:" >&5
6144 cat conftest.
$ac_ext >&5
6147 rm -f conftest.
$ac_objext conftest.
$ac_ext
6149 rm -f conftest.
$ac_objext conftest.
$ac_ext
6150 # Binary search between lo and hi bounds.
6151 while test "x$ac_lo" != "x$ac_hi"; do
6152 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6153 cat >conftest.
$ac_ext <<_ACEOF
6154 #line $LINENO "configure"
6155 #include "confdefs.h"
6156 $ac_includes_default
6157 #ifdef F77_DUMMY_MAIN
6161 int F77_DUMMY_MAIN() { return 1; }
6166 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6173 rm -f conftest.
$ac_objext
6174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6175 (eval $ac_compile) 2>&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } &&
6179 { ac_try
='test -s conftest.$ac_objext'
6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; }; then
6187 echo "$as_me: failed program was:" >&5
6188 cat conftest.
$ac_ext >&5
6189 ac_lo
=`expr '(' $ac_mid ')' + 1`
6191 rm -f conftest.
$ac_objext conftest.
$ac_ext
6194 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
6195 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5
6196 echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;}
6197 { (exit 1); exit 1; }; } ;;
6200 if test "$cross_compiling" = yes; then
6201 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6202 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6203 { (exit 1); exit 1; }; }
6205 cat >conftest.
$ac_ext <<_ACEOF
6206 #line $LINENO "configure"
6207 #include "confdefs.h"
6208 $ac_includes_default
6209 long longval () { return (long) (sizeof (void *)); }
6210 unsigned long ulongval () { return (long) (sizeof (void *)); }
6213 #ifdef F77_DUMMY_MAIN
6217 int F77_DUMMY_MAIN() { return 1; }
6223 FILE *f = fopen ("conftest.val", "w");
6226 if (((long) (sizeof (void *))) < 0)
6228 long i = longval ();
6229 if (i != ((long) (sizeof (void *))))
6231 fprintf (f, "%ld\n", i);
6235 unsigned long i = ulongval ();
6236 if (i != ((long) (sizeof (void *))))
6238 fprintf (f, "%lu\n", i);
6240 exit (ferror (f) || fclose (f) != 0);
6246 rm -f conftest
$ac_exeext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6248 (eval $ac_link) 2>&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; }; then
6257 ac_cv_sizeof_void_p
=`cat conftest.val`
6259 echo "$as_me: program exited with status $ac_status" >&5
6260 echo "$as_me: failed program was:" >&5
6261 cat conftest.
$ac_ext >&5
6263 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5
6264 echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;}
6265 { (exit 1); exit 1; }; }
6267 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6272 ac_cv_sizeof_void_p
=0
6275 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6276 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6277 cat >>confdefs.h
<<_ACEOF
6278 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6282 echo "$as_me:$LINENO: checking for char" >&5
6283 echo $ECHO_N "checking for char... $ECHO_C" >&6
6284 if test "${ac_cv_type_char+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 cat >conftest.
$ac_ext <<_ACEOF
6288 #line $LINENO "configure"
6289 #include "confdefs.h"
6290 $ac_includes_default
6291 #ifdef F77_DUMMY_MAIN
6295 int F77_DUMMY_MAIN() { return 1; }
6308 rm -f conftest.
$ac_objext
6309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6310 (eval $ac_compile) 2>&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } &&
6314 { ac_try
='test -s conftest.$ac_objext'
6315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; }; then
6322 echo "$as_me: failed program was:" >&5
6323 cat conftest.
$ac_ext >&5
6326 rm -f conftest.
$ac_objext conftest.
$ac_ext
6328 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
6329 echo "${ECHO_T}$ac_cv_type_char" >&6
6331 echo "$as_me:$LINENO: checking size of char" >&5
6332 echo $ECHO_N "checking size of char... $ECHO_C" >&6
6333 if test "${ac_cv_sizeof_char+set}" = set; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6336 if test "$ac_cv_type_char" = yes; then
6337 # The cast to unsigned long works around a bug in the HP C Compiler
6338 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6339 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6340 # This bug is HP SR number 8606223364.
6341 if test "$cross_compiling" = yes; then
6342 # Depending upon the size, compute the lo and hi bounds.
6343 cat >conftest.
$ac_ext <<_ACEOF
6344 #line $LINENO "configure"
6345 #include "confdefs.h"
6346 $ac_includes_default
6347 #ifdef F77_DUMMY_MAIN
6351 int F77_DUMMY_MAIN() { return 1; }
6356 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
6363 rm -f conftest.
$ac_objext
6364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6365 (eval $ac_compile) 2>&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); } &&
6369 { ac_try
='test -s conftest.$ac_objext'
6370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; }; then
6377 cat >conftest.
$ac_ext <<_ACEOF
6378 #line $LINENO "configure"
6379 #include "confdefs.h"
6380 $ac_includes_default
6381 #ifdef F77_DUMMY_MAIN
6385 int F77_DUMMY_MAIN() { return 1; }
6390 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6397 rm -f conftest.
$ac_objext
6398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6399 (eval $ac_compile) 2>&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } &&
6403 { ac_try
='test -s conftest.$ac_objext'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
6409 ac_hi
=$ac_mid; break
6411 echo "$as_me: failed program was:" >&5
6412 cat conftest.
$ac_ext >&5
6413 ac_lo
=`expr $ac_mid + 1`
6414 if test $ac_lo -le $ac_mid; then
6418 ac_mid
=`expr 2 '*' $ac_mid + 1`
6420 rm -f conftest.
$ac_objext conftest.
$ac_ext
6423 echo "$as_me: failed program was:" >&5
6424 cat conftest.
$ac_ext >&5
6425 cat >conftest.
$ac_ext <<_ACEOF
6426 #line $LINENO "configure"
6427 #include "confdefs.h"
6428 $ac_includes_default
6429 #ifdef F77_DUMMY_MAIN
6433 int F77_DUMMY_MAIN() { return 1; }
6438 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
6445 rm -f conftest.
$ac_objext
6446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6447 (eval $ac_compile) 2>&5
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); } &&
6451 { ac_try
='test -s conftest.$ac_objext'
6452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); }; }; then
6459 cat >conftest.
$ac_ext <<_ACEOF
6460 #line $LINENO "configure"
6461 #include "confdefs.h"
6462 $ac_includes_default
6463 #ifdef F77_DUMMY_MAIN
6467 int F77_DUMMY_MAIN() { return 1; }
6472 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
6479 rm -f conftest.
$ac_objext
6480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481 (eval $ac_compile) 2>&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } &&
6485 { ac_try
='test -s conftest.$ac_objext'
6486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); }; }; then
6491 ac_lo
=$ac_mid; break
6493 echo "$as_me: failed program was:" >&5
6494 cat conftest.
$ac_ext >&5
6495 ac_hi
=`expr '(' $ac_mid ')' - 1`
6496 if test $ac_mid -le $ac_hi; then
6500 ac_mid
=`expr 2 '*' $ac_mid`
6502 rm -f conftest.
$ac_objext conftest.
$ac_ext
6505 echo "$as_me: failed program was:" >&5
6506 cat conftest.
$ac_ext >&5
6509 rm -f conftest.
$ac_objext conftest.
$ac_ext
6511 rm -f conftest.
$ac_objext conftest.
$ac_ext
6512 # Binary search between lo and hi bounds.
6513 while test "x$ac_lo" != "x$ac_hi"; do
6514 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6515 cat >conftest.
$ac_ext <<_ACEOF
6516 #line $LINENO "configure"
6517 #include "confdefs.h"
6518 $ac_includes_default
6519 #ifdef F77_DUMMY_MAIN
6523 int F77_DUMMY_MAIN() { return 1; }
6528 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6535 rm -f conftest.
$ac_objext
6536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6537 (eval $ac_compile) 2>&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); } &&
6541 { ac_try
='test -s conftest.$ac_objext'
6542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); }; }; then
6549 echo "$as_me: failed program was:" >&5
6550 cat conftest.
$ac_ext >&5
6551 ac_lo
=`expr '(' $ac_mid ')' + 1`
6553 rm -f conftest.
$ac_objext conftest.
$ac_ext
6556 ?
*) ac_cv_sizeof_char
=$ac_lo;;
6557 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
6558 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
6559 { (exit 1); exit 1; }; } ;;
6562 if test "$cross_compiling" = yes; then
6563 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6564 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6565 { (exit 1); exit 1; }; }
6567 cat >conftest.
$ac_ext <<_ACEOF
6568 #line $LINENO "configure"
6569 #include "confdefs.h"
6570 $ac_includes_default
6571 long longval () { return (long) (sizeof (char)); }
6572 unsigned long ulongval () { return (long) (sizeof (char)); }
6575 #ifdef F77_DUMMY_MAIN
6579 int F77_DUMMY_MAIN() { return 1; }
6585 FILE *f = fopen ("conftest.val", "w");
6588 if (((long) (sizeof (char))) < 0)
6590 long i = longval ();
6591 if (i != ((long) (sizeof (char))))
6593 fprintf (f, "%ld\n", i);
6597 unsigned long i = ulongval ();
6598 if (i != ((long) (sizeof (char))))
6600 fprintf (f, "%lu\n", i);
6602 exit (ferror (f) || fclose (f) != 0);
6608 rm -f conftest
$ac_exeext
6609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6610 (eval $ac_link) 2>&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); }; }; then
6619 ac_cv_sizeof_char
=`cat conftest.val`
6621 echo "$as_me: program exited with status $ac_status" >&5
6622 echo "$as_me: failed program was:" >&5
6623 cat conftest.
$ac_ext >&5
6625 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
6626 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
6627 { (exit 1); exit 1; }; }
6629 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6637 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
6638 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
6639 cat >>confdefs.h
<<_ACEOF
6640 #define SIZEOF_CHAR $ac_cv_sizeof_char
6644 echo "$as_me:$LINENO: checking for short" >&5
6645 echo $ECHO_N "checking for short... $ECHO_C" >&6
6646 if test "${ac_cv_type_short+set}" = set; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 cat >conftest.
$ac_ext <<_ACEOF
6650 #line $LINENO "configure"
6651 #include "confdefs.h"
6652 $ac_includes_default
6653 #ifdef F77_DUMMY_MAIN
6657 int F77_DUMMY_MAIN() { return 1; }
6670 rm -f conftest.
$ac_objext
6671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6672 (eval $ac_compile) 2>&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } &&
6676 { ac_try
='test -s conftest.$ac_objext'
6677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; }; then
6682 ac_cv_type_short
=yes
6684 echo "$as_me: failed program was:" >&5
6685 cat conftest.
$ac_ext >&5
6688 rm -f conftest.
$ac_objext conftest.
$ac_ext
6690 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
6691 echo "${ECHO_T}$ac_cv_type_short" >&6
6693 echo "$as_me:$LINENO: checking size of short" >&5
6694 echo $ECHO_N "checking size of short... $ECHO_C" >&6
6695 if test "${ac_cv_sizeof_short+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 if test "$ac_cv_type_short" = yes; then
6699 # The cast to unsigned long works around a bug in the HP C Compiler
6700 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6701 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6702 # This bug is HP SR number 8606223364.
6703 if test "$cross_compiling" = yes; then
6704 # Depending upon the size, compute the lo and hi bounds.
6705 cat >conftest.
$ac_ext <<_ACEOF
6706 #line $LINENO "configure"
6707 #include "confdefs.h"
6708 $ac_includes_default
6709 #ifdef F77_DUMMY_MAIN
6713 int F77_DUMMY_MAIN() { return 1; }
6718 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
6725 rm -f conftest.
$ac_objext
6726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6727 (eval $ac_compile) 2>&5
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); } &&
6731 { ac_try
='test -s conftest.$ac_objext'
6732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); }; }; then
6739 cat >conftest.
$ac_ext <<_ACEOF
6740 #line $LINENO "configure"
6741 #include "confdefs.h"
6742 $ac_includes_default
6743 #ifdef F77_DUMMY_MAIN
6747 int F77_DUMMY_MAIN() { return 1; }
6752 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6759 rm -f conftest.
$ac_objext
6760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6761 (eval $ac_compile) 2>&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try
='test -s conftest.$ac_objext'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; }; then
6771 ac_hi
=$ac_mid; break
6773 echo "$as_me: failed program was:" >&5
6774 cat conftest.
$ac_ext >&5
6775 ac_lo
=`expr $ac_mid + 1`
6776 if test $ac_lo -le $ac_mid; then
6780 ac_mid
=`expr 2 '*' $ac_mid + 1`
6782 rm -f conftest.
$ac_objext conftest.
$ac_ext
6785 echo "$as_me: failed program was:" >&5
6786 cat conftest.
$ac_ext >&5
6787 cat >conftest.
$ac_ext <<_ACEOF
6788 #line $LINENO "configure"
6789 #include "confdefs.h"
6790 $ac_includes_default
6791 #ifdef F77_DUMMY_MAIN
6795 int F77_DUMMY_MAIN() { return 1; }
6800 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
6807 rm -f conftest.
$ac_objext
6808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6809 (eval $ac_compile) 2>&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); } &&
6813 { ac_try
='test -s conftest.$ac_objext'
6814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); }; }; then
6821 cat >conftest.
$ac_ext <<_ACEOF
6822 #line $LINENO "configure"
6823 #include "confdefs.h"
6824 $ac_includes_default
6825 #ifdef F77_DUMMY_MAIN
6829 int F77_DUMMY_MAIN() { return 1; }
6834 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
6841 rm -f conftest.
$ac_objext
6842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6843 (eval $ac_compile) 2>&5
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); } &&
6847 { ac_try
='test -s conftest.$ac_objext'
6848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); }; }; then
6853 ac_lo
=$ac_mid; break
6855 echo "$as_me: failed program was:" >&5
6856 cat conftest.
$ac_ext >&5
6857 ac_hi
=`expr '(' $ac_mid ')' - 1`
6858 if test $ac_mid -le $ac_hi; then
6862 ac_mid
=`expr 2 '*' $ac_mid`
6864 rm -f conftest.
$ac_objext conftest.
$ac_ext
6867 echo "$as_me: failed program was:" >&5
6868 cat conftest.
$ac_ext >&5
6871 rm -f conftest.
$ac_objext conftest.
$ac_ext
6873 rm -f conftest.
$ac_objext conftest.
$ac_ext
6874 # Binary search between lo and hi bounds.
6875 while test "x$ac_lo" != "x$ac_hi"; do
6876 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6877 cat >conftest.
$ac_ext <<_ACEOF
6878 #line $LINENO "configure"
6879 #include "confdefs.h"
6880 $ac_includes_default
6881 #ifdef F77_DUMMY_MAIN
6885 int F77_DUMMY_MAIN() { return 1; }
6890 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6897 rm -f conftest.
$ac_objext
6898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6899 (eval $ac_compile) 2>&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } &&
6903 { ac_try
='test -s conftest.$ac_objext'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; }; then
6911 echo "$as_me: failed program was:" >&5
6912 cat conftest.
$ac_ext >&5
6913 ac_lo
=`expr '(' $ac_mid ')' + 1`
6915 rm -f conftest.
$ac_objext conftest.
$ac_ext
6918 ?
*) ac_cv_sizeof_short
=$ac_lo;;
6919 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
6920 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
6921 { (exit 1); exit 1; }; } ;;
6924 if test "$cross_compiling" = yes; then
6925 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6926 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6927 { (exit 1); exit 1; }; }
6929 cat >conftest.
$ac_ext <<_ACEOF
6930 #line $LINENO "configure"
6931 #include "confdefs.h"
6932 $ac_includes_default
6933 long longval () { return (long) (sizeof (short)); }
6934 unsigned long ulongval () { return (long) (sizeof (short)); }
6937 #ifdef F77_DUMMY_MAIN
6941 int F77_DUMMY_MAIN() { return 1; }
6947 FILE *f = fopen ("conftest.val", "w");
6950 if (((long) (sizeof (short))) < 0)
6952 long i = longval ();
6953 if (i != ((long) (sizeof (short))))
6955 fprintf (f, "%ld\n", i);
6959 unsigned long i = ulongval ();
6960 if (i != ((long) (sizeof (short))))
6962 fprintf (f, "%lu\n", i);
6964 exit (ferror (f) || fclose (f) != 0);
6970 rm -f conftest
$ac_exeext
6971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6972 (eval $ac_link) 2>&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }; }; then
6981 ac_cv_sizeof_short
=`cat conftest.val`
6983 echo "$as_me: program exited with status $ac_status" >&5
6984 echo "$as_me: failed program was:" >&5
6985 cat conftest.
$ac_ext >&5
6987 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
6988 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
6989 { (exit 1); exit 1; }; }
6991 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6996 ac_cv_sizeof_short
=0
6999 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7000 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7001 cat >>confdefs.h
<<_ACEOF
7002 #define SIZEOF_SHORT $ac_cv_sizeof_short
7006 echo "$as_me:$LINENO: checking for float" >&5
7007 echo $ECHO_N "checking for float... $ECHO_C" >&6
7008 if test "${ac_cv_type_float+set}" = set; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7011 cat >conftest.
$ac_ext <<_ACEOF
7012 #line $LINENO "configure"
7013 #include "confdefs.h"
7014 $ac_includes_default
7015 #ifdef F77_DUMMY_MAIN
7019 int F77_DUMMY_MAIN() { return 1; }
7032 rm -f conftest.
$ac_objext
7033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7034 (eval $ac_compile) 2>&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); } &&
7038 { ac_try
='test -s conftest.$ac_objext'
7039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); }; }; then
7044 ac_cv_type_float
=yes
7046 echo "$as_me: failed program was:" >&5
7047 cat conftest.
$ac_ext >&5
7050 rm -f conftest.
$ac_objext conftest.
$ac_ext
7052 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
7053 echo "${ECHO_T}$ac_cv_type_float" >&6
7055 echo "$as_me:$LINENO: checking size of float" >&5
7056 echo $ECHO_N "checking size of float... $ECHO_C" >&6
7057 if test "${ac_cv_sizeof_float+set}" = set; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7060 if test "$ac_cv_type_float" = yes; then
7061 # The cast to unsigned long works around a bug in the HP C Compiler
7062 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7063 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7064 # This bug is HP SR number 8606223364.
7065 if test "$cross_compiling" = yes; then
7066 # Depending upon the size, compute the lo and hi bounds.
7067 cat >conftest.
$ac_ext <<_ACEOF
7068 #line $LINENO "configure"
7069 #include "confdefs.h"
7070 $ac_includes_default
7071 #ifdef F77_DUMMY_MAIN
7075 int F77_DUMMY_MAIN() { return 1; }
7080 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
7087 rm -f conftest.
$ac_objext
7088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7089 (eval $ac_compile) 2>&5
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); } &&
7093 { ac_try
='test -s conftest.$ac_objext'
7094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); }; }; then
7101 cat >conftest.
$ac_ext <<_ACEOF
7102 #line $LINENO "configure"
7103 #include "confdefs.h"
7104 $ac_includes_default
7105 #ifdef F77_DUMMY_MAIN
7109 int F77_DUMMY_MAIN() { return 1; }
7114 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
7121 rm -f conftest.
$ac_objext
7122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7123 (eval $ac_compile) 2>&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } &&
7127 { ac_try
='test -s conftest.$ac_objext'
7128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); }; }; then
7133 ac_hi
=$ac_mid; break
7135 echo "$as_me: failed program was:" >&5
7136 cat conftest.
$ac_ext >&5
7137 ac_lo
=`expr $ac_mid + 1`
7138 if test $ac_lo -le $ac_mid; then
7142 ac_mid
=`expr 2 '*' $ac_mid + 1`
7144 rm -f conftest.
$ac_objext conftest.
$ac_ext
7147 echo "$as_me: failed program was:" >&5
7148 cat conftest.
$ac_ext >&5
7149 cat >conftest.
$ac_ext <<_ACEOF
7150 #line $LINENO "configure"
7151 #include "confdefs.h"
7152 $ac_includes_default
7153 #ifdef F77_DUMMY_MAIN
7157 int F77_DUMMY_MAIN() { return 1; }
7162 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
7169 rm -f conftest.
$ac_objext
7170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7171 (eval $ac_compile) 2>&5
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); } &&
7175 { ac_try
='test -s conftest.$ac_objext'
7176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); }; }; then
7183 cat >conftest.
$ac_ext <<_ACEOF
7184 #line $LINENO "configure"
7185 #include "confdefs.h"
7186 $ac_includes_default
7187 #ifdef F77_DUMMY_MAIN
7191 int F77_DUMMY_MAIN() { return 1; }
7196 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
7203 rm -f conftest.
$ac_objext
7204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7205 (eval $ac_compile) 2>&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } &&
7209 { ac_try
='test -s conftest.$ac_objext'
7210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); }; }; then
7215 ac_lo
=$ac_mid; break
7217 echo "$as_me: failed program was:" >&5
7218 cat conftest.
$ac_ext >&5
7219 ac_hi
=`expr '(' $ac_mid ')' - 1`
7220 if test $ac_mid -le $ac_hi; then
7224 ac_mid
=`expr 2 '*' $ac_mid`
7226 rm -f conftest.
$ac_objext conftest.
$ac_ext
7229 echo "$as_me: failed program was:" >&5
7230 cat conftest.
$ac_ext >&5
7233 rm -f conftest.
$ac_objext conftest.
$ac_ext
7235 rm -f conftest.
$ac_objext conftest.
$ac_ext
7236 # Binary search between lo and hi bounds.
7237 while test "x$ac_lo" != "x$ac_hi"; do
7238 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7239 cat >conftest.
$ac_ext <<_ACEOF
7240 #line $LINENO "configure"
7241 #include "confdefs.h"
7242 $ac_includes_default
7243 #ifdef F77_DUMMY_MAIN
7247 int F77_DUMMY_MAIN() { return 1; }
7252 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
7259 rm -f conftest.
$ac_objext
7260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7261 (eval $ac_compile) 2>&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } &&
7265 { ac_try
='test -s conftest.$ac_objext'
7266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); }; }; then
7273 echo "$as_me: failed program was:" >&5
7274 cat conftest.
$ac_ext >&5
7275 ac_lo
=`expr '(' $ac_mid ')' + 1`
7277 rm -f conftest.
$ac_objext conftest.
$ac_ext
7280 ?
*) ac_cv_sizeof_float
=$ac_lo;;
7281 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5
7282 echo "$as_me: error: cannot compute sizeof (float), 77" >&2;}
7283 { (exit 1); exit 1; }; } ;;
7286 if test "$cross_compiling" = yes; then
7287 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7288 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7289 { (exit 1); exit 1; }; }
7291 cat >conftest.
$ac_ext <<_ACEOF
7292 #line $LINENO "configure"
7293 #include "confdefs.h"
7294 $ac_includes_default
7295 long longval () { return (long) (sizeof (float)); }
7296 unsigned long ulongval () { return (long) (sizeof (float)); }
7299 #ifdef F77_DUMMY_MAIN
7303 int F77_DUMMY_MAIN() { return 1; }
7309 FILE *f = fopen ("conftest.val", "w");
7312 if (((long) (sizeof (float))) < 0)
7314 long i = longval ();
7315 if (i != ((long) (sizeof (float))))
7317 fprintf (f, "%ld\n", i);
7321 unsigned long i = ulongval ();
7322 if (i != ((long) (sizeof (float))))
7324 fprintf (f, "%lu\n", i);
7326 exit (ferror (f) || fclose (f) != 0);
7332 rm -f conftest
$ac_exeext
7333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7334 (eval $ac_link) 2>&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; }; then
7343 ac_cv_sizeof_float
=`cat conftest.val`
7345 echo "$as_me: program exited with status $ac_status" >&5
7346 echo "$as_me: failed program was:" >&5
7347 cat conftest.
$ac_ext >&5
7349 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5
7350 echo "$as_me: error: cannot compute sizeof (float), 77" >&2;}
7351 { (exit 1); exit 1; }; }
7353 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7358 ac_cv_sizeof_float
=0
7361 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
7362 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
7363 cat >>confdefs.h
<<_ACEOF
7364 #define SIZEOF_FLOAT $ac_cv_sizeof_float
7368 echo "$as_me:$LINENO: checking for double" >&5
7369 echo $ECHO_N "checking for double... $ECHO_C" >&6
7370 if test "${ac_cv_type_double+set}" = set; then
7371 echo $ECHO_N "(cached) $ECHO_C" >&6
7373 cat >conftest.
$ac_ext <<_ACEOF
7374 #line $LINENO "configure"
7375 #include "confdefs.h"
7376 $ac_includes_default
7377 #ifdef F77_DUMMY_MAIN
7381 int F77_DUMMY_MAIN() { return 1; }
7388 if (sizeof (double))
7394 rm -f conftest.
$ac_objext
7395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7396 (eval $ac_compile) 2>&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); } &&
7400 { ac_try
='test -s conftest.$ac_objext'
7401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); }; }; then
7406 ac_cv_type_double
=yes
7408 echo "$as_me: failed program was:" >&5
7409 cat conftest.
$ac_ext >&5
7410 ac_cv_type_double
=no
7412 rm -f conftest.
$ac_objext conftest.
$ac_ext
7414 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
7415 echo "${ECHO_T}$ac_cv_type_double" >&6
7417 echo "$as_me:$LINENO: checking size of double" >&5
7418 echo $ECHO_N "checking size of double... $ECHO_C" >&6
7419 if test "${ac_cv_sizeof_double+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 if test "$ac_cv_type_double" = yes; then
7423 # The cast to unsigned long works around a bug in the HP C Compiler
7424 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7425 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7426 # This bug is HP SR number 8606223364.
7427 if test "$cross_compiling" = yes; then
7428 # Depending upon the size, compute the lo and hi bounds.
7429 cat >conftest.
$ac_ext <<_ACEOF
7430 #line $LINENO "configure"
7431 #include "confdefs.h"
7432 $ac_includes_default
7433 #ifdef F77_DUMMY_MAIN
7437 int F77_DUMMY_MAIN() { return 1; }
7442 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
7449 rm -f conftest.
$ac_objext
7450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7451 (eval $ac_compile) 2>&5
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); } &&
7455 { ac_try
='test -s conftest.$ac_objext'
7456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); }; }; then
7463 cat >conftest.
$ac_ext <<_ACEOF
7464 #line $LINENO "configure"
7465 #include "confdefs.h"
7466 $ac_includes_default
7467 #ifdef F77_DUMMY_MAIN
7471 int F77_DUMMY_MAIN() { return 1; }
7476 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
7483 rm -f conftest.
$ac_objext
7484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7485 (eval $ac_compile) 2>&5
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); } &&
7489 { ac_try
='test -s conftest.$ac_objext'
7490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); }; }; then
7495 ac_hi
=$ac_mid; break
7497 echo "$as_me: failed program was:" >&5
7498 cat conftest.
$ac_ext >&5
7499 ac_lo
=`expr $ac_mid + 1`
7500 if test $ac_lo -le $ac_mid; then
7504 ac_mid
=`expr 2 '*' $ac_mid + 1`
7506 rm -f conftest.
$ac_objext conftest.
$ac_ext
7509 echo "$as_me: failed program was:" >&5
7510 cat conftest.
$ac_ext >&5
7511 cat >conftest.
$ac_ext <<_ACEOF
7512 #line $LINENO "configure"
7513 #include "confdefs.h"
7514 $ac_includes_default
7515 #ifdef F77_DUMMY_MAIN
7519 int F77_DUMMY_MAIN() { return 1; }
7524 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
7531 rm -f conftest.
$ac_objext
7532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7533 (eval $ac_compile) 2>&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); } &&
7537 { ac_try
='test -s conftest.$ac_objext'
7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; }; then
7545 cat >conftest.
$ac_ext <<_ACEOF
7546 #line $LINENO "configure"
7547 #include "confdefs.h"
7548 $ac_includes_default
7549 #ifdef F77_DUMMY_MAIN
7553 int F77_DUMMY_MAIN() { return 1; }
7558 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
7565 rm -f conftest.
$ac_objext
7566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7567 (eval $ac_compile) 2>&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } &&
7571 { ac_try
='test -s conftest.$ac_objext'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; }; then
7577 ac_lo
=$ac_mid; break
7579 echo "$as_me: failed program was:" >&5
7580 cat conftest.
$ac_ext >&5
7581 ac_hi
=`expr '(' $ac_mid ')' - 1`
7582 if test $ac_mid -le $ac_hi; then
7586 ac_mid
=`expr 2 '*' $ac_mid`
7588 rm -f conftest.
$ac_objext conftest.
$ac_ext
7591 echo "$as_me: failed program was:" >&5
7592 cat conftest.
$ac_ext >&5
7595 rm -f conftest.
$ac_objext conftest.
$ac_ext
7597 rm -f conftest.
$ac_objext conftest.
$ac_ext
7598 # Binary search between lo and hi bounds.
7599 while test "x$ac_lo" != "x$ac_hi"; do
7600 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7601 cat >conftest.
$ac_ext <<_ACEOF
7602 #line $LINENO "configure"
7603 #include "confdefs.h"
7604 $ac_includes_default
7605 #ifdef F77_DUMMY_MAIN
7609 int F77_DUMMY_MAIN() { return 1; }
7614 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
7621 rm -f conftest.
$ac_objext
7622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7623 (eval $ac_compile) 2>&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); } &&
7627 { ac_try
='test -s conftest.$ac_objext'
7628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }; }; then
7635 echo "$as_me: failed program was:" >&5
7636 cat conftest.
$ac_ext >&5
7637 ac_lo
=`expr '(' $ac_mid ')' + 1`
7639 rm -f conftest.
$ac_objext conftest.
$ac_ext
7642 ?
*) ac_cv_sizeof_double
=$ac_lo;;
7643 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5
7644 echo "$as_me: error: cannot compute sizeof (double), 77" >&2;}
7645 { (exit 1); exit 1; }; } ;;
7648 if test "$cross_compiling" = yes; then
7649 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7650 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7651 { (exit 1); exit 1; }; }
7653 cat >conftest.
$ac_ext <<_ACEOF
7654 #line $LINENO "configure"
7655 #include "confdefs.h"
7656 $ac_includes_default
7657 long longval () { return (long) (sizeof (double)); }
7658 unsigned long ulongval () { return (long) (sizeof (double)); }
7661 #ifdef F77_DUMMY_MAIN
7665 int F77_DUMMY_MAIN() { return 1; }
7671 FILE *f = fopen ("conftest.val", "w");
7674 if (((long) (sizeof (double))) < 0)
7676 long i = longval ();
7677 if (i != ((long) (sizeof (double))))
7679 fprintf (f, "%ld\n", i);
7683 unsigned long i = ulongval ();
7684 if (i != ((long) (sizeof (double))))
7686 fprintf (f, "%lu\n", i);
7688 exit (ferror (f) || fclose (f) != 0);
7694 rm -f conftest
$ac_exeext
7695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7696 (eval $ac_link) 2>&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }; }; then
7705 ac_cv_sizeof_double
=`cat conftest.val`
7707 echo "$as_me: program exited with status $ac_status" >&5
7708 echo "$as_me: failed program was:" >&5
7709 cat conftest.
$ac_ext >&5
7711 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5
7712 echo "$as_me: error: cannot compute sizeof (double), 77" >&2;}
7713 { (exit 1); exit 1; }; }
7715 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7720 ac_cv_sizeof_double
=0
7723 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
7724 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
7725 cat >>confdefs.h
<<_ACEOF
7726 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
7730 echo "$as_me:$LINENO: checking for fpos_t" >&5
7731 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
7732 if test "${ac_cv_type_fpos_t+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7735 cat >conftest.
$ac_ext <<_ACEOF
7736 #line $LINENO "configure"
7737 #include "confdefs.h"
7738 $ac_includes_default
7739 #ifdef F77_DUMMY_MAIN
7743 int F77_DUMMY_MAIN() { return 1; }
7750 if (sizeof (fpos_t))
7756 rm -f conftest.
$ac_objext
7757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7758 (eval $ac_compile) 2>&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } &&
7762 { ac_try
='test -s conftest.$ac_objext'
7763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); }; }; then
7768 ac_cv_type_fpos_t
=yes
7770 echo "$as_me: failed program was:" >&5
7771 cat conftest.
$ac_ext >&5
7772 ac_cv_type_fpos_t
=no
7774 rm -f conftest.
$ac_objext conftest.
$ac_ext
7776 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
7777 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
7779 echo "$as_me:$LINENO: checking size of fpos_t" >&5
7780 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
7781 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7784 if test "$ac_cv_type_fpos_t" = yes; then
7785 # The cast to unsigned long works around a bug in the HP C Compiler
7786 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7787 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7788 # This bug is HP SR number 8606223364.
7789 if test "$cross_compiling" = yes; then
7790 # Depending upon the size, compute the lo and hi bounds.
7791 cat >conftest.
$ac_ext <<_ACEOF
7792 #line $LINENO "configure"
7793 #include "confdefs.h"
7794 $ac_includes_default
7795 #ifdef F77_DUMMY_MAIN
7799 int F77_DUMMY_MAIN() { return 1; }
7804 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
7811 rm -f conftest.
$ac_objext
7812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7813 (eval $ac_compile) 2>&5
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); } &&
7817 { ac_try
='test -s conftest.$ac_objext'
7818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); }; }; then
7825 cat >conftest.
$ac_ext <<_ACEOF
7826 #line $LINENO "configure"
7827 #include "confdefs.h"
7828 $ac_includes_default
7829 #ifdef F77_DUMMY_MAIN
7833 int F77_DUMMY_MAIN() { return 1; }
7838 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
7845 rm -f conftest.
$ac_objext
7846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7847 (eval $ac_compile) 2>&5
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } &&
7851 { ac_try
='test -s conftest.$ac_objext'
7852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); }; }; then
7857 ac_hi
=$ac_mid; break
7859 echo "$as_me: failed program was:" >&5
7860 cat conftest.
$ac_ext >&5
7861 ac_lo
=`expr $ac_mid + 1`
7862 if test $ac_lo -le $ac_mid; then
7866 ac_mid
=`expr 2 '*' $ac_mid + 1`
7868 rm -f conftest.
$ac_objext conftest.
$ac_ext
7871 echo "$as_me: failed program was:" >&5
7872 cat conftest.
$ac_ext >&5
7873 cat >conftest.
$ac_ext <<_ACEOF
7874 #line $LINENO "configure"
7875 #include "confdefs.h"
7876 $ac_includes_default
7877 #ifdef F77_DUMMY_MAIN
7881 int F77_DUMMY_MAIN() { return 1; }
7886 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
7893 rm -f conftest.
$ac_objext
7894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7895 (eval $ac_compile) 2>&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } &&
7899 { ac_try
='test -s conftest.$ac_objext'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; }; then
7907 cat >conftest.
$ac_ext <<_ACEOF
7908 #line $LINENO "configure"
7909 #include "confdefs.h"
7910 $ac_includes_default
7911 #ifdef F77_DUMMY_MAIN
7915 int F77_DUMMY_MAIN() { return 1; }
7920 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
7927 rm -f conftest.
$ac_objext
7928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7929 (eval $ac_compile) 2>&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } &&
7933 { ac_try
='test -s conftest.$ac_objext'
7934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); }; }; then
7939 ac_lo
=$ac_mid; break
7941 echo "$as_me: failed program was:" >&5
7942 cat conftest.
$ac_ext >&5
7943 ac_hi
=`expr '(' $ac_mid ')' - 1`
7944 if test $ac_mid -le $ac_hi; then
7948 ac_mid
=`expr 2 '*' $ac_mid`
7950 rm -f conftest.
$ac_objext conftest.
$ac_ext
7953 echo "$as_me: failed program was:" >&5
7954 cat conftest.
$ac_ext >&5
7957 rm -f conftest.
$ac_objext conftest.
$ac_ext
7959 rm -f conftest.
$ac_objext conftest.
$ac_ext
7960 # Binary search between lo and hi bounds.
7961 while test "x$ac_lo" != "x$ac_hi"; do
7962 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7963 cat >conftest.
$ac_ext <<_ACEOF
7964 #line $LINENO "configure"
7965 #include "confdefs.h"
7966 $ac_includes_default
7967 #ifdef F77_DUMMY_MAIN
7971 int F77_DUMMY_MAIN() { return 1; }
7976 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
7983 rm -f conftest.
$ac_objext
7984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7985 (eval $ac_compile) 2>&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); } &&
7989 { ac_try
='test -s conftest.$ac_objext'
7990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; }; then
7997 echo "$as_me: failed program was:" >&5
7998 cat conftest.
$ac_ext >&5
7999 ac_lo
=`expr '(' $ac_mid ')' + 1`
8001 rm -f conftest.
$ac_objext conftest.
$ac_ext
8004 ?
*) ac_cv_sizeof_fpos_t
=$ac_lo;;
8005 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5
8006 echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;}
8007 { (exit 1); exit 1; }; } ;;
8010 if test "$cross_compiling" = yes; then
8011 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8012 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8013 { (exit 1); exit 1; }; }
8015 cat >conftest.
$ac_ext <<_ACEOF
8016 #line $LINENO "configure"
8017 #include "confdefs.h"
8018 $ac_includes_default
8019 long longval () { return (long) (sizeof (fpos_t)); }
8020 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
8023 #ifdef F77_DUMMY_MAIN
8027 int F77_DUMMY_MAIN() { return 1; }
8033 FILE *f = fopen ("conftest.val", "w");
8036 if (((long) (sizeof (fpos_t))) < 0)
8038 long i = longval ();
8039 if (i != ((long) (sizeof (fpos_t))))
8041 fprintf (f, "%ld\n", i);
8045 unsigned long i = ulongval ();
8046 if (i != ((long) (sizeof (fpos_t))))
8048 fprintf (f, "%lu\n", i);
8050 exit (ferror (f) || fclose (f) != 0);
8056 rm -f conftest
$ac_exeext
8057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8058 (eval $ac_link) 2>&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); }; }; then
8067 ac_cv_sizeof_fpos_t
=`cat conftest.val`
8069 echo "$as_me: program exited with status $ac_status" >&5
8070 echo "$as_me: failed program was:" >&5
8071 cat conftest.
$ac_ext >&5
8073 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5
8074 echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;}
8075 { (exit 1); exit 1; }; }
8077 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8082 ac_cv_sizeof_fpos_t
=0
8085 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
8086 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
8087 cat >>confdefs.h
<<_ACEOF
8088 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
8093 echo "$as_me:$LINENO: checking for long long support" >&5
8094 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
8096 cat >conftest.
$ac_ext <<_ACEOF
8097 #line $LINENO "configure"
8098 #include "confdefs.h"
8100 #ifdef F77_DUMMY_MAIN
8104 int F77_DUMMY_MAIN() { return 1; }
8109 long long x; x = (long long)0;
8114 rm -f conftest.
$ac_objext
8115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8116 (eval $ac_compile) 2>&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } &&
8120 { ac_try
='test -s conftest.$ac_objext'
8121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); }; }; then
8128 cat >>confdefs.h
<<\_ACEOF
8129 #define HAVE_LONG_LONG 1
8135 echo "$as_me: failed program was:" >&5
8136 cat conftest.
$ac_ext >&5
8138 rm -f conftest.
$ac_objext conftest.
$ac_ext
8139 echo "$as_me:$LINENO: result: $have_long_long" >&5
8140 echo "${ECHO_T}$have_long_long" >&6
8141 if test "$have_long_long" = yes ; then
8142 echo "$as_me:$LINENO: checking for long long" >&5
8143 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8144 if test "${ac_cv_type_long_long+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8147 cat >conftest.
$ac_ext <<_ACEOF
8148 #line $LINENO "configure"
8149 #include "confdefs.h"
8150 $ac_includes_default
8151 #ifdef F77_DUMMY_MAIN
8155 int F77_DUMMY_MAIN() { return 1; }
8160 if ((long long *) 0)
8162 if (sizeof (long long))
8168 rm -f conftest.
$ac_objext
8169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8170 (eval $ac_compile) 2>&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); } &&
8174 { ac_try
='test -s conftest.$ac_objext'
8175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; }; then
8180 ac_cv_type_long_long
=yes
8182 echo "$as_me: failed program was:" >&5
8183 cat conftest.
$ac_ext >&5
8184 ac_cv_type_long_long
=no
8186 rm -f conftest.
$ac_objext conftest.
$ac_ext
8188 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8189 echo "${ECHO_T}$ac_cv_type_long_long" >&6
8191 echo "$as_me:$LINENO: checking size of long long" >&5
8192 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8193 if test "${ac_cv_sizeof_long_long+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8196 if test "$ac_cv_type_long_long" = yes; then
8197 # The cast to unsigned long works around a bug in the HP C Compiler
8198 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8199 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8200 # This bug is HP SR number 8606223364.
8201 if test "$cross_compiling" = yes; then
8202 # Depending upon the size, compute the lo and hi bounds.
8203 cat >conftest.
$ac_ext <<_ACEOF
8204 #line $LINENO "configure"
8205 #include "confdefs.h"
8206 $ac_includes_default
8207 #ifdef F77_DUMMY_MAIN
8211 int F77_DUMMY_MAIN() { return 1; }
8216 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8223 rm -f conftest.
$ac_objext
8224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8225 (eval $ac_compile) 2>&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); } &&
8229 { ac_try
='test -s conftest.$ac_objext'
8230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); }; }; then
8237 cat >conftest.
$ac_ext <<_ACEOF
8238 #line $LINENO "configure"
8239 #include "confdefs.h"
8240 $ac_includes_default
8241 #ifdef F77_DUMMY_MAIN
8245 int F77_DUMMY_MAIN() { return 1; }
8250 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8257 rm -f conftest.
$ac_objext
8258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8259 (eval $ac_compile) 2>&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } &&
8263 { ac_try
='test -s conftest.$ac_objext'
8264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); }; }; then
8269 ac_hi
=$ac_mid; break
8271 echo "$as_me: failed program was:" >&5
8272 cat conftest.
$ac_ext >&5
8273 ac_lo
=`expr $ac_mid + 1`
8274 if test $ac_lo -le $ac_mid; then
8278 ac_mid
=`expr 2 '*' $ac_mid + 1`
8280 rm -f conftest.
$ac_objext conftest.
$ac_ext
8283 echo "$as_me: failed program was:" >&5
8284 cat conftest.
$ac_ext >&5
8285 cat >conftest.
$ac_ext <<_ACEOF
8286 #line $LINENO "configure"
8287 #include "confdefs.h"
8288 $ac_includes_default
8289 #ifdef F77_DUMMY_MAIN
8293 int F77_DUMMY_MAIN() { return 1; }
8298 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
8305 rm -f conftest.
$ac_objext
8306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8307 (eval $ac_compile) 2>&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } &&
8311 { ac_try
='test -s conftest.$ac_objext'
8312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); }; }; then
8319 cat >conftest.
$ac_ext <<_ACEOF
8320 #line $LINENO "configure"
8321 #include "confdefs.h"
8322 $ac_includes_default
8323 #ifdef F77_DUMMY_MAIN
8327 int F77_DUMMY_MAIN() { return 1; }
8332 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
8339 rm -f conftest.
$ac_objext
8340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8341 (eval $ac_compile) 2>&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } &&
8345 { ac_try
='test -s conftest.$ac_objext'
8346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); }; }; then
8351 ac_lo
=$ac_mid; break
8353 echo "$as_me: failed program was:" >&5
8354 cat conftest.
$ac_ext >&5
8355 ac_hi
=`expr '(' $ac_mid ')' - 1`
8356 if test $ac_mid -le $ac_hi; then
8360 ac_mid
=`expr 2 '*' $ac_mid`
8362 rm -f conftest.
$ac_objext conftest.
$ac_ext
8365 echo "$as_me: failed program was:" >&5
8366 cat conftest.
$ac_ext >&5
8369 rm -f conftest.
$ac_objext conftest.
$ac_ext
8371 rm -f conftest.
$ac_objext conftest.
$ac_ext
8372 # Binary search between lo and hi bounds.
8373 while test "x$ac_lo" != "x$ac_hi"; do
8374 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8375 cat >conftest.
$ac_ext <<_ACEOF
8376 #line $LINENO "configure"
8377 #include "confdefs.h"
8378 $ac_includes_default
8379 #ifdef F77_DUMMY_MAIN
8383 int F77_DUMMY_MAIN() { return 1; }
8388 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8395 rm -f conftest.
$ac_objext
8396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8397 (eval $ac_compile) 2>&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); } &&
8401 { ac_try
='test -s conftest.$ac_objext'
8402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; }; then
8409 echo "$as_me: failed program was:" >&5
8410 cat conftest.
$ac_ext >&5
8411 ac_lo
=`expr '(' $ac_mid ')' + 1`
8413 rm -f conftest.
$ac_objext conftest.
$ac_ext
8416 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
8417 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
8418 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
8419 { (exit 1); exit 1; }; } ;;
8422 if test "$cross_compiling" = yes; then
8423 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8424 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8425 { (exit 1); exit 1; }; }
8427 cat >conftest.
$ac_ext <<_ACEOF
8428 #line $LINENO "configure"
8429 #include "confdefs.h"
8430 $ac_includes_default
8431 long longval () { return (long) (sizeof (long long)); }
8432 unsigned long ulongval () { return (long) (sizeof (long long)); }
8435 #ifdef F77_DUMMY_MAIN
8439 int F77_DUMMY_MAIN() { return 1; }
8445 FILE *f = fopen ("conftest.val", "w");
8448 if (((long) (sizeof (long long))) < 0)
8450 long i = longval ();
8451 if (i != ((long) (sizeof (long long))))
8453 fprintf (f, "%ld\n", i);
8457 unsigned long i = ulongval ();
8458 if (i != ((long) (sizeof (long long))))
8460 fprintf (f, "%lu\n", i);
8462 exit (ferror (f) || fclose (f) != 0);
8468 rm -f conftest
$ac_exeext
8469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8470 (eval $ac_link) 2>&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }; }; then
8479 ac_cv_sizeof_long_long
=`cat conftest.val`
8481 echo "$as_me: program exited with status $ac_status" >&5
8482 echo "$as_me: failed program was:" >&5
8483 cat conftest.
$ac_ext >&5
8485 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
8486 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
8487 { (exit 1); exit 1; }; }
8489 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8494 ac_cv_sizeof_long_long
=0
8497 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8498 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8499 cat >>confdefs.h
<<_ACEOF
8500 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8506 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
8507 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
8509 cat >conftest.
$ac_ext <<_ACEOF
8510 #line $LINENO "configure"
8511 #include "confdefs.h"
8513 #ifdef F77_DUMMY_MAIN
8517 int F77_DUMMY_MAIN() { return 1; }
8522 uintptr_t x; x = (uintptr_t)0;
8527 rm -f conftest.
$ac_objext
8528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8529 (eval $ac_compile) 2>&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } &&
8533 { ac_try
='test -s conftest.$ac_objext'
8534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; }; then
8541 cat >>confdefs.h
<<\_ACEOF
8542 #define HAVE_UINTPTR_T 1
8548 echo "$as_me: failed program was:" >&5
8549 cat conftest.
$ac_ext >&5
8551 rm -f conftest.
$ac_objext conftest.
$ac_ext
8552 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
8553 echo "${ECHO_T}$have_uintptr_t" >&6
8554 if test "$have_uintptr_t" = yes ; then
8555 echo "$as_me:$LINENO: checking for uintptr_t" >&5
8556 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
8557 if test "${ac_cv_type_uintptr_t+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8560 cat >conftest.
$ac_ext <<_ACEOF
8561 #line $LINENO "configure"
8562 #include "confdefs.h"
8563 $ac_includes_default
8564 #ifdef F77_DUMMY_MAIN
8568 int F77_DUMMY_MAIN() { return 1; }
8573 if ((uintptr_t *) 0)
8575 if (sizeof (uintptr_t))
8581 rm -f conftest.
$ac_objext
8582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8583 (eval $ac_compile) 2>&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } &&
8587 { ac_try
='test -s conftest.$ac_objext'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; }; then
8593 ac_cv_type_uintptr_t
=yes
8595 echo "$as_me: failed program was:" >&5
8596 cat conftest.
$ac_ext >&5
8597 ac_cv_type_uintptr_t
=no
8599 rm -f conftest.
$ac_objext conftest.
$ac_ext
8601 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
8602 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
8604 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
8605 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
8606 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
8607 echo $ECHO_N "(cached) $ECHO_C" >&6
8609 if test "$ac_cv_type_uintptr_t" = yes; then
8610 # The cast to unsigned long works around a bug in the HP C Compiler
8611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8613 # This bug is HP SR number 8606223364.
8614 if test "$cross_compiling" = yes; then
8615 # Depending upon the size, compute the lo and hi bounds.
8616 cat >conftest.
$ac_ext <<_ACEOF
8617 #line $LINENO "configure"
8618 #include "confdefs.h"
8619 $ac_includes_default
8620 #ifdef F77_DUMMY_MAIN
8624 int F77_DUMMY_MAIN() { return 1; }
8629 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
8636 rm -f conftest.
$ac_objext
8637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8638 (eval $ac_compile) 2>&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } &&
8642 { ac_try
='test -s conftest.$ac_objext'
8643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; }; then
8650 cat >conftest.
$ac_ext <<_ACEOF
8651 #line $LINENO "configure"
8652 #include "confdefs.h"
8653 $ac_includes_default
8654 #ifdef F77_DUMMY_MAIN
8658 int F77_DUMMY_MAIN() { return 1; }
8663 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
8670 rm -f conftest.
$ac_objext
8671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8672 (eval $ac_compile) 2>&5
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); } &&
8676 { ac_try
='test -s conftest.$ac_objext'
8677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); }; }; then
8682 ac_hi
=$ac_mid; break
8684 echo "$as_me: failed program was:" >&5
8685 cat conftest.
$ac_ext >&5
8686 ac_lo
=`expr $ac_mid + 1`
8687 if test $ac_lo -le $ac_mid; then
8691 ac_mid
=`expr 2 '*' $ac_mid + 1`
8693 rm -f conftest.
$ac_objext conftest.
$ac_ext
8696 echo "$as_me: failed program was:" >&5
8697 cat conftest.
$ac_ext >&5
8698 cat >conftest.
$ac_ext <<_ACEOF
8699 #line $LINENO "configure"
8700 #include "confdefs.h"
8701 $ac_includes_default
8702 #ifdef F77_DUMMY_MAIN
8706 int F77_DUMMY_MAIN() { return 1; }
8711 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
8718 rm -f conftest.
$ac_objext
8719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8720 (eval $ac_compile) 2>&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } &&
8724 { ac_try
='test -s conftest.$ac_objext'
8725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; }; then
8732 cat >conftest.
$ac_ext <<_ACEOF
8733 #line $LINENO "configure"
8734 #include "confdefs.h"
8735 $ac_includes_default
8736 #ifdef F77_DUMMY_MAIN
8740 int F77_DUMMY_MAIN() { return 1; }
8745 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
8752 rm -f conftest.
$ac_objext
8753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8754 (eval $ac_compile) 2>&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); } &&
8758 { ac_try
='test -s conftest.$ac_objext'
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; }; then
8764 ac_lo
=$ac_mid; break
8766 echo "$as_me: failed program was:" >&5
8767 cat conftest.
$ac_ext >&5
8768 ac_hi
=`expr '(' $ac_mid ')' - 1`
8769 if test $ac_mid -le $ac_hi; then
8773 ac_mid
=`expr 2 '*' $ac_mid`
8775 rm -f conftest.
$ac_objext conftest.
$ac_ext
8778 echo "$as_me: failed program was:" >&5
8779 cat conftest.
$ac_ext >&5
8782 rm -f conftest.
$ac_objext conftest.
$ac_ext
8784 rm -f conftest.
$ac_objext conftest.
$ac_ext
8785 # Binary search between lo and hi bounds.
8786 while test "x$ac_lo" != "x$ac_hi"; do
8787 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8788 cat >conftest.
$ac_ext <<_ACEOF
8789 #line $LINENO "configure"
8790 #include "confdefs.h"
8791 $ac_includes_default
8792 #ifdef F77_DUMMY_MAIN
8796 int F77_DUMMY_MAIN() { return 1; }
8801 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
8808 rm -f conftest.
$ac_objext
8809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8810 (eval $ac_compile) 2>&5
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); } &&
8814 { ac_try
='test -s conftest.$ac_objext'
8815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; }; then
8822 echo "$as_me: failed program was:" >&5
8823 cat conftest.
$ac_ext >&5
8824 ac_lo
=`expr '(' $ac_mid ')' + 1`
8826 rm -f conftest.
$ac_objext conftest.
$ac_ext
8829 ?
*) ac_cv_sizeof_uintptr_t
=$ac_lo;;
8830 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5
8831 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;}
8832 { (exit 1); exit 1; }; } ;;
8835 if test "$cross_compiling" = yes; then
8836 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8837 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8838 { (exit 1); exit 1; }; }
8840 cat >conftest.
$ac_ext <<_ACEOF
8841 #line $LINENO "configure"
8842 #include "confdefs.h"
8843 $ac_includes_default
8844 long longval () { return (long) (sizeof (uintptr_t)); }
8845 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
8848 #ifdef F77_DUMMY_MAIN
8852 int F77_DUMMY_MAIN() { return 1; }
8858 FILE *f = fopen ("conftest.val", "w");
8861 if (((long) (sizeof (uintptr_t))) < 0)
8863 long i = longval ();
8864 if (i != ((long) (sizeof (uintptr_t))))
8866 fprintf (f, "%ld\n", i);
8870 unsigned long i = ulongval ();
8871 if (i != ((long) (sizeof (uintptr_t))))
8873 fprintf (f, "%lu\n", i);
8875 exit (ferror (f) || fclose (f) != 0);
8881 rm -f conftest
$ac_exeext
8882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8883 (eval $ac_link) 2>&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); }; }; then
8892 ac_cv_sizeof_uintptr_t
=`cat conftest.val`
8894 echo "$as_me: program exited with status $ac_status" >&5
8895 echo "$as_me: failed program was:" >&5
8896 cat conftest.
$ac_ext >&5
8898 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5
8899 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;}
8900 { (exit 1); exit 1; }; }
8902 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8907 ac_cv_sizeof_uintptr_t
=0
8910 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
8911 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
8912 cat >>confdefs.h
<<_ACEOF
8913 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
8919 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
8920 echo "$as_me:$LINENO: checking size of off_t" >&5
8921 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
8922 if test "${ac_cv_sizeof_off_t+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8925 if test "$cross_compiling" = yes; then
8926 ac_cv_sizeof_off_t
=4
8928 cat >conftest.
$ac_ext <<_ACEOF
8929 #line $LINENO "configure"
8930 #include "confdefs.h"
8932 #include <sys/types.h>
8935 FILE *f=fopen("conftestval", "w");
8937 fprintf(f, "%d\n", sizeof(off_t));
8941 rm -f conftest
$ac_exeext
8942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8943 (eval $ac_link) 2>&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; }; then
8952 ac_cv_sizeof_off_t
=`cat conftestval`
8954 echo "$as_me: program exited with status $ac_status" >&5
8955 echo "$as_me: failed program was:" >&5
8956 cat conftest.
$ac_ext >&5
8958 ac_cv_sizeof_off_t
=0
8960 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8965 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
8966 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
8968 cat >>confdefs.h
<<_ACEOF
8969 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
8973 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
8974 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
8975 if test "$have_long_long" = yes -a \
8976 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
8977 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
8979 cat >>confdefs.h
<<\_ACEOF
8980 #define HAVE_LARGEFILE_SUPPORT 1
8983 echo "$as_me:$LINENO: result: yes" >&5
8984 echo "${ECHO_T}yes" >&6
8986 echo "$as_me:$LINENO: result: no" >&5
8987 echo "${ECHO_T}no" >&6
8990 # AC_CHECK_SIZEOF() doesn't include <time.h>.
8991 echo "$as_me:$LINENO: checking size of time_t" >&5
8992 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
8993 if test "${ac_cv_sizeof_time_t+set}" = set; then
8994 echo $ECHO_N "(cached) $ECHO_C" >&6
8996 if test "$cross_compiling" = yes; then
8997 ac_cv_sizeof_time_t
=4
8999 cat >conftest.
$ac_ext <<_ACEOF
9000 #line $LINENO "configure"
9001 #include "confdefs.h"
9006 FILE *f=fopen("conftestval", "w");
9008 fprintf(f, "%d\n", sizeof(time_t));
9012 rm -f conftest
$ac_exeext
9013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9014 (eval $ac_link) 2>&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); }; }; then
9023 ac_cv_sizeof_time_t
=`cat conftestval`
9025 echo "$as_me: program exited with status $ac_status" >&5
9026 echo "$as_me: failed program was:" >&5
9027 cat conftest.
$ac_ext >&5
9029 ac_cv_sizeof_time_t
=0
9031 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9036 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
9037 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
9039 cat >>confdefs.h
<<_ACEOF
9040 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
9045 # if have pthread_t then define SIZEOF_PTHREAD_T
9047 if test "$ac_cv_kpthread" = "yes"
9048 then CC
="$CC -Kpthread"
9050 echo "$as_me:$LINENO: checking for pthread_t" >&5
9051 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
9053 cat >conftest.
$ac_ext <<_ACEOF
9054 #line $LINENO "configure"
9055 #include "confdefs.h"
9056 #include <pthread.h>
9057 #ifdef F77_DUMMY_MAIN
9061 int F77_DUMMY_MAIN() { return 1; }
9066 pthread_t x; x = *(pthread_t*)0;
9071 rm -f conftest.
$ac_objext
9072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9073 (eval $ac_compile) 2>&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); } &&
9077 { ac_try
='test -s conftest.$ac_objext'
9078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); }; }; then
9085 echo "$as_me: failed program was:" >&5
9086 cat conftest.
$ac_ext >&5
9088 rm -f conftest.
$ac_objext conftest.
$ac_ext
9089 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
9090 echo "${ECHO_T}$have_pthread_t" >&6
9091 if test "$have_pthread_t" = yes ; then
9092 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
9093 echo "$as_me:$LINENO: checking size of pthread_t" >&5
9094 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
9095 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9098 if test "$cross_compiling" = yes; then
9099 ac_cv_sizeof_pthread_t
=4
9101 cat >conftest.
$ac_ext <<_ACEOF
9102 #line $LINENO "configure"
9103 #include "confdefs.h"
9105 #include <pthread.h>
9108 FILE *f=fopen("conftestval", "w");
9110 fprintf(f, "%d\n", sizeof(pthread_t));
9114 rm -f conftest
$ac_exeext
9115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9116 (eval $ac_link) 2>&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }; }; then
9125 ac_cv_sizeof_pthread_t
=`cat conftestval`
9127 echo "$as_me: program exited with status $ac_status" >&5
9128 echo "$as_me: failed program was:" >&5
9129 cat conftest.
$ac_ext >&5
9131 ac_cv_sizeof_pthread_t
=0
9133 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9138 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
9139 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
9141 cat >>confdefs.h
<<_ACEOF
9142 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
9148 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
9149 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
9150 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
9151 if test "${enable_toolbox_glue+set}" = set; then
9152 enableval
="$enable_toolbox_glue"
9156 if test -z "$enable_toolbox_glue"
9158 case $ac_sys_system/$ac_sys_release in
9160 enable_toolbox_glue
="yes";;
9162 enable_toolbox_glue
="no";;
9165 case "$enable_toolbox_glue" in
9167 extra_frameworks
="-framework CoreServices -framework Foundation"
9168 extra_machdep_objs
="Python/mactoolboxglue.o"
9169 extra_undefs
="-u __dummy -u _PyMac_Error"
9171 cat >>confdefs.h
<<\_ACEOF
9172 #define USE_TOOLBOX_OBJECT_GLUE 1
9178 extra_machdep_objs
=""
9182 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
9183 echo "${ECHO_T}$enable_toolbox_glue" >&6
9186 case $ac_sys_system/$ac_sys_release in
9188 LIBTOOL_CRUFT
="-lcc_dynamic -arch_only ppc"
9189 LIBTOOL_CRUFT
="$LIBTOOL_CRUFT $extra_frameworks"
9190 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python'
9191 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
9193 LIBTOOL_CRUFT
="-lcc_dynamic -arch_only ppc"
9194 LIBTOOL_CRUFT
="$LIBTOOL_CRUFT $extra_frameworks"
9195 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python'
9196 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
9199 echo "$as_me:$LINENO: checking for --enable-framework" >&5
9200 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
9201 if test "$enable_framework"
9203 OPT
="$OPT -fno-common -dynamic"
9204 # -F. is needed to allow linking to the framework while
9205 # in the build location.
9206 LDFLAGS
="$LDFLAGS -Wl,-F."
9208 cat >>confdefs.h
<<\_ACEOF
9209 #define WITH_NEXT_FRAMEWORK 1
9212 echo "$as_me:$LINENO: result: yes" >&5
9213 echo "${ECHO_T}yes" >&6
9215 echo "$as_me:$LINENO: result: no" >&5
9216 echo "${ECHO_T}no" >&6
9219 echo "$as_me:$LINENO: checking for dyld" >&5
9220 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
9221 case $ac_sys_system/$ac_sys_release in
9224 cat >>confdefs.h
<<\_ACEOF
9228 echo "$as_me:$LINENO: result: always on for Darwin" >&5
9229 echo "${ECHO_T}always on for Darwin" >&6
9232 echo "$as_me:$LINENO: result: no" >&5
9233 echo "${ECHO_T}no" >&6
9237 # Set info about shared libraries.
9243 # SO is the extension of shared libraries `(including the dot!)
9244 # -- usually .so, .sl on HP-UX, .dll on Cygwin
9245 echo "$as_me:$LINENO: checking SO" >&5
9246 echo $ECHO_N "checking SO... $ECHO_C" >&6
9249 case $ac_sys_system in
9255 echo "$as_me:$LINENO: result: $SO" >&5
9256 echo "${ECHO_T}$SO" >&6
9257 # LDSHARED is the ld *command* used to create shared library
9258 # -- "ld" on SunOS 4.x.x, "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
9259 # (Shared libraries in this instance are shared modules to be loaded into
9260 # Python, as opposed to building Python itself as a shared library.)
9261 echo "$as_me:$LINENO: checking LDSHARED" >&5
9262 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
9263 if test -z "$LDSHARED"
9265 case $ac_sys_system/$ac_sys_release in
9267 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
9268 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
9271 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
9272 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
9274 IRIX
/5*) LDSHARED
="ld -shared";;
9275 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
9276 SunOS
/4*) LDSHARED
="ld";;
9278 if test "$GCC" = "yes"
9279 then LDSHARED
='$(CC) -shared'
9280 else LDSHARED
='$(CC) -G';
9282 hp
*|HP
*) LDSHARED
="ld -b";;
9283 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
9284 DYNIX
/ptx*) LDSHARED
="ld -G";;
9286 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
9287 if test "$enable_framework" ; then
9288 # Link against the framework. All externals should be defined.
9289 LDSHARED
="$LDSHARED "'-framework $(PYTHONFRAMEWORK)'
9291 # No framework. Ignore undefined symbols, assuming they come from Python
9292 LDSHARED
="$LDSHARED -undefined suppress"
9295 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
9296 if test "$enable_framework" ; then
9297 # Link against the framework. All externals should be defined.
9298 LDSHARED
="$LDSHARED "'-framework $(PYTHONFRAMEWORK)'
9300 # No framework, use the Python app as bundle-loader
9301 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
9302 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/$(PYTHON)'
9304 Linux
*|GNU
*) LDSHARED
='$(CC) -shared';;
9305 dgux
*) LDSHARED
="ld -G";;
9306 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
9308 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9310 LDSHARED
="cc -shared ${LDFLAGS}"
9312 LDSHARED
="ld -Bshareable ${LDFLAGS}"
9314 NetBSD
*) LDSHARED
="cc -shared ${LDFLAGS}";;
9315 OpenUNIX
*|UnixWare
*)
9316 if test "$GCC" = "yes"
9317 then LDSHARED
='$(CC) -shared'
9318 else LDSHARED
='$(CC) -G'
9320 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
9321 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
9322 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
9323 atheos
*) LDSHARED
="gcc -shared";;
9327 echo "$as_me:$LINENO: result: $LDSHARED" >&5
9328 echo "${ECHO_T}$LDSHARED" >&6
9329 BLDSHARED
=${BLDSHARED-$LDSHARED}
9330 # CCSHARED are the C *flags* used to create objects to go into a shared
9331 # library (module) -- this is only needed for a few systems
9332 echo "$as_me:$LINENO: checking CCSHARED" >&5
9333 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
9334 if test -z "$CCSHARED"
9336 case $ac_sys_system/$ac_sys_release in
9337 SunOS
*) if test "$GCC" = yes;
9338 then CCSHARED
="-fPIC";
9340 hp
*|HP
*) if test "$GCC" = yes;
9341 then CCSHARED
="-fPIC";
9344 Linux
*|GNU
*) CCSHARED
="-fPIC";;
9345 BSD
/OS
*/4*) CCSHARED
="-fpic";;
9346 FreeBSD
*|NetBSD
*|OpenBSD
*) CCSHARED
="-fPIC";;
9347 OpenUNIX
*|UnixWare
*)
9348 if test "$GCC" = "yes"
9349 then CCSHARED
="-fPIC"
9350 else CCSHARED
="-KPIC"
9353 if test "$GCC" = "yes"
9354 then CCSHARED
="-fPIC"
9355 else CCSHARED
="-Kpic -belf"
9357 Monterey
*) CCSHARED
="-G";;
9358 IRIX
*/6*) case $CC in
9359 *gcc
*) CCSHARED
="-shared";;
9362 atheos
*) CCSHARED
="-fPIC";;
9365 echo "$as_me:$LINENO: result: $CCSHARED" >&5
9366 echo "${ECHO_T}$CCSHARED" >&6
9367 # LINKFORSHARED are the flags passed to the $(CC) command that links
9368 # the python executable -- this is only needed for a few systems
9369 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
9370 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
9371 if test -z "$LINKFORSHARED"
9373 case $ac_sys_system/$ac_sys_release in
9374 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
9376 LINKFORSHARED
="-Wl,-E -Wl,+s";;
9377 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
9378 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
9379 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
9380 # -u libsys_s pulls in all symbols in libsys
9382 # -u __dummy makes the linker aware of the objc runtime
9383 # in System.framework; otherwise, __objcInit (referenced in
9384 # crt1.o) gets erroneously defined as common, which breaks dynamic
9385 # loading of any modules which reference it in System.framework.
9386 # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is
9387 # not used by the core itself but which needs to be in the core so
9388 # that dynamically loaded extension modules have access to it.
9389 LINKFORSHARED
="$extra_undefs -framework System"
9390 if test "$enable_framework"
9392 LINKFORSHARED
="$LINKFORSHARED -framework Python"
9394 LINKFORSHARED
="$LINKFORSHARED $extra_frameworks";;
9395 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
9396 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
9397 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
9398 FreeBSD
*|NetBSD
*|OpenBSD
*)
9399 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9401 LINKFORSHARED
="-Wl,--export-dynamic"
9403 SunOS
/5*) case $CC in
9405 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
9407 LINKFORSHARED
="-Xlinker --export-dynamic"
9412 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
9413 echo "${ECHO_T}$LINKFORSHARED" >&6
9416 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
9417 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
9418 if test ! "$LIBRARY" = "$LDLIBRARY"
9420 case $ac_sys_system in
9422 # Cygwin needs CCSHARED when building extension DLLs
9423 # but not when building the interpreter DLL.
9424 CFLAGSFORSHARED
='';;
9426 CFLAGSFORSHARED
='$(CCSHARED)'
9429 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
9430 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
9432 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
9433 # library (with --enable-shared).
9434 # For platforms on which shared libraries are not allowed to have unresolved
9435 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
9436 # if it is not required, since it creates a dependency of the shared library
9437 # to LIBS. This, in turn, means that applications linking the shared libpython
9438 # don't need to link LIBS explicitly. The default should be only changed
9439 # on systems where this approach causes problems.
9441 echo "$as_me:$LINENO: checking SHLIBS" >&5
9442 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
9443 case "$ac_sys_system" in
9447 echo "$as_me:$LINENO: result: $SHLIBS" >&5
9448 echo "${ECHO_T}$SHLIBS" >&6
9451 # checks for libraries
9453 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9454 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9455 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9456 echo $ECHO_N "(cached) $ECHO_C" >&6
9458 ac_check_lib_save_LIBS
=$LIBS
9460 cat >conftest.
$ac_ext <<_ACEOF
9461 #line $LINENO "configure"
9462 #include "confdefs.h"
9464 /* Override any gcc2 internal prototype to avoid an error. */
9468 /* We use char because int might match the return type of a gcc2
9469 builtin and then its argument prototype would still apply. */
9471 #ifdef F77_DUMMY_MAIN
9475 int F77_DUMMY_MAIN() { return 1; }
9485 rm -f conftest.
$ac_objext conftest
$ac_exeext
9486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9487 (eval $ac_link) 2>&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); } &&
9491 { ac_try
='test -s conftest$ac_exeext'
9492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); }; }; then
9497 ac_cv_lib_dl_dlopen
=yes
9499 echo "$as_me: failed program was:" >&5
9500 cat conftest.
$ac_ext >&5
9501 ac_cv_lib_dl_dlopen
=no
9503 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9504 LIBS
=$ac_check_lib_save_LIBS
9506 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9507 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9508 if test $ac_cv_lib_dl_dlopen = yes; then
9509 cat >>confdefs.h
<<_ACEOF
9510 #define HAVE_LIBDL 1
9516 # Dynamic linking for SunOS/Solaris and SYSV
9518 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9519 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9520 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9521 echo $ECHO_N "(cached) $ECHO_C" >&6
9523 ac_check_lib_save_LIBS
=$LIBS
9525 cat >conftest.
$ac_ext <<_ACEOF
9526 #line $LINENO "configure"
9527 #include "confdefs.h"
9529 /* Override any gcc2 internal prototype to avoid an error. */
9533 /* We use char because int might match the return type of a gcc2
9534 builtin and then its argument prototype would still apply. */
9536 #ifdef F77_DUMMY_MAIN
9540 int F77_DUMMY_MAIN() { return 1; }
9550 rm -f conftest.
$ac_objext conftest
$ac_exeext
9551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9552 (eval $ac_link) 2>&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); } &&
9556 { ac_try
='test -s conftest$ac_exeext'
9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; }; then
9562 ac_cv_lib_dld_shl_load
=yes
9564 echo "$as_me: failed program was:" >&5
9565 cat conftest.
$ac_ext >&5
9566 ac_cv_lib_dld_shl_load
=no
9568 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9569 LIBS
=$ac_check_lib_save_LIBS
9571 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9572 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9573 if test $ac_cv_lib_dld_shl_load = yes; then
9574 cat >>confdefs.h
<<_ACEOF
9575 #define HAVE_LIBDLD 1
9581 # Dynamic linking for HP-UX
9582 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
9583 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
9584 if test "${ac_cv_search_sem_init+set}" = set; then
9585 echo $ECHO_N "(cached) $ECHO_C" >&6
9587 ac_func_search_save_LIBS
=$LIBS
9588 ac_cv_search_sem_init
=no
9589 cat >conftest.
$ac_ext <<_ACEOF
9590 #line $LINENO "configure"
9591 #include "confdefs.h"
9593 /* Override any gcc2 internal prototype to avoid an error. */
9597 /* We use char because int might match the return type of a gcc2
9598 builtin and then its argument prototype would still apply. */
9600 #ifdef F77_DUMMY_MAIN
9604 int F77_DUMMY_MAIN() { return 1; }
9614 rm -f conftest.
$ac_objext conftest
$ac_exeext
9615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9616 (eval $ac_link) 2>&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } &&
9620 { ac_try
='test -s conftest$ac_exeext'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; }; then
9626 ac_cv_search_sem_init
="none required"
9628 echo "$as_me: failed program was:" >&5
9629 cat conftest.
$ac_ext >&5
9631 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9632 if test "$ac_cv_search_sem_init" = no
; then
9633 for ac_lib
in rt posix4
; do
9634 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9635 cat >conftest.
$ac_ext <<_ACEOF
9636 #line $LINENO "configure"
9637 #include "confdefs.h"
9639 /* Override any gcc2 internal prototype to avoid an error. */
9643 /* We use char because int might match the return type of a gcc2
9644 builtin and then its argument prototype would still apply. */
9646 #ifdef F77_DUMMY_MAIN
9650 int F77_DUMMY_MAIN() { return 1; }
9660 rm -f conftest.
$ac_objext conftest
$ac_exeext
9661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9662 (eval $ac_link) 2>&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } &&
9666 { ac_try
='test -s conftest$ac_exeext'
9667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); }; }; then
9672 ac_cv_search_sem_init
="-l$ac_lib"
9675 echo "$as_me: failed program was:" >&5
9676 cat conftest.
$ac_ext >&5
9678 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9681 LIBS
=$ac_func_search_save_LIBS
9683 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
9684 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
9685 if test "$ac_cv_search_sem_init" != no
; then
9686 test "$ac_cv_search_sem_init" = "none required" || LIBS
="$ac_cv_search_sem_init $LIBS"
9689 # 'Real Time' functions on Solaris,
9690 # posix4 on Solaris 2.6
9692 # checks for system dependent C++ extensions support
9693 case "$ac_sys_system" in
9694 AIX
*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
9695 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
9696 cat >conftest.
$ac_ext <<_ACEOF
9697 #line $LINENO "configure"
9698 #include "confdefs.h"
9699 #include "/usr/lpp/xlC/include/load.h"
9700 #ifdef F77_DUMMY_MAIN
9704 int F77_DUMMY_MAIN() { return 1; }
9709 loadAndInit("", 0, "")
9714 rm -f conftest.
$ac_objext conftest
$ac_exeext
9715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9716 (eval $ac_link) 2>&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); } &&
9720 { ac_try
='test -s conftest$ac_exeext'
9721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; }; then
9727 cat >>confdefs.h
<<\_ACEOF
9728 #define AIX_GENUINE_CPLUSPLUS 1
9731 echo "$as_me:$LINENO: result: yes" >&5
9732 echo "${ECHO_T}yes" >&6
9734 echo "$as_me: failed program was:" >&5
9735 cat conftest.
$ac_ext >&5
9736 echo "$as_me:$LINENO: result: no" >&5
9737 echo "${ECHO_T}no" >&6
9739 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext;;
9743 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
9744 # However on SGI IRIX 4, these exist but are broken.
9745 # BeOS' sockets are stashed in libnet.
9746 case "$ac_sys_system" in
9749 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
9750 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
9751 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
9752 echo $ECHO_N "(cached) $ECHO_C" >&6
9754 ac_check_lib_save_LIBS
=$LIBS
9756 cat >conftest.
$ac_ext <<_ACEOF
9757 #line $LINENO "configure"
9758 #include "confdefs.h"
9760 /* Override any gcc2 internal prototype to avoid an error. */
9764 /* We use char because int might match the return type of a gcc2
9765 builtin and then its argument prototype would still apply. */
9767 #ifdef F77_DUMMY_MAIN
9771 int F77_DUMMY_MAIN() { return 1; }
9781 rm -f conftest.
$ac_objext conftest
$ac_exeext
9782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9783 (eval $ac_link) 2>&5
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); } &&
9787 { ac_try
='test -s conftest$ac_exeext'
9788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; }; then
9793 ac_cv_lib_nsl_t_open
=yes
9795 echo "$as_me: failed program was:" >&5
9796 cat conftest.
$ac_ext >&5
9797 ac_cv_lib_nsl_t_open
=no
9799 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9800 LIBS
=$ac_check_lib_save_LIBS
9802 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
9803 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
9804 if test $ac_cv_lib_nsl_t_open = yes; then
9808 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9809 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
9810 if test "${ac_cv_lib_socket_socket+set}" = set; then
9811 echo $ECHO_N "(cached) $ECHO_C" >&6
9813 ac_check_lib_save_LIBS
=$LIBS
9814 LIBS
="-lsocket $LIBS $LIBS"
9815 cat >conftest.
$ac_ext <<_ACEOF
9816 #line $LINENO "configure"
9817 #include "confdefs.h"
9819 /* Override any gcc2 internal prototype to avoid an error. */
9823 /* We use char because int might match the return type of a gcc2
9824 builtin and then its argument prototype would still apply. */
9826 #ifdef F77_DUMMY_MAIN
9830 int F77_DUMMY_MAIN() { return 1; }
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
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
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }; then
9852 ac_cv_lib_socket_socket
=yes
9854 echo "$as_me: failed program was:" >&5
9855 cat conftest.
$ac_ext >&5
9856 ac_cv_lib_socket_socket
=no
9858 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9859 LIBS
=$ac_check_lib_save_LIBS
9861 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9862 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
9863 if test $ac_cv_lib_socket_socket = yes; then
9864 LIBS
="-lsocket $LIBS"
9869 case "$ac_sys_system" in
9871 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
9872 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
9873 if test "${ac_cv_lib_net_socket+set}" = set; then
9874 echo $ECHO_N "(cached) $ECHO_C" >&6
9876 ac_check_lib_save_LIBS
=$LIBS
9877 LIBS
="-lnet $LIBS $LIBS"
9878 cat >conftest.
$ac_ext <<_ACEOF
9879 #line $LINENO "configure"
9880 #include "confdefs.h"
9882 /* Override any gcc2 internal prototype to avoid an error. */
9886 /* We use char because int might match the return type of a gcc2
9887 builtin and then its argument prototype would still apply. */
9889 #ifdef F77_DUMMY_MAIN
9893 int F77_DUMMY_MAIN() { return 1; }
9903 rm -f conftest.
$ac_objext conftest
$ac_exeext
9904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9905 (eval $ac_link) 2>&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } &&
9909 { ac_try
='test -s conftest$ac_exeext'
9910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); }; }; then
9915 ac_cv_lib_net_socket
=yes
9917 echo "$as_me: failed program was:" >&5
9918 cat conftest.
$ac_ext >&5
9919 ac_cv_lib_net_socket
=no
9921 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9922 LIBS
=$ac_check_lib_save_LIBS
9924 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
9925 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
9926 if test $ac_cv_lib_net_socket = yes; then
9933 echo "$as_me:$LINENO: checking for --with-libs" >&5
9934 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
9936 # Check whether --with-libs or --without-libs was given.
9937 if test "${with_libs+set}" = set; then
9938 withval
="$with_libs"
9940 echo "$as_me:$LINENO: result: $withval" >&5
9941 echo "${ECHO_T}$withval" >&6
9942 LIBS
="$withval $LIBS"
9945 echo "$as_me:$LINENO: result: no" >&5
9946 echo "${ECHO_T}no" >&6
9949 # Determine if signalmodule should be used.
9952 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
9953 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
9955 # Check whether --with-signal-module or --without-signal-module was given.
9956 if test "${with_signal_module+set}" = set; then
9957 withval
="$with_signal_module"
9961 if test -z "$with_signal_module"
9962 then with_signal_module
="yes"
9964 echo "$as_me:$LINENO: result: $with_signal_module" >&5
9965 echo "${ECHO_T}$with_signal_module" >&6
9967 if test "${with_signal_module}" = "yes"; then
9968 USE_SIGNAL_MODULE
=""
9971 USE_SIGNAL_MODULE
="#"
9972 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
9975 # This is used to generate Setup.config
9977 USE_THREAD_MODULE
=""
9979 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
9980 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
9983 # Check whether --with-dec-threads or --without-dec-threads was given.
9984 if test "${with_dec_threads+set}" = set; then
9985 withval
="$with_dec_threads"
9987 echo "$as_me:$LINENO: result: $withval" >&5
9988 echo "${ECHO_T}$withval" >&6
9990 if test "${with_thread+set}" != set; then
9991 with_thread
="$withval";
9994 echo "$as_me:$LINENO: result: no" >&5
9995 echo "${ECHO_T}no" >&6
9998 # Templates for things AC_DEFINEd more than once.
9999 # For a single AC_DEFINE, no template is needed.
10007 echo "$as_me:$LINENO: checking for --with-threads" >&5
10008 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
10010 # Check whether --with-threads or --without-threads was given.
10011 if test "${with_threads+set}" = set; then
10012 withval
="$with_threads"
10016 # --with-thread is deprecated, but check for it anyway
10018 # Check whether --with-thread or --without-thread was given.
10019 if test "${with_thread+set}" = set; then
10020 withval
="$with_thread"
10021 with_threads
=$with_thread
10024 if test -z "$with_threads"
10025 then with_threads
="yes"
10027 echo "$as_me:$LINENO: result: $with_threads" >&5
10028 echo "${ECHO_T}$with_threads" >&6
10031 if test "$with_threads" = "no"
10033 USE_THREAD_MODULE
="#"
10034 elif test "$ac_cv_pthread_is_default" = yes
10036 cat >>confdefs.h
<<\_ACEOF
10037 #define WITH_THREAD 1
10040 # Defining _REENTRANT on system with POSIX threads should not hurt.
10041 cat >>confdefs.h
<<\_ACEOF
10042 #define _REENTRANT 1
10046 THREADOBJ
="Python/thread.o"
10047 elif test "$ac_cv_kpthread" = "yes"
10050 cat >>confdefs.h
<<\_ACEOF
10051 #define WITH_THREAD 1
10055 THREADOBJ
="Python/thread.o"
10057 if test ! -z "$with_threads" -a -d "$with_threads"
10058 then LDFLAGS
="$LDFLAGS -L$with_threads"
10060 if test ! -z "$withval" -a -d "$withval"
10061 then LDFLAGS
="$LDFLAGS -L$withval"
10064 # According to the POSIX spec, a pthreads implementation must
10065 # define _POSIX_THREADS in unistd.h. Some apparently don't (which ones?)
10066 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
10067 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
10068 cat >conftest.
$ac_ext <<_ACEOF
10069 #line $LINENO "configure"
10070 #include "confdefs.h"
10071 #include <unistd.h>
10072 #ifdef _POSIX_THREADS
10077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10078 egrep "yes" >/dev
/null
2>&1; then
10079 unistd_defines_pthreads
=yes
10081 unistd_defines_pthreads
=no
10085 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
10086 echo "${ECHO_T}$unistd_defines_pthreads" >&6
10088 cat >>confdefs.h
<<\_ACEOF
10089 #define _REENTRANT 1
10092 if test "${ac_cv_header_cthreads_h+set}" = set; then
10093 echo "$as_me:$LINENO: checking for cthreads.h" >&5
10094 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
10095 if test "${ac_cv_header_cthreads_h+set}" = set; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
10098 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
10099 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
10101 # Is the header compilable?
10102 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
10103 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
10104 cat >conftest.
$ac_ext <<_ACEOF
10105 #line $LINENO "configure"
10106 #include "confdefs.h"
10107 $ac_includes_default
10108 #include <cthreads.h>
10110 rm -f conftest.
$ac_objext
10111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10112 (eval $ac_compile) 2>&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); } &&
10116 { ac_try
='test -s conftest.$ac_objext'
10117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118 (eval $ac_try) 2>&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); }; }; then
10122 ac_header_compiler
=yes
10124 echo "$as_me: failed program was:" >&5
10125 cat conftest.
$ac_ext >&5
10126 ac_header_compiler
=no
10128 rm -f conftest.
$ac_objext conftest.
$ac_ext
10129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10130 echo "${ECHO_T}$ac_header_compiler" >&6
10132 # Is the header present?
10133 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
10134 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
10135 cat >conftest.
$ac_ext <<_ACEOF
10136 #line $LINENO "configure"
10137 #include "confdefs.h"
10138 #include <cthreads.h>
10140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10141 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10143 egrep -v '^ *\+' conftest.er1
>conftest.err
10145 cat conftest.err
>&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } >/dev
/null
; then
10148 if test -s conftest.err
; then
10149 ac_cpp_err
=$ac_c_preproc_warn_flag
10156 if test -z "$ac_cpp_err"; then
10157 ac_header_preproc
=yes
10159 echo "$as_me: failed program was:" >&5
10160 cat conftest.
$ac_ext >&5
10161 ac_header_preproc
=no
10163 rm -f conftest.err conftest.
$ac_ext
10164 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10165 echo "${ECHO_T}$ac_header_preproc" >&6
10167 # So? What about this header?
10168 case $ac_header_compiler:$ac_header_preproc in
10170 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
10171 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10172 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
10173 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};;
10175 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
10176 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
10177 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
10178 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
10179 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
10180 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};;
10182 echo "$as_me:$LINENO: checking for cthreads.h" >&5
10183 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
10184 if test "${ac_cv_header_cthreads_h+set}" = set; then
10185 echo $ECHO_N "(cached) $ECHO_C" >&6
10187 ac_cv_header_cthreads_h
=$ac_header_preproc
10189 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
10190 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
10193 if test $ac_cv_header_cthreads_h = yes; then
10194 cat >>confdefs.h
<<\_ACEOF
10195 #define WITH_THREAD 1
10198 cat >>confdefs.h
<<\_ACEOF
10199 #define C_THREADS 1
10203 cat >>confdefs.h
<<\_ACEOF
10204 #define HURD_C_THREADS 1
10207 LIBS
="$LIBS -lthreads"
10208 THREADOBJ
="Python/thread.o"
10211 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
10212 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
10213 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
10214 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
10217 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
10218 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
10220 # Is the header compilable?
10221 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
10222 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
10223 cat >conftest.
$ac_ext <<_ACEOF
10224 #line $LINENO "configure"
10225 #include "confdefs.h"
10226 $ac_includes_default
10227 #include <mach/cthreads.h>
10229 rm -f conftest.
$ac_objext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10231 (eval $ac_compile) 2>&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } &&
10235 { ac_try
='test -s conftest.$ac_objext'
10236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237 (eval $ac_try) 2>&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; }; then
10241 ac_header_compiler
=yes
10243 echo "$as_me: failed program was:" >&5
10244 cat conftest.
$ac_ext >&5
10245 ac_header_compiler
=no
10247 rm -f conftest.
$ac_objext conftest.
$ac_ext
10248 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10249 echo "${ECHO_T}$ac_header_compiler" >&6
10251 # Is the header present?
10252 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
10253 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
10254 cat >conftest.
$ac_ext <<_ACEOF
10255 #line $LINENO "configure"
10256 #include "confdefs.h"
10257 #include <mach/cthreads.h>
10259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10260 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10262 egrep -v '^ *\+' conftest.er1
>conftest.err
10264 cat conftest.err
>&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } >/dev
/null
; then
10267 if test -s conftest.err
; then
10268 ac_cpp_err
=$ac_c_preproc_warn_flag
10275 if test -z "$ac_cpp_err"; then
10276 ac_header_preproc
=yes
10278 echo "$as_me: failed program was:" >&5
10279 cat conftest.
$ac_ext >&5
10280 ac_header_preproc
=no
10282 rm -f conftest.err conftest.
$ac_ext
10283 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10284 echo "${ECHO_T}$ac_header_preproc" >&6
10286 # So? What about this header?
10287 case $ac_header_compiler:$ac_header_preproc in
10289 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
10290 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10291 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
10292 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};;
10294 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
10295 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
10296 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
10297 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
10298 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
10299 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};;
10301 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
10302 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
10303 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
10308 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
10309 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
10312 if test $ac_cv_header_mach_cthreads_h = yes; then
10313 cat >>confdefs.h
<<\_ACEOF
10314 #define WITH_THREAD 1
10317 cat >>confdefs.h
<<\_ACEOF
10318 #define C_THREADS 1
10322 cat >>confdefs.h
<<\_ACEOF
10323 #define MACH_C_THREADS 1
10326 THREADOBJ
="Python/thread.o"
10329 echo "$as_me:$LINENO: checking for --with-pth" >&5
10330 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
10332 # Check whether --with-pth or --without-pth was given.
10333 if test "${with_pth+set}" = set; then
10334 withval
="$with_pth"
10335 echo "$as_me:$LINENO: result: $withval" >&5
10336 echo "${ECHO_T}$withval" >&6
10337 cat >>confdefs.h
<<\_ACEOF
10338 #define WITH_THREAD 1
10342 cat >>confdefs.h
<<\_ACEOF
10347 THREADOBJ
="Python/thread.o"
10349 echo "$as_me:$LINENO: result: no" >&5
10350 echo "${ECHO_T}no" >&6
10352 # Just looking for pthread_create in libpthread is not enough:
10353 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
10354 # So we really have to include pthread.h, and then link.
10356 LIBS
="$LIBS -lpthread"
10357 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
10358 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
10359 cat >conftest.
$ac_ext <<_ACEOF
10360 #line $LINENO "configure"
10361 #include "confdefs.h"
10362 #include <pthread.h>
10364 void * start_routine (void *arg) { exit (0); }
10365 #ifdef F77_DUMMY_MAIN
10366 # ifdef __cplusplus
10369 int F77_DUMMY_MAIN() { return 1; }
10375 pthread_create (NULL, NULL, start_routine, NULL)
10380 rm -f conftest.
$ac_objext conftest
$ac_exeext
10381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10382 (eval $ac_link) 2>&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); } &&
10386 { ac_try
='test -s conftest$ac_exeext'
10387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10388 (eval $ac_try) 2>&5
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); }; }; then
10393 echo "$as_me:$LINENO: result: yes" >&5
10394 echo "${ECHO_T}yes" >&6
10395 cat >>confdefs.h
<<\_ACEOF
10396 #define WITH_THREAD 1
10400 THREADOBJ
="Python/thread.o"
10402 echo "$as_me: failed program was:" >&5
10403 cat conftest.
$ac_ext >&5
10406 echo "$as_me:$LINENO: checking for pthread_detach" >&5
10407 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
10408 if test "${ac_cv_func_pthread_detach+set}" = set; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
10411 cat >conftest.
$ac_ext <<_ACEOF
10412 #line $LINENO "configure"
10413 #include "confdefs.h"
10414 /* System header to define __stub macros and hopefully few prototypes,
10415 which can conflict with char pthread_detach (); below. */
10416 #include <assert.h>
10417 /* Override any gcc2 internal prototype to avoid an error. */
10421 /* We use char because int might match the return type of a gcc2
10422 builtin and then its argument prototype would still apply. */
10423 char pthread_detach ();
10426 #ifdef F77_DUMMY_MAIN
10427 # ifdef __cplusplus
10430 int F77_DUMMY_MAIN() { return 1; }
10435 /* The GNU C library defines this for functions which it implements
10436 to always fail with ENOSYS. Some functions are actually named
10437 something starting with __ and the normal name is an alias. */
10438 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
10441 f = pthread_detach;
10448 rm -f conftest.
$ac_objext conftest
$ac_exeext
10449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10450 (eval $ac_link) 2>&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } &&
10454 { ac_try
='test -s conftest$ac_exeext'
10455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10456 (eval $ac_try) 2>&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); }; }; then
10460 ac_cv_func_pthread_detach
=yes
10462 echo "$as_me: failed program was:" >&5
10463 cat conftest.
$ac_ext >&5
10464 ac_cv_func_pthread_detach
=no
10466 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10468 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
10469 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
10470 if test $ac_cv_func_pthread_detach = yes; then
10471 cat >>confdefs.h
<<\_ACEOF
10472 #define WITH_THREAD 1
10476 THREADOBJ
="Python/thread.o"
10479 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
10480 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
10481 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
10482 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
10483 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
10486 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
10488 # Is the header compilable?
10489 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
10490 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
10491 cat >conftest.
$ac_ext <<_ACEOF
10492 #line $LINENO "configure"
10493 #include "confdefs.h"
10494 $ac_includes_default
10495 #include <atheos/threads.h>
10497 rm -f conftest.
$ac_objext
10498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10499 (eval $ac_compile) 2>&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); } &&
10503 { ac_try
='test -s conftest.$ac_objext'
10504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10505 (eval $ac_try) 2>&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); }; }; then
10509 ac_header_compiler
=yes
10511 echo "$as_me: failed program was:" >&5
10512 cat conftest.
$ac_ext >&5
10513 ac_header_compiler
=no
10515 rm -f conftest.
$ac_objext conftest.
$ac_ext
10516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10517 echo "${ECHO_T}$ac_header_compiler" >&6
10519 # Is the header present?
10520 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
10521 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
10522 cat >conftest.
$ac_ext <<_ACEOF
10523 #line $LINENO "configure"
10524 #include "confdefs.h"
10525 #include <atheos/threads.h>
10527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10528 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10530 egrep -v '^ *\+' conftest.er1
>conftest.err
10532 cat conftest.err
>&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } >/dev
/null
; then
10535 if test -s conftest.err
; then
10536 ac_cpp_err
=$ac_c_preproc_warn_flag
10543 if test -z "$ac_cpp_err"; then
10544 ac_header_preproc
=yes
10546 echo "$as_me: failed program was:" >&5
10547 cat conftest.
$ac_ext >&5
10548 ac_header_preproc
=no
10550 rm -f conftest.err conftest.
$ac_ext
10551 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10552 echo "${ECHO_T}$ac_header_preproc" >&6
10554 # So? What about this header?
10555 case $ac_header_compiler:$ac_header_preproc in
10557 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
10558 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10559 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
10560 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};;
10562 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
10563 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
10564 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
10565 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
10566 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
10567 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};;
10569 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
10570 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
10571 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
10574 ac_cv_header_atheos_threads_h
=$ac_header_preproc
10576 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
10577 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
10580 if test $ac_cv_header_atheos_threads_h = yes; then
10581 cat >>confdefs.h
<<\_ACEOF
10582 #define WITH_THREAD 1
10586 cat >>confdefs.h
<<\_ACEOF
10587 #define ATHEOS_THREADS 1
10590 THREADOBJ
="Python/thread.o"
10593 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
10594 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
10595 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
10596 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
10597 echo $ECHO_N "(cached) $ECHO_C" >&6
10599 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
10600 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
10602 # Is the header compilable?
10603 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
10604 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
10605 cat >conftest.
$ac_ext <<_ACEOF
10606 #line $LINENO "configure"
10607 #include "confdefs.h"
10608 $ac_includes_default
10609 #include <kernel/OS.h>
10611 rm -f conftest.
$ac_objext
10612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10613 (eval $ac_compile) 2>&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } &&
10617 { ac_try
='test -s conftest.$ac_objext'
10618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10619 (eval $ac_try) 2>&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); }; }; then
10623 ac_header_compiler
=yes
10625 echo "$as_me: failed program was:" >&5
10626 cat conftest.
$ac_ext >&5
10627 ac_header_compiler
=no
10629 rm -f conftest.
$ac_objext conftest.
$ac_ext
10630 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10631 echo "${ECHO_T}$ac_header_compiler" >&6
10633 # Is the header present?
10634 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
10635 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
10636 cat >conftest.
$ac_ext <<_ACEOF
10637 #line $LINENO "configure"
10638 #include "confdefs.h"
10639 #include <kernel/OS.h>
10641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10642 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10644 egrep -v '^ *\+' conftest.er1
>conftest.err
10646 cat conftest.err
>&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); } >/dev
/null
; then
10649 if test -s conftest.err
; then
10650 ac_cpp_err
=$ac_c_preproc_warn_flag
10657 if test -z "$ac_cpp_err"; then
10658 ac_header_preproc
=yes
10660 echo "$as_me: failed program was:" >&5
10661 cat conftest.
$ac_ext >&5
10662 ac_header_preproc
=no
10664 rm -f conftest.err conftest.
$ac_ext
10665 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10666 echo "${ECHO_T}$ac_header_preproc" >&6
10668 # So? What about this header?
10669 case $ac_header_compiler:$ac_header_preproc in
10671 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
10672 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10673 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
10674 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};;
10676 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
10677 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
10678 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
10679 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
10680 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
10681 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};;
10683 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
10684 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
10685 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10688 ac_cv_header_kernel_OS_h
=$ac_header_preproc
10690 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
10691 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
10694 if test $ac_cv_header_kernel_OS_h = yes; then
10695 cat >>confdefs.h
<<\_ACEOF
10696 #define WITH_THREAD 1
10700 cat >>confdefs.h
<<\_ACEOF
10701 #define BEOS_THREADS 1
10704 THREADOBJ
="Python/thread.o"
10707 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
10708 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
10709 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
10710 echo $ECHO_N "(cached) $ECHO_C" >&6
10712 ac_check_lib_save_LIBS
=$LIBS
10713 LIBS
="-lpthreads $LIBS"
10714 cat >conftest.
$ac_ext <<_ACEOF
10715 #line $LINENO "configure"
10716 #include "confdefs.h"
10718 /* Override any gcc2 internal prototype to avoid an error. */
10722 /* We use char because int might match the return type of a gcc2
10723 builtin and then its argument prototype would still apply. */
10724 char pthread_create ();
10725 #ifdef F77_DUMMY_MAIN
10726 # ifdef __cplusplus
10729 int F77_DUMMY_MAIN() { return 1; }
10739 rm -f conftest.
$ac_objext conftest
$ac_exeext
10740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10741 (eval $ac_link) 2>&5
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); } &&
10745 { ac_try
='test -s conftest$ac_exeext'
10746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10747 (eval $ac_try) 2>&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); }; }; then
10751 ac_cv_lib_pthreads_pthread_create
=yes
10753 echo "$as_me: failed program was:" >&5
10754 cat conftest.
$ac_ext >&5
10755 ac_cv_lib_pthreads_pthread_create
=no
10757 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10758 LIBS
=$ac_check_lib_save_LIBS
10760 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
10761 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
10762 if test $ac_cv_lib_pthreads_pthread_create = yes; then
10763 cat >>confdefs.h
<<\_ACEOF
10764 #define WITH_THREAD 1
10768 LIBS
="$LIBS -lpthreads"
10769 THREADOBJ
="Python/thread.o"
10772 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
10773 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
10774 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10777 ac_check_lib_save_LIBS
=$LIBS
10779 cat >conftest.
$ac_ext <<_ACEOF
10780 #line $LINENO "configure"
10781 #include "confdefs.h"
10783 /* Override any gcc2 internal prototype to avoid an error. */
10787 /* We use char because int might match the return type of a gcc2
10788 builtin and then its argument prototype would still apply. */
10789 char pthread_create ();
10790 #ifdef F77_DUMMY_MAIN
10791 # ifdef __cplusplus
10794 int F77_DUMMY_MAIN() { return 1; }
10804 rm -f conftest.
$ac_objext conftest
$ac_exeext
10805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10806 (eval $ac_link) 2>&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } &&
10810 { ac_try
='test -s conftest$ac_exeext'
10811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812 (eval $ac_try) 2>&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; }; then
10816 ac_cv_lib_c_r_pthread_create
=yes
10818 echo "$as_me: failed program was:" >&5
10819 cat conftest.
$ac_ext >&5
10820 ac_cv_lib_c_r_pthread_create
=no
10822 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10823 LIBS
=$ac_check_lib_save_LIBS
10825 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
10826 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
10827 if test $ac_cv_lib_c_r_pthread_create = yes; then
10828 cat >>confdefs.h
<<\_ACEOF
10829 #define WITH_THREAD 1
10834 THREADOBJ
="Python/thread.o"
10837 echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5
10838 echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6
10839 if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then
10840 echo $ECHO_N "(cached) $ECHO_C" >&6
10842 ac_check_lib_save_LIBS
=$LIBS
10843 LIBS
="-lthread $LIBS"
10844 cat >conftest.
$ac_ext <<_ACEOF
10845 #line $LINENO "configure"
10846 #include "confdefs.h"
10848 /* Override any gcc2 internal prototype to avoid an error. */
10852 /* We use char because int might match the return type of a gcc2
10853 builtin and then its argument prototype would still apply. */
10854 char __d6_pthread_create ();
10855 #ifdef F77_DUMMY_MAIN
10856 # ifdef __cplusplus
10859 int F77_DUMMY_MAIN() { return 1; }
10864 __d6_pthread_create ();
10869 rm -f conftest.
$ac_objext conftest
$ac_exeext
10870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10871 (eval $ac_link) 2>&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } &&
10875 { ac_try
='test -s conftest$ac_exeext'
10876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10877 (eval $ac_try) 2>&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; }; then
10881 ac_cv_lib_thread___d6_pthread_create
=yes
10883 echo "$as_me: failed program was:" >&5
10884 cat conftest.
$ac_ext >&5
10885 ac_cv_lib_thread___d6_pthread_create
=no
10887 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10888 LIBS
=$ac_check_lib_save_LIBS
10890 echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5
10891 echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6
10892 if test $ac_cv_lib_thread___d6_pthread_create = yes; then
10893 cat >>confdefs.h
<<\_ACEOF
10894 #define WITH_THREAD 1
10897 echo Systems with __d6_pthread_create are not supported anymore.
10901 LIBS
="$LIBS -lthread"
10902 THREADOBJ
="Python/thread.o"
10905 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
10906 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
10907 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
10908 echo $ECHO_N "(cached) $ECHO_C" >&6
10910 ac_check_lib_save_LIBS
=$LIBS
10911 LIBS
="-lpthread $LIBS"
10912 cat >conftest.
$ac_ext <<_ACEOF
10913 #line $LINENO "configure"
10914 #include "confdefs.h"
10916 /* Override any gcc2 internal prototype to avoid an error. */
10920 /* We use char because int might match the return type of a gcc2
10921 builtin and then its argument prototype would still apply. */
10922 char __pthread_create_system ();
10923 #ifdef F77_DUMMY_MAIN
10924 # ifdef __cplusplus
10927 int F77_DUMMY_MAIN() { return 1; }
10932 __pthread_create_system ();
10937 rm -f conftest.
$ac_objext conftest
$ac_exeext
10938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10939 (eval $ac_link) 2>&5
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); } &&
10943 { ac_try
='test -s conftest$ac_exeext'
10944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10945 (eval $ac_try) 2>&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; }; then
10949 ac_cv_lib_pthread___pthread_create_system
=yes
10951 echo "$as_me: failed program was:" >&5
10952 cat conftest.
$ac_ext >&5
10953 ac_cv_lib_pthread___pthread_create_system
=no
10955 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10956 LIBS
=$ac_check_lib_save_LIBS
10958 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
10959 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
10960 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
10961 cat >>confdefs.h
<<\_ACEOF
10962 #define WITH_THREAD 1
10966 LIBS
="$LIBS -lpthread"
10967 THREADOBJ
="Python/thread.o"
10970 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
10971 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
10972 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 ac_check_lib_save_LIBS
=$LIBS
10977 cat >conftest.
$ac_ext <<_ACEOF
10978 #line $LINENO "configure"
10979 #include "confdefs.h"
10981 /* Override any gcc2 internal prototype to avoid an error. */
10985 /* We use char because int might match the return type of a gcc2
10986 builtin and then its argument prototype would still apply. */
10987 char pthread_create ();
10988 #ifdef F77_DUMMY_MAIN
10989 # ifdef __cplusplus
10992 int F77_DUMMY_MAIN() { return 1; }
11002 rm -f conftest.
$ac_objext conftest
$ac_exeext
11003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11004 (eval $ac_link) 2>&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } &&
11008 { ac_try
='test -s conftest$ac_exeext'
11009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010 (eval $ac_try) 2>&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); }; }; then
11014 ac_cv_lib_cma_pthread_create
=yes
11016 echo "$as_me: failed program was:" >&5
11017 cat conftest.
$ac_ext >&5
11018 ac_cv_lib_cma_pthread_create
=no
11020 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11021 LIBS
=$ac_check_lib_save_LIBS
11023 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
11024 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
11025 if test $ac_cv_lib_cma_pthread_create = yes; then
11026 cat >>confdefs.h
<<\_ACEOF
11027 #define WITH_THREAD 1
11032 THREADOBJ
="Python/thread.o"
11035 USE_THREAD_MODULE
="#"
11056 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11065 if test "$posix_threads" = "yes"; then
11066 if test "$unistd_defines_pthreads" = "no"; then
11068 cat >>confdefs.h
<<\_ACEOF
11069 #define _POSIX_THREADS 1
11074 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
11075 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
11076 if test "${ac_cv_pthread_system_supported+set}" = set; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11079 if test "$cross_compiling" = yes; then
11080 ac_cv_pthread_system_supported
=no
11082 cat >conftest.
$ac_ext <<_ACEOF
11083 #line $LINENO "configure"
11084 #include "confdefs.h"
11085 #include <pthread.h>
11086 void *foo(void *parm) {
11090 pthread_attr_t attr;
11092 if (pthread_attr_init(&attr)) exit(-1);
11093 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
11094 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
11098 rm -f conftest
$ac_exeext
11099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11100 (eval $ac_link) 2>&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11105 (eval $ac_try) 2>&5
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); }; }; then
11109 ac_cv_pthread_system_supported
=yes
11111 echo "$as_me: program exited with status $ac_status" >&5
11112 echo "$as_me: failed program was:" >&5
11113 cat conftest.
$ac_ext >&5
11114 ( exit $ac_status )
11115 ac_cv_pthread_system_supported
=no
11117 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11122 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
11123 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
11124 if test "$ac_cv_pthread_system_supported" = "yes"; then
11126 cat >>confdefs.h
<<\_ACEOF
11127 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
11132 for ac_func
in pthread_sigmask
11134 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11135 echo "$as_me:$LINENO: checking for $ac_func" >&5
11136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11137 if eval "test \"\${$as_ac_var+set}\" = set"; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11140 cat >conftest.
$ac_ext <<_ACEOF
11141 #line $LINENO "configure"
11142 #include "confdefs.h"
11143 /* System header to define __stub macros and hopefully few prototypes,
11144 which can conflict with char $ac_func (); below. */
11145 #include <assert.h>
11146 /* Override any gcc2 internal prototype to avoid an error. */
11150 /* We use char because int might match the return type of a gcc2
11151 builtin and then its argument prototype would still apply. */
11155 #ifdef F77_DUMMY_MAIN
11156 # ifdef __cplusplus
11159 int F77_DUMMY_MAIN() { return 1; }
11164 /* The GNU C library defines this for functions which it implements
11165 to always fail with ENOSYS. Some functions are actually named
11166 something starting with __ and the normal name is an alias. */
11167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11177 rm -f conftest.
$ac_objext conftest
$ac_exeext
11178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11179 (eval $ac_link) 2>&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } &&
11183 { ac_try
='test -s conftest$ac_exeext'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; }; then
11189 eval "$as_ac_var=yes"
11191 echo "$as_me: failed program was:" >&5
11192 cat conftest.
$ac_ext >&5
11193 eval "$as_ac_var=no"
11195 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11198 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11199 if test `eval echo '${'$as_ac_var'}'` = yes; then
11200 cat >>confdefs.h
<<_ACEOF
11201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11209 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
11210 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
11211 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11214 ac_check_lib_save_LIBS
=$LIBS
11216 cat >conftest.
$ac_ext <<_ACEOF
11217 #line $LINENO "configure"
11218 #include "confdefs.h"
11220 /* Override any gcc2 internal prototype to avoid an error. */
11224 /* We use char because int might match the return type of a gcc2
11225 builtin and then its argument prototype would still apply. */
11227 #ifdef F77_DUMMY_MAIN
11228 # ifdef __cplusplus
11231 int F77_DUMMY_MAIN() { return 1; }
11241 rm -f conftest.
$ac_objext conftest
$ac_exeext
11242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11243 (eval $ac_link) 2>&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); } &&
11247 { ac_try
='test -s conftest$ac_exeext'
11248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11249 (eval $ac_try) 2>&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); }; }; then
11253 ac_cv_lib_mpc_usconfig
=yes
11255 echo "$as_me: failed program was:" >&5
11256 cat conftest.
$ac_ext >&5
11257 ac_cv_lib_mpc_usconfig
=no
11259 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11260 LIBS
=$ac_check_lib_save_LIBS
11262 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
11263 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
11264 if test $ac_cv_lib_mpc_usconfig = yes; then
11265 cat >>confdefs.h
<<\_ACEOF
11266 #define WITH_THREAD 1
11270 THREADOBJ
="Python/thread.o"
11271 USE_THREAD_MODULE
=""
11275 if test "$posix_threads" != "yes"; then
11276 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
11277 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
11278 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
11279 echo $ECHO_N "(cached) $ECHO_C" >&6
11281 ac_check_lib_save_LIBS
=$LIBS
11282 LIBS
="-lthread $LIBS"
11283 cat >conftest.
$ac_ext <<_ACEOF
11284 #line $LINENO "configure"
11285 #include "confdefs.h"
11287 /* Override any gcc2 internal prototype to avoid an error. */
11291 /* We use char because int might match the return type of a gcc2
11292 builtin and then its argument prototype would still apply. */
11293 char thr_create ();
11294 #ifdef F77_DUMMY_MAIN
11295 # ifdef __cplusplus
11298 int F77_DUMMY_MAIN() { return 1; }
11308 rm -f conftest.
$ac_objext conftest
$ac_exeext
11309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11310 (eval $ac_link) 2>&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); } &&
11314 { ac_try
='test -s conftest$ac_exeext'
11315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11316 (eval $ac_try) 2>&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); }; }; then
11320 ac_cv_lib_thread_thr_create
=yes
11322 echo "$as_me: failed program was:" >&5
11323 cat conftest.
$ac_ext >&5
11324 ac_cv_lib_thread_thr_create
=no
11326 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11327 LIBS
=$ac_check_lib_save_LIBS
11329 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
11330 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
11331 if test $ac_cv_lib_thread_thr_create = yes; then
11332 cat >>confdefs.h
<<\_ACEOF
11333 #define WITH_THREAD 1
11336 LIBS
="$LIBS -lthread"
11337 THREADOBJ
="Python/thread.o"
11338 USE_THREAD_MODULE
=""
11343 if test "$USE_THREAD_MODULE" != "#"
11345 # If the above checks didn't disable threads, (at least) OSF1
11346 # needs this '-threads' argument during linking.
11347 case $ac_sys_system in
11348 OSF1
) LDLAST
=-threads;;
11352 if test "$posix_threads" = yes -a \
11353 "$ac_sys_system" = "SunOS" -a \
11354 "$ac_sys_release" = "5.6"; then
11356 cat >>confdefs.h
<<\_ACEOF
11357 #define HAVE_PTHREAD_DESTRUCTOR 1
11364 # Check for enable-ipv6
11367 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
11368 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
11369 # Check whether --enable-ipv6 or --disable-ipv6 was given.
11370 if test "${enable_ipv6+set}" = set; then
11371 enableval
="$enable_ipv6"
11372 case "$enableval" in
11374 echo "$as_me:$LINENO: result: no" >&5
11375 echo "${ECHO_T}no" >&6
11378 *) echo "$as_me:$LINENO: result: yes" >&5
11379 echo "${ECHO_T}yes" >&6
11380 cat >>confdefs.h
<<\_ACEOF
11381 #define ENABLE_IPV6 1
11389 if test "$cross_compiling" = yes; then
11390 echo "$as_me:$LINENO: result: no" >&5
11391 echo "${ECHO_T}no" >&6
11395 cat >conftest.
$ac_ext <<_ACEOF
11396 #line $LINENO "configure"
11397 #include "confdefs.h"
11398 /* AF_INET6 available check */
11399 #include <sys/types.h>
11400 #include <sys/socket.h>
11403 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
11410 rm -f conftest
$ac_exeext
11411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11412 (eval $ac_link) 2>&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11417 (eval $ac_try) 2>&5
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); }; }; then
11421 echo "$as_me:$LINENO: result: yes" >&5
11422 echo "${ECHO_T}yes" >&6
11425 echo "$as_me: program exited with status $ac_status" >&5
11426 echo "$as_me: failed program was:" >&5
11427 cat conftest.
$ac_ext >&5
11428 ( exit $ac_status )
11429 echo "$as_me:$LINENO: result: no" >&5
11430 echo "${ECHO_T}no" >&6
11433 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11436 if test "$ipv6" = "yes"; then
11437 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
11438 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
11439 cat >conftest.
$ac_ext <<_ACEOF
11440 #line $LINENO "configure"
11441 #include "confdefs.h"
11442 #include <sys/types.h>
11443 #include <netinet/in.h>
11444 #ifdef F77_DUMMY_MAIN
11445 # ifdef __cplusplus
11448 int F77_DUMMY_MAIN() { return 1; }
11453 struct sockaddr_in6 x;
11459 rm -f conftest.
$ac_objext
11460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11461 (eval $ac_compile) 2>&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } &&
11465 { ac_try
='test -s conftest.$ac_objext'
11466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467 (eval $ac_try) 2>&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; }; then
11471 echo "$as_me:$LINENO: result: yes" >&5
11472 echo "${ECHO_T}yes" >&6
11475 echo "$as_me: failed program was:" >&5
11476 cat conftest.
$ac_ext >&5
11477 echo "$as_me:$LINENO: result: no" >&5
11478 echo "${ECHO_T}no" >&6
11481 rm -f conftest.
$ac_objext conftest.
$ac_ext
11484 if test "$ipv6" = "yes"; then
11485 cat >>confdefs.h
<<\_ACEOF
11486 #define ENABLE_IPV6 1
11497 if test "$ipv6" = "yes"; then
11498 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
11499 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
11500 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
11504 cat >conftest.
$ac_ext <<_ACEOF
11505 #line $LINENO "configure"
11506 #include "confdefs.h"
11508 #include <netinet/in.h>
11509 #ifdef IPV6_INRIA_VERSION
11513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11514 egrep "yes" >/dev
/null
2>&1; then
11521 cat >conftest.
$ac_ext <<_ACEOF
11522 #line $LINENO "configure"
11523 #include "confdefs.h"
11525 #include <netinet/in.h>
11530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11531 egrep "yes" >/dev
/null
2>&1; then
11534 ipv6libdir
=/usr
/local
/v
6/lib
11541 cat >conftest.
$ac_ext <<_ACEOF
11542 #line $LINENO "configure"
11543 #include "confdefs.h"
11545 #include <features.h>
11546 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
11550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11551 egrep "yes" >/dev
/null
2>&1; then
11559 if test -d /usr
/inet6
; then
11562 ipv6libdir
=/usr
/inet
6/lib
11563 OPT
="-I/usr/inet6/include $OPT"
11567 if test -f /etc
/netconfig
; then
11568 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
11575 cat >conftest.
$ac_ext <<_ACEOF
11576 #line $LINENO "configure"
11577 #include "confdefs.h"
11579 #include <sys/param.h>
11580 #ifdef _TOSHIBA_INET6
11584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11585 egrep "yes" >/dev
/null
2>&1; then
11588 ipv6libdir
=/usr
/local
/v
6/lib
11594 cat >conftest.
$ac_ext <<_ACEOF
11595 #line $LINENO "configure"
11596 #include "confdefs.h"
11598 #include </usr/local/v6/include/sys/v6config.h>
11603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11604 egrep "yes" >/dev
/null
2>&1; then
11607 ipv6libdir
=/usr
/local
/v
6/lib
;
11608 OPT
="-I/usr/local/v6/include $OPT"
11614 cat >conftest.
$ac_ext <<_ACEOF
11615 #line $LINENO "configure"
11616 #include "confdefs.h"
11618 #include <sys/param.h>
11619 #ifdef _ZETA_MINAMI_INET6
11623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11624 egrep "yes" >/dev
/null
2>&1; then
11627 ipv6libdir
=/usr
/local
/v
6/lib
11633 if test "$ipv6type" != "unknown"; then
11637 echo "$as_me:$LINENO: result: $ipv6type" >&5
11638 echo "${ECHO_T}$ipv6type" >&6
11641 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
11642 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
11643 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
11644 echo "using lib$ipv6lib"
11646 if test $ipv6trylibc = "yes"; then
11649 echo 'Fatal: no $ipv6lib library found. cannot continue.'
11650 echo "You need to fetch lib$ipv6lib.a from appropriate"
11651 echo 'ipv6 kit and compile beforehand.'
11657 # Check for universal newline support
11658 echo "$as_me:$LINENO: checking for --with-universal-newlines" >&5
11659 echo $ECHO_N "checking for --with-universal-newlines... $ECHO_C" >&6
11661 # Check whether --with-universal-newlines or --without-universal-newlines was given.
11662 if test "${with_universal_newlines+set}" = set; then
11663 withval
="$with_universal_newlines"
11667 if test -z "$with_universal_newlines"
11668 then with_universal_newlines
="yes"
11670 if test "$with_universal_newlines" = "no"
11672 echo --without-universal-newlines is unsupported
, see README
11676 cat >>confdefs.h
<<\_ACEOF
11677 #define WITH_UNIVERSAL_NEWLINES 1
11681 echo "$as_me:$LINENO: result: $with_universal_newlines" >&5
11682 echo "${ECHO_T}$with_universal_newlines" >&6
11684 # Check for --with-doc-strings
11685 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
11686 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
11688 # Check whether --with-doc-strings or --without-doc-strings was given.
11689 if test "${with_doc_strings+set}" = set; then
11690 withval
="$with_doc_strings"
11694 if test -z "$with_doc_strings"
11695 then with_doc_strings
="yes"
11697 if test "$with_doc_strings" != "no"
11700 cat >>confdefs.h
<<\_ACEOF
11701 #define WITH_DOC_STRINGS 1
11705 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
11706 echo "${ECHO_T}$with_doc_strings" >&6
11708 # Check for Python-specific malloc support
11709 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
11710 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
11712 # Check whether --with-pymalloc or --without-pymalloc was given.
11713 if test "${with_pymalloc+set}" = set; then
11714 withval
="$with_pymalloc"
11718 if test -z "$with_pymalloc"
11719 then with_pymalloc
="yes"
11721 if test "$with_pymalloc" != "no"
11724 cat >>confdefs.h
<<\_ACEOF
11725 #define WITH_PYMALLOC 1
11729 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
11730 echo "${ECHO_T}$with_pymalloc" >&6
11732 # Check for --with-wctype-functions
11733 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
11734 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
11736 # Check whether --with-wctype-functions or --without-wctype-functions was given.
11737 if test "${with_wctype_functions+set}" = set; then
11738 withval
="$with_wctype_functions"
11740 if test "$withval" != no
11743 cat >>confdefs.h
<<\_ACEOF
11744 #define WANT_WCTYPE_FUNCTIONS 1
11747 echo "$as_me:$LINENO: result: yes" >&5
11748 echo "${ECHO_T}yes" >&6
11749 else echo "$as_me:$LINENO: result: no" >&5
11750 echo "${ECHO_T}no" >&6
11753 echo "$as_me:$LINENO: result: no" >&5
11754 echo "${ECHO_T}no" >&6
11757 # -I${DLINCLDIR} is added to the compile rule for importdl.o
11761 echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5
11762 echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6
11764 # Check whether --with-sgi-dl or --without-sgi-dl was given.
11765 if test "${with_sgi_dl+set}" = set; then
11766 withval
="$with_sgi_dl"
11768 echo "$as_me:$LINENO: result: $withval" >&5
11769 echo "${ECHO_T}$withval" >&6
11770 echo --with-sgi-dl is unsupported
, see README
11773 cat >>confdefs.h
<<\_ACEOF
11774 #define WITH_SGI_DL 1
11777 DYNLOADFILE
="dynload_dl.o"
11779 if test ! -z "$dldir" -a -d "$dldir"
11780 then LDFLAGS
="$LDFLAGS -L$dldir"
11781 else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5
11782 echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;}
11783 { (exit 1); exit 1; }; }
11786 LIBS
="$LIBS -ldl -lmld"
11788 echo "$as_me:$LINENO: result: no" >&5
11789 echo "${ECHO_T}no" >&6
11792 echo "$as_me:$LINENO: checking for --with-dl-dld" >&5
11793 echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6
11795 # Check whether --with-dl-dld or --without-dl-dld was given.
11796 if test "${with_dl_dld+set}" = set; then
11797 withval
="$with_dl_dld"
11799 echo "$as_me:$LINENO: result: $withval" >&5
11800 echo "${ECHO_T}$withval" >&6
11801 echo --with-dl-dld is unsupported
, see README
11804 cat >>confdefs.h
<<\_ACEOF
11805 #define WITH_DL_DLD 1
11808 DYNLOADFILE
="dynload_dl.o"
11809 dldir
=`echo "$withval" | sed 's/,.*//'`
11810 dlddir
=`echo "$withval" | sed 's/.*,//'`
11811 if test ! -z "$dldir" -a -d "$dldir" -a ! -z "$dlddir" -a -d "$dlddir"
11812 then LDFLAGS
="$LDFLAGS -L$dldir -L$dlddir"
11813 else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&5
11814 echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&2;}
11815 { (exit 1); exit 1; }; }
11818 LIBS
="$LIBS -ldl -ldld"
11820 echo "$as_me:$LINENO: result: no" >&5
11821 echo "${ECHO_T}no" >&6
11824 # the dlopen() function means we might want to use dynload_shlib.o. some
11825 # platforms, such as AIX, have dlopen(), but don't want to use it.
11827 for ac_func
in dlopen
11829 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11830 echo "$as_me:$LINENO: checking for $ac_func" >&5
11831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11832 if eval "test \"\${$as_ac_var+set}\" = set"; then
11833 echo $ECHO_N "(cached) $ECHO_C" >&6
11835 cat >conftest.
$ac_ext <<_ACEOF
11836 #line $LINENO "configure"
11837 #include "confdefs.h"
11838 /* System header to define __stub macros and hopefully few prototypes,
11839 which can conflict with char $ac_func (); below. */
11840 #include <assert.h>
11841 /* Override any gcc2 internal prototype to avoid an error. */
11845 /* We use char because int might match the return type of a gcc2
11846 builtin and then its argument prototype would still apply. */
11850 #ifdef F77_DUMMY_MAIN
11851 # ifdef __cplusplus
11854 int F77_DUMMY_MAIN() { return 1; }
11859 /* The GNU C library defines this for functions which it implements
11860 to always fail with ENOSYS. Some functions are actually named
11861 something starting with __ and the normal name is an alias. */
11862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11872 rm -f conftest.
$ac_objext conftest
$ac_exeext
11873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11874 (eval $ac_link) 2>&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); } &&
11878 { ac_try
='test -s conftest$ac_exeext'
11879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880 (eval $ac_try) 2>&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); }; }; then
11884 eval "$as_ac_var=yes"
11886 echo "$as_me: failed program was:" >&5
11887 cat conftest.
$ac_ext >&5
11888 eval "$as_ac_var=no"
11890 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11894 if test `eval echo '${'$as_ac_var'}'` = yes; then
11895 cat >>confdefs.h
<<_ACEOF
11896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11903 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
11904 # loading of modules.
11906 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
11907 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
11908 if test -z "$DYNLOADFILE"
11910 case $ac_sys_system/$ac_sys_release in
11911 AIX
*) DYNLOADFILE
="dynload_aix.o";;
11912 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
11913 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
11914 Darwin
/*) DYNLOADFILE
="dynload_next.o";;
11915 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
11917 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
11918 # out any dynamic loading
11919 if test "$ac_cv_func_dlopen" = yes
11920 then DYNLOADFILE
="dynload_shlib.o"
11921 else DYNLOADFILE
="dynload_stub.o"
11926 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
11927 echo "${ECHO_T}$DYNLOADFILE" >&6
11928 if test "$DYNLOADFILE" != "dynload_stub.o"
11931 cat >>confdefs.h
<<\_ACEOF
11932 #define HAVE_DYNAMIC_LOADING 1
11937 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
11940 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
11941 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
11942 if test -z "$MACHDEP_OBJS"
11944 MACHDEP_OBJS
=$extra_machdep_objs
11946 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
11948 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
11949 echo "${ECHO_T}MACHDEP_OBJS" >&6
11951 # checks for library functions
12027 for ac_func
in alarm chown
clock confstr ctermid execv \
12028 fchdir flock fork fsync fdatasync fpathconf ftime ftruncate \
12029 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
12030 getpriority getpwent getwd \
12031 hstrerror inet_pton
kill killpg lchown lstat
mkfifo mknod mktime \
12032 mremap nice pathconf pause plock poll pthread_init \
12034 select setegid seteuid setgid \
12035 setlocale setregid setreuid setsid setpgid setuid setvbuf snprintf \
12036 sigaction siginterrupt sigrelse strftime strptime \
12037 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
12038 truncate uname unsetenv utimes waitpid wcscoll _getpty
12040 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12041 echo "$as_me:$LINENO: checking for $ac_func" >&5
12042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12043 if eval "test \"\${$as_ac_var+set}\" = set"; then
12044 echo $ECHO_N "(cached) $ECHO_C" >&6
12046 cat >conftest.
$ac_ext <<_ACEOF
12047 #line $LINENO "configure"
12048 #include "confdefs.h"
12049 /* System header to define __stub macros and hopefully few prototypes,
12050 which can conflict with char $ac_func (); below. */
12051 #include <assert.h>
12052 /* Override any gcc2 internal prototype to avoid an error. */
12056 /* We use char because int might match the return type of a gcc2
12057 builtin and then its argument prototype would still apply. */
12061 #ifdef F77_DUMMY_MAIN
12062 # ifdef __cplusplus
12065 int F77_DUMMY_MAIN() { return 1; }
12070 /* The GNU C library defines this for functions which it implements
12071 to always fail with ENOSYS. Some functions are actually named
12072 something starting with __ and the normal name is an alias. */
12073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12083 rm -f conftest.
$ac_objext conftest
$ac_exeext
12084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12085 (eval $ac_link) 2>&5
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); } &&
12089 { ac_try
='test -s conftest$ac_exeext'
12090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; }; then
12095 eval "$as_ac_var=yes"
12097 echo "$as_me: failed program was:" >&5
12098 cat conftest.
$ac_ext >&5
12099 eval "$as_ac_var=no"
12101 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12105 if test `eval echo '${'$as_ac_var'}'` = yes; then
12106 cat >>confdefs.h
<<_ACEOF
12107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12114 # For some functions, having a definition is not sufficient, since
12115 # we want to take their address.
12116 echo "$as_me:$LINENO: checking for chroot" >&5
12117 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
12118 cat >conftest.
$ac_ext <<_ACEOF
12119 #line $LINENO "configure"
12120 #include "confdefs.h"
12121 #include <unistd.h>
12122 #ifdef F77_DUMMY_MAIN
12123 # ifdef __cplusplus
12126 int F77_DUMMY_MAIN() { return 1; }
12136 rm -f conftest.
$ac_objext
12137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12138 (eval $ac_compile) 2>&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } &&
12142 { ac_try
='test -s conftest.$ac_objext'
12143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144 (eval $ac_try) 2>&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; }; then
12149 cat >>confdefs.h
<<\_ACEOF
12150 #define HAVE_CHROOT 1
12153 echo "$as_me:$LINENO: result: yes" >&5
12154 echo "${ECHO_T}yes" >&6
12156 echo "$as_me: failed program was:" >&5
12157 cat conftest.
$ac_ext >&5
12158 echo "$as_me:$LINENO: result: no" >&5
12159 echo "${ECHO_T}no" >&6
12162 rm -f conftest.
$ac_objext conftest.
$ac_ext
12163 echo "$as_me:$LINENO: checking for link" >&5
12164 echo $ECHO_N "checking for link... $ECHO_C" >&6
12165 cat >conftest.
$ac_ext <<_ACEOF
12166 #line $LINENO "configure"
12167 #include "confdefs.h"
12168 #include <unistd.h>
12169 #ifdef F77_DUMMY_MAIN
12170 # ifdef __cplusplus
12173 int F77_DUMMY_MAIN() { return 1; }
12183 rm -f conftest.
$ac_objext
12184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12185 (eval $ac_compile) 2>&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } &&
12189 { ac_try
='test -s conftest.$ac_objext'
12190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12191 (eval $ac_try) 2>&5
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); }; }; then
12196 cat >>confdefs.h
<<\_ACEOF
12197 #define HAVE_LINK 1
12200 echo "$as_me:$LINENO: result: yes" >&5
12201 echo "${ECHO_T}yes" >&6
12203 echo "$as_me: failed program was:" >&5
12204 cat conftest.
$ac_ext >&5
12205 echo "$as_me:$LINENO: result: no" >&5
12206 echo "${ECHO_T}no" >&6
12209 rm -f conftest.
$ac_objext conftest.
$ac_ext
12210 echo "$as_me:$LINENO: checking for symlink" >&5
12211 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
12212 cat >conftest.
$ac_ext <<_ACEOF
12213 #line $LINENO "configure"
12214 #include "confdefs.h"
12215 #include <unistd.h>
12216 #ifdef F77_DUMMY_MAIN
12217 # ifdef __cplusplus
12220 int F77_DUMMY_MAIN() { return 1; }
12230 rm -f conftest.
$ac_objext
12231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12232 (eval $ac_compile) 2>&5
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); } &&
12236 { ac_try
='test -s conftest.$ac_objext'
12237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238 (eval $ac_try) 2>&5
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); }; }; then
12243 cat >>confdefs.h
<<\_ACEOF
12244 #define HAVE_SYMLINK 1
12247 echo "$as_me:$LINENO: result: yes" >&5
12248 echo "${ECHO_T}yes" >&6
12250 echo "$as_me: failed program was:" >&5
12251 cat conftest.
$ac_ext >&5
12252 echo "$as_me:$LINENO: result: no" >&5
12253 echo "${ECHO_T}no" >&6
12256 rm -f conftest.
$ac_objext conftest.
$ac_ext
12258 # On some systems (eg. FreeBSD 5), we would find a definition of the
12259 # functions ctermid_r, setgroups in the library, but no prototype
12260 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
12261 # address to avoid compiler warnings and potential miscompilations
12262 # because of the missing prototypes.
12264 echo "$as_me:$LINENO: checking for ctermid_r" >&5
12265 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
12266 cat >conftest.
$ac_ext <<_ACEOF
12267 #line $LINENO "configure"
12268 #include "confdefs.h"
12270 #include "confdefs.h"
12273 #ifdef F77_DUMMY_MAIN
12274 # ifdef __cplusplus
12277 int F77_DUMMY_MAIN() { return 1; }
12282 void* p = ctermid_r
12287 rm -f conftest.
$ac_objext
12288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12289 (eval $ac_compile) 2>&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); } &&
12293 { ac_try
='test -s conftest.$ac_objext'
12294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295 (eval $ac_try) 2>&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; }; then
12300 cat >>confdefs.h
<<\_ACEOF
12301 #define HAVE_CTERMID_R 1
12304 echo "$as_me:$LINENO: result: yes" >&5
12305 echo "${ECHO_T}yes" >&6
12307 echo "$as_me: failed program was:" >&5
12308 cat conftest.
$ac_ext >&5
12309 echo "$as_me:$LINENO: result: no" >&5
12310 echo "${ECHO_T}no" >&6
12313 rm -f conftest.
$ac_objext conftest.
$ac_ext
12315 echo "$as_me:$LINENO: checking for setgroups" >&5
12316 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
12317 cat >conftest.
$ac_ext <<_ACEOF
12318 #line $LINENO "configure"
12319 #include "confdefs.h"
12321 #include "confdefs.h"
12322 #include <unistd.h.h>
12324 #ifdef F77_DUMMY_MAIN
12325 # ifdef __cplusplus
12328 int F77_DUMMY_MAIN() { return 1; }
12333 void* p = setgroups
12338 rm -f conftest.
$ac_objext
12339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12340 (eval $ac_compile) 2>&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } &&
12344 { ac_try
='test -s conftest.$ac_objext'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; }; then
12351 cat >>confdefs.h
<<\_ACEOF
12352 #define HAVE_SETGROUPS 1
12355 echo "$as_me:$LINENO: result: yes" >&5
12356 echo "${ECHO_T}yes" >&6
12358 echo "$as_me: failed program was:" >&5
12359 cat conftest.
$ac_ext >&5
12360 echo "$as_me:$LINENO: result: no" >&5
12361 echo "${ECHO_T}no" >&6
12364 rm -f conftest.
$ac_objext conftest.
$ac_ext
12366 # check for openpty and forkpty
12369 for ac_func
in openpty
12371 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12372 echo "$as_me:$LINENO: checking for $ac_func" >&5
12373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12374 if eval "test \"\${$as_ac_var+set}\" = set"; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12377 cat >conftest.
$ac_ext <<_ACEOF
12378 #line $LINENO "configure"
12379 #include "confdefs.h"
12380 /* System header to define __stub macros and hopefully few prototypes,
12381 which can conflict with char $ac_func (); below. */
12382 #include <assert.h>
12383 /* Override any gcc2 internal prototype to avoid an error. */
12387 /* We use char because int might match the return type of a gcc2
12388 builtin and then its argument prototype would still apply. */
12392 #ifdef F77_DUMMY_MAIN
12393 # ifdef __cplusplus
12396 int F77_DUMMY_MAIN() { return 1; }
12401 /* The GNU C library defines this for functions which it implements
12402 to always fail with ENOSYS. Some functions are actually named
12403 something starting with __ and the normal name is an alias. */
12404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12414 rm -f conftest.
$ac_objext conftest
$ac_exeext
12415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12416 (eval $ac_link) 2>&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } &&
12420 { ac_try
='test -s conftest$ac_exeext'
12421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422 (eval $ac_try) 2>&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); }; }; then
12426 eval "$as_ac_var=yes"
12428 echo "$as_me: failed program was:" >&5
12429 cat conftest.
$ac_ext >&5
12430 eval "$as_ac_var=no"
12432 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12435 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12436 if test `eval echo '${'$as_ac_var'}'` = yes; then
12437 cat >>confdefs.h
<<_ACEOF
12438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12442 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12443 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12444 if test "${ac_cv_lib_util_openpty+set}" = set; then
12445 echo $ECHO_N "(cached) $ECHO_C" >&6
12447 ac_check_lib_save_LIBS
=$LIBS
12448 LIBS
="-lutil $LIBS"
12449 cat >conftest.
$ac_ext <<_ACEOF
12450 #line $LINENO "configure"
12451 #include "confdefs.h"
12453 /* Override any gcc2 internal prototype to avoid an error. */
12457 /* We use char because int might match the return type of a gcc2
12458 builtin and then its argument prototype would still apply. */
12460 #ifdef F77_DUMMY_MAIN
12461 # ifdef __cplusplus
12464 int F77_DUMMY_MAIN() { return 1; }
12474 rm -f conftest.
$ac_objext conftest
$ac_exeext
12475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12476 (eval $ac_link) 2>&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); } &&
12480 { ac_try
='test -s conftest$ac_exeext'
12481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482 (eval $ac_try) 2>&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; }; then
12486 ac_cv_lib_util_openpty
=yes
12488 echo "$as_me: failed program was:" >&5
12489 cat conftest.
$ac_ext >&5
12490 ac_cv_lib_util_openpty
=no
12492 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12493 LIBS
=$ac_check_lib_save_LIBS
12495 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12496 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12497 if test $ac_cv_lib_util_openpty = yes; then
12498 cat >>confdefs.h
<<\_ACEOF
12499 #define HAVE_OPENPTY 1
12501 LIBS
="$LIBS -lutil"
12508 for ac_func
in forkpty
12510 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12511 echo "$as_me:$LINENO: checking for $ac_func" >&5
12512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12513 if eval "test \"\${$as_ac_var+set}\" = set"; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12516 cat >conftest.
$ac_ext <<_ACEOF
12517 #line $LINENO "configure"
12518 #include "confdefs.h"
12519 /* System header to define __stub macros and hopefully few prototypes,
12520 which can conflict with char $ac_func (); below. */
12521 #include <assert.h>
12522 /* Override any gcc2 internal prototype to avoid an error. */
12526 /* We use char because int might match the return type of a gcc2
12527 builtin and then its argument prototype would still apply. */
12531 #ifdef F77_DUMMY_MAIN
12532 # ifdef __cplusplus
12535 int F77_DUMMY_MAIN() { return 1; }
12540 /* The GNU C library defines this for functions which it implements
12541 to always fail with ENOSYS. Some functions are actually named
12542 something starting with __ and the normal name is an alias. */
12543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12553 rm -f conftest.
$ac_objext conftest
$ac_exeext
12554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12555 (eval $ac_link) 2>&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); } &&
12559 { ac_try
='test -s conftest$ac_exeext'
12560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12561 (eval $ac_try) 2>&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); }; }; then
12565 eval "$as_ac_var=yes"
12567 echo "$as_me: failed program was:" >&5
12568 cat conftest.
$ac_ext >&5
12569 eval "$as_ac_var=no"
12571 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12575 if test `eval echo '${'$as_ac_var'}'` = yes; then
12576 cat >>confdefs.h
<<_ACEOF
12577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12581 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
12582 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
12583 if test "${ac_cv_lib_util_forkpty+set}" = set; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
12586 ac_check_lib_save_LIBS
=$LIBS
12587 LIBS
="-lutil $LIBS"
12588 cat >conftest.
$ac_ext <<_ACEOF
12589 #line $LINENO "configure"
12590 #include "confdefs.h"
12592 /* Override any gcc2 internal prototype to avoid an error. */
12596 /* We use char because int might match the return type of a gcc2
12597 builtin and then its argument prototype would still apply. */
12599 #ifdef F77_DUMMY_MAIN
12600 # ifdef __cplusplus
12603 int F77_DUMMY_MAIN() { return 1; }
12613 rm -f conftest.
$ac_objext conftest
$ac_exeext
12614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12615 (eval $ac_link) 2>&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } &&
12619 { ac_try
='test -s conftest$ac_exeext'
12620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621 (eval $ac_try) 2>&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); }; }; then
12625 ac_cv_lib_util_forkpty
=yes
12627 echo "$as_me: failed program was:" >&5
12628 cat conftest.
$ac_ext >&5
12629 ac_cv_lib_util_forkpty
=no
12631 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12632 LIBS
=$ac_check_lib_save_LIBS
12634 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
12635 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
12636 if test $ac_cv_lib_util_forkpty = yes; then
12637 cat >>confdefs.h
<<\_ACEOF
12638 #define HAVE_FORKPTY 1
12640 LIBS
="$LIBS -lutil"
12647 # check for long file support functions
12654 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
12656 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12657 echo "$as_me:$LINENO: checking for $ac_func" >&5
12658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12659 if eval "test \"\${$as_ac_var+set}\" = set"; then
12660 echo $ECHO_N "(cached) $ECHO_C" >&6
12662 cat >conftest.
$ac_ext <<_ACEOF
12663 #line $LINENO "configure"
12664 #include "confdefs.h"
12665 /* System header to define __stub macros and hopefully few prototypes,
12666 which can conflict with char $ac_func (); below. */
12667 #include <assert.h>
12668 /* Override any gcc2 internal prototype to avoid an error. */
12672 /* We use char because int might match the return type of a gcc2
12673 builtin and then its argument prototype would still apply. */
12677 #ifdef F77_DUMMY_MAIN
12678 # ifdef __cplusplus
12681 int F77_DUMMY_MAIN() { return 1; }
12686 /* The GNU C library defines this for functions which it implements
12687 to always fail with ENOSYS. Some functions are actually named
12688 something starting with __ and the normal name is an alias. */
12689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12699 rm -f conftest.
$ac_objext conftest
$ac_exeext
12700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12701 (eval $ac_link) 2>&5
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } &&
12705 { ac_try
='test -s conftest$ac_exeext'
12706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12707 (eval $ac_try) 2>&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }; }; then
12711 eval "$as_ac_var=yes"
12713 echo "$as_me: failed program was:" >&5
12714 cat conftest.
$ac_ext >&5
12715 eval "$as_ac_var=no"
12717 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12720 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12721 if test `eval echo '${'$as_ac_var'}'` = yes; then
12722 cat >>confdefs.h
<<_ACEOF
12723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12735 for ac_func
in dup2 getcwd strdup strerror memmove
12737 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12738 echo "$as_me:$LINENO: checking for $ac_func" >&5
12739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12740 if eval "test \"\${$as_ac_var+set}\" = set"; then
12741 echo $ECHO_N "(cached) $ECHO_C" >&6
12743 cat >conftest.
$ac_ext <<_ACEOF
12744 #line $LINENO "configure"
12745 #include "confdefs.h"
12746 /* System header to define __stub macros and hopefully few prototypes,
12747 which can conflict with char $ac_func (); below. */
12748 #include <assert.h>
12749 /* Override any gcc2 internal prototype to avoid an error. */
12753 /* We use char because int might match the return type of a gcc2
12754 builtin and then its argument prototype would still apply. */
12758 #ifdef F77_DUMMY_MAIN
12759 # ifdef __cplusplus
12762 int F77_DUMMY_MAIN() { return 1; }
12767 /* The GNU C library defines this for functions which it implements
12768 to always fail with ENOSYS. Some functions are actually named
12769 something starting with __ and the normal name is an alias. */
12770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12780 rm -f conftest.
$ac_objext conftest
$ac_exeext
12781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12782 (eval $ac_link) 2>&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } &&
12786 { ac_try
='test -s conftest$ac_exeext'
12787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788 (eval $ac_try) 2>&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; }; then
12792 eval "$as_ac_var=yes"
12794 echo "$as_me: failed program was:" >&5
12795 cat conftest.
$ac_ext >&5
12796 eval "$as_ac_var=no"
12798 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12802 if test `eval echo '${'$as_ac_var'}'` = yes; then
12803 cat >>confdefs.h
<<_ACEOF
12804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12808 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
12814 for ac_func
in getpgrp
12816 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12817 echo "$as_me:$LINENO: checking for $ac_func" >&5
12818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12819 if eval "test \"\${$as_ac_var+set}\" = set"; then
12820 echo $ECHO_N "(cached) $ECHO_C" >&6
12822 cat >conftest.
$ac_ext <<_ACEOF
12823 #line $LINENO "configure"
12824 #include "confdefs.h"
12825 /* System header to define __stub macros and hopefully few prototypes,
12826 which can conflict with char $ac_func (); below. */
12827 #include <assert.h>
12828 /* Override any gcc2 internal prototype to avoid an error. */
12832 /* We use char because int might match the return type of a gcc2
12833 builtin and then its argument prototype would still apply. */
12837 #ifdef F77_DUMMY_MAIN
12838 # ifdef __cplusplus
12841 int F77_DUMMY_MAIN() { return 1; }
12846 /* The GNU C library defines this for functions which it implements
12847 to always fail with ENOSYS. Some functions are actually named
12848 something starting with __ and the normal name is an alias. */
12849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12859 rm -f conftest.
$ac_objext conftest
$ac_exeext
12860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12861 (eval $ac_link) 2>&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } &&
12865 { ac_try
='test -s conftest$ac_exeext'
12866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867 (eval $ac_try) 2>&5
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); }; }; then
12871 eval "$as_ac_var=yes"
12873 echo "$as_me: failed program was:" >&5
12874 cat conftest.
$ac_ext >&5
12875 eval "$as_ac_var=no"
12877 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12881 if test `eval echo '${'$as_ac_var'}'` = yes; then
12882 cat >>confdefs.h
<<_ACEOF
12883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12885 cat >conftest.
$ac_ext <<_ACEOF
12886 #line $LINENO "configure"
12887 #include "confdefs.h"
12888 #include <unistd.h>
12889 #ifdef F77_DUMMY_MAIN
12890 # ifdef __cplusplus
12893 int F77_DUMMY_MAIN() { return 1; }
12903 rm -f conftest.
$ac_objext
12904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12905 (eval $ac_compile) 2>&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } &&
12909 { ac_try
='test -s conftest.$ac_objext'
12910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; }; then
12916 cat >>confdefs.h
<<\_ACEOF
12917 #define GETPGRP_HAVE_ARG 1
12922 echo "$as_me: failed program was:" >&5
12923 cat conftest.
$ac_ext >&5
12925 rm -f conftest.
$ac_objext conftest.
$ac_ext
12930 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
12931 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
12932 if test "${ac_cv_func_setpgrp_void+set}" = set; then
12933 echo $ECHO_N "(cached) $ECHO_C" >&6
12935 if test "$cross_compiling" = yes; then
12936 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
12937 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
12938 { (exit 1); exit 1; }; }
12940 cat >conftest.
$ac_ext <<_ACEOF
12941 #line $LINENO "configure"
12942 #include "confdefs.h"
12944 # include <unistd.h>
12947 #ifdef F77_DUMMY_MAIN
12948 # ifdef __cplusplus
12951 int F77_DUMMY_MAIN() { return 1; }
12956 /* If this system has a BSD-style setpgrp which takes arguments,
12957 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12958 exit successfully. */
12959 exit (setpgrp (1,1) == -1 ? 0 : 1);
12964 rm -f conftest
$ac_exeext
12965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12966 (eval $ac_link) 2>&5
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12971 (eval $ac_try) 2>&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); }; }; then
12975 ac_cv_func_setpgrp_void
=no
12977 echo "$as_me: program exited with status $ac_status" >&5
12978 echo "$as_me: failed program was:" >&5
12979 cat conftest.
$ac_ext >&5
12980 ( exit $ac_status )
12981 ac_cv_func_setpgrp_void
=yes
12983 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12986 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
12987 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
12988 if test $ac_cv_func_setpgrp_void = yes; then
12990 cat >>confdefs.h
<<\_ACEOF
12991 #define SETPGRP_VOID 1
12997 for ac_func
in gettimeofday
12999 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13000 echo "$as_me:$LINENO: checking for $ac_func" >&5
13001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13002 if eval "test \"\${$as_ac_var+set}\" = set"; then
13003 echo $ECHO_N "(cached) $ECHO_C" >&6
13005 cat >conftest.
$ac_ext <<_ACEOF
13006 #line $LINENO "configure"
13007 #include "confdefs.h"
13008 /* System header to define __stub macros and hopefully few prototypes,
13009 which can conflict with char $ac_func (); below. */
13010 #include <assert.h>
13011 /* Override any gcc2 internal prototype to avoid an error. */
13015 /* We use char because int might match the return type of a gcc2
13016 builtin and then its argument prototype would still apply. */
13020 #ifdef F77_DUMMY_MAIN
13021 # ifdef __cplusplus
13024 int F77_DUMMY_MAIN() { return 1; }
13029 /* The GNU C library defines this for functions which it implements
13030 to always fail with ENOSYS. Some functions are actually named
13031 something starting with __ and the normal name is an alias. */
13032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13042 rm -f conftest.
$ac_objext conftest
$ac_exeext
13043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13044 (eval $ac_link) 2>&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); } &&
13048 { ac_try
='test -s conftest$ac_exeext'
13049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050 (eval $ac_try) 2>&5
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); }; }; then
13054 eval "$as_ac_var=yes"
13056 echo "$as_me: failed program was:" >&5
13057 cat conftest.
$ac_ext >&5
13058 eval "$as_ac_var=no"
13060 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13064 if test `eval echo '${'$as_ac_var'}'` = yes; then
13065 cat >>confdefs.h
<<_ACEOF
13066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13068 cat >conftest.
$ac_ext <<_ACEOF
13069 #line $LINENO "configure"
13070 #include "confdefs.h"
13071 #include <sys/time.h>
13072 #ifdef F77_DUMMY_MAIN
13073 # ifdef __cplusplus
13076 int F77_DUMMY_MAIN() { return 1; }
13081 gettimeofday((struct timeval*)0,(struct timezone*)0);
13086 rm -f conftest.
$ac_objext
13087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13088 (eval $ac_compile) 2>&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); } &&
13092 { ac_try
='test -s conftest.$ac_objext'
13093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13094 (eval $ac_try) 2>&5
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }; }; then
13100 echo "$as_me: failed program was:" >&5
13101 cat conftest.
$ac_ext >&5
13103 cat >>confdefs.h
<<\_ACEOF
13104 #define GETTIMEOFDAY_NO_TZ 1
13109 rm -f conftest.
$ac_objext conftest.
$ac_ext
13115 echo "$as_me:$LINENO: checking for major" >&5
13116 echo $ECHO_N "checking for major... $ECHO_C" >&6
13117 cat >conftest.
$ac_ext <<_ACEOF
13118 #line $LINENO "configure"
13119 #include "confdefs.h"
13121 #if defined(MAJOR_IN_MKDEV)
13122 #include <sys/mkdev.h>
13123 #elif defined(MAJOR_IN_SYSMACROS)
13124 #include <sys/sysmacros.h>
13126 #include <sys/types.h>
13129 #ifdef F77_DUMMY_MAIN
13130 # ifdef __cplusplus
13133 int F77_DUMMY_MAIN() { return 1; }
13139 makedev(major(0),minor(0));
13145 rm -f conftest.
$ac_objext conftest
$ac_exeext
13146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13147 (eval $ac_link) 2>&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); } &&
13151 { ac_try
='test -s conftest$ac_exeext'
13152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153 (eval $ac_try) 2>&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; }; then
13159 cat >>confdefs.h
<<\_ACEOF
13160 #define HAVE_DEVICE_MACROS 1
13163 echo "$as_me:$LINENO: result: yes" >&5
13164 echo "${ECHO_T}yes" >&6
13167 echo "$as_me: failed program was:" >&5
13168 cat conftest.
$ac_ext >&5
13170 echo "$as_me:$LINENO: result: no" >&5
13171 echo "${ECHO_T}no" >&6
13174 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13176 # On OSF/1 V5.1, getaddrinfo is available, but a define
13177 # for [no]getaddrinfo in netdb.h.
13178 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
13179 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
13180 cat >conftest.
$ac_ext <<_ACEOF
13181 #line $LINENO "configure"
13182 #include "confdefs.h"
13184 #include <sys/types.h>
13185 #include <sys/socket.h>
13189 #ifdef F77_DUMMY_MAIN
13190 # ifdef __cplusplus
13193 int F77_DUMMY_MAIN() { return 1; }
13199 getaddrinfo(NULL, NULL, NULL, NULL);
13205 rm -f conftest.
$ac_objext conftest
$ac_exeext
13206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13207 (eval $ac_link) 2>&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); } &&
13211 { ac_try
='test -s conftest$ac_exeext'
13212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213 (eval $ac_try) 2>&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; }; then
13218 echo "$as_me:$LINENO: result: yes" >&5
13219 echo "${ECHO_T}yes" >&6
13220 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
13221 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
13222 if test "$cross_compiling" = yes; then
13223 echo "$as_me:$LINENO: result: buggy" >&5
13224 echo "${ECHO_T}buggy" >&6
13225 buggygetaddrinfo
=yes
13227 cat >conftest.
$ac_ext <<_ACEOF
13228 #line $LINENO "configure"
13229 #include "confdefs.h"
13231 #include <sys/types.h>
13233 #include <string.h>
13234 #include <sys/socket.h>
13235 #include <netinet/in.h>
13239 int passive, gaierr, inet4 = 0, inet6 = 0;
13240 struct addrinfo hints, *ai, *aitop;
13241 char straddr[INET6_ADDRSTRLEN], strport[16];
13243 for (passive = 0; passive <= 1; passive++) {
13244 memset(&hints, 0, sizeof(hints));
13245 hints.ai_family = AF_UNSPEC;
13246 hints.ai_flags = passive ? AI_PASSIVE : 0;
13247 hints.ai_socktype = SOCK_STREAM;
13248 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
13249 (void)gai_strerror(gaierr);
13252 for (ai = aitop; ai; ai = ai->ai_next) {
13253 if (ai->ai_addr == NULL ||
13254 ai->ai_addrlen == 0 ||
13255 getnameinfo(ai->ai_addr, ai->ai_addrlen,
13256 straddr, sizeof(straddr), strport, sizeof(strport),
13257 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
13260 switch (ai->ai_family) {
13262 if (strcmp(strport, "54321") != 0) {
13266 if (strcmp(straddr, "0.0.0.0") != 0) {
13270 if (strcmp(straddr, "127.0.0.1") != 0) {
13277 if (strcmp(strport, "54321") != 0) {
13281 if (strcmp(straddr, "::") != 0) {
13285 if (strcmp(straddr, "::1") != 0) {
13295 /* another family support? */
13301 if (!(inet4 == 0 || inet4 == 2))
13303 if (!(inet6 == 0 || inet6 == 2))
13307 freeaddrinfo(aitop);
13312 freeaddrinfo(aitop);
13317 rm -f conftest
$ac_exeext
13318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13319 (eval $ac_link) 2>&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13324 (eval $ac_try) 2>&5
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); }; }; then
13328 echo "$as_me:$LINENO: result: good" >&5
13329 echo "${ECHO_T}good" >&6
13330 buggygetaddrinfo
=no
13332 echo "$as_me: program exited with status $ac_status" >&5
13333 echo "$as_me: failed program was:" >&5
13334 cat conftest.
$ac_ext >&5
13335 ( exit $ac_status )
13336 echo "$as_me:$LINENO: result: buggy" >&5
13337 echo "${ECHO_T}buggy" >&6
13338 buggygetaddrinfo
=yes
13340 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13343 echo "$as_me: failed program was:" >&5
13344 cat conftest.
$ac_ext >&5
13346 echo "$as_me:$LINENO: result: no" >&5
13347 echo "${ECHO_T}no" >&6
13348 buggygetaddrinfo
=yes
13351 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13353 if test "$buggygetaddrinfo" = "yes"; then
13354 if test "$ipv6" = "yes"; then
13355 echo 'Fatal: You must get working getaddrinfo() function.'
13356 echo ' or you can specify "--disable-ipv6"'.
13361 cat >>confdefs.h
<<\_ACEOF
13362 #define HAVE_GETADDRINFO 1
13367 for ac_func
in getnameinfo
13369 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13370 echo "$as_me:$LINENO: checking for $ac_func" >&5
13371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13372 if eval "test \"\${$as_ac_var+set}\" = set"; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
13375 cat >conftest.
$ac_ext <<_ACEOF
13376 #line $LINENO "configure"
13377 #include "confdefs.h"
13378 /* System header to define __stub macros and hopefully few prototypes,
13379 which can conflict with char $ac_func (); below. */
13380 #include <assert.h>
13381 /* Override any gcc2 internal prototype to avoid an error. */
13385 /* We use char because int might match the return type of a gcc2
13386 builtin and then its argument prototype would still apply. */
13390 #ifdef F77_DUMMY_MAIN
13391 # ifdef __cplusplus
13394 int F77_DUMMY_MAIN() { return 1; }
13399 /* The GNU C library defines this for functions which it implements
13400 to always fail with ENOSYS. Some functions are actually named
13401 something starting with __ and the normal name is an alias. */
13402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13412 rm -f conftest.
$ac_objext conftest
$ac_exeext
13413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13414 (eval $ac_link) 2>&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); } &&
13418 { ac_try
='test -s conftest$ac_exeext'
13419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13420 (eval $ac_try) 2>&5
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); }; }; then
13424 eval "$as_ac_var=yes"
13426 echo "$as_me: failed program was:" >&5
13427 cat conftest.
$ac_ext >&5
13428 eval "$as_ac_var=no"
13430 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13434 if test `eval echo '${'$as_ac_var'}'` = yes; then
13435 cat >>confdefs.h
<<_ACEOF
13436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13443 # checks for structures
13444 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13445 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13446 if test "${ac_cv_header_time+set}" = set; then
13447 echo $ECHO_N "(cached) $ECHO_C" >&6
13449 cat >conftest.
$ac_ext <<_ACEOF
13450 #line $LINENO "configure"
13451 #include "confdefs.h"
13452 #include <sys/types.h>
13453 #include <sys/time.h>
13456 #ifdef F77_DUMMY_MAIN
13457 # ifdef __cplusplus
13460 int F77_DUMMY_MAIN() { return 1; }
13465 if ((struct tm *) 0)
13471 rm -f conftest.
$ac_objext
13472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13473 (eval $ac_compile) 2>&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); } &&
13477 { ac_try
='test -s conftest.$ac_objext'
13478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13479 (eval $ac_try) 2>&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); }; }; then
13483 ac_cv_header_time
=yes
13485 echo "$as_me: failed program was:" >&5
13486 cat conftest.
$ac_ext >&5
13487 ac_cv_header_time
=no
13489 rm -f conftest.
$ac_objext conftest.
$ac_ext
13491 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13492 echo "${ECHO_T}$ac_cv_header_time" >&6
13493 if test $ac_cv_header_time = yes; then
13495 cat >>confdefs.h
<<\_ACEOF
13496 #define TIME_WITH_SYS_TIME 1
13501 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13502 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
13503 if test "${ac_cv_struct_tm+set}" = set; then
13504 echo $ECHO_N "(cached) $ECHO_C" >&6
13506 cat >conftest.
$ac_ext <<_ACEOF
13507 #line $LINENO "configure"
13508 #include "confdefs.h"
13509 #include <sys/types.h>
13512 #ifdef F77_DUMMY_MAIN
13513 # ifdef __cplusplus
13516 int F77_DUMMY_MAIN() { return 1; }
13521 struct tm *tp; tp->tm_sec;
13526 rm -f conftest.
$ac_objext
13527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13528 (eval $ac_compile) 2>&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); } &&
13532 { ac_try
='test -s conftest.$ac_objext'
13533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534 (eval $ac_try) 2>&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; }; then
13538 ac_cv_struct_tm
=time.h
13540 echo "$as_me: failed program was:" >&5
13541 cat conftest.
$ac_ext >&5
13542 ac_cv_struct_tm
=sys
/time.h
13544 rm -f conftest.
$ac_objext conftest.
$ac_ext
13546 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13547 echo "${ECHO_T}$ac_cv_struct_tm" >&6
13548 if test $ac_cv_struct_tm = sys
/time.h
; then
13550 cat >>confdefs.h
<<\_ACEOF
13551 #define TM_IN_SYS_TIME 1
13556 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
13557 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
13558 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13561 cat >conftest.
$ac_ext <<_ACEOF
13562 #line $LINENO "configure"
13563 #include "confdefs.h"
13564 #include <sys/types.h>
13565 #include <$ac_cv_struct_tm>
13568 #ifdef F77_DUMMY_MAIN
13569 # ifdef __cplusplus
13572 int F77_DUMMY_MAIN() { return 1; }
13577 static struct tm ac_aggr;
13578 if (ac_aggr.tm_zone)
13584 rm -f conftest.
$ac_objext
13585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13586 (eval $ac_compile) 2>&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } &&
13590 { ac_try
='test -s conftest.$ac_objext'
13591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13592 (eval $ac_try) 2>&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); }; }; then
13596 ac_cv_member_struct_tm_tm_zone
=yes
13598 echo "$as_me: failed program was:" >&5
13599 cat conftest.
$ac_ext >&5
13600 ac_cv_member_struct_tm_tm_zone
=no
13602 rm -f conftest.
$ac_objext conftest.
$ac_ext
13604 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
13605 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
13606 if test $ac_cv_member_struct_tm_tm_zone = yes; then
13608 cat >>confdefs.h
<<_ACEOF
13609 #define HAVE_STRUCT_TM_TM_ZONE 1
13615 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13617 cat >>confdefs.h
<<\_ACEOF
13618 #define HAVE_TM_ZONE 1
13622 echo "$as_me:$LINENO: checking for tzname" >&5
13623 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
13624 if test "${ac_cv_var_tzname+set}" = set; then
13625 echo $ECHO_N "(cached) $ECHO_C" >&6
13627 cat >conftest.
$ac_ext <<_ACEOF
13628 #line $LINENO "configure"
13629 #include "confdefs.h"
13631 #ifndef tzname /* For SGI. */
13632 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
13635 #ifdef F77_DUMMY_MAIN
13636 # ifdef __cplusplus
13639 int F77_DUMMY_MAIN() { return 1; }
13649 rm -f conftest.
$ac_objext conftest
$ac_exeext
13650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13651 (eval $ac_link) 2>&5
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); } &&
13655 { ac_try
='test -s conftest$ac_exeext'
13656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657 (eval $ac_try) 2>&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; }; then
13661 ac_cv_var_tzname
=yes
13663 echo "$as_me: failed program was:" >&5
13664 cat conftest.
$ac_ext >&5
13665 ac_cv_var_tzname
=no
13667 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13669 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
13670 echo "${ECHO_T}$ac_cv_var_tzname" >&6
13671 if test $ac_cv_var_tzname = yes; then
13673 cat >>confdefs.h
<<\_ACEOF
13674 #define HAVE_TZNAME 1
13680 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
13681 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
13682 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
13683 echo $ECHO_N "(cached) $ECHO_C" >&6
13685 cat >conftest.
$ac_ext <<_ACEOF
13686 #line $LINENO "configure"
13687 #include "confdefs.h"
13688 $ac_includes_default
13689 #ifdef F77_DUMMY_MAIN
13690 # ifdef __cplusplus
13693 int F77_DUMMY_MAIN() { return 1; }
13698 static struct stat ac_aggr;
13699 if (ac_aggr.st_rdev)
13705 rm -f conftest.
$ac_objext
13706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13707 (eval $ac_compile) 2>&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); } &&
13711 { ac_try
='test -s conftest.$ac_objext'
13712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13713 (eval $ac_try) 2>&5
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); }; }; then
13717 ac_cv_member_struct_stat_st_rdev
=yes
13719 echo "$as_me: failed program was:" >&5
13720 cat conftest.
$ac_ext >&5
13721 ac_cv_member_struct_stat_st_rdev
=no
13723 rm -f conftest.
$ac_objext conftest.
$ac_ext
13725 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
13726 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
13727 if test $ac_cv_member_struct_stat_st_rdev = yes; then
13729 cat >>confdefs.h
<<_ACEOF
13730 #define HAVE_STRUCT_STAT_ST_RDEV 1
13736 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13737 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13738 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13739 echo $ECHO_N "(cached) $ECHO_C" >&6
13741 cat >conftest.
$ac_ext <<_ACEOF
13742 #line $LINENO "configure"
13743 #include "confdefs.h"
13744 $ac_includes_default
13745 #ifdef F77_DUMMY_MAIN
13746 # ifdef __cplusplus
13749 int F77_DUMMY_MAIN() { return 1; }
13754 static struct stat ac_aggr;
13755 if (ac_aggr.st_blksize)
13761 rm -f conftest.
$ac_objext
13762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13763 (eval $ac_compile) 2>&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } &&
13767 { ac_try
='test -s conftest.$ac_objext'
13768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769 (eval $ac_try) 2>&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); }; }; then
13773 ac_cv_member_struct_stat_st_blksize
=yes
13775 echo "$as_me: failed program was:" >&5
13776 cat conftest.
$ac_ext >&5
13777 ac_cv_member_struct_stat_st_blksize
=no
13779 rm -f conftest.
$ac_objext conftest.
$ac_ext
13781 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13782 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13783 if test $ac_cv_member_struct_stat_st_blksize = yes; then
13785 cat >>confdefs.h
<<_ACEOF
13786 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13792 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13793 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13794 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13795 echo $ECHO_N "(cached) $ECHO_C" >&6
13797 cat >conftest.
$ac_ext <<_ACEOF
13798 #line $LINENO "configure"
13799 #include "confdefs.h"
13800 $ac_includes_default
13801 #ifdef F77_DUMMY_MAIN
13802 # ifdef __cplusplus
13805 int F77_DUMMY_MAIN() { return 1; }
13810 static struct stat ac_aggr;
13811 if (ac_aggr.st_blocks)
13817 rm -f conftest.
$ac_objext
13818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13819 (eval $ac_compile) 2>&5
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
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); }; }; then
13829 ac_cv_member_struct_stat_st_blocks
=yes
13831 echo "$as_me: failed program was:" >&5
13832 cat conftest.
$ac_ext >&5
13833 ac_cv_member_struct_stat_st_blocks
=no
13835 rm -f conftest.
$ac_objext conftest.
$ac_ext
13837 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13838 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13839 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13841 cat >>confdefs.h
<<_ACEOF
13842 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13846 cat >>confdefs.h
<<\_ACEOF
13847 #define HAVE_ST_BLOCKS 1
13851 LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
13856 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
13857 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
13858 if test "${ac_cv_header_time_altzone+set}" = set; then
13859 echo $ECHO_N "(cached) $ECHO_C" >&6
13861 cat >conftest.
$ac_ext <<_ACEOF
13862 #line $LINENO "configure"
13863 #include "confdefs.h"
13865 #ifdef F77_DUMMY_MAIN
13866 # ifdef __cplusplus
13869 int F77_DUMMY_MAIN() { return 1; }
13879 rm -f conftest.
$ac_objext
13880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13881 (eval $ac_compile) 2>&5
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); } &&
13885 { ac_try
='test -s conftest.$ac_objext'
13886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13887 (eval $ac_try) 2>&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); }; }; then
13891 ac_cv_header_time_altzone
=yes
13893 echo "$as_me: failed program was:" >&5
13894 cat conftest.
$ac_ext >&5
13895 ac_cv_header_time_altzone
=no
13897 rm -f conftest.
$ac_objext conftest.
$ac_ext
13900 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
13901 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
13902 if test $ac_cv_header_time_altzone = yes; then
13904 cat >>confdefs.h
<<\_ACEOF
13905 #define HAVE_ALTZONE 1
13911 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13912 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
13913 cat >conftest.
$ac_ext <<_ACEOF
13914 #line $LINENO "configure"
13915 #include "confdefs.h"
13917 #include <sys/types.h>
13918 #include <sys/select.h>
13919 #include <sys/time.h>
13921 #ifdef F77_DUMMY_MAIN
13922 # ifdef __cplusplus
13925 int F77_DUMMY_MAIN() { return 1; }
13935 rm -f conftest.
$ac_objext
13936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13937 (eval $ac_compile) 2>&5
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); } &&
13941 { ac_try
='test -s conftest.$ac_objext'
13942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13943 (eval $ac_try) 2>&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); }; }; then
13949 cat >>confdefs.h
<<\_ACEOF
13950 #define SYS_SELECT_WITH_SYS_TIME 1
13956 echo "$as_me: failed program was:" >&5
13957 cat conftest.
$ac_ext >&5
13959 rm -f conftest.
$ac_objext conftest.
$ac_ext
13960 echo "$as_me:$LINENO: result: $was_it_defined" >&5
13961 echo "${ECHO_T}$was_it_defined" >&6
13963 echo "$as_me:$LINENO: checking for addrinfo" >&5
13964 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
13965 if test "${ac_cv_struct_addrinfo+set}" = set; then
13966 echo $ECHO_N "(cached) $ECHO_C" >&6
13968 cat >conftest.
$ac_ext <<_ACEOF
13969 #line $LINENO "configure"
13970 #include "confdefs.h"
13972 # include <netdb.h>
13973 #ifdef F77_DUMMY_MAIN
13974 # ifdef __cplusplus
13977 int F77_DUMMY_MAIN() { return 1; }
13987 rm -f conftest.
$ac_objext
13988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13989 (eval $ac_compile) 2>&5
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); } &&
13993 { ac_try
='test -s conftest.$ac_objext'
13994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13995 (eval $ac_try) 2>&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); }; }; then
13999 ac_cv_struct_addrinfo
=yes
14001 echo "$as_me: failed program was:" >&5
14002 cat conftest.
$ac_ext >&5
14003 ac_cv_struct_addrinfo
=no
14005 rm -f conftest.
$ac_objext conftest.
$ac_ext
14008 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
14009 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
14010 if test $ac_cv_struct_addrinfo = yes; then
14012 cat >>confdefs.h
<<\_ACEOF
14013 #define HAVE_ADDRINFO 1
14018 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
14019 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
14020 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
14021 echo $ECHO_N "(cached) $ECHO_C" >&6
14023 cat >conftest.
$ac_ext <<_ACEOF
14024 #line $LINENO "configure"
14025 #include "confdefs.h"
14027 # include <sys/types.h>
14028 # include <sys/socket.h>
14029 #ifdef F77_DUMMY_MAIN
14030 # ifdef __cplusplus
14033 int F77_DUMMY_MAIN() { return 1; }
14038 struct sockaddr_storage s
14043 rm -f conftest.
$ac_objext
14044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14045 (eval $ac_compile) 2>&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); } &&
14049 { ac_try
='test -s conftest.$ac_objext'
14050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14051 (eval $ac_try) 2>&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); }; }; then
14055 ac_cv_struct_sockaddr_storage
=yes
14057 echo "$as_me: failed program was:" >&5
14058 cat conftest.
$ac_ext >&5
14059 ac_cv_struct_sockaddr_storage
=no
14061 rm -f conftest.
$ac_objext conftest.
$ac_ext
14064 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
14065 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
14066 if test $ac_cv_struct_sockaddr_storage = yes; then
14068 cat >>confdefs.h
<<\_ACEOF
14069 #define HAVE_SOCKADDR_STORAGE 1
14074 # checks for compiler characteristics
14077 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
14078 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
14079 if test "${ac_cv_c_char_unsigned+set}" = set; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
14082 cat >conftest.
$ac_ext <<_ACEOF
14083 #line $LINENO "configure"
14084 #include "confdefs.h"
14085 $ac_includes_default
14086 #ifdef F77_DUMMY_MAIN
14087 # ifdef __cplusplus
14090 int F77_DUMMY_MAIN() { return 1; }
14095 static int test_array [1 - 2 * !(((char) -1) < 0)];
14102 rm -f conftest.
$ac_objext
14103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14104 (eval $ac_compile) 2>&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } &&
14108 { ac_try
='test -s conftest.$ac_objext'
14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; }; then
14114 ac_cv_c_char_unsigned
=no
14116 echo "$as_me: failed program was:" >&5
14117 cat conftest.
$ac_ext >&5
14118 ac_cv_c_char_unsigned
=yes
14120 rm -f conftest.
$ac_objext conftest.
$ac_ext
14122 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
14123 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
14124 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
14125 cat >>confdefs.h
<<\_ACEOF
14126 #define __CHAR_UNSIGNED__ 1
14131 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
14132 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
14133 if test "${ac_cv_prog_cc_stdc+set}" = set; then
14134 echo $ECHO_N "(cached) $ECHO_C" >&6
14136 ac_cv_prog_cc_stdc
=no
14138 cat >conftest.
$ac_ext <<_ACEOF
14139 #line $LINENO "configure"
14140 #include "confdefs.h"
14141 #include <stdarg.h>
14143 #include <sys/types.h>
14144 #include <sys/stat.h>
14145 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
14146 struct buf { int x; };
14147 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14148 static char *e (p, i)
14154 static char *f (char * (*g) (char **, int), char **p, ...)
14159 s = g (p, va_arg (v,int));
14163 int test (int i, double x);
14164 struct s1 {int (*f) (int a);};
14165 struct s2 {int (*f) (double a);};
14166 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14169 #ifdef F77_DUMMY_MAIN
14170 # ifdef __cplusplus
14173 int F77_DUMMY_MAIN() { return 1; }
14178 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
14183 # Don't try gcc -ansi; that turns off useful extensions and
14184 # breaks some systems' header files.
14185 # AIX -qlanglvl=ansi
14186 # Ultrix and OSF/1 -std1
14187 # HP-UX 10.20 and later -Ae
14188 # HP-UX older versions -Aa -D_HPUX_SOURCE
14189 # SVR4 -Xc -D__EXTENSIONS__
14190 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14192 CC
="$ac_save_CC $ac_arg"
14193 rm -f conftest.
$ac_objext
14194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14195 (eval $ac_compile) 2>&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } &&
14199 { ac_try
='test -s conftest.$ac_objext'
14200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201 (eval $ac_try) 2>&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; }; then
14205 ac_cv_prog_cc_stdc
=$ac_arg
14208 echo "$as_me: failed program was:" >&5
14209 cat conftest.
$ac_ext >&5
14211 rm -f conftest.
$ac_objext
14213 rm -f conftest.
$ac_ext conftest.
$ac_objext
14218 case "x$ac_cv_prog_cc_stdc" in
14220 echo "$as_me:$LINENO: result: none needed" >&5
14221 echo "${ECHO_T}none needed" >&6 ;;
14223 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
14224 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
14225 CC
="$CC $ac_cv_prog_cc_stdc" ;;
14228 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14229 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14230 if test "${ac_cv_c_const+set}" = set; then
14231 echo $ECHO_N "(cached) $ECHO_C" >&6
14233 cat >conftest.
$ac_ext <<_ACEOF
14234 #line $LINENO "configure"
14235 #include "confdefs.h"
14237 #ifdef F77_DUMMY_MAIN
14238 # ifdef __cplusplus
14241 int F77_DUMMY_MAIN() { return 1; }
14246 /* FIXME: Include the comments suggested by Paul. */
14247 #ifndef __cplusplus
14248 /* Ultrix mips cc rejects this. */
14249 typedef int charset[2];
14251 /* SunOS 4.1.1 cc rejects this. */
14252 char const *const *ccp;
14254 /* NEC SVR4.0.2 mips cc rejects this. */
14255 struct point {int x, y;};
14256 static struct point const zero = {0,0};
14257 /* AIX XL C 1.02.0.0 rejects this.
14258 It does not let you subtract one const X* pointer from another in
14259 an arm of an if-expression whose if-part is not a constant
14261 const char *g = "string";
14262 ccp = &g + (g ? g-g : 0);
14263 /* HPUX 7.0 cc rejects these. */
14266 ccp = (char const *const *) p;
14267 { /* SCO 3.2v4 cc rejects this. */
14269 char const *s = 0 ? (char *) 0 : (char const *) 0;
14273 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14274 int x[] = {25, 17};
14275 const int *foo = &x[0];
14278 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14279 typedef const int *iptr;
14283 { /* AIX XL C 1.02.0.0 rejects this saying
14284 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14285 struct s { int j; const int *ap[3]; };
14286 struct s *b; b->j = 5;
14288 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14289 const int foo = 10;
14297 rm -f conftest.
$ac_objext
14298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14299 (eval $ac_compile) 2>&5
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); } &&
14303 { ac_try
='test -s conftest.$ac_objext'
14304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14305 (eval $ac_try) 2>&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; }; then
14311 echo "$as_me: failed program was:" >&5
14312 cat conftest.
$ac_ext >&5
14315 rm -f conftest.
$ac_objext conftest.
$ac_ext
14317 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14318 echo "${ECHO_T}$ac_cv_c_const" >&6
14319 if test $ac_cv_c_const = no
; then
14321 cat >>confdefs.h
<<\_ACEOF
14329 echo "$as_me:$LINENO: checking for working volatile" >&5
14330 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
14331 cat >conftest.
$ac_ext <<_ACEOF
14332 #line $LINENO "configure"
14333 #include "confdefs.h"
14335 #ifdef F77_DUMMY_MAIN
14336 # ifdef __cplusplus
14339 int F77_DUMMY_MAIN() { return 1; }
14344 volatile int x; x = 0;
14349 rm -f conftest.
$ac_objext
14350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14351 (eval $ac_compile) 2>&5
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); } &&
14355 { ac_try
='test -s conftest.$ac_objext'
14356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14357 (eval $ac_try) 2>&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; }; then
14363 echo "$as_me: failed program was:" >&5
14364 cat conftest.
$ac_ext >&5
14366 cat >>confdefs.h
<<\_ACEOF
14372 rm -f conftest.
$ac_objext conftest.
$ac_ext
14373 echo "$as_me:$LINENO: result: $works" >&5
14374 echo "${ECHO_T}$works" >&6
14377 echo "$as_me:$LINENO: checking for working signed char" >&5
14378 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
14379 cat >conftest.
$ac_ext <<_ACEOF
14380 #line $LINENO "configure"
14381 #include "confdefs.h"
14383 #ifdef F77_DUMMY_MAIN
14384 # ifdef __cplusplus
14387 int F77_DUMMY_MAIN() { return 1; }
14397 rm -f conftest.
$ac_objext
14398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14399 (eval $ac_compile) 2>&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } &&
14403 { ac_try
='test -s conftest.$ac_objext'
14404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405 (eval $ac_try) 2>&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; }; then
14411 echo "$as_me: failed program was:" >&5
14412 cat conftest.
$ac_ext >&5
14414 cat >>confdefs.h
<<\_ACEOF
14420 rm -f conftest.
$ac_objext conftest.
$ac_ext
14421 echo "$as_me:$LINENO: result: $works" >&5
14422 echo "${ECHO_T}$works" >&6
14425 echo "$as_me:$LINENO: checking for prototypes" >&5
14426 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
14427 cat >conftest.
$ac_ext <<_ACEOF
14428 #line $LINENO "configure"
14429 #include "confdefs.h"
14430 int foo(int x) { return 0; }
14431 #ifdef F77_DUMMY_MAIN
14432 # ifdef __cplusplus
14435 int F77_DUMMY_MAIN() { return 1; }
14445 rm -f conftest.
$ac_objext
14446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14447 (eval $ac_compile) 2>&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); } &&
14451 { ac_try
='test -s conftest.$ac_objext'
14452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14453 (eval $ac_try) 2>&5
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); }; }; then
14459 cat >>confdefs.h
<<\_ACEOF
14460 #define HAVE_PROTOTYPES 1
14463 have_prototypes
=yes
14466 echo "$as_me: failed program was:" >&5
14467 cat conftest.
$ac_ext >&5
14469 rm -f conftest.
$ac_objext conftest.
$ac_ext
14470 echo "$as_me:$LINENO: result: $have_prototypes" >&5
14471 echo "${ECHO_T}$have_prototypes" >&6
14474 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
14475 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
14476 cat >conftest.
$ac_ext <<_ACEOF
14477 #line $LINENO "configure"
14478 #include "confdefs.h"
14480 #include <stdarg.h>
14481 int foo(int x, ...) {
14485 va_arg(va, char *);
14486 va_arg(va, double);
14490 #ifdef F77_DUMMY_MAIN
14491 # ifdef __cplusplus
14494 int F77_DUMMY_MAIN() { return 1; }
14499 return foo(10, "", 3.14);
14504 rm -f conftest.
$ac_objext
14505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14506 (eval $ac_compile) 2>&5
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); } &&
14510 { ac_try
='test -s conftest.$ac_objext'
14511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14512 (eval $ac_try) 2>&5
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); }; }; then
14518 cat >>confdefs.h
<<\_ACEOF
14519 #define HAVE_STDARG_PROTOTYPES 1
14525 echo "$as_me: failed program was:" >&5
14526 cat conftest.
$ac_ext >&5
14528 rm -f conftest.
$ac_objext conftest.
$ac_ext
14529 echo "$as_me:$LINENO: result: $works" >&5
14530 echo "${ECHO_T}$works" >&6
14532 if test "$have_prototypes" = yes; then
14534 echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5
14535 echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6
14536 cat >conftest.
$ac_ext <<_ACEOF
14537 #line $LINENO "configure"
14538 #include "confdefs.h"
14539 #include <unistd.h>
14540 #ifdef F77_DUMMY_MAIN
14541 # ifdef __cplusplus
14544 int F77_DUMMY_MAIN() { return 1; }
14549 char **t;execve("@",t,t);
14554 rm -f conftest.
$ac_objext
14555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14556 (eval $ac_compile) 2>&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); } &&
14560 { ac_try
='test -s conftest.$ac_objext'
14561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562 (eval $ac_try) 2>&5
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; }; then
14568 echo "$as_me: failed program was:" >&5
14569 cat conftest.
$ac_ext >&5
14571 cat >>confdefs.h
<<\_ACEOF
14572 #define BAD_EXEC_PROTOTYPES 1
14578 rm -f conftest.
$ac_objext conftest.
$ac_ext
14579 echo "$as_me:$LINENO: result: $bad_prototypes" >&5
14580 echo "${ECHO_T}$bad_prototypes" >&6
14583 # check if sockaddr has sa_len member
14584 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
14585 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
14586 cat >conftest.
$ac_ext <<_ACEOF
14587 #line $LINENO "configure"
14588 #include "confdefs.h"
14589 #include <sys/types.h>
14590 #include <sys/socket.h>
14591 #ifdef F77_DUMMY_MAIN
14592 # ifdef __cplusplus
14595 int F77_DUMMY_MAIN() { return 1; }
14606 rm -f conftest.
$ac_objext
14607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14608 (eval $ac_compile) 2>&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); } &&
14612 { ac_try
='test -s conftest.$ac_objext'
14613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14614 (eval $ac_try) 2>&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); }; }; then
14618 echo "$as_me:$LINENO: result: yes" >&5
14619 echo "${ECHO_T}yes" >&6
14621 cat >>confdefs.h
<<\_ACEOF
14622 #define HAVE_SOCKADDR_SA_LEN 1
14626 echo "$as_me: failed program was:" >&5
14627 cat conftest.
$ac_ext >&5
14628 echo "$as_me:$LINENO: result: no" >&5
14629 echo "${ECHO_T}no" >&6
14631 rm -f conftest.
$ac_objext conftest.
$ac_ext
14633 va_list_is_array
=no
14634 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
14635 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
14636 cat >conftest.
$ac_ext <<_ACEOF
14637 #line $LINENO "configure"
14638 #include "confdefs.h"
14640 #ifdef HAVE_STDARG_PROTOTYPES
14641 #include <stdarg.h>
14643 #include <varargs.h>
14646 #ifdef F77_DUMMY_MAIN
14647 # ifdef __cplusplus
14650 int F77_DUMMY_MAIN() { return 1; }
14655 va_list list1, list2; list1 = list2;
14660 rm -f conftest.
$ac_objext
14661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14662 (eval $ac_compile) 2>&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); } &&
14666 { ac_try
='test -s conftest.$ac_objext'
14667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14668 (eval $ac_try) 2>&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); }; }; then
14674 echo "$as_me: failed program was:" >&5
14675 cat conftest.
$ac_ext >&5
14678 cat >>confdefs.h
<<\_ACEOF
14679 #define VA_LIST_IS_ARRAY 1
14682 va_list_is_array
=yes
14685 rm -f conftest.
$ac_objext conftest.
$ac_ext
14686 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
14687 echo "${ECHO_T}$va_list_is_array" >&6
14689 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
14693 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
14694 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
14695 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14698 cat >conftest.
$ac_ext <<_ACEOF
14699 #line $LINENO "configure"
14700 #include "confdefs.h"
14701 /* System header to define __stub macros and hopefully few prototypes,
14702 which can conflict with char gethostbyname_r (); below. */
14703 #include <assert.h>
14704 /* Override any gcc2 internal prototype to avoid an error. */
14708 /* We use char because int might match the return type of a gcc2
14709 builtin and then its argument prototype would still apply. */
14710 char gethostbyname_r ();
14713 #ifdef F77_DUMMY_MAIN
14714 # ifdef __cplusplus
14717 int F77_DUMMY_MAIN() { return 1; }
14722 /* The GNU C library defines this for functions which it implements
14723 to always fail with ENOSYS. Some functions are actually named
14724 something starting with __ and the normal name is an alias. */
14725 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
14728 f = gethostbyname_r;
14735 rm -f conftest.
$ac_objext conftest
$ac_exeext
14736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14737 (eval $ac_link) 2>&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); } &&
14741 { ac_try
='test -s conftest$ac_exeext'
14742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743 (eval $ac_try) 2>&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; }; then
14747 ac_cv_func_gethostbyname_r
=yes
14749 echo "$as_me: failed program was:" >&5
14750 cat conftest.
$ac_ext >&5
14751 ac_cv_func_gethostbyname_r
=no
14753 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14755 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
14756 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
14757 if test $ac_cv_func_gethostbyname_r = yes; then
14759 cat >>confdefs.h
<<\_ACEOF
14760 #define HAVE_GETHOSTBYNAME_R 1
14763 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
14764 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
14766 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
14767 cat >conftest.
$ac_ext <<_ACEOF
14768 #line $LINENO "configure"
14769 #include "confdefs.h"
14771 # include <netdb.h>
14773 #ifdef F77_DUMMY_MAIN
14774 # ifdef __cplusplus
14777 int F77_DUMMY_MAIN() { return 1; }
14784 struct hostent *he, *res;
14789 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
14795 rm -f conftest.
$ac_objext
14796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14797 (eval $ac_compile) 2>&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } &&
14801 { ac_try
='test -s conftest.$ac_objext'
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; }; then
14808 cat >>confdefs.h
<<\_ACEOF
14809 #define HAVE_GETHOSTBYNAME_R 1
14813 cat >>confdefs.h
<<\_ACEOF
14814 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
14817 echo "$as_me:$LINENO: result: yes" >&5
14818 echo "${ECHO_T}yes" >&6
14821 echo "$as_me: failed program was:" >&5
14822 cat conftest.
$ac_ext >&5
14824 echo "$as_me:$LINENO: result: no" >&5
14825 echo "${ECHO_T}no" >&6
14826 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
14827 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
14828 cat >conftest.
$ac_ext <<_ACEOF
14829 #line $LINENO "configure"
14830 #include "confdefs.h"
14832 # include <netdb.h>
14834 #ifdef F77_DUMMY_MAIN
14835 # ifdef __cplusplus
14838 int F77_DUMMY_MAIN() { return 1; }
14845 struct hostent *he;
14850 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
14856 rm -f conftest.
$ac_objext
14857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14858 (eval $ac_compile) 2>&5
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); } &&
14862 { ac_try
='test -s conftest.$ac_objext'
14863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14864 (eval $ac_try) 2>&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); }; }; then
14869 cat >>confdefs.h
<<\_ACEOF
14870 #define HAVE_GETHOSTBYNAME_R 1
14874 cat >>confdefs.h
<<\_ACEOF
14875 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
14878 echo "$as_me:$LINENO: result: yes" >&5
14879 echo "${ECHO_T}yes" >&6
14882 echo "$as_me: failed program was:" >&5
14883 cat conftest.
$ac_ext >&5
14885 echo "$as_me:$LINENO: result: no" >&5
14886 echo "${ECHO_T}no" >&6
14887 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
14888 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
14889 cat >conftest.
$ac_ext <<_ACEOF
14890 #line $LINENO "configure"
14891 #include "confdefs.h"
14893 # include <netdb.h>
14895 #ifdef F77_DUMMY_MAIN
14896 # ifdef __cplusplus
14899 int F77_DUMMY_MAIN() { return 1; }
14906 struct hostent *he;
14907 struct hostent_data data;
14909 (void) gethostbyname_r(name, he, &data);
14915 rm -f conftest.
$ac_objext
14916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14917 (eval $ac_compile) 2>&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } &&
14921 { ac_try
='test -s conftest.$ac_objext'
14922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923 (eval $ac_try) 2>&5
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; }; then
14928 cat >>confdefs.h
<<\_ACEOF
14929 #define HAVE_GETHOSTBYNAME_R 1
14933 cat >>confdefs.h
<<\_ACEOF
14934 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
14937 echo "$as_me:$LINENO: result: yes" >&5
14938 echo "${ECHO_T}yes" >&6
14941 echo "$as_me: failed program was:" >&5
14942 cat conftest.
$ac_ext >&5
14944 echo "$as_me:$LINENO: result: no" >&5
14945 echo "${ECHO_T}no" >&6
14948 rm -f conftest.
$ac_objext conftest.
$ac_ext
14951 rm -f conftest.
$ac_objext conftest.
$ac_ext
14954 rm -f conftest.
$ac_objext conftest.
$ac_ext
14960 for ac_func
in gethostbyname
14962 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14963 echo "$as_me:$LINENO: checking for $ac_func" >&5
14964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14965 if eval "test \"\${$as_ac_var+set}\" = set"; then
14966 echo $ECHO_N "(cached) $ECHO_C" >&6
14968 cat >conftest.
$ac_ext <<_ACEOF
14969 #line $LINENO "configure"
14970 #include "confdefs.h"
14971 /* System header to define __stub macros and hopefully few prototypes,
14972 which can conflict with char $ac_func (); below. */
14973 #include <assert.h>
14974 /* Override any gcc2 internal prototype to avoid an error. */
14978 /* We use char because int might match the return type of a gcc2
14979 builtin and then its argument prototype would still apply. */
14983 #ifdef F77_DUMMY_MAIN
14984 # ifdef __cplusplus
14987 int F77_DUMMY_MAIN() { return 1; }
14992 /* The GNU C library defines this for functions which it implements
14993 to always fail with ENOSYS. Some functions are actually named
14994 something starting with __ and the normal name is an alias. */
14995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15005 rm -f conftest.
$ac_objext conftest
$ac_exeext
15006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15007 (eval $ac_link) 2>&5
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); } &&
15011 { ac_try
='test -s conftest$ac_exeext'
15012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15013 (eval $ac_try) 2>&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; }; then
15017 eval "$as_ac_var=yes"
15019 echo "$as_me: failed program was:" >&5
15020 cat conftest.
$ac_ext >&5
15021 eval "$as_ac_var=no"
15023 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15027 if test `eval echo '${'$as_ac_var'}'` = yes; then
15028 cat >>confdefs.h
<<_ACEOF
15029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15044 # checks for system services
15047 # Linux requires this for correct f.p. operations
15048 echo "$as_me:$LINENO: checking for __fpu_control" >&5
15049 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
15050 if test "${ac_cv_func___fpu_control+set}" = set; then
15051 echo $ECHO_N "(cached) $ECHO_C" >&6
15053 cat >conftest.
$ac_ext <<_ACEOF
15054 #line $LINENO "configure"
15055 #include "confdefs.h"
15056 /* System header to define __stub macros and hopefully few prototypes,
15057 which can conflict with char __fpu_control (); below. */
15058 #include <assert.h>
15059 /* Override any gcc2 internal prototype to avoid an error. */
15063 /* We use char because int might match the return type of a gcc2
15064 builtin and then its argument prototype would still apply. */
15065 char __fpu_control ();
15068 #ifdef F77_DUMMY_MAIN
15069 # ifdef __cplusplus
15072 int F77_DUMMY_MAIN() { return 1; }
15077 /* The GNU C library defines this for functions which it implements
15078 to always fail with ENOSYS. Some functions are actually named
15079 something starting with __ and the normal name is an alias. */
15080 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
15090 rm -f conftest.
$ac_objext conftest
$ac_exeext
15091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15092 (eval $ac_link) 2>&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } &&
15096 { ac_try
='test -s conftest$ac_exeext'
15097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098 (eval $ac_try) 2>&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; }; then
15102 ac_cv_func___fpu_control
=yes
15104 echo "$as_me: failed program was:" >&5
15105 cat conftest.
$ac_ext >&5
15106 ac_cv_func___fpu_control
=no
15108 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15110 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
15111 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
15112 if test $ac_cv_func___fpu_control = yes; then
15116 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
15117 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
15118 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
15119 echo $ECHO_N "(cached) $ECHO_C" >&6
15121 ac_check_lib_save_LIBS
=$LIBS
15122 LIBS
="-lieee $LIBS"
15123 cat >conftest.
$ac_ext <<_ACEOF
15124 #line $LINENO "configure"
15125 #include "confdefs.h"
15127 /* Override any gcc2 internal prototype to avoid an error. */
15131 /* We use char because int might match the return type of a gcc2
15132 builtin and then its argument prototype would still apply. */
15133 char __fpu_control ();
15134 #ifdef F77_DUMMY_MAIN
15135 # ifdef __cplusplus
15138 int F77_DUMMY_MAIN() { return 1; }
15148 rm -f conftest.
$ac_objext conftest
$ac_exeext
15149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15150 (eval $ac_link) 2>&5
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); } &&
15154 { ac_try
='test -s conftest$ac_exeext'
15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156 (eval $ac_try) 2>&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; }; then
15160 ac_cv_lib_ieee___fpu_control
=yes
15162 echo "$as_me: failed program was:" >&5
15163 cat conftest.
$ac_ext >&5
15164 ac_cv_lib_ieee___fpu_control
=no
15166 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15167 LIBS
=$ac_check_lib_save_LIBS
15169 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
15170 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
15171 if test $ac_cv_lib_ieee___fpu_control = yes; then
15172 cat >>confdefs.h
<<_ACEOF
15173 #define HAVE_LIBIEEE 1
15176 LIBS
="-lieee $LIBS"
15184 # Check for --with-fpectl
15185 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
15186 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
15188 # Check whether --with-fpectl or --without-fpectl was given.
15189 if test "${with_fpectl+set}" = set; then
15190 withval
="$with_fpectl"
15192 if test "$withval" != no
15195 cat >>confdefs.h
<<\_ACEOF
15196 #define WANT_SIGFPE_HANDLER 1
15199 echo "$as_me:$LINENO: result: yes" >&5
15200 echo "${ECHO_T}yes" >&6
15201 else echo "$as_me:$LINENO: result: no" >&5
15202 echo "${ECHO_T}no" >&6
15205 echo "$as_me:$LINENO: result: no" >&5
15206 echo "${ECHO_T}no" >&6
15209 # check for --with-libm=...
15211 case $ac_sys_system in
15216 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
15217 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
15219 # Check whether --with-libm or --without-libm was given.
15220 if test "${with_libm+set}" = set; then
15221 withval
="$with_libm"
15223 if test "$withval" = no
15225 echo "$as_me:$LINENO: result: force LIBM empty" >&5
15226 echo "${ECHO_T}force LIBM empty" >&6
15227 elif test "$withval" != yes
15229 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
15230 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
15231 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
15232 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
15233 { (exit 1); exit 1; }; }
15236 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
15237 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
15240 # check for --with-libc=...
15242 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
15243 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
15245 # Check whether --with-libc or --without-libc was given.
15246 if test "${with_libc+set}" = set; then
15247 withval
="$with_libc"
15249 if test "$withval" = no
15251 echo "$as_me:$LINENO: result: force LIBC empty" >&5
15252 echo "${ECHO_T}force LIBC empty" >&6
15253 elif test "$withval" != yes
15255 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
15256 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
15257 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
15258 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
15259 { (exit 1); exit 1; }; }
15262 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
15263 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
15266 # check for hypot() in math library
15270 for ac_func
in hypot
15272 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15273 echo "$as_me:$LINENO: checking for $ac_func" >&5
15274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15275 if eval "test \"\${$as_ac_var+set}\" = set"; then
15276 echo $ECHO_N "(cached) $ECHO_C" >&6
15278 cat >conftest.
$ac_ext <<_ACEOF
15279 #line $LINENO "configure"
15280 #include "confdefs.h"
15281 /* System header to define __stub macros and hopefully few prototypes,
15282 which can conflict with char $ac_func (); below. */
15283 #include <assert.h>
15284 /* Override any gcc2 internal prototype to avoid an error. */
15288 /* We use char because int might match the return type of a gcc2
15289 builtin and then its argument prototype would still apply. */
15293 #ifdef F77_DUMMY_MAIN
15294 # ifdef __cplusplus
15297 int F77_DUMMY_MAIN() { return 1; }
15302 /* The GNU C library defines this for functions which it implements
15303 to always fail with ENOSYS. Some functions are actually named
15304 something starting with __ and the normal name is an alias. */
15305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15315 rm -f conftest.
$ac_objext conftest
$ac_exeext
15316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15317 (eval $ac_link) 2>&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } &&
15321 { ac_try
='test -s conftest$ac_exeext'
15322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15323 (eval $ac_try) 2>&5
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; }; then
15327 eval "$as_ac_var=yes"
15329 echo "$as_me: failed program was:" >&5
15330 cat conftest.
$ac_ext >&5
15331 eval "$as_ac_var=no"
15333 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15336 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15337 if test `eval echo '${'$as_ac_var'}'` = yes; then
15338 cat >>confdefs.h
<<_ACEOF
15339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15343 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
15350 # check for wchar.h
15351 if test "${ac_cv_header_wchar_h+set}" = set; then
15352 echo "$as_me:$LINENO: checking for wchar.h" >&5
15353 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
15354 if test "${ac_cv_header_wchar_h+set}" = set; then
15355 echo $ECHO_N "(cached) $ECHO_C" >&6
15357 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
15358 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
15360 # Is the header compilable?
15361 echo "$as_me:$LINENO: checking wchar.h usability" >&5
15362 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
15363 cat >conftest.
$ac_ext <<_ACEOF
15364 #line $LINENO "configure"
15365 #include "confdefs.h"
15366 $ac_includes_default
15369 rm -f conftest.
$ac_objext
15370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15371 (eval $ac_compile) 2>&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); } &&
15375 { ac_try
='test -s conftest.$ac_objext'
15376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377 (eval $ac_try) 2>&5
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; }; then
15381 ac_header_compiler
=yes
15383 echo "$as_me: failed program was:" >&5
15384 cat conftest.
$ac_ext >&5
15385 ac_header_compiler
=no
15387 rm -f conftest.
$ac_objext conftest.
$ac_ext
15388 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15389 echo "${ECHO_T}$ac_header_compiler" >&6
15391 # Is the header present?
15392 echo "$as_me:$LINENO: checking wchar.h presence" >&5
15393 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
15394 cat >conftest.
$ac_ext <<_ACEOF
15395 #line $LINENO "configure"
15396 #include "confdefs.h"
15399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15400 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15402 egrep -v '^ *\+' conftest.er1
>conftest.err
15404 cat conftest.err
>&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); } >/dev
/null
; then
15407 if test -s conftest.err
; then
15408 ac_cpp_err
=$ac_c_preproc_warn_flag
15415 if test -z "$ac_cpp_err"; then
15416 ac_header_preproc
=yes
15418 echo "$as_me: failed program was:" >&5
15419 cat conftest.
$ac_ext >&5
15420 ac_header_preproc
=no
15422 rm -f conftest.err conftest.
$ac_ext
15423 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15424 echo "${ECHO_T}$ac_header_preproc" >&6
15426 # So? What about this header?
15427 case $ac_header_compiler:$ac_header_preproc in
15429 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
15430 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15431 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
15432 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};;
15434 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
15435 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
15436 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
15437 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
15438 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
15439 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};;
15441 echo "$as_me:$LINENO: checking for wchar.h" >&5
15442 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
15443 if test "${ac_cv_header_wchar_h+set}" = set; then
15444 echo $ECHO_N "(cached) $ECHO_C" >&6
15446 ac_cv_header_wchar_h
=$ac_header_preproc
15448 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
15449 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
15452 if test $ac_cv_header_wchar_h = yes; then
15455 cat >>confdefs.h
<<\_ACEOF
15456 #define HAVE_WCHAR_H 1
15468 # determine wchar_t size
15469 if test "$wchar_h" = yes
15471 echo "$as_me:$LINENO: checking for wchar_t" >&5
15472 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
15473 if test "${ac_cv_type_wchar_t+set}" = set; then
15474 echo $ECHO_N "(cached) $ECHO_C" >&6
15476 cat >conftest.
$ac_ext <<_ACEOF
15477 #line $LINENO "configure"
15478 #include "confdefs.h"
15481 #ifdef F77_DUMMY_MAIN
15482 # ifdef __cplusplus
15485 int F77_DUMMY_MAIN() { return 1; }
15492 if (sizeof (wchar_t))
15498 rm -f conftest.
$ac_objext
15499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15500 (eval $ac_compile) 2>&5
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); } &&
15504 { ac_try
='test -s conftest.$ac_objext'
15505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15506 (eval $ac_try) 2>&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); }; }; then
15510 ac_cv_type_wchar_t
=yes
15512 echo "$as_me: failed program was:" >&5
15513 cat conftest.
$ac_ext >&5
15514 ac_cv_type_wchar_t
=no
15516 rm -f conftest.
$ac_objext conftest.
$ac_ext
15518 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
15519 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
15521 echo "$as_me:$LINENO: checking size of wchar_t" >&5
15522 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
15523 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
15524 echo $ECHO_N "(cached) $ECHO_C" >&6
15526 if test "$ac_cv_type_wchar_t" = yes; then
15527 # The cast to unsigned long works around a bug in the HP C Compiler
15528 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15529 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15530 # This bug is HP SR number 8606223364.
15531 if test "$cross_compiling" = yes; then
15532 # Depending upon the size, compute the lo and hi bounds.
15533 cat >conftest.
$ac_ext <<_ACEOF
15534 #line $LINENO "configure"
15535 #include "confdefs.h"
15538 #ifdef F77_DUMMY_MAIN
15539 # ifdef __cplusplus
15542 int F77_DUMMY_MAIN() { return 1; }
15547 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
15554 rm -f conftest.
$ac_objext
15555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15556 (eval $ac_compile) 2>&5
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); } &&
15560 { ac_try
='test -s conftest.$ac_objext'
15561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15562 (eval $ac_try) 2>&5
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); }; }; then
15568 cat >conftest.
$ac_ext <<_ACEOF
15569 #line $LINENO "configure"
15570 #include "confdefs.h"
15573 #ifdef F77_DUMMY_MAIN
15574 # ifdef __cplusplus
15577 int F77_DUMMY_MAIN() { return 1; }
15582 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
15589 rm -f conftest.
$ac_objext
15590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15591 (eval $ac_compile) 2>&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); } &&
15595 { ac_try
='test -s conftest.$ac_objext'
15596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15597 (eval $ac_try) 2>&5
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); }; }; then
15601 ac_hi
=$ac_mid; break
15603 echo "$as_me: failed program was:" >&5
15604 cat conftest.
$ac_ext >&5
15605 ac_lo
=`expr $ac_mid + 1`
15606 if test $ac_lo -le $ac_mid; then
15610 ac_mid
=`expr 2 '*' $ac_mid + 1`
15612 rm -f conftest.
$ac_objext conftest.
$ac_ext
15615 echo "$as_me: failed program was:" >&5
15616 cat conftest.
$ac_ext >&5
15617 cat >conftest.
$ac_ext <<_ACEOF
15618 #line $LINENO "configure"
15619 #include "confdefs.h"
15622 #ifdef F77_DUMMY_MAIN
15623 # ifdef __cplusplus
15626 int F77_DUMMY_MAIN() { return 1; }
15631 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
15638 rm -f conftest.
$ac_objext
15639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15640 (eval $ac_compile) 2>&5
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); } &&
15644 { ac_try
='test -s conftest.$ac_objext'
15645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15646 (eval $ac_try) 2>&5
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); }; }; then
15652 cat >conftest.
$ac_ext <<_ACEOF
15653 #line $LINENO "configure"
15654 #include "confdefs.h"
15657 #ifdef F77_DUMMY_MAIN
15658 # ifdef __cplusplus
15661 int F77_DUMMY_MAIN() { return 1; }
15666 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
15673 rm -f conftest.
$ac_objext
15674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15675 (eval $ac_compile) 2>&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } &&
15679 { ac_try
='test -s conftest.$ac_objext'
15680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15681 (eval $ac_try) 2>&5
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; }; then
15685 ac_lo
=$ac_mid; break
15687 echo "$as_me: failed program was:" >&5
15688 cat conftest.
$ac_ext >&5
15689 ac_hi
=`expr '(' $ac_mid ')' - 1`
15690 if test $ac_mid -le $ac_hi; then
15694 ac_mid
=`expr 2 '*' $ac_mid`
15696 rm -f conftest.
$ac_objext conftest.
$ac_ext
15699 echo "$as_me: failed program was:" >&5
15700 cat conftest.
$ac_ext >&5
15703 rm -f conftest.
$ac_objext conftest.
$ac_ext
15705 rm -f conftest.
$ac_objext conftest.
$ac_ext
15706 # Binary search between lo and hi bounds.
15707 while test "x$ac_lo" != "x$ac_hi"; do
15708 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15709 cat >conftest.
$ac_ext <<_ACEOF
15710 #line $LINENO "configure"
15711 #include "confdefs.h"
15714 #ifdef F77_DUMMY_MAIN
15715 # ifdef __cplusplus
15718 int F77_DUMMY_MAIN() { return 1; }
15723 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
15730 rm -f conftest.
$ac_objext
15731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15732 (eval $ac_compile) 2>&5
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); } &&
15736 { ac_try
='test -s conftest.$ac_objext'
15737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738 (eval $ac_try) 2>&5
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; }; then
15744 echo "$as_me: failed program was:" >&5
15745 cat conftest.
$ac_ext >&5
15746 ac_lo
=`expr '(' $ac_mid ')' + 1`
15748 rm -f conftest.
$ac_objext conftest.
$ac_ext
15751 ?
*) ac_cv_sizeof_wchar_t
=$ac_lo;;
15752 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5
15753 echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;}
15754 { (exit 1); exit 1; }; } ;;
15757 if test "$cross_compiling" = yes; then
15758 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15759 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15760 { (exit 1); exit 1; }; }
15762 cat >conftest.
$ac_ext <<_ACEOF
15763 #line $LINENO "configure"
15764 #include "confdefs.h"
15767 long longval () { return (long) (sizeof (wchar_t)); }
15768 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
15770 #include <stdlib.h>
15771 #ifdef F77_DUMMY_MAIN
15772 # ifdef __cplusplus
15775 int F77_DUMMY_MAIN() { return 1; }
15781 FILE *f = fopen ("conftest.val", "w");
15784 if (((long) (sizeof (wchar_t))) < 0)
15786 long i = longval ();
15787 if (i != ((long) (sizeof (wchar_t))))
15789 fprintf (f, "%ld\n", i);
15793 unsigned long i = ulongval ();
15794 if (i != ((long) (sizeof (wchar_t))))
15796 fprintf (f, "%lu\n", i);
15798 exit (ferror (f) || fclose (f) != 0);
15804 rm -f conftest
$ac_exeext
15805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15806 (eval $ac_link) 2>&5
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15811 (eval $ac_try) 2>&5
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); }; }; then
15815 ac_cv_sizeof_wchar_t
=`cat conftest.val`
15817 echo "$as_me: program exited with status $ac_status" >&5
15818 echo "$as_me: failed program was:" >&5
15819 cat conftest.
$ac_ext >&5
15820 ( exit $ac_status )
15821 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5
15822 echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;}
15823 { (exit 1); exit 1; }; }
15825 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15830 ac_cv_sizeof_wchar_t
=0
15833 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
15834 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
15835 cat >>confdefs.h
<<_ACEOF
15836 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
15842 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
15843 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
15844 # Check whether --enable-unicode or --disable-unicode was given.
15845 if test "${enable_unicode+set}" = set; then
15846 enableval
="$enable_unicode"
15852 if test $enable_unicode = yes
15854 # Without any arguments, Py_UNICODE defaults to two-byte mode
15855 enable_unicode
="ucs2"
15860 case "$enable_unicode" in
15861 ucs2
) unicode_size
="2"
15862 cat >>confdefs.h
<<\_ACEOF
15863 #define Py_UNICODE_SIZE 2
15867 ucs4
) unicode_size
="4"
15868 cat >>confdefs.h
<<\_ACEOF
15869 #define Py_UNICODE_SIZE 4
15879 if test "$enable_unicode" = "no"
15882 echo "$as_me:$LINENO: result: not used" >&5
15883 echo "${ECHO_T}not used" >&6
15885 UNICODE_OBJS
="Objects/unicodeobject.o Objects/unicodectype.o"
15887 cat >>confdefs.h
<<\_ACEOF
15888 #define Py_USING_UNICODE 1
15891 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t"
15893 PY_UNICODE_TYPE
="wchar_t"
15895 cat >>confdefs.h
<<\_ACEOF
15896 #define HAVE_USABLE_WCHAR_T 1
15899 cat >>confdefs.h
<<\_ACEOF
15900 #define PY_UNICODE_TYPE wchar_t
15903 elif test "$ac_cv_sizeof_short" = "$unicode_size"
15905 PY_UNICODE_TYPE
="unsigned short"
15906 cat >>confdefs.h
<<\_ACEOF
15907 #define PY_UNICODE_TYPE unsigned short
15910 elif test "$ac_cv_sizeof_long" = "$unicode_size"
15912 PY_UNICODE_TYPE
="unsigned long"
15913 cat >>confdefs.h
<<\_ACEOF
15914 #define PY_UNICODE_TYPE unsigned long
15918 PY_UNICODE_TYPE
="no type found"
15920 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
15921 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
15924 # check for endianness
15925 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
15926 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
15927 if test "${ac_cv_c_bigendian+set}" = set; then
15928 echo $ECHO_N "(cached) $ECHO_C" >&6
15930 # See if sys/param.h defines the BYTE_ORDER macro.
15931 cat >conftest.
$ac_ext <<_ACEOF
15932 #line $LINENO "configure"
15933 #include "confdefs.h"
15934 #include <sys/types.h>
15935 #include <sys/param.h>
15937 #ifdef F77_DUMMY_MAIN
15938 # ifdef __cplusplus
15941 int F77_DUMMY_MAIN() { return 1; }
15946 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15947 bogus endian macros
15954 rm -f conftest.
$ac_objext
15955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15956 (eval $ac_compile) 2>&5
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); } &&
15960 { ac_try
='test -s conftest.$ac_objext'
15961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15962 (eval $ac_try) 2>&5
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); }; }; then
15966 # It does; now see whether it defined to BIG_ENDIAN or not.
15967 cat >conftest.
$ac_ext <<_ACEOF
15968 #line $LINENO "configure"
15969 #include "confdefs.h"
15970 #include <sys/types.h>
15971 #include <sys/param.h>
15973 #ifdef F77_DUMMY_MAIN
15974 # ifdef __cplusplus
15977 int F77_DUMMY_MAIN() { return 1; }
15982 #if BYTE_ORDER != BIG_ENDIAN
15990 rm -f conftest.
$ac_objext
15991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15992 (eval $ac_compile) 2>&5
15994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); } &&
15996 { ac_try
='test -s conftest.$ac_objext'
15997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15998 (eval $ac_try) 2>&5
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); }; }; then
16002 ac_cv_c_bigendian
=yes
16004 echo "$as_me: failed program was:" >&5
16005 cat conftest.
$ac_ext >&5
16006 ac_cv_c_bigendian
=no
16008 rm -f conftest.
$ac_objext conftest.
$ac_ext
16010 echo "$as_me: failed program was:" >&5
16011 cat conftest.
$ac_ext >&5
16012 # It does not; compile a test program.
16013 if test "$cross_compiling" = yes; then
16014 # try to guess the endianess by grep'ing values into an object file
16015 ac_cv_c_bigendian
=unknown
16016 cat >conftest.
$ac_ext <<_ACEOF
16017 #line $LINENO "configure"
16018 #include "confdefs.h"
16019 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16020 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16021 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
16022 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16023 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16024 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
16025 #ifdef F77_DUMMY_MAIN
16026 # ifdef __cplusplus
16029 int F77_DUMMY_MAIN() { return 1; }
16034 _ascii (); _ebcdic ();
16039 rm -f conftest.
$ac_objext
16040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16041 (eval $ac_compile) 2>&5
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); } &&
16045 { ac_try
='test -s conftest.$ac_objext'
16046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047 (eval $ac_try) 2>&5
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); }; }; then
16051 if fgrep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16052 ac_cv_c_bigendian
=yes
16054 if fgrep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16055 if test "$ac_cv_c_bigendian" = unknown
; then
16056 ac_cv_c_bigendian
=no
16058 # finding both strings is unlikely to happen, but who knows?
16059 ac_cv_c_bigendian
=unknown
16063 echo "$as_me: failed program was:" >&5
16064 cat conftest.
$ac_ext >&5
16066 rm -f conftest.
$ac_objext conftest.
$ac_ext
16068 cat >conftest.
$ac_ext <<_ACEOF
16069 #line $LINENO "configure"
16070 #include "confdefs.h"
16074 /* Are we little or big endian? From Harbison&Steele. */
16078 char c[sizeof (long)];
16081 exit (u.c[sizeof (long) - 1] == 1);
16084 rm -f conftest
$ac_exeext
16085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16086 (eval $ac_link) 2>&5
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16091 (eval $ac_try) 2>&5
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); }; }; then
16095 ac_cv_c_bigendian
=no
16097 echo "$as_me: program exited with status $ac_status" >&5
16098 echo "$as_me: failed program was:" >&5
16099 cat conftest.
$ac_ext >&5
16100 ( exit $ac_status )
16101 ac_cv_c_bigendian
=yes
16103 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16106 rm -f conftest.
$ac_objext conftest.
$ac_ext
16108 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16109 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
16110 case $ac_cv_c_bigendian in
16113 cat >>confdefs.h
<<\_ACEOF
16114 #define WORDS_BIGENDIAN 1
16120 { { echo "$as_me:$LINENO: error: unknown endianess
16121 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
16122 echo "$as_me: error: unknown endianess
16123 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
16124 { (exit 1); exit 1; }; } ;;
16128 # Check whether right shifting a negative integer extends the sign bit
16129 # or fills with zeros (like the Cray J90, according to Tim Peters).
16130 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
16131 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
16132 if test "${ac_cv_rshift_extends_sign+set}" = set; then
16133 echo $ECHO_N "(cached) $ECHO_C" >&6
16136 if test "$cross_compiling" = yes; then
16137 ac_cv_rshift_extends_sign
=yes
16139 cat >conftest.
$ac_ext <<_ACEOF
16140 #line $LINENO "configure"
16141 #include "confdefs.h"
16145 exit(((-1)>>3 == -1) ? 0 : 1);
16149 rm -f conftest
$ac_exeext
16150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16151 (eval $ac_link) 2>&5
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16156 (eval $ac_try) 2>&5
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); }; }; then
16160 ac_cv_rshift_extends_sign
=yes
16162 echo "$as_me: program exited with status $ac_status" >&5
16163 echo "$as_me: failed program was:" >&5
16164 cat conftest.
$ac_ext >&5
16165 ( exit $ac_status )
16166 ac_cv_rshift_extends_sign
=no
16168 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16172 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
16173 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
16174 if test "$ac_cv_rshift_extends_sign" = no
16177 cat >>confdefs.h
<<\_ACEOF
16178 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
16183 # check for getc_unlocked and related locking functions
16184 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
16185 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
16186 if test "${ac_cv_have_getc_unlocked+set}" = set; then
16187 echo $ECHO_N "(cached) $ECHO_C" >&6
16190 cat >conftest.
$ac_ext <<_ACEOF
16191 #line $LINENO "configure"
16192 #include "confdefs.h"
16194 #ifdef F77_DUMMY_MAIN
16195 # ifdef __cplusplus
16198 int F77_DUMMY_MAIN() { return 1; }
16204 FILE *f = fopen("/dev/null", "r");
16213 rm -f conftest.
$ac_objext conftest
$ac_exeext
16214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16215 (eval $ac_link) 2>&5
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); } &&
16219 { ac_try
='test -s conftest$ac_exeext'
16220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16221 (eval $ac_try) 2>&5
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); }; }; then
16225 ac_cv_have_getc_unlocked
=yes
16227 echo "$as_me: failed program was:" >&5
16228 cat conftest.
$ac_ext >&5
16229 ac_cv_have_getc_unlocked
=no
16231 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16234 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
16235 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
16236 if test "$ac_cv_have_getc_unlocked" = yes
16239 cat >>confdefs.h
<<\_ACEOF
16240 #define HAVE_GETC_UNLOCKED 1
16245 # check for readline 2.2
16246 cat >conftest.
$ac_ext <<_ACEOF
16247 #line $LINENO "configure"
16248 #include "confdefs.h"
16249 #include <readline/readline.h>
16251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16252 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16254 egrep -v '^ *\+' conftest.er1
>conftest.err
16256 cat conftest.err
>&5
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); } >/dev
/null
; then
16259 if test -s conftest.err
; then
16260 ac_cpp_err
=$ac_c_preproc_warn_flag
16267 if test -z "$ac_cpp_err"; then
16270 echo "$as_me: failed program was:" >&5
16271 cat conftest.
$ac_ext >&5
16274 rm -f conftest.err conftest.
$ac_ext
16275 if test $have_readline = yes
16277 cat >conftest.
$ac_ext <<_ACEOF
16278 #line $LINENO "configure"
16279 #include "confdefs.h"
16280 #include <readline/readline.h>
16283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16284 egrep "extern int rl_completion_append_character;" >/dev
/null
2>&1; then
16286 cat >>confdefs.h
<<\_ACEOF
16287 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
16295 # check for readline 4.0
16296 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
16297 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
16298 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
16299 echo $ECHO_N "(cached) $ECHO_C" >&6
16301 ac_check_lib_save_LIBS
=$LIBS
16302 LIBS
="-lreadline -ltermcap $LIBS"
16303 cat >conftest.
$ac_ext <<_ACEOF
16304 #line $LINENO "configure"
16305 #include "confdefs.h"
16307 /* Override any gcc2 internal prototype to avoid an error. */
16311 /* We use char because int might match the return type of a gcc2
16312 builtin and then its argument prototype would still apply. */
16313 char rl_pre_input_hook ();
16314 #ifdef F77_DUMMY_MAIN
16315 # ifdef __cplusplus
16318 int F77_DUMMY_MAIN() { return 1; }
16323 rl_pre_input_hook ();
16328 rm -f conftest.
$ac_objext conftest
$ac_exeext
16329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16330 (eval $ac_link) 2>&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); } &&
16334 { ac_try
='test -s conftest$ac_exeext'
16335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16336 (eval $ac_try) 2>&5
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); }; }; then
16340 ac_cv_lib_readline_rl_pre_input_hook
=yes
16342 echo "$as_me: failed program was:" >&5
16343 cat conftest.
$ac_ext >&5
16344 ac_cv_lib_readline_rl_pre_input_hook
=no
16346 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16347 LIBS
=$ac_check_lib_save_LIBS
16349 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
16350 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
16351 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
16353 cat >>confdefs.h
<<\_ACEOF
16354 #define HAVE_RL_PRE_INPUT_HOOK 1
16360 # check for readline 4.2
16361 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
16362 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
16363 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
16364 echo $ECHO_N "(cached) $ECHO_C" >&6
16366 ac_check_lib_save_LIBS
=$LIBS
16367 LIBS
="-lreadline -ltermcap $LIBS"
16368 cat >conftest.
$ac_ext <<_ACEOF
16369 #line $LINENO "configure"
16370 #include "confdefs.h"
16372 /* Override any gcc2 internal prototype to avoid an error. */
16376 /* We use char because int might match the return type of a gcc2
16377 builtin and then its argument prototype would still apply. */
16378 char rl_completion_matches ();
16379 #ifdef F77_DUMMY_MAIN
16380 # ifdef __cplusplus
16383 int F77_DUMMY_MAIN() { return 1; }
16388 rl_completion_matches ();
16393 rm -f conftest.
$ac_objext conftest
$ac_exeext
16394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16395 (eval $ac_link) 2>&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } &&
16399 { ac_try
='test -s conftest$ac_exeext'
16400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401 (eval $ac_try) 2>&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; }; then
16405 ac_cv_lib_readline_rl_completion_matches
=yes
16407 echo "$as_me: failed program was:" >&5
16408 cat conftest.
$ac_ext >&5
16409 ac_cv_lib_readline_rl_completion_matches
=no
16411 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16412 LIBS
=$ac_check_lib_save_LIBS
16414 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
16415 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
16416 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
16418 cat >>confdefs.h
<<\_ACEOF
16419 #define HAVE_RL_COMPLETION_MATCHES 1
16425 echo "$as_me:$LINENO: checking for broken nice()" >&5
16426 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
16427 if test "${ac_cv_broken_nice+set}" = set; then
16428 echo $ECHO_N "(cached) $ECHO_C" >&6
16431 if test "$cross_compiling" = yes; then
16432 ac_cv_broken_nice
=no
16434 cat >conftest.
$ac_ext <<_ACEOF
16435 #line $LINENO "configure"
16436 #include "confdefs.h"
16440 int val1 = nice(1);
16441 if (val1 != -1 && val1 == nice(2))
16447 rm -f conftest
$ac_exeext
16448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16449 (eval $ac_link) 2>&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; }; then
16458 ac_cv_broken_nice
=yes
16460 echo "$as_me: program exited with status $ac_status" >&5
16461 echo "$as_me: failed program was:" >&5
16462 cat conftest.
$ac_ext >&5
16463 ( exit $ac_status )
16464 ac_cv_broken_nice
=no
16466 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16470 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
16471 echo "${ECHO_T}$ac_cv_broken_nice" >&6
16472 if test "$ac_cv_broken_nice" = yes
16475 cat >>confdefs.h
<<\_ACEOF
16476 #define HAVE_BROKEN_NICE 1
16481 # Look for subsecond timestamps in struct stat
16482 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
16483 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
16484 if test "${ac_cv_stat_tv_nsec+set}" = set; then
16485 echo $ECHO_N "(cached) $ECHO_C" >&6
16487 cat >conftest.
$ac_ext <<_ACEOF
16488 #line $LINENO "configure"
16489 #include "confdefs.h"
16490 #include <sys/stat.h>
16491 #ifdef F77_DUMMY_MAIN
16492 # ifdef __cplusplus
16495 int F77_DUMMY_MAIN() { return 1; }
16502 st.st_mtim.tv_nsec = 1;
16508 rm -f conftest.
$ac_objext
16509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16510 (eval $ac_compile) 2>&5
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); } &&
16514 { ac_try
='test -s conftest.$ac_objext'
16515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16516 (eval $ac_try) 2>&5
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); }; }; then
16520 ac_cv_stat_tv_nsec
=yes
16522 echo "$as_me: failed program was:" >&5
16523 cat conftest.
$ac_ext >&5
16524 ac_cv_stat_tv_nsec
=no
16526 rm -f conftest.
$ac_objext conftest.
$ac_ext
16529 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
16530 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
16531 if test "$ac_cv_stat_tv_nsec" = yes
16534 cat >>confdefs.h
<<\_ACEOF
16535 #define HAVE_STAT_TV_NSEC 1
16540 # On HP/UX 11.0, mvwdelch is a block with a return statement
16541 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
16542 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
16543 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
16544 echo $ECHO_N "(cached) $ECHO_C" >&6
16546 cat >conftest.
$ac_ext <<_ACEOF
16547 #line $LINENO "configure"
16548 #include "confdefs.h"
16549 #include <curses.h>
16550 #ifdef F77_DUMMY_MAIN
16551 # ifdef __cplusplus
16554 int F77_DUMMY_MAIN() { return 1; }
16561 rtn = mvwdelch(0,0,0);
16567 rm -f conftest.
$ac_objext
16568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16569 (eval $ac_compile) 2>&5
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); } &&
16573 { ac_try
='test -s conftest.$ac_objext'
16574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16575 (eval $ac_try) 2>&5
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); }; }; then
16579 ac_cv_mvwdelch_is_expression
=yes
16581 echo "$as_me: failed program was:" >&5
16582 cat conftest.
$ac_ext >&5
16583 ac_cv_mvwdelch_is_expression
=no
16585 rm -f conftest.
$ac_objext conftest.
$ac_ext
16588 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
16589 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
16591 if test "$ac_cv_mvwdelch_is_expression" = yes
16594 cat >>confdefs.h
<<\_ACEOF
16595 #define MVWDELCH_IS_EXPRESSION 1
16600 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
16601 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
16602 if test "${ac_cv_window_has_flags+set}" = set; then
16603 echo $ECHO_N "(cached) $ECHO_C" >&6
16605 cat >conftest.
$ac_ext <<_ACEOF
16606 #line $LINENO "configure"
16607 #include "confdefs.h"
16608 #include <curses.h>
16609 #ifdef F77_DUMMY_MAIN
16610 # ifdef __cplusplus
16613 int F77_DUMMY_MAIN() { return 1; }
16626 rm -f conftest.
$ac_objext
16627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16628 (eval $ac_compile) 2>&5
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); } &&
16632 { ac_try
='test -s conftest.$ac_objext'
16633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16634 (eval $ac_try) 2>&5
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); }; }; then
16638 ac_cv_window_has_flags
=yes
16640 echo "$as_me: failed program was:" >&5
16641 cat conftest.
$ac_ext >&5
16642 ac_cv_window_has_flags
=no
16644 rm -f conftest.
$ac_objext conftest.
$ac_ext
16647 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
16648 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
16651 if test "$ac_cv_window_has_flags" = yes
16654 cat >>confdefs.h
<<\_ACEOF
16655 #define WINDOW_HAS_FLAGS 1
16660 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
16661 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
16663 if test -e /dev
/ptmx
16665 echo "$as_me:$LINENO: result: yes" >&5
16666 echo "${ECHO_T}yes" >&6
16668 cat >>confdefs.h
<<\_ACEOF
16669 #define HAVE_DEV_PTMX 1
16673 echo "$as_me:$LINENO: result: no" >&5
16674 echo "${ECHO_T}no" >&6
16677 echo "$as_me:$LINENO: checking for socklen_t" >&5
16678 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
16679 if test "${ac_cv_type_socklen_t+set}" = set; then
16680 echo $ECHO_N "(cached) $ECHO_C" >&6
16682 cat >conftest.
$ac_ext <<_ACEOF
16683 #line $LINENO "configure"
16684 #include "confdefs.h"
16686 #ifdef HAVE_SYS_TYPES_H
16687 #include <sys/types.h>
16689 #ifdef HAVE_SYS_SOCKET_H
16690 #include <sys/socket.h>
16694 #ifdef F77_DUMMY_MAIN
16695 # ifdef __cplusplus
16698 int F77_DUMMY_MAIN() { return 1; }
16703 if ((socklen_t *) 0)
16705 if (sizeof (socklen_t))
16711 rm -f conftest.
$ac_objext
16712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16713 (eval $ac_compile) 2>&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); } &&
16717 { ac_try
='test -s conftest.$ac_objext'
16718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16719 (eval $ac_try) 2>&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; }; then
16723 ac_cv_type_socklen_t
=yes
16725 echo "$as_me: failed program was:" >&5
16726 cat conftest.
$ac_ext >&5
16727 ac_cv_type_socklen_t
=no
16729 rm -f conftest.
$ac_objext conftest.
$ac_ext
16731 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
16732 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
16733 if test $ac_cv_type_socklen_t = yes; then
16737 cat >>confdefs.h
<<\_ACEOF
16738 #define socklen_t int
16746 for h
in `(cd $srcdir;echo Python/thread_*.h)`
16748 THREADHEADERS
="$THREADHEADERS \$(srcdir)/$h"
16752 SRCDIRS
="Parser Grammar Objects Python Modules Mac Mac/Python"
16753 echo "$as_me:$LINENO: checking for build directories" >&5
16754 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
16755 for dir
in $SRCDIRS; do
16756 if test ! -d $dir; then
16760 echo "$as_me:$LINENO: result: done" >&5
16761 echo "${ECHO_T}done" >&6
16763 # generate output files
16764 ac_config_files
="$ac_config_files Makefile.pre Modules/Setup.config"
16766 cat >confcache
<<\_ACEOF
16767 # This file is a shell script that caches the results of configure
16768 # tests run on this system so they can be shared between configure
16769 # scripts and configure runs, see configure's option --config-cache.
16770 # It is not useful on other systems. If it contains results you don't
16771 # want to keep, you may remove or edit it.
16773 # config.status only pays attention to the cache file if you give it
16774 # the --recheck option to rerun configure.
16776 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16777 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16778 # following values.
16782 # The following way of writing the cache mishandles newlines in values,
16783 # but we know of no workaround that is simple, portable, and efficient.
16784 # So, don't put newlines in cache variables' values.
16785 # Ultrix sh set writes to stderr and can't be redirected directly,
16786 # and sets the high bit in the cache file unless we assign to the vars.
16789 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16791 # `set' does not quote correctly, so add quotes (double-quote
16792 # substitution turns \\\\ into \\, and sed turns \\ into \).
16795 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16798 # `set' quotes correctly as required by POSIX, so do not add quotes.
16800 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16807 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16809 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16811 if cmp -s $cache_file confcache
; then :; else
16812 if test -w $cache_file; then
16813 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16814 cat confcache
>$cache_file
16816 echo "not updating unwritable cache $cache_file"
16821 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16822 # Let make expand exec_prefix.
16823 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16825 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16826 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16827 # trailing colons and then remove the whole line if VPATH becomes empty
16828 # (actually we leave an empty line to preserve line numbers).
16829 if test "x$srcdir" = x.
; then
16830 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
16831 s/:*\$(srcdir):*/:/;
16832 s/:*\${srcdir}:*/:/;
16834 s/^\([^=]*=[ ]*\):*/\1/;
16840 DEFS
=-DHAVE_CONFIG_H
16843 : ${CONFIG_STATUS=./config.status}
16844 ac_clean_files_save
=$ac_clean_files
16845 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16846 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16847 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16848 cat >$CONFIG_STATUS <<_ACEOF
16850 # Generated by $as_me.
16851 # Run this file to recreate the current configuration.
16852 # Compiler output produced by configure, useful for debugging
16853 # configure, is in config.log if it exists.
16856 SHELL=\${CONFIG_SHELL-$SHELL}
16859 cat >>$CONFIG_STATUS <<\_ACEOF
16861 ## --------------------- ##
16862 ## M4sh Initialization. ##
16863 ## --------------------- ##
16865 # Be Bourne compatible
16866 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16869 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
16874 # Support unset when possible.
16875 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
16881 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
16882 { $as_unset LANG ||
test "${LANG+set}" != set; } ||
16883 { LANG
=C
; export LANG
; }
16884 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16885 { $as_unset LC_ALL ||
test "${LC_ALL+set}" != set; } ||
16886 { LC_ALL
=C
; export LC_ALL
; }
16887 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16888 { $as_unset LC_TIME ||
test "${LC_TIME+set}" != set; } ||
16889 { LC_TIME
=C
; export LC_TIME
; }
16890 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16891 { $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set; } ||
16892 { LC_CTYPE
=C
; export LC_CTYPE
; }
16893 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16894 { $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set; } ||
16895 { LANGUAGE
=C
; export LANGUAGE
; }
16896 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16897 { $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set; } ||
16898 { LC_COLLATE
=C
; export LC_COLLATE
; }
16899 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16900 { $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set; } ||
16901 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
16902 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16903 { $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set; } ||
16904 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
16907 # Name of the executable.
16908 as_me
=`(basename "$0") 2>/dev/null ||
16909 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16910 X"$0" : 'X\(//\)$' \| \
16911 X"$0" : 'X\(/\)$' \| \
16912 . : '\(.\)' 2>/dev/null ||
16914 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16915 /^X\/\(\/\/\)$/{ s//\1/; q; }
16916 /^X\/\(\/\).*/{ s//\1/; q; }
16919 # PATH needs CR, and LINENO needs CR and PATH.
16920 # Avoid depending upon Character Ranges.
16921 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16922 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16923 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16924 as_cr_digits
='0123456789'
16925 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16927 # The user is always right.
16928 if test "${PATH_SEPARATOR+set}" != set; then
16929 echo "#! /bin/sh" >conftest.sh
16930 echo "exit 0" >>conftest.sh
16931 chmod +x conftest.sh
16932 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
16941 as_lineno_1
=$LINENO
16942 as_lineno_2
=$LINENO
16943 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
16944 test "x$as_lineno_1" != "x$as_lineno_2" &&
16945 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
16946 # Find who we are. Look in the path if we contain no path at all
16949 *[\\/]* ) as_myself
=$0 ;;
16950 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16951 for as_dir
in $PATH
16954 test -z "$as_dir" && as_dir
=.
16955 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
16960 # We did not find ourselves, most probably we were run as `sh COMMAND'
16961 # in which case we are not to be found in the path.
16962 if test "x$as_myself" = x
; then
16965 if test ! -f "$as_myself"; then
16966 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16967 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16968 { (exit 1); exit 1; }; }
16970 case $CONFIG_SHELL in
16972 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16973 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
16976 test -z "$as_dir" && as_dir
=.
16977 for as_base
in sh bash ksh sh5
; do
16980 if ("$as_dir/$as_base" -c '
16981 as_lineno_1=$LINENO
16982 as_lineno_2=$LINENO
16983 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16984 test "x$as_lineno_1" != "x$as_lineno_2" &&
16985 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
16986 CONFIG_SHELL
=$as_dir/$as_base
16987 export CONFIG_SHELL
16988 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16996 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16997 # uniformly replaced by the line number. The first 'sed' inserts a
16998 # line-number line before each line; the second 'sed' does the real
16999 # work. The second script uses 'N' to pair each line-number line
17000 # with the numbered line, and appends trailing '-' during
17001 # substitution so that $LINENO is not a special case at line end.
17002 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17003 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17004 sed '=' <$as_myself |
17009 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17012 s,^['$as_cr_digits']*\n,,
17013 ' >$as_me.lineno
&&
17014 chmod +x
$as_me.lineno ||
17015 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17016 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17017 { (exit 1); exit 1; }; }
17019 # Don't try to exec as it changes $[0], causing all sort of problems
17020 # (the dirname of $[0] is not the place where we might find the
17021 # original and so on. Autoconf is especially sensible to this).
17023 # Exit status is that of the last command.
17028 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17029 *c
*,-n*) ECHO_N
= ECHO_C
='
17031 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
17032 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
17035 if expr a
: '\(a\)' >/dev
/null
2>&1; then
17041 rm -f conf$$ conf$$.exe conf$$.
file
17043 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17044 # We could just check for DJGPP; but this test a) works b) is more generic
17045 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17046 if test -f conf$$.exe
; then
17047 # Don't use ln at all; we don't have any links
17052 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17057 rm -f conf$$ conf$$.exe conf$$.
file
17059 as_executable_p
="test -f"
17061 # Sed expression to map a string onto a valid CPP name.
17062 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17064 # Sed expression to map a string onto a valid variable name.
17065 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17069 # We need space, tab and new line, in precisely that order.
17075 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
17079 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17080 # report actual input values of CONFIG_FILES etc. instead of their
17081 # values after options handling. Logging --version etc. is OK.
17085 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17086 ## Running $as_me. ##
17091 This file was extended by python $as_me 2.3, which was
17092 generated by GNU Autoconf 2.53. Invocation command line was
17094 CONFIG_FILES = $CONFIG_FILES
17095 CONFIG_HEADERS = $CONFIG_HEADERS
17096 CONFIG_LINKS = $CONFIG_LINKS
17097 CONFIG_COMMANDS = $CONFIG_COMMANDS
17101 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17105 # Files that config.status was made for.
17106 if test -n "$ac_config_files"; then
17107 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17110 if test -n "$ac_config_headers"; then
17111 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17114 if test -n "$ac_config_links"; then
17115 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17118 if test -n "$ac_config_commands"; then
17119 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17122 cat >>$CONFIG_STATUS <<\_ACEOF
17125 \`$as_me' instantiates files from templates according to the
17126 current configuration.
17128 Usage: $0 [OPTIONS] [FILE]...
17130 -h, --help print this help, then exit
17131 -V, --version print version number, then exit
17132 -d, --debug don't remove temporary files
17133 --recheck update $as_me by reconfiguring in the same conditions
17134 --file=FILE[:TEMPLATE]
17135 instantiate the configuration file FILE
17136 --header=FILE[:TEMPLATE]
17137 instantiate the configuration header FILE
17139 Configuration files:
17142 Configuration headers:
17145 Report bugs to <bug-autoconf@gnu.org>."
17148 cat >>$CONFIG_STATUS <<_ACEOF
17150 python config.status 2.3
17151 configured by $0, generated by GNU Autoconf 2.53,
17152 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17154 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17155 Free Software Foundation, Inc.
17156 This config.status script is free software; the Free Software Foundation
17157 gives unlimited permission to copy, distribute and modify it."
17162 cat >>$CONFIG_STATUS <<\_ACEOF
17163 # If no file are specified by the user, then we need to provide default
17164 # value. By we need to know if files were specified by the user.
17170 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
17171 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
17173 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
17177 *) # This is not an option, so the user has probably given explicit
17179 ac_need_defaults
=false
;;
17183 # Handling of the options.
17185 cat >>$CONFIG_STATUS <<_ACEOF
17186 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17187 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17188 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17190 cat >>$CONFIG_STATUS <<\_ACEOF
17191 --version |
--vers* |
-V )
17192 echo "$ac_cs_version"; exit 0 ;;
17194 # Conflict between --help and --header
17195 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17196 Try \`$0 --help' for more information." >&5
17197 echo "$as_me: error: ambiguous option: $1
17198 Try \`$0 --help' for more information." >&2;}
17199 { (exit 1); exit 1; }; };;
17200 --help |
--hel |
-h )
17201 echo "$ac_cs_usage"; exit 0 ;;
17202 --debug |
--d* |
-d )
17204 --file |
--fil |
--fi |
--f )
17206 CONFIG_FILES
="$CONFIG_FILES $1"
17207 ac_need_defaults
=false
;;
17208 --header |
--heade |
--head |
--hea )
17210 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
17211 ac_need_defaults
=false
;;
17213 # This is an error.
17214 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17215 Try \`$0 --help' for more information." >&5
17216 echo "$as_me: error: unrecognized option: $1
17217 Try \`$0 --help' for more information." >&2;}
17218 { (exit 1); exit 1; }; } ;;
17220 *) ac_config_targets
="$ac_config_targets $1" ;;
17232 cat >>$CONFIG_STATUS <<\_ACEOF
17233 for ac_config_target
in $ac_config_targets
17235 case "$ac_config_target" in
17236 # Handling of arguments.
17237 "Makefile.pre" ) CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
17238 "Modules/Setup.config" ) CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
17239 "pyconfig.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
17240 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17241 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17242 { (exit 1); exit 1; }; };;
17246 # If the user did not use the arguments to specify the items to instantiate,
17247 # then the envvar interface is used. Set only those that are not.
17248 # We use the long form for the default assignment because of an extremely
17249 # bizarre bug on SunOS 4.1.3.
17250 if $ac_need_defaults; then
17251 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17252 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17255 # Create a temporary directory, and hook for its removal unless debugging.
17258 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17259 trap '{ (exit 1); exit 1; }' 1 2 13 15
17262 # Create a (secure) tmp directory for tmp files.
17265 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17266 test -n "$tmp" && test -d "$tmp"
17269 tmp
=$TMPDIR/cs$$
-$RANDOM
17270 (umask 077 && mkdir
$tmp)
17273 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17274 { (exit 1); exit 1; }
17279 cat >>$CONFIG_STATUS <<_ACEOF
17282 # CONFIG_FILES section.
17285 # No need to generate the scripts if there are no CONFIG_FILES.
17286 # This happens for instance when ./config.status config.h
17287 if test -n "\$CONFIG_FILES"; then
17288 # Protect against being on the right side of a sed subst in config.status.
17289 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17290 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17291 s,@SHELL@,$SHELL,;t t
17292 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17293 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17294 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17295 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17296 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17297 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17298 s,@exec_prefix@,$exec_prefix,;t t
17299 s,@prefix@,$prefix,;t t
17300 s,@program_transform_name@,$program_transform_name,;t t
17301 s,@bindir@,$bindir,;t t
17302 s,@sbindir@,$sbindir,;t t
17303 s,@libexecdir@,$libexecdir,;t t
17304 s,@datadir@,$datadir,;t t
17305 s,@sysconfdir@,$sysconfdir,;t t
17306 s,@sharedstatedir@,$sharedstatedir,;t t
17307 s,@localstatedir@,$localstatedir,;t t
17308 s,@libdir@,$libdir,;t t
17309 s,@includedir@,$includedir,;t t
17310 s,@oldincludedir@,$oldincludedir,;t t
17311 s,@infodir@,$infodir,;t t
17312 s,@mandir@,$mandir,;t t
17313 s,@build_alias@,$build_alias,;t t
17314 s,@host_alias@,$host_alias,;t t
17315 s,@target_alias@,$target_alias,;t t
17316 s,@DEFS@,$DEFS,;t t
17317 s,@ECHO_C@,$ECHO_C,;t t
17318 s,@ECHO_N@,$ECHO_N,;t t
17319 s,@ECHO_T@,$ECHO_T,;t t
17320 s,@LIBS@,$LIBS,;t t
17321 s,@VERSION@,$VERSION,;t t
17322 s,@SOVERSION@,$SOVERSION,;t t
17323 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
17324 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
17325 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
17326 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
17327 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
17328 s,@MACHDEP@,$MACHDEP,;t t
17329 s,@SGI_ABI@,$SGI_ABI,;t t
17330 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
17332 s,@MAINOBJ@,$MAINOBJ,;t t
17333 s,@EXEEXT@,$EXEEXT,;t t
17335 s,@CFLAGS@,$CFLAGS,;t t
17336 s,@LDFLAGS@,$LDFLAGS,;t t
17337 s,@CPPFLAGS@,$CPPFLAGS,;t t
17338 s,@ac_ct_CC@,$ac_ct_CC,;t t
17339 s,@OBJEXT@,$OBJEXT,;t t
17341 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
17342 s,@LIBRARY@,$LIBRARY,;t t
17343 s,@LDLIBRARY@,$LDLIBRARY,;t t
17344 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
17345 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
17346 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
17347 s,@INSTSONAME@,$INSTSONAME,;t t
17348 s,@RUNSHARED@,$RUNSHARED,;t t
17349 s,@LINKCC@,$LINKCC,;t t
17350 s,@RANLIB@,$RANLIB,;t t
17351 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17353 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17354 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17355 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17358 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
17360 s,@LDSHARED@,$LDSHARED,;t t
17361 s,@BLDSHARED@,$BLDSHARED,;t t
17362 s,@CCSHARED@,$CCSHARED,;t t
17363 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
17364 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
17365 s,@SHLIBS@,$SHLIBS,;t t
17366 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
17367 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
17368 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
17369 s,@LDLAST@,$LDLAST,;t t
17370 s,@THREADOBJ@,$THREADOBJ,;t t
17371 s,@DLINCLDIR@,$DLINCLDIR,;t t
17372 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
17373 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
17374 s,@LIBOBJS@,$LIBOBJS,;t t
17375 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
17376 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
17377 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
17378 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
17379 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
17380 s,@LIBM@,$LIBM,;t t
17381 s,@LIBC@,$LIBC,;t t
17382 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
17383 s,@THREADHEADERS@,$THREADHEADERS,;t t
17384 s,@SRCDIRS@,$SRCDIRS,;t t
17389 cat >>$CONFIG_STATUS <<\_ACEOF
17390 # Split the substitutions into bite-sized pieces for seds with
17391 # small command number limits, like on Digital OSF/1 and HP-UX.
17392 ac_max_sed_lines
=48
17393 ac_sed_frag
=1 # Number of current file.
17394 ac_beg
=1 # First line for current file.
17395 ac_end
=$ac_max_sed_lines # Line after last line for current file.
17398 while $ac_more_lines; do
17399 if test $ac_beg -gt 1; then
17400 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17402 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17404 if test ! -s $tmp/subs.frag
; then
17405 ac_more_lines
=false
17407 # The purpose of the label and of the branching condition is to
17408 # speed up the sed processing (if there are no `@' at all, there
17409 # is no need to browse any of the substitutions).
17410 # These are the two extra sed commands mentioned above.
17412 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
17413 if test -z "$ac_sed_cmds"; then
17414 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
17416 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17418 ac_sed_frag
=`expr $ac_sed_frag + 1`
17420 ac_end
=`expr $ac_end + $ac_max_sed_lines`
17423 if test -z "$ac_sed_cmds"; then
17426 fi # test -n "$CONFIG_FILES"
17429 cat >>$CONFIG_STATUS <<\_ACEOF
17430 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
17431 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17433 - |
*:- |
*:-:* ) # input from stdin
17435 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17436 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17437 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17438 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17439 * ) ac_file_in
=$ac_file.
in ;;
17442 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17443 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17444 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17445 X"$ac_file" : 'X\(//\)[^/]' \| \
17446 X"$ac_file" : 'X\(//\)$' \| \
17447 X"$ac_file" : 'X\(/\)' \| \
17448 . : '\(.\)' 2>/dev/null ||
17450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17451 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17452 /^X\(\/\/\)$/{ s//\1/; q; }
17453 /^X\(\/\).*/{ s//\1/; q; }
17455 { case "$ac_dir" in
17456 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
17460 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17461 case $as_mkdir_dir in
17462 # Skip DOS drivespec
17463 ?
:) as_incr_dir
=$as_mkdir_dir ;;
17465 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
17466 test -d "$as_incr_dir" ||
17467 mkdir
"$as_incr_dir" ||
17468 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17469 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17470 { (exit 1); exit 1; }; }
17477 if test "$ac_dir" != .
; then
17478 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17479 # A "../" for each directory in $ac_dir_suffix.
17480 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17482 ac_dir_suffix
= ac_top_builddir
=
17486 .
) # No --srcdir option. We are building in place.
17488 if test -z "$ac_top_builddir"; then
17491 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17493 [\\/]* | ?
:[\\/]* ) # Absolute path.
17494 ac_srcdir
=$srcdir$ac_dir_suffix;
17495 ac_top_srcdir
=$srcdir ;;
17496 *) # Relative path.
17497 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17498 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17500 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17502 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
17503 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17504 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17505 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17509 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17510 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
17513 if test x
"$ac_file" != x-
; then
17514 { echo "$as_me:$LINENO: creating $ac_file" >&5
17515 echo "$as_me: creating $ac_file" >&6;}
17518 # Let's still pretend it is `configure' which instantiates (i.e., don't
17519 # use $as_me), people would be surprised to read:
17520 # /* config.h. Generated by config.status. */
17521 if test x
"$ac_file" = x-
; then
17524 configure_input
="$ac_file. "
17526 configure_input
=$configure_input"Generated from `echo $ac_file_in |
17527 sed 's,.*/,,'` by configure."
17529 # First look for the input files in the build tree, otherwise in the
17531 ac_file_inputs
=`IFS=:
17532 for f in $ac_file_in; do
17534 -) echo $tmp/stdin ;;
17536 # Absolute (can't be DOS-style, as IFS=:)
17537 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17538 echo "$as_me: error: cannot find input file: $f" >&2;}
17539 { (exit 1); exit 1; }; }
17542 if test -f "$f"; then
17545 elif test -f "$srcdir/$f"; then
17550 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17551 echo "$as_me: error: cannot find input file: $f" >&2;}
17552 { (exit 1); exit 1; }; }
17555 done` ||
{ (exit 1); exit 1; }
17557 cat >>$CONFIG_STATUS <<_ACEOF
17561 cat >>$CONFIG_STATUS <<\_ACEOF
17563 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17564 s
,@configure_input@
,$configure_input,;t t
17565 s
,@srcdir@
,$ac_srcdir,;t t
17566 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
17567 s
,@top_srcdir@
,$ac_top_srcdir,;t t
17568 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
17569 s
,@builddir@
,$ac_builddir,;t t
17570 s
,@abs_builddir@
,$ac_abs_builddir,;t t
17571 s
,@top_builddir@
,$ac_top_builddir,;t t
17572 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
17573 s
,@INSTALL@
,$ac_INSTALL,;t t
17574 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17576 if test x"$ac_file" != x-; then
17577 mv $tmp/out $ac_file
17585 cat >>$CONFIG_STATUS <<\_ACEOF
17588 # CONFIG_HEADER section.
17591 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
17592 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17594 # ac_d sets the value in "#define NAME VALUE" lines.
17595 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17596 ac_dB
='[ ].*$,\1#\2'
17599 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17600 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17601 ac_uB
='$,\1#\2define\3'
17605 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
17606 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17608 - |
*:- |
*:-:* ) # input from stdin
17610 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17611 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17612 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17613 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17614 * ) ac_file_in
=$ac_file.
in ;;
17617 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
17618 echo "$as_me: creating $ac_file" >&6;}
17620 # First look for the input files in the build tree, otherwise in the
17622 ac_file_inputs
=`IFS=:
17623 for f in $ac_file_in; do
17625 -) echo $tmp/stdin ;;
17627 # Absolute (can't be DOS-style, as IFS=:)
17628 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17629 echo "$as_me: error: cannot find input file: $f" >&2;}
17630 { (exit 1); exit 1; }; }
17633 if test -f "$f"; then
17636 elif test -f "$srcdir/$f"; then
17641 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17642 echo "$as_me: error: cannot find input file: $f" >&2;}
17643 { (exit 1); exit 1; }; }
17646 done` ||
{ (exit 1); exit 1; }
17647 # Remove the trailing spaces.
17648 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17652 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17653 # `conftest.undefs', that substitutes the proper values into
17654 # config.h.in to produce config.h. The first handles `#define'
17655 # templates, and the second `#undef' templates.
17656 # And first: Protect against being on the right side of a sed subst in
17657 # config.status. Protect against being in an unquoted here document
17658 # in config.status.
17659 rm -f conftest.defines conftest.undefs
17660 # Using a here document instead of a string reduces the quoting nightmare.
17661 # Putting comments in sed scripts is not portable.
17663 # `end' is used to avoid that the second main sed command (meant for
17664 # 0-ary CPP macros) applies to n-ary macro definitions.
17665 # See the Autoconf documentation for `clear'.
17666 cat >confdef2sed.
sed <<\_ACEOF
17671 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17673 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17676 # If some macros were called several times there might be several times
17677 # the same #defines, which is useless. Nevertheless, we may not want to
17678 # sort them, since we want the *last* AC-DEFINE to be honored.
17679 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17680 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17681 rm -f confdef2sed.sed
17683 # This sed command replaces #undef with comments. This is necessary, for
17684 # example, in the case of _POSIX_SOURCE, which is predefined and required
17685 # on some systems where configure will not decide to define it.
17686 cat >>conftest.undefs <<\_ACEOF
17687 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17690 # Break up conftest.defines because some shells have a limit on the size
17691 # of here documents, and old seds have small limits too (100 cmds).
17692 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17693 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17694 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17695 echo ' :' >>$CONFIG_STATUS
17696 rm -f conftest.tail
17697 while grep . conftest.defines >/dev/null
17699 # Write a limited-size here document to $tmp/defines.sed.
17700 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17701 # Speed up: don't consider the non `#define' lines.
17702 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17703 # Work around the forget-to-reset-the-flag bug.
17704 echo 't clr' >>$CONFIG_STATUS
17705 echo ': clr' >>$CONFIG_STATUS
17706 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
17708 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17710 mv $tmp/out $tmp/in
17712 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
17713 rm -f conftest.defines
17714 mv conftest.
tail conftest.defines
17716 rm -f conftest.defines
17717 echo ' fi # egrep' >>$CONFIG_STATUS
17718 echo >>$CONFIG_STATUS
17720 # Break up conftest.undefs because some shells have a limit on the size
17721 # of here documents, and old seds have small limits too (100 cmds).
17722 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17723 rm -f conftest.
tail
17724 while grep . conftest.undefs
>/dev
/null
17726 # Write a limited-size here document to $tmp/undefs.sed.
17727 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17728 # Speed up: don't consider the non
`#undef'
17729 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17730 # Work around the forget-to-reset-the-flag bug.
17731 echo 't clr' >>$CONFIG_STATUS
17732 echo ': clr' >>$CONFIG_STATUS
17733 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17735 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17737 mv $tmp/out $tmp/in
17739 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17740 rm -f conftest.undefs
17741 mv conftest.tail conftest.undefs
17743 rm -f conftest.undefs
17745 cat >>$CONFIG_STATUS <<\_ACEOF
17746 # Let's still pretend it is `configure
' which instantiates (i.e., don't
17747 # use $as_me), people would be surprised to read:
17748 # /* config.h. Generated by config.status. */
17749 if test x
"$ac_file" = x-
; then
17750 echo "/* Generated by configure. */" >$tmp/config.h
17752 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17754 cat $tmp/in >>$tmp/config.h
17756 if test x
"$ac_file" != x-
; then
17757 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
17758 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17759 echo "$as_me: $ac_file is unchanged" >&6;}
17761 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17762 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17763 X"$ac_file" : 'X\(//\)[^/]' \| \
17764 X"$ac_file" : 'X\(//\)$' \| \
17765 X"$ac_file" : 'X\(/\)' \| \
17766 . : '\(.\)' 2>/dev/null ||
17768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17770 /^X\(\/\/\)$/{ s//\1/; q; }
17771 /^X\(\/\).*/{ s//\1/; q; }
17773 { case "$ac_dir" in
17774 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
17778 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17779 case $as_mkdir_dir in
17780 # Skip DOS drivespec
17781 ?
:) as_incr_dir
=$as_mkdir_dir ;;
17783 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
17784 test -d "$as_incr_dir" ||
17785 mkdir
"$as_incr_dir" ||
17786 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17787 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17788 { (exit 1); exit 1; }; }
17794 mv $tmp/config.h
$ac_file
17798 rm -f $tmp/config.h
17803 cat >>$CONFIG_STATUS <<\_ACEOF
17805 { (exit 0); exit 0; }
17807 chmod +x
$CONFIG_STATUS
17808 ac_clean_files
=$ac_clean_files_save
17811 # configure is writing to config.log, and then calls config.status.
17812 # config.status does its own redirection, appending to config.log.
17813 # Unfortunately, on DOS this fails, as config.log is still kept open
17814 # by configure, so config.status won't be able to write to it; its
17815 # output is simply discarded. So we exec the FD to /dev/null,
17816 # effectively closing config.log, so it can be properly (re)opened and
17817 # appended to by config.status. When coming back to configure, we
17818 # need to make the FD available again.
17819 if test "$no_create" != yes; then
17822 $SHELL $CONFIG_STATUS || ac_cs_success
=false
17824 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17825 # would make configure fail if this is the last instruction.
17826 $ac_cs_success ||
{ (exit 1); exit 1; }
17830 echo "creating Setup"
17831 if test ! -f Modules
/Setup
17833 cp $srcdir/Modules
/Setup.dist Modules
/Setup
17836 echo "creating Setup.local"
17837 if test ! -f Modules
/Setup.
local
17839 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
17842 echo "creating Makefile"
17843 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
17844 -s Modules Modules
/Setup.config \
17845 Modules
/Setup.
local Modules
/Setup
17846 mv config.c Modules