2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.52g for GNU Bison 1.31a.
5 # Report bugs to <bug-bison@gnu.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 if expr a
: '\(a\)' >/dev
/null
2>&1; then
19 ## --------------------- ##
20 ## M4sh Initialization. ##
21 ## --------------------- ##
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
32 # Support unset when possible.
33 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
39 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
40 { $as_unset LANG
|| test "${LANG+set}" != set; } ||
41 { LANG
=C
; export LANG
; }
42 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
43 { $as_unset LC_ALL
|| test "${LC_ALL+set}" != set; } ||
44 { LC_ALL
=C
; export LC_ALL
; }
45 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
46 { $as_unset LC_TIME
|| test "${LC_TIME+set}" != set; } ||
47 { LC_TIME
=C
; export LC_TIME
; }
48 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
49 { $as_unset LC_CTYPE
|| test "${LC_CTYPE+set}" != set; } ||
50 { LC_CTYPE
=C
; export LC_CTYPE
; }
51 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
52 { $as_unset LANGUAGE
|| test "${LANGUAGE+set}" != set; } ||
53 { LANGUAGE
=C
; export LANGUAGE
; }
54 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
55 { $as_unset LC_COLLATE
|| test "${LC_COLLATE+set}" != set; } ||
56 { LC_COLLATE
=C
; export LC_COLLATE
; }
57 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
58 { $as_unset LC_NUMERIC
|| test "${LC_NUMERIC+set}" != set; } ||
59 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
60 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
61 { $as_unset LC_MESSAGES
|| test "${LC_MESSAGES+set}" != set; } ||
62 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
65 # Name of the executable.
66 as_me
=`(basename "$0") 2>/dev/null ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
77 # PATH needs CR, and LINENO needs CR and PATH.
78 # Avoid depending upon Character Ranges.
79 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
80 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
81 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
82 as_cr_digits
='0123456789'
83 as_cr_alnum
=$as_cr_Letters$as_cr_digits
85 # The user is always right.
86 if test "${PATH_SEPARATOR+set}" != set; then
87 echo "#! $SHELL" >conftest.sh
88 echo "exit 0" >>conftest.sh
90 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
101 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
102 test "x$as_lineno_1" != "x$as_lineno_2" &&
103 test "x$as_lineno_3" = "x$as_lineno_2" || {
104 # Find who we are. Look in the path if we contain no path at all
107 *[\\/]* ) as_myself
=$0 ;;
108 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
112 test -z "$as_dir" && as_dir
=.
113 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
118 # We did not find ourselves, most probably we were run as `sh COMMAND'
119 # in which case we are not to be found in the path.
120 if test "x$as_myself" = x
; then
123 if test ! -f "$as_myself"; then
124 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
125 { (exit 1); exit 1; }; }
127 case $CONFIG_SHELL in
129 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
130 for as_dir
in /bin
:/usr
/bin
:$PATH
133 test -z "$as_dir" && as_dir
=.
134 for as_base
in sh bash ksh sh5
; do
137 if ("$as_dir/$as_base" -c '
140 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
141 test "x$as_lineno_1" != "x$as_lineno_2" &&
142 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
143 CONFIG_SHELL
=$as_dir/$as_base
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169 s,^['$as_cr_digits']*\n,,
171 chmod +x
$as_me.lineno
||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
179 # Exit status is that of the last command.
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c
*,-n*) ECHO_N
= ECHO_C
='
187 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
188 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
191 if expr a
: '\(a\)' >/dev
/null
2>&1; then
197 rm -f conf$$ conf$$.exe conf$$.
file
199 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe
; then
203 # Don't use ln at all; we don't have any links
208 elif ln conf$$.
file conf$$
2>/dev
/null
; then
213 rm -f conf$$ conf$$.exe conf$$.
file
215 as_executable_p
="test -f"
217 # Sed expression to map a string onto a valid CPP name.
218 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
220 # Sed expression to map a string onto a valid variable name.
221 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
225 # We need space, tab and new line, in precisely that order.
231 $as_unset CDPATH
|| test "${CDPATH+set}" != set || { CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
235 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
236 # so uname gets run too.
237 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
244 ac_default_prefix
=/usr
/local
249 SHELL
=${CONFIG_SHELL-/bin/sh}
251 # Maximum number of lines to put in a shell here document.
252 # This variable seems obsolete. It should probably be removed, and
253 # only ac_max_sed_lines should be used.
254 : ${ac_max_here_lines=38}
256 # Identity of this package.
257 PACKAGE_NAME
='GNU Bison'
258 PACKAGE_TARNAME
='bison'
259 PACKAGE_VERSION
='1.31a'
260 PACKAGE_STRING
='GNU Bison 1.31a'
261 PACKAGE_BUGREPORT
='bug-bison@gnu.org'
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 \
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 path 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 path 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.
673 # FIXME: should be removed in autoconf 3.0.
674 if test "x$host_alias" != x
; then
675 if test "x$build_alias" = x
; then
676 cross_compiling
=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
685 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
687 test "$silent" = yes && exec 6>/dev
/null
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692 ac_srcdir_defaulted
=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir
=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
707 if test ! -r $srcdir/$ac_unique_file; then
711 ac_srcdir_defaulted
=no
713 if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
722 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set
=${build_alias+set}
724 ac_env_build_alias_value
=$build_alias
725 ac_cv_env_build_alias_set
=${build_alias+set}
726 ac_cv_env_build_alias_value
=$build_alias
727 ac_env_host_alias_set
=${host_alias+set}
728 ac_env_host_alias_value
=$host_alias
729 ac_cv_env_host_alias_set
=${host_alias+set}
730 ac_cv_env_host_alias_value
=$host_alias
731 ac_env_target_alias_set
=${target_alias+set}
732 ac_env_target_alias_value
=$target_alias
733 ac_cv_env_target_alias_set
=${target_alias+set}
734 ac_cv_env_target_alias_value
=$target_alias
735 ac_env_CC_set
=${CC+set}
737 ac_cv_env_CC_set
=${CC+set}
738 ac_cv_env_CC_value
=$CC
739 ac_env_CFLAGS_set
=${CFLAGS+set}
740 ac_env_CFLAGS_value
=$CFLAGS
741 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value
=$CFLAGS
743 ac_env_LDFLAGS_set
=${LDFLAGS+set}
744 ac_env_LDFLAGS_value
=$LDFLAGS
745 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value
=$LDFLAGS
747 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value
=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
751 ac_env_CPP_set
=${CPP+set}
752 ac_env_CPP_value
=$CPP
753 ac_cv_env_CPP_set
=${CPP+set}
754 ac_cv_env_CPP_value
=$CPP
757 # Report the --help message.
759 if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
763 \`configure' configures GNU Bison 1.31a to adapt to many kinds of systems.
765 Usage: $0 [OPTION]... [VAR=VALUE]...
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE. See below for descriptions of some of the useful variables.
770 Defaults for the options are specified in brackets.
773 -h, --help display this help and exit
774 --help=short display options specific to this package
775 --help=recursive display the short help of all the included packages
776 -V, --version display version information and exit
777 -q, --quiet, --silent do not print \`checking...' messages
778 --cache-file=FILE cache test results in FILE [disabled]
779 -C, --config-cache alias for \`--cache-file=config.cache'
780 -n, --no-create do not create output files
781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
786 Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
797 For better control, use the options below.
799 Fine tuning of the installation directories:
800 --bindir=DIR user executables [EPREFIX/bin]
801 --sbindir=DIR system admin executables [EPREFIX/sbin]
802 --libexecdir=DIR program executables [EPREFIX/libexec]
803 --datadir=DIR read-only architecture-independent data [PREFIX/share]
804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807 --libdir=DIR object code libraries [EPREFIX/lib]
808 --includedir=DIR C header files [PREFIX/include]
809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
810 --infodir=DIR info documentation [PREFIX/info]
811 --mandir=DIR man documentation [PREFIX/man]
817 --program-prefix=PREFIX prepend PREFIX to installed program names
818 --program-suffix=SUFFIX append SUFFIX to installed program names
819 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
822 --build=BUILD configure
for building on BUILD
[guessed
]
823 --host=HOST build programs to run on HOST
[BUILD
]
827 if test -n "$ac_init_help"; then
828 case $ac_init_help in
829 short
| recursive
) echo "Configuration of GNU Bison 1.31a:";;
834 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
835 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
836 --disable-dependency-tracking Speeds up one
-time builds
837 --enable-dependency-tracking Do not reject slow dependency extractors
838 --enable-gcc-warnings turn on lots of GCC warnings
(not recommended
)
839 --disable-nls do not use Native Language Support
842 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
843 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
844 --with-dmalloc use dmalloc
, as
in
845 http
://www.dmalloc.com
/dmalloc.
tar.gz
846 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
847 --with-included-gettext use the GNU
gettext library included here
849 Some influential environment variables
:
850 CC C compiler
command
851 CFLAGS C compiler flags
852 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
853 nonstandard directory
<lib dir
>
854 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
855 headers
in a nonstandard directory
<include dir
>
858 Use these variables to override the choices made by
`configure' or to help
859 it to find libraries and programs with nonstandard names/locations.
861 Report bugs to <bug-bison@gnu.org>.
865 if test "$ac_init_help" = "recursive"; then
866 # If there are subdirs, report their specific --help.
868 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
869 test -d $ac_dir || continue
872 if test "$ac_dir" != .; then
873 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
874 # A "../" for each directory in $ac_dir_suffix.
875 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
877 ac_dir_suffix= ac_top_builddir=
881 .) # No --srcdir option. We are building in place.
883 if test -z "$ac_top_builddir"; then
886 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
888 [\\/]* | ?:[\\/]* ) # Absolute path.
889 ac_srcdir=$srcdir$ac_dir_suffix;
890 ac_top_srcdir=$srcdir ;;
892 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
893 ac_top_srcdir=$ac_top_builddir$srcdir ;;
895 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
897 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
898 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
899 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
900 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
903 # Check for guested configure; otherwise get Cygnus style configure.
904 if test -f $ac_srcdir/configure.gnu; then
906 $SHELL $ac_srcdir/configure.gnu --help=recursive
907 elif test -f $ac_srcdir/configure; then
909 $SHELL $ac_srcdir/configure --help=recursive
910 elif test -f $ac_srcdir/configure.ac ||
911 test -f $ac_srcdir/configure.in; then
915 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
921 test -n "$ac_init_help" && exit 0
922 if $ac_init_version; then
924 GNU Bison configure 1.31a
925 generated by GNU Autoconf 2.52g
927 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
928 Free Software Foundation, Inc.
929 This configure script is free software; the Free Software Foundation
930 gives unlimited permission to copy, distribute and modify it.
936 This file contains any messages produced by compilers while
937 running configure, to aid debugging if configure makes a mistake.
939 It was created by GNU Bison $as_me 1.31a, which was
940 generated by GNU Autoconf 2.52g. Invocation command line was
951 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
952 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
953 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
954 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
955 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
957 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
958 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
960 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
961 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
962 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
963 hostinfo = `(hostinfo
) 2>/dev
/null
|| echo unknown
`
964 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
965 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
966 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
974 test -z "$as_dir" && as_dir=.
990 # Keep a trace of the command line.
991 # Strip out --no-create and --no-recursion so they do not pile up.
992 # Also quote any args containing shell meta-characters.
998 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999 | --no-cr | --no-c) continue ;;
1000 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1003 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1004 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1006 case " $ac_configure_args " in
1007 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1008 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1011 # Get rid of the leading space.
1014 # When interrupted or exit'd, cleanup temporary files, and complete
1015 # config.log. We remove comments because anyway the quotes in there
1016 # would cause problems or look ugly.
1017 # WARNING: Be sure not to use single quotes in there, as some shells,
1018 # such as our DU 5.0 friend, will then `close
' the trap.
1019 trap 'exit_status
=$?
1020 # Save into config.log some information that might help in debugging.
1024 ## ---------------- ##
1025 ## Cache variables. ##
1026 ## ---------------- ##
1029 # The following way of writing the cache mishandles newlines in values,
1032 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1035 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1036 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1040 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1045 if test -s confdefs.h
; then
1052 sed "/^$/d" confdefs.h
1055 test "$ac_signal" != 0 &&
1056 echo "$as_me: caught signal $ac_signal"
1057 echo "$as_me: exit $exit_status"
1059 rm -f core core.
* *.core
&&
1060 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1063 for ac_signal in 1 2 13 15; do
1064 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1068 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1069 rm -rf conftest* confdefs.h
1070 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1073 # Predefined preprocessor variables.
1075 cat >>confdefs.h <<_ACEOF
1076 #define PACKAGE_NAME "$PACKAGE_NAME"
1080 cat >>confdefs.h <<_ACEOF
1081 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1085 cat >>confdefs.h <<_ACEOF
1086 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1090 cat >>confdefs.h <<_ACEOF
1091 #define PACKAGE_STRING "$PACKAGE_STRING"
1095 cat >>confdefs.h <<_ACEOF
1096 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1100 # Let the site file select an alternate cache file if it wants to.
1101 # Prefer explicitly selected file to automatically selected ones.
1102 if test -z "$CONFIG_SITE"; then
1103 if test "x$prefix" != xNONE; then
1104 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1106 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1109 for ac_site_file in $CONFIG_SITE; do
1110 if test -r "$ac_site_file"; then
1111 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1112 echo "$as_me: loading site script $ac_site_file" >&6;}
1113 sed 's
/^
/| /' "$ac_site_file" >&5
1118 if test -r "$cache_file"; then
1119 # Some versions of bash will fail to source /dev/null (special
1120 # files actually), so we avoid doing that.
1121 if test -f "$cache_file"; then
1122 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1123 echo "$as_me: loading cache $cache_file" >&6;}
1125 [\\/]* | ?:[\\/]* ) . $cache_file;;
1126 *) . ./$cache_file;;
1130 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1131 echo "$as_me: creating cache $cache_file" >&6;}
1135 # Check that the precious variables saved in the cache have kept the same
1137 ac_cache_corrupted=false
1138 for ac_var in `(set) 2>&1 |
1139 sed -n 's
/^ac_env_\
([a
-zA-Z_0-9]*\
)_set
=.
*/\
1/p
'`; do
1140 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1141 eval ac_new_set=\$ac_env_${ac_var}_set
1142 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1143 eval ac_new_val="\$ac_env_${ac_var}_value"
1144 case $ac_old_set,$ac_new_set in
1146 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1147 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1148 ac_cache_corrupted=: ;;
1150 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1151 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1152 ac_cache_corrupted=: ;;
1155 if test "x$ac_old_val" != "x$ac_new_val"; then
1156 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1157 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1158 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1159 echo "$as_me: former value: $ac_old_val" >&2;}
1160 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1161 echo "$as_me: current value: $ac_new_val" >&2;}
1162 ac_cache_corrupted=:
1165 # Pass precious variables to config.status.
1166 if test "$ac_new_set" = set; then
1168 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1169 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1170 *) ac_arg=$ac_var=$ac_new_val ;;
1172 case " $ac_configure_args " in
1173 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1174 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1178 if $ac_cache_corrupted; then
1179 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1180 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1181 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1182 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1183 { (exit 1); exit 1; }; }
1187 ac_cpp='$CPP $CPPFLAGS'
1188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1189 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1218 for ac_dir in config $srcdir/config; do
1219 if test -f $ac_dir/install-sh; then
1221 ac_install_sh="$ac_aux_dir/install-sh -c"
1223 elif test -f $ac_dir/install.sh; then
1225 ac_install_sh="$ac_aux_dir/install.sh -c"
1227 elif test -f $ac_dir/shtool; then
1229 ac_install_sh="$ac_aux_dir/shtool install -c"
1233 if test -z "$ac_aux_dir"; then
1234 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1235 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1236 { (exit 1); exit 1; }; }
1238 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1239 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1240 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1243 am__api_version="1.5c"
1244 # Find a good install program. We prefer a C program (faster),
1245 # so one script is as good as another. But avoid the broken or
1246 # incompatible versions:
1247 # SysV /etc/install, /usr/sbin/install
1248 # SunOS /usr/etc/install
1249 # IRIX /sbin/install
1251 # AmigaOS /C/install, which installs bootblocks on floppy discs
1252 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1253 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1254 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1255 # ./install, which can be erroneously created by make from ./install.sh.
1256 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
1257 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1258 if test -z "$INSTALL"; then
1259 if test "${ac_cv_path_install+set}" = set; then
1260 echo $ECHO_N "(cached) $ECHO_C" >&6
1262 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1266 test -z "$as_dir" && as_dir
=.
1267 # Account for people who put trailing slashes in PATH elements.
1269 .
/ | .
// | /cC
/* | \
1270 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
1273 # OSF1 and SCO ODT 3.0 have their own names for install.
1274 # Don't use installbsd from OSF since it installs stuff as root
1276 for ac_prog
in ginstall scoinst
install; do
1277 for ac_exec_ext
in '' $ac_executable_extensions; do
1278 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1279 if test $ac_prog = install &&
1280 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1281 # AIX install. It has an incompatible calling convention.
1283 elif test $ac_prog = install &&
1284 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1285 # program-specific install script used by HP pwplus--don't use.
1288 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1300 if test "${ac_cv_path_install+set}" = set; then
1301 INSTALL
=$ac_cv_path_install
1303 # As a last resort, use the slow shell script. We don't cache a
1304 # path for INSTALL within a source directory, because that will
1305 # break other packages using the cache if that directory is
1306 # removed, or if the path is relative.
1307 INSTALL
=$ac_install_sh
1310 echo "$as_me:$LINENO: result: $INSTALL" >&5
1311 echo "${ECHO_T}$INSTALL" >&6
1313 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1314 # It thinks the first close brace ends the variable substitution.
1315 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1317 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1319 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1321 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1322 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1325 echo timestamp
> conftest.
file
1326 # Do `set' in a subshell so we don't clobber the current shell's
1327 # arguments. Must try -L first in case configure is actually a
1328 # symlink; some systems play weird games with the mod time of symlinks
1329 # (eg FreeBSD returns the mod time of the symlink's containing
1332 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1333 if test "$*" = "X"; then
1335 set X
`ls -t $srcdir/configure conftest.file`
1338 if test "$*" != "X $srcdir/configure conftest.file" \
1339 && test "$*" != "X conftest.file $srcdir/configure"; then
1341 # If neither matched, then we have a broken ls. This can happen
1342 # if, for instance, CONFIG_SHELL is bash and it inherits a
1343 # broken ls alias from the environment. This has actually
1344 # happened. Such a system could not be considered "sane".
1345 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1346 alias in your environment" >&5
1347 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1348 alias in your environment" >&2;}
1349 { (exit 1); exit 1; }; }
1352 test "$2" = conftest.
file
1358 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1359 Check your system clock" >&5
1360 echo "$as_me: error: newly created file is older than distributed files!
1361 Check your system clock" >&2;}
1362 { (exit 1); exit 1; }; }
1364 echo "$as_me:$LINENO: result: yes" >&5
1365 echo "${ECHO_T}yes" >&6
1366 test "$program_prefix" != NONE
&&
1367 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1368 # Use a double $ so make ignores it.
1369 test "$program_suffix" != NONE
&&
1370 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1371 # Double any \ or $. echo might interpret backslashes.
1372 # By default was `s,x,x', remove it if useless.
1373 cat <<\_ACEOF
>conftest.
sed
1374 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1376 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1380 # expand $ac_aux_dir to an absolute path
1381 am_aux_dir
=`cd $ac_aux_dir && pwd`
1383 test x
"${MISSING+set}" = xset
|| MISSING
="\${SHELL} $am_aux_dir/missing"
1384 # Use eval to expand $SHELL
1385 if eval "$MISSING --run true"; then
1386 am_missing_run
="$MISSING --run "
1389 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1390 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1393 for ac_prog
in gawk mawk nawk
awk
1395 # Extract the first word of "$ac_prog", so it can be a program name with args.
1396 set dummy
$ac_prog; ac_word
=$2
1397 echo "$as_me:$LINENO: checking for $ac_word" >&5
1398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1399 if test "${ac_cv_prog_AWK+set}" = set; then
1400 echo $ECHO_N "(cached) $ECHO_C" >&6
1402 if test -n "$AWK"; then
1403 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1409 test -z "$as_dir" && as_dir
=.
1410 for ac_exec_ext
in '' $ac_executable_extensions; do
1411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1412 ac_cv_prog_AWK
="$ac_prog"
1413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1422 if test -n "$AWK"; then
1423 echo "$as_me:$LINENO: result: $AWK" >&5
1424 echo "${ECHO_T}$AWK" >&6
1426 echo "$as_me:$LINENO: result: no" >&5
1427 echo "${ECHO_T}no" >&6
1430 test -n "$AWK" && break
1433 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1434 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1435 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
1436 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1439 cat >conftest.
make <<\_ACEOF
1441 @
echo 'ac_maketemp="${MAKE}"'
1443 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1444 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1445 if test -n "$ac_maketemp"; then
1446 eval ac_cv_prog_make_
${ac_make}_set
=yes
1448 eval ac_cv_prog_make_
${ac_make}_set
=no
1452 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1453 echo "$as_me:$LINENO: result: yes" >&5
1454 echo "${ECHO_T}yes" >&6
1457 echo "$as_me:$LINENO: result: no" >&5
1458 echo "${ECHO_T}no" >&6
1459 SET_MAKE
="MAKE=${MAKE-make}"
1462 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1463 if test "${enable_dependency_tracking+set}" = set; then
1464 enableval
="$enable_dependency_tracking"
1467 if test "x$enable_dependency_tracking" != xno
; then
1468 am_depcomp
="$ac_aux_dir/depcomp"
1473 if test "x$enable_dependency_tracking" != xno; then
1483 rm -f .deps
2>/dev
/null
1484 mkdir .deps
2>/dev
/null
1485 if test -d .deps
; then
1488 # MS-DOS does not allow filenames that begin with a dot.
1491 rmdir .deps
2>/dev
/null
1494 # test to see if srcdir already configured
1495 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1496 test -f $srcdir/config.status
; then
1497 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1498 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1499 { (exit 1); exit 1; }; }
1502 # Define the identity of the package.
1507 cat >>confdefs.h
<<_ACEOF
1508 #define PACKAGE "$PACKAGE"
1512 cat >>confdefs.h
<<_ACEOF
1513 #define VERSION "$VERSION"
1516 # Some tools Automake needs.
1518 ACLOCAL
=${ACLOCAL-"${am_missing_run}"aclocal-${am__api_version}""}
1521 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1524 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}"automake-${am__api_version}""}
1527 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1530 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1533 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1535 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1537 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1539 # We need awk for the "check" target. The system "awk" is bad on
1542 # Add the stamp file to the list of files AC keeps track of,
1543 # along with our hook.
1544 ac_config_headers
="$ac_config_headers config.h:config.hin"
1549 # Initialize the test suite.
1550 ac_config_commands
="$ac_config_commands tests/atconfig"
1553 ac_config_files
="$ac_config_files tests/bison"
1555 ac_config_files
="$ac_config_files tests/Makefile tests/atlocal"
1557 # Needed by tests/atlocal.in.
1560 # Checks for programs.
1562 ac_cpp
='$CPP $CPPFLAGS'
1563 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1564 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1565 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1566 if test -n "$ac_tool_prefix"; then
1567 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1568 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1569 echo "$as_me:$LINENO: checking for $ac_word" >&5
1570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1571 if test "${ac_cv_prog_CC+set}" = set; then
1572 echo $ECHO_N "(cached) $ECHO_C" >&6
1574 if test -n "$CC"; then
1575 ac_cv_prog_CC
="$CC" # Let the user override the test.
1577 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1581 test -z "$as_dir" && as_dir
=.
1582 for ac_exec_ext
in '' $ac_executable_extensions; do
1583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1584 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1594 if test -n "$CC"; then
1595 echo "$as_me:$LINENO: result: $CC" >&5
1596 echo "${ECHO_T}$CC" >&6
1598 echo "$as_me:$LINENO: result: no" >&5
1599 echo "${ECHO_T}no" >&6
1603 if test -z "$ac_cv_prog_CC"; then
1605 # Extract the first word of "gcc", so it can be a program name with args.
1606 set dummy gcc
; ac_word
=$2
1607 echo "$as_me:$LINENO: checking for $ac_word" >&5
1608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1612 if test -n "$ac_ct_CC"; then
1613 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1615 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1619 test -z "$as_dir" && as_dir
=.
1620 for ac_exec_ext
in '' $ac_executable_extensions; do
1621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622 ac_cv_prog_ac_ct_CC
="gcc"
1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1631 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1632 if test -n "$ac_ct_CC"; then
1633 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1634 echo "${ECHO_T}$ac_ct_CC" >&6
1636 echo "$as_me:$LINENO: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1645 if test -z "$CC"; then
1646 if test -n "$ac_tool_prefix"; then
1647 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1648 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_CC+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 if test -n "$CC"; then
1655 ac_cv_prog_CC
="$CC" # Let the user override the test.
1657 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1661 test -z "$as_dir" && as_dir
=.
1662 for ac_exec_ext
in '' $ac_executable_extensions; do
1663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674 if test -n "$CC"; then
1675 echo "$as_me:$LINENO: result: $CC" >&5
1676 echo "${ECHO_T}$CC" >&6
1678 echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1683 if test -z "$ac_cv_prog_CC"; then
1685 # Extract the first word of "cc", so it can be a program name with args.
1686 set dummy cc
; ac_word
=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 if test -n "$ac_ct_CC"; then
1693 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1695 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1699 test -z "$as_dir" && as_dir
=.
1700 for ac_exec_ext
in '' $ac_executable_extensions; do
1701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702 ac_cv_prog_ac_ct_CC
="cc"
1703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1711 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1712 if test -n "$ac_ct_CC"; then
1713 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1714 echo "${ECHO_T}$ac_ct_CC" >&6
1716 echo "$as_me:$LINENO: result: no" >&5
1717 echo "${ECHO_T}no" >&6
1726 if test -z "$CC"; then
1727 # Extract the first word of "cc", so it can be a program name with args.
1728 set dummy cc
; ac_word
=$2
1729 echo "$as_me:$LINENO: checking for $ac_word" >&5
1730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1731 if test "${ac_cv_prog_CC+set}" = set; then
1732 echo $ECHO_N "(cached) $ECHO_C" >&6
1734 if test -n "$CC"; then
1735 ac_cv_prog_CC
="$CC" # Let the user override the test.
1738 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1742 test -z "$as_dir" && as_dir
=.
1743 for ac_exec_ext
in '' $ac_executable_extensions; do
1744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1745 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1746 ac_prog_rejected
=yes
1750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756 if test $ac_prog_rejected = yes; then
1757 # We found a bogon in the path, so make sure we never use it.
1758 set dummy
$ac_cv_prog_CC
1760 if test $# != 0; then
1761 # We chose a different compiler from the bogus one.
1762 # However, it has the same basename, so the bogon will be chosen
1763 # first if we set CC to just the basename; use the full file name.
1765 set dummy
"$as_dir/$ac_word" ${1+"$@"}
1773 if test -n "$CC"; then
1774 echo "$as_me:$LINENO: result: $CC" >&5
1775 echo "${ECHO_T}$CC" >&6
1777 echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1782 if test -z "$CC"; then
1783 if test -n "$ac_tool_prefix"; then
1786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1787 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1788 echo "$as_me:$LINENO: checking for $ac_word" >&5
1789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1790 if test "${ac_cv_prog_CC+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1793 if test -n "$CC"; then
1794 ac_cv_prog_CC
="$CC" # Let the user override the test.
1796 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1800 test -z "$as_dir" && as_dir
=.
1801 for ac_exec_ext
in '' $ac_executable_extensions; do
1802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1803 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1813 if test -n "$CC"; then
1814 echo "$as_me:$LINENO: result: $CC" >&5
1815 echo "${ECHO_T}$CC" >&6
1817 echo "$as_me:$LINENO: result: no" >&5
1818 echo "${ECHO_T}no" >&6
1821 test -n "$CC" && break
1824 if test -z "$CC"; then
1828 # Extract the first word of "$ac_prog", so it can be a program name with args.
1829 set dummy
$ac_prog; 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
="$ac_prog"
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
1863 test -n "$ac_ct_CC" && break
1872 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
1873 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1874 { (exit 1); exit 1; }; }
1876 # Provide some information about the compiler.
1877 echo "$as_me:$LINENO:" \
1878 "checking for C compiler version" >&5
1879 ac_compiler
=`set X $ac_compile; echo $2`
1880 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1881 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884 (exit $ac_status); }
1885 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1886 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }
1890 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1891 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1894 (exit $ac_status); }
1896 cat >conftest.
$ac_ext <<_ACEOF
1897 #line $LINENO "configure"
1898 #include "confdefs.h"
1900 #ifdef F77_DUMMY_MAIN
1904 int F77_DUMMY_MAIN() { return 1; }
1914 ac_clean_files_save
=$ac_clean_files
1915 ac_clean_files
="$ac_clean_files a.out a.exe"
1916 # Try to create an executable without -o first, disregard a.out.
1917 # It will help us diagnose broken compilers, and finding out an intuition
1919 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1920 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1921 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1922 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1923 (eval $ac_link_default) 2>&5
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); }; then
1927 # Find the output, starting from the most likely. This scheme is
1928 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1931 # Be careful to initialize this variable, since it used to be cached.
1932 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1934 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1935 ls a.out conftest 2>/dev/null;
1936 ls a.* conftest.* 2>/dev/null`; do
1938 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
) ;;
1939 a.out
) # We found the default executable, but exeext='' is most
1942 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1943 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1950 echo "$as_me: failed program was:" >&5
1951 cat conftest.
$ac_ext >&5
1952 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1953 echo "$as_me: error: C compiler cannot create executables" >&2;}
1954 { (exit 77); exit 77; }; }
1957 ac_exeext
=$ac_cv_exeext
1958 echo "$as_me:$LINENO: result: $ac_file" >&5
1959 echo "${ECHO_T}$ac_file" >&6
1961 # Check the compiler produces executables we can run. If not, either
1962 # the compiler is broken, or we cross compile.
1963 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1964 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1965 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1966 # If not cross compiling, check that we can run a simple program.
1967 if test "$cross_compiling" != yes; then
1968 if { ac_try
='./$ac_file'
1969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); }; }; then
1976 if test "$cross_compiling" = maybe
; then
1979 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1980 If you meant to cross compile, use \`--host'." >&5
1981 echo "$as_me: error: cannot run C compiled programs.
1982 If you meant to cross compile, use \`--host'." >&2;}
1983 { (exit 1); exit 1; }; }
1987 echo "$as_me:$LINENO: result: yes" >&5
1988 echo "${ECHO_T}yes" >&6
1990 rm -f a.out a.exe conftest
$ac_cv_exeext
1991 ac_clean_files
=$ac_clean_files_save
1992 # Check the compiler produces executables we can run. If not, either
1993 # the compiler is broken, or we cross compile.
1994 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1995 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1996 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1997 echo "${ECHO_T}$cross_compiling" >&6
1999 echo "$as_me:$LINENO: checking for executable suffix" >&5
2000 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2002 (eval $ac_link) 2>&5
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }; then
2006 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2007 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2008 # work properly (i.e., refer to `conftest.exe'), while it won't with
2010 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2012 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
2013 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2020 { { echo "$as_me:$LINENO: error: cannot compute EXEEXT: cannot compile and link" >&5
2021 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2022 { (exit 1); exit 1; }; }
2025 rm -f conftest
$ac_cv_exeext
2026 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2027 echo "${ECHO_T}$ac_cv_exeext" >&6
2029 rm -f conftest.
$ac_ext
2030 EXEEXT
=$ac_cv_exeext
2032 echo "$as_me:$LINENO: checking for object suffix" >&5
2033 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2034 if test "${ac_cv_objext+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 cat >conftest.
$ac_ext <<_ACEOF
2038 #line $LINENO "configure"
2039 #include "confdefs.h"
2041 #ifdef F77_DUMMY_MAIN
2045 int F77_DUMMY_MAIN() { return 1; }
2055 rm -f conftest.o conftest.obj
2056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2057 (eval $ac_compile) 2>&5
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }; then
2061 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2063 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
2064 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2069 echo "$as_me: failed program was:" >&5
2070 cat conftest.
$ac_ext >&5
2071 { { echo "$as_me:$LINENO: error: cannot compute OBJEXT: cannot compile" >&5
2072 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2073 { (exit 1); exit 1; }; }
2076 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2078 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2079 echo "${ECHO_T}$ac_cv_objext" >&6
2080 OBJEXT
=$ac_cv_objext
2082 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2083 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2084 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2087 cat >conftest.
$ac_ext <<_ACEOF
2088 #line $LINENO "configure"
2089 #include "confdefs.h"
2091 #ifdef F77_DUMMY_MAIN
2095 int F77_DUMMY_MAIN() { return 1; }
2108 rm -f conftest.
$ac_objext
2109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2110 (eval $ac_compile) 2>&5
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); } &&
2114 { ac_try
='test -s conftest.$ac_objext'
2115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; }; then
2122 echo "$as_me: failed program was:" >&5
2123 cat conftest.
$ac_ext >&5
2126 rm -f conftest.
$ac_objext conftest.
$ac_ext
2127 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2130 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2131 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2132 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2133 ac_test_CFLAGS
=${CFLAGS+set}
2134 ac_save_CFLAGS
=$CFLAGS
2136 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2137 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2138 if test "${ac_cv_prog_cc_g+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2141 cat >conftest.
$ac_ext <<_ACEOF
2142 #line $LINENO "configure"
2143 #include "confdefs.h"
2145 #ifdef F77_DUMMY_MAIN
2149 int F77_DUMMY_MAIN() { return 1; }
2159 rm -f conftest.
$ac_objext
2160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161 (eval $ac_compile) 2>&5
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); } &&
2165 { ac_try
='test -s conftest.$ac_objext'
2166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); }; }; then
2173 echo "$as_me: failed program was:" >&5
2174 cat conftest.
$ac_ext >&5
2177 rm -f conftest.
$ac_objext conftest.
$ac_ext
2179 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2180 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2181 if test "$ac_test_CFLAGS" = set; then
2182 CFLAGS
=$ac_save_CFLAGS
2183 elif test $ac_cv_prog_cc_g = yes; then
2184 if test "$GCC" = yes; then
2190 if test "$GCC" = yes; then
2196 # Some people use a C++ compiler to compile C. Since we use `exit',
2197 # in C++ we need to declare it. In case someone uses the same compiler
2198 # for both compiling C and C++ we need to have the C++ compiler decide
2199 # the declaration of exit, since it's the most demanding environment.
2200 cat >conftest.
$ac_ext <<_ACEOF
2205 rm -f conftest.
$ac_objext
2206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2207 (eval $ac_compile) 2>&5
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); } &&
2211 { ac_try
='test -s conftest.$ac_objext'
2212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; }; then
2217 for ac_declaration
in \
2219 '#include <stdlib.h>' \
2220 'extern "C" void std::exit (int) throw (); using std::exit;' \
2221 'extern "C" void std::exit (int); using std::exit;' \
2222 'extern "C" void exit (int) throw ();' \
2223 'extern "C" void exit (int);' \
2226 cat >conftest.
$ac_ext <<_ACEOF
2227 #line $LINENO "configure"
2228 #include "confdefs.h"
2231 #ifdef F77_DUMMY_MAIN
2235 int F77_DUMMY_MAIN() { return 1; }
2245 rm -f conftest.
$ac_objext
2246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2247 (eval $ac_compile) 2>&5
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); } &&
2251 { ac_try
='test -s conftest.$ac_objext'
2252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; }; then
2259 echo "$as_me: failed program was:" >&5
2260 cat conftest.
$ac_ext >&5
2263 rm -f conftest.
$ac_objext conftest.
$ac_ext
2264 cat >conftest.
$ac_ext <<_ACEOF
2265 #line $LINENO "configure"
2266 #include "confdefs.h"
2268 #ifdef F77_DUMMY_MAIN
2272 int F77_DUMMY_MAIN() { return 1; }
2282 rm -f conftest.
$ac_objext
2283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2284 (eval $ac_compile) 2>&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); } &&
2288 { ac_try
='test -s conftest.$ac_objext'
2289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }; }; then
2296 echo "$as_me: failed program was:" >&5
2297 cat conftest.
$ac_ext >&5
2299 rm -f conftest.
$ac_objext conftest.
$ac_ext
2302 if test -n "$ac_declaration"; then
2303 echo '#ifdef __cplusplus' >>confdefs.h
2304 echo $ac_declaration >>confdefs.h
2305 echo '#endif' >>confdefs.h
2309 echo "$as_me: failed program was:" >&5
2310 cat conftest.
$ac_ext >&5
2312 rm -f conftest.
$ac_objext conftest.
$ac_ext
2314 ac_cpp
='$CPP $CPPFLAGS'
2315 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2316 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2317 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2318 ac_config_commands
="$ac_config_commands depfiles"
2321 am_make
=${MAKE-make}
2322 cat > confinc
<< 'END'
2326 # If we don't find an include directive, just comment out the code.
2327 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2328 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2332 # First try GNU make style include.
2333 echo "include confinc" > confmf
2334 # We grep out `Entering directory' and `Leaving directory'
2335 # messages which can occur if `w' ends up in MAKEFLAGS.
2336 # In particular we don't look at `^make:' because GNU make might
2337 # be invoked under some other name (usually "gmake"), in which
2338 # case it prints its new name instead of `make'.
2339 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2344 # Now try BSD make style include.
2345 if test "$am__include" = "#"; then
2346 echo '.include "confinc"' > confmf
2347 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2348 am__include
=.include
2355 echo "$as_me:$LINENO: result: $_am_result" >&5
2356 echo "${ECHO_T}$_am_result" >&6
2357 rm -f confinc confmf
2360 depcc
="$CC" am_compiler_list
=
2362 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2363 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2364 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2368 # We make a subdir and do the tests there. Otherwise we can end up
2369 # making bogus files that we don't know about and never remove. For
2370 # instance it was reported that on HP-UX the gcc test will end up
2371 # making a dummy file named `D' -- because `-MD' means `put the output
2374 # Copy depcomp to subdir because otherwise we won't find it if we're
2375 # using a relative directory.
2376 cp "$am_depcomp" conftest.dir
2379 am_cv_CC_dependencies_compiler_type
=none
2380 if test "$am_compiler_list" = ""; then
2381 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2383 for depmode
in $am_compiler_list; do
2384 # We need to recreate these files for each test, as the compiler may
2385 # overwrite some of them when testing with obscure command lines.
2386 # This happens at least with the AIX C compiler.
2387 echo '#include "conftest.h"' > conftest.c
2388 echo 'int i;' > conftest.h
2389 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2393 # after this tag, mechanisms are not by side-effect, so they'll
2394 # only be used when explicitly requested
2395 if test "x$enable_dependency_tracking" = xyes
; then
2403 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2404 # mode. It turns out that the SunPro C++ compiler does not properly
2405 # handle `-M -o', and we need to detect this.
2406 if depmode
=$depmode \
2407 source=conftest.c object
=conftest.o \
2408 depfile
=conftest.Po tmpdepfile
=conftest.TPo \
2409 $SHELL .
/depcomp
$depcc -c conftest.c
-o conftest.o
>/dev
/null
2>&1 &&
2410 grep conftest.h conftest.Po
> /dev
/null
2>&1 &&
2411 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2412 am_cv_CC_dependencies_compiler_type
=$depmode
2420 am_cv_CC_dependencies_compiler_type
=none
2424 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2425 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2426 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
2431 ac_cpp
='$CPP $CPPFLAGS'
2432 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2433 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2434 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2435 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2436 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2437 # On Suns, sometimes $CPP names a directory.
2438 if test -n "$CPP" && test -d "$CPP"; then
2441 if test -z "$CPP"; then
2442 if test "${ac_cv_prog_CPP+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 # Double quotes because CPP needs to be expanded
2446 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2449 for ac_c_preproc_warn_flag
in '' yes
2451 # Use a header file that comes with gcc, so configuring glibc
2452 # with a fresh cross-compiler works.
2453 # On the NeXT, cc -E runs the code through the compiler's parser,
2454 # not just through cpp. "Syntax error" is here to catch this case.
2455 cat >conftest.
$ac_ext <<_ACEOF
2456 #line $LINENO "configure"
2457 #include "confdefs.h"
2461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2462 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2464 egrep -v '^ *\+' conftest.er1
>conftest.err
2466 cat conftest.err
>&5
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); } >/dev
/null
; then
2469 if test -s conftest.err
; then
2470 ac_cpp_err
=$ac_c_preproc_warn_flag
2477 if test -z "$ac_cpp_err"; then
2480 echo "$as_me: failed program was:" >&5
2481 cat conftest.
$ac_ext >&5
2482 # Broken: fails on valid input.
2485 rm -f conftest.err conftest.
$ac_ext
2487 # OK, works on sane cases. Now check whether non-existent headers
2488 # can be detected and how.
2489 cat >conftest.
$ac_ext <<_ACEOF
2490 #line $LINENO "configure"
2491 #include "confdefs.h"
2492 #include <ac_nonexistent.h>
2494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2495 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2497 egrep -v '^ *\+' conftest.er1
>conftest.err
2499 cat conftest.err
>&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } >/dev
/null
; then
2502 if test -s conftest.err
; then
2503 ac_cpp_err
=$ac_c_preproc_warn_flag
2510 if test -z "$ac_cpp_err"; then
2511 # Broken: success on invalid input.
2514 echo "$as_me: failed program was:" >&5
2515 cat conftest.
$ac_ext >&5
2516 # Passes both tests.
2520 rm -f conftest.err conftest.
$ac_ext
2523 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2524 rm -f conftest.err conftest.
$ac_ext
2525 if $ac_preproc_ok; then
2537 echo "$as_me:$LINENO: result: $CPP" >&5
2538 echo "${ECHO_T}$CPP" >&6
2540 for ac_c_preproc_warn_flag
in '' yes
2542 # Use a header file that comes with gcc, so configuring glibc
2543 # with a fresh cross-compiler works.
2544 # On the NeXT, cc -E runs the code through the compiler's parser,
2545 # not just through cpp. "Syntax error" is here to catch this case.
2546 cat >conftest.
$ac_ext <<_ACEOF
2547 #line $LINENO "configure"
2548 #include "confdefs.h"
2552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2553 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2555 egrep -v '^ *\+' conftest.er1
>conftest.err
2557 cat conftest.err
>&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); } >/dev
/null
; then
2560 if test -s conftest.err
; then
2561 ac_cpp_err
=$ac_c_preproc_warn_flag
2568 if test -z "$ac_cpp_err"; then
2571 echo "$as_me: failed program was:" >&5
2572 cat conftest.
$ac_ext >&5
2573 # Broken: fails on valid input.
2576 rm -f conftest.err conftest.
$ac_ext
2578 # OK, works on sane cases. Now check whether non-existent headers
2579 # can be detected and how.
2580 cat >conftest.
$ac_ext <<_ACEOF
2581 #line $LINENO "configure"
2582 #include "confdefs.h"
2583 #include <ac_nonexistent.h>
2585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2586 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2588 egrep -v '^ *\+' conftest.er1
>conftest.err
2590 cat conftest.err
>&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); } >/dev
/null
; then
2593 if test -s conftest.err
; then
2594 ac_cpp_err
=$ac_c_preproc_warn_flag
2601 if test -z "$ac_cpp_err"; then
2602 # Broken: success on invalid input.
2605 echo "$as_me: failed program was:" >&5
2606 cat conftest.
$ac_ext >&5
2607 # Passes both tests.
2611 rm -f conftest.err conftest.
$ac_ext
2614 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2615 rm -f conftest.err conftest.
$ac_ext
2616 if $ac_preproc_ok; then
2619 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2620 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2621 { (exit 1); exit 1; }; }
2625 ac_cpp
='$CPP $CPPFLAGS'
2626 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2627 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2628 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2631 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2632 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2633 if test "${ac_cv_header_stdc+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
2636 cat >conftest.
$ac_ext <<_ACEOF
2637 #line $LINENO "configure"
2638 #include "confdefs.h"
2645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2646 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2648 egrep -v '^ *\+' conftest.er1
>conftest.err
2650 cat conftest.err
>&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } >/dev
/null
; then
2653 if test -s conftest.err
; then
2654 ac_cpp_err
=$ac_c_preproc_warn_flag
2661 if test -z "$ac_cpp_err"; then
2662 ac_cv_header_stdc
=yes
2664 echo "$as_me: failed program was:" >&5
2665 cat conftest.
$ac_ext >&5
2666 ac_cv_header_stdc
=no
2668 rm -f conftest.err conftest.
$ac_ext
2670 if test $ac_cv_header_stdc = yes; then
2671 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2672 cat >conftest.
$ac_ext <<_ACEOF
2673 #line $LINENO "configure"
2674 #include "confdefs.h"
2678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2679 egrep "memchr" >/dev
/null
2>&1; then
2682 ac_cv_header_stdc
=no
2688 if test $ac_cv_header_stdc = yes; then
2689 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2690 cat >conftest.
$ac_ext <<_ACEOF
2691 #line $LINENO "configure"
2692 #include "confdefs.h"
2696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2697 egrep "free" >/dev
/null
2>&1; then
2700 ac_cv_header_stdc
=no
2706 if test $ac_cv_header_stdc = yes; then
2707 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2708 if test "$cross_compiling" = yes; then
2711 cat >conftest.
$ac_ext <<_ACEOF
2712 #line $LINENO "configure"
2713 #include "confdefs.h"
2715 #if ((' ' & 0x0FF) == 0x020)
2716 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2717 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2719 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2720 || ('j' <= (c) && (c) <= 'r') \
2721 || ('s' <= (c) && (c) <= 'z'))
2722 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2725 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2730 for (i = 0; i < 256; i++)
2731 if (XOR (islower (i), ISLOWER (i))
2732 || toupper (i) != TOUPPER (i))
2737 rm -f conftest
$ac_exeext
2738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2739 (eval $ac_link) 2>&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }; }; then
2750 echo "$as_me: program exited with status $ac_status" >&5
2751 echo "$as_me: failed program was:" >&5
2752 cat conftest.
$ac_ext >&5
2754 ac_cv_header_stdc
=no
2756 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2760 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2761 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2762 if test $ac_cv_header_stdc = yes; then
2764 cat >>confdefs.h
<<\_ACEOF
2765 #define STDC_HEADERS 1
2770 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2780 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2781 inttypes.h stdint.h unistd.h
2783 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2784 echo "$as_me:$LINENO: checking for $ac_header" >&5
2785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2787 echo $ECHO_N "(cached) $ECHO_C" >&6
2789 cat >conftest.
$ac_ext <<_ACEOF
2790 #line $LINENO "configure"
2791 #include "confdefs.h"
2792 $ac_includes_default
2794 #include <$ac_header>
2796 rm -f conftest.
$ac_objext
2797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2798 (eval $ac_compile) 2>&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } &&
2802 { ac_try
='test -s conftest.$ac_objext'
2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; }; then
2808 eval "$as_ac_Header=yes"
2810 echo "$as_me: failed program was:" >&5
2811 cat conftest.
$ac_ext >&5
2812 eval "$as_ac_Header=no"
2814 rm -f conftest.
$ac_objext conftest.
$ac_ext
2816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2819 cat >>confdefs.h
<<_ACEOF
2820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2828 if test "${ac_cv_header_minix_config_h+set}" = set; then
2829 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2830 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2831 if test "${ac_cv_header_minix_config_h+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2835 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2837 # Is the header compilable?
2838 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2839 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2840 cat >conftest.
$ac_ext <<_ACEOF
2841 #line $LINENO "configure"
2842 #include "confdefs.h"
2843 $ac_includes_default
2844 #include <minix/config.h>
2846 rm -f conftest.
$ac_objext
2847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2848 (eval $ac_compile) 2>&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); } &&
2852 { ac_try
='test -s conftest.$ac_objext'
2853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; }; then
2858 ac_header_compiler
=yes
2860 echo "$as_me: failed program was:" >&5
2861 cat conftest.
$ac_ext >&5
2862 ac_header_compiler
=no
2864 rm -f conftest.
$ac_objext conftest.
$ac_ext
2865 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2866 echo "${ECHO_T}$ac_header_compiler" >&6
2868 # Is the header present?
2869 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2870 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2871 cat >conftest.
$ac_ext <<_ACEOF
2872 #line $LINENO "configure"
2873 #include "confdefs.h"
2874 #include <minix/config.h>
2876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2877 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2879 egrep -v '^ *\+' conftest.er1
>conftest.err
2881 cat conftest.err
>&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); } >/dev
/null
; then
2884 if test -s conftest.err
; then
2885 ac_cpp_err
=$ac_c_preproc_warn_flag
2892 if test -z "$ac_cpp_err"; then
2893 ac_header_preproc
=yes
2895 echo "$as_me: failed program was:" >&5
2896 cat conftest.
$ac_ext >&5
2897 ac_header_preproc
=no
2899 rm -f conftest.err conftest.
$ac_ext
2900 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2901 echo "${ECHO_T}$ac_header_preproc" >&6
2903 # So? What about this header?
2904 case $ac_header_compiler:$ac_header_preproc in
2906 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
2907 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2908 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2909 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2911 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled." >&5
2912 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled." >&2;}
2913 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
2914 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
2915 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2916 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2918 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2919 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2920 if test "${ac_cv_header_minix_config_h+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 ac_cv_header_minix_config_h
=$ac_header_preproc
2925 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2926 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2929 if test $ac_cv_header_minix_config_h = yes; then
2936 if test "$MINIX" = yes; then
2938 cat >>confdefs.h
<<\_ACEOF
2939 #define _POSIX_SOURCE 1
2943 cat >>confdefs.h
<<\_ACEOF
2944 #define _POSIX_1_SOURCE 2
2948 cat >>confdefs.h
<<\_ACEOF
2955 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2956 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2957 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2960 ac_check_lib_save_LIBS
=$LIBS
2961 LIBS
="-lcposix $LIBS"
2962 cat >conftest.
$ac_ext <<_ACEOF
2963 #line $LINENO "configure"
2964 #include "confdefs.h"
2966 /* Override any gcc2 internal prototype to avoid an error. */
2970 /* We use char because int might match the return type of a gcc2
2971 builtin and then its argument prototype would still apply. */
2973 #ifdef F77_DUMMY_MAIN
2977 int F77_DUMMY_MAIN() { return 1; }
2987 rm -f conftest.
$ac_objext conftest
$ac_exeext
2988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2989 (eval $ac_link) 2>&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } &&
2993 { ac_try
='test -s conftest$ac_exeext'
2994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; }; then
2999 ac_cv_lib_cposix_strerror
=yes
3001 echo "$as_me: failed program was:" >&5
3002 cat conftest.
$ac_ext >&5
3003 ac_cv_lib_cposix_strerror
=no
3005 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3006 LIBS
=$ac_check_lib_save_LIBS
3008 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3009 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3010 if test $ac_cv_lib_cposix_strerror = yes; then
3011 LIBS
="$LIBS -lcposix"
3019 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3020 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3021 if test "${am_cv_prog_cc_stdc+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3024 am_cv_prog_cc_stdc
=no
3026 # Don't try gcc -ansi; that turns off useful extensions and
3027 # breaks some systems' header files.
3028 # AIX -qlanglvl=ansi
3029 # Ultrix and OSF/1 -std1
3030 # HP-UX 10.20 and later -Ae
3031 # HP-UX older versions -Aa -D_HPUX_SOURCE
3032 # SVR4 -Xc -D__EXTENSIONS__
3033 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3035 CC
="$ac_save_CC $ac_arg"
3036 cat >conftest.
$ac_ext <<_ACEOF
3037 #line $LINENO "configure"
3038 #include "confdefs.h"
3041 #include <sys/types.h>
3042 #include <sys/stat.h>
3043 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3044 struct buf { int x; };
3045 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3046 static char *e (p, i)
3052 static char *f (char * (*g) (char **, int), char **p, ...)
3057 s = g (p, va_arg (v,int));
3061 int test (int i, double x);
3062 struct s1 {int (*f) (int a);};
3063 struct s2 {int (*f) (double a);};
3064 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3068 #ifdef F77_DUMMY_MAIN
3072 int F77_DUMMY_MAIN() { return 1; }
3078 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3084 rm -f conftest.
$ac_objext
3085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3086 (eval $ac_compile) 2>&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } &&
3090 { ac_try
='test -s conftest.$ac_objext'
3091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }; }; then
3096 am_cv_prog_cc_stdc
="$ac_arg"; break
3098 echo "$as_me: failed program was:" >&5
3099 cat conftest.
$ac_ext >&5
3101 rm -f conftest.
$ac_objext conftest.
$ac_ext
3107 if test -z "$am_cv_prog_cc_stdc"; then
3108 echo "$as_me:$LINENO: result: none needed" >&5
3109 echo "${ECHO_T}none needed" >&6
3111 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3112 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3114 case "x$am_cv_prog_cc_stdc" in
3116 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
3119 if test -n "$ac_tool_prefix"; then
3120 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3121 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3122 echo "$as_me:$LINENO: checking for $ac_word" >&5
3123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3124 if test "${ac_cv_prog_RANLIB+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 if test -n "$RANLIB"; then
3128 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3134 test -z "$as_dir" && as_dir
=.
3135 for ac_exec_ext
in '' $ac_executable_extensions; do
3136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 RANLIB
=$ac_cv_prog_RANLIB
3147 if test -n "$RANLIB"; then
3148 echo "$as_me:$LINENO: result: $RANLIB" >&5
3149 echo "${ECHO_T}$RANLIB" >&6
3151 echo "$as_me:$LINENO: result: no" >&5
3152 echo "${ECHO_T}no" >&6
3156 if test -z "$ac_cv_prog_RANLIB"; then
3157 ac_ct_RANLIB
=$RANLIB
3158 # Extract the first word of "ranlib", so it can be a program name with args.
3159 set dummy ranlib
; ac_word
=$2
3160 echo "$as_me:$LINENO: checking for $ac_word" >&5
3161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3162 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 if test -n "$ac_ct_RANLIB"; then
3166 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3168 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3172 test -z "$as_dir" && as_dir
=.
3173 for ac_exec_ext
in '' $ac_executable_extensions; do
3174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3175 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3185 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3186 if test -n "$ac_ct_RANLIB"; then
3187 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3188 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3190 echo "$as_me:$LINENO: result: no" >&5
3191 echo "${ECHO_T}no" >&6
3194 RANLIB
=$ac_ct_RANLIB
3196 RANLIB
="$ac_cv_prog_RANLIB"
3200 AUTOM4TE
=${AUTOM4TE-"${am_missing_run}autom4te"}
3203 # Check whether --enable-gcc-warnings or --disable-gcc-warnings was given.
3204 if test "${enable_gcc_warnings+set}" = set; then
3205 enableval
="$enable_gcc_warnings"
3206 case "${enableval}" in
3208 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for gcc-warnings option" >&5
3209 echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;}
3210 { (exit 1); exit 1; }; } ;;
3215 if test "${enableval}" = yes; then
3216 echo "$as_me:$LINENO: checking whether compiler accepts -Werror" >&5
3217 echo $ECHO_N "checking whether compiler accepts -Werror... $ECHO_C" >&6
3219 ac_save_CFLAGS
="$CFLAGS"
3220 CFLAGS
="$CFLAGS -Werror"
3221 cat >conftest.
$ac_ext <<_ACEOF
3222 #line $LINENO "configure"
3223 #include "confdefs.h"
3225 #ifdef F77_DUMMY_MAIN
3229 int F77_DUMMY_MAIN() { return 1; }
3239 rm -f conftest.
$ac_objext
3240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3241 (eval $ac_compile) 2>&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } &&
3245 { ac_try
='test -s conftest.$ac_objext'
3246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }; }; then
3251 WARNING_CFLAGS
="$WARNING_CFLAGS -Werror"
3252 echo "$as_me:$LINENO: result: yes" >&5
3253 echo "${ECHO_T}yes" >&6
3255 echo "$as_me: failed program was:" >&5
3256 cat conftest.
$ac_ext >&5
3257 echo "$as_me:$LINENO: result: no" >&5
3258 echo "${ECHO_T}no" >&6
3260 rm -f conftest.
$ac_objext conftest.
$ac_ext
3261 CFLAGS
="$ac_save_CFLAGS"
3262 WERROR_CFLAGS
=$WARNING_CFLAGS
3265 echo "$as_me:$LINENO: checking whether compiler accepts -Wall" >&5
3266 echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6
3268 ac_save_CFLAGS
="$CFLAGS"
3269 CFLAGS
="$CFLAGS -Wall"
3270 cat >conftest.
$ac_ext <<_ACEOF
3271 #line $LINENO "configure"
3272 #include "confdefs.h"
3274 #ifdef F77_DUMMY_MAIN
3278 int F77_DUMMY_MAIN() { return 1; }
3288 rm -f conftest.
$ac_objext
3289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3290 (eval $ac_compile) 2>&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } &&
3294 { ac_try
='test -s conftest.$ac_objext'
3295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); }; }; then
3300 WARNING_CFLAGS
="$WARNING_CFLAGS -Wall"
3301 echo "$as_me:$LINENO: result: yes" >&5
3302 echo "${ECHO_T}yes" >&6
3304 echo "$as_me: failed program was:" >&5
3305 cat conftest.
$ac_ext >&5
3306 echo "$as_me:$LINENO: result: no" >&5
3307 echo "${ECHO_T}no" >&6
3309 rm -f conftest.
$ac_objext conftest.
$ac_ext
3310 CFLAGS
="$ac_save_CFLAGS"
3311 echo "$as_me:$LINENO: checking whether compiler accepts -W" >&5
3312 echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6
3314 ac_save_CFLAGS
="$CFLAGS"
3316 cat >conftest.
$ac_ext <<_ACEOF
3317 #line $LINENO "configure"
3318 #include "confdefs.h"
3320 #ifdef F77_DUMMY_MAIN
3324 int F77_DUMMY_MAIN() { return 1; }
3334 rm -f conftest.
$ac_objext
3335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3336 (eval $ac_compile) 2>&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } &&
3340 { ac_try
='test -s conftest.$ac_objext'
3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; }; then
3346 WARNING_CFLAGS
="$WARNING_CFLAGS -W"
3347 echo "$as_me:$LINENO: result: yes" >&5
3348 echo "${ECHO_T}yes" >&6
3350 echo "$as_me: failed program was:" >&5
3351 cat conftest.
$ac_ext >&5
3352 echo "$as_me:$LINENO: result: no" >&5
3353 echo "${ECHO_T}no" >&6
3355 rm -f conftest.
$ac_objext conftest.
$ac_ext
3356 CFLAGS
="$ac_save_CFLAGS"
3357 echo "$as_me:$LINENO: checking whether compiler accepts -Wbad-function-cast" >&5
3358 echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6
3360 ac_save_CFLAGS
="$CFLAGS"
3361 CFLAGS
="$CFLAGS -Wbad-function-cast"
3362 cat >conftest.
$ac_ext <<_ACEOF
3363 #line $LINENO "configure"
3364 #include "confdefs.h"
3366 #ifdef F77_DUMMY_MAIN
3370 int F77_DUMMY_MAIN() { return 1; }
3380 rm -f conftest.
$ac_objext
3381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3382 (eval $ac_compile) 2>&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } &&
3386 { ac_try
='test -s conftest.$ac_objext'
3387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; }; then
3392 WARNING_CFLAGS
="$WARNING_CFLAGS -Wbad-function-cast"
3393 echo "$as_me:$LINENO: result: yes" >&5
3394 echo "${ECHO_T}yes" >&6
3396 echo "$as_me: failed program was:" >&5
3397 cat conftest.
$ac_ext >&5
3398 echo "$as_me:$LINENO: result: no" >&5
3399 echo "${ECHO_T}no" >&6
3401 rm -f conftest.
$ac_objext conftest.
$ac_ext
3402 CFLAGS
="$ac_save_CFLAGS"
3403 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-align" >&5
3404 echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6
3406 ac_save_CFLAGS
="$CFLAGS"
3407 CFLAGS
="$CFLAGS -Wcast-align"
3408 cat >conftest.
$ac_ext <<_ACEOF
3409 #line $LINENO "configure"
3410 #include "confdefs.h"
3412 #ifdef F77_DUMMY_MAIN
3416 int F77_DUMMY_MAIN() { return 1; }
3426 rm -f conftest.
$ac_objext
3427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3428 (eval $ac_compile) 2>&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } &&
3432 { ac_try
='test -s conftest.$ac_objext'
3433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; }; then
3438 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-align"
3439 echo "$as_me:$LINENO: result: yes" >&5
3440 echo "${ECHO_T}yes" >&6
3442 echo "$as_me: failed program was:" >&5
3443 cat conftest.
$ac_ext >&5
3444 echo "$as_me:$LINENO: result: no" >&5
3445 echo "${ECHO_T}no" >&6
3447 rm -f conftest.
$ac_objext conftest.
$ac_ext
3448 CFLAGS
="$ac_save_CFLAGS"
3449 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-qual" >&5
3450 echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6
3452 ac_save_CFLAGS
="$CFLAGS"
3453 CFLAGS
="$CFLAGS -Wcast-qual"
3454 cat >conftest.
$ac_ext <<_ACEOF
3455 #line $LINENO "configure"
3456 #include "confdefs.h"
3458 #ifdef F77_DUMMY_MAIN
3462 int F77_DUMMY_MAIN() { return 1; }
3472 rm -f conftest.
$ac_objext
3473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3474 (eval $ac_compile) 2>&5
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); } &&
3478 { ac_try
='test -s conftest.$ac_objext'
3479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); }; }; then
3484 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-qual"
3485 echo "$as_me:$LINENO: result: yes" >&5
3486 echo "${ECHO_T}yes" >&6
3488 echo "$as_me: failed program was:" >&5
3489 cat conftest.
$ac_ext >&5
3490 echo "$as_me:$LINENO: result: no" >&5
3491 echo "${ECHO_T}no" >&6
3493 rm -f conftest.
$ac_objext conftest.
$ac_ext
3494 CFLAGS
="$ac_save_CFLAGS"
3495 echo "$as_me:$LINENO: checking whether compiler accepts -Wformat" >&5
3496 echo $ECHO_N "checking whether compiler accepts -Wformat... $ECHO_C" >&6
3498 ac_save_CFLAGS
="$CFLAGS"
3499 CFLAGS
="$CFLAGS -Wformat"
3500 cat >conftest.
$ac_ext <<_ACEOF
3501 #line $LINENO "configure"
3502 #include "confdefs.h"
3504 #ifdef F77_DUMMY_MAIN
3508 int F77_DUMMY_MAIN() { return 1; }
3518 rm -f conftest.
$ac_objext
3519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3520 (eval $ac_compile) 2>&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } &&
3524 { ac_try
='test -s conftest.$ac_objext'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3530 WARNING_CFLAGS
="$WARNING_CFLAGS -Wformat"
3531 echo "$as_me:$LINENO: result: yes" >&5
3532 echo "${ECHO_T}yes" >&6
3534 echo "$as_me: failed program was:" >&5
3535 cat conftest.
$ac_ext >&5
3536 echo "$as_me:$LINENO: result: no" >&5
3537 echo "${ECHO_T}no" >&6
3539 rm -f conftest.
$ac_objext conftest.
$ac_ext
3540 CFLAGS
="$ac_save_CFLAGS"
3541 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-declarations" >&5
3542 echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6
3544 ac_save_CFLAGS
="$CFLAGS"
3545 CFLAGS
="$CFLAGS -Wmissing-declarations"
3546 cat >conftest.
$ac_ext <<_ACEOF
3547 #line $LINENO "configure"
3548 #include "confdefs.h"
3550 #ifdef F77_DUMMY_MAIN
3554 int F77_DUMMY_MAIN() { return 1; }
3564 rm -f conftest.
$ac_objext
3565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566 (eval $ac_compile) 2>&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } &&
3570 { ac_try
='test -s conftest.$ac_objext'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; }; then
3576 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-declarations"
3577 echo "$as_me:$LINENO: result: yes" >&5
3578 echo "${ECHO_T}yes" >&6
3580 echo "$as_me: failed program was:" >&5
3581 cat conftest.
$ac_ext >&5
3582 echo "$as_me:$LINENO: result: no" >&5
3583 echo "${ECHO_T}no" >&6
3585 rm -f conftest.
$ac_objext conftest.
$ac_ext
3586 CFLAGS
="$ac_save_CFLAGS"
3587 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-prototypes" >&5
3588 echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6
3590 ac_save_CFLAGS
="$CFLAGS"
3591 CFLAGS
="$CFLAGS -Wmissing-prototypes"
3592 cat >conftest.
$ac_ext <<_ACEOF
3593 #line $LINENO "configure"
3594 #include "confdefs.h"
3596 #ifdef F77_DUMMY_MAIN
3600 int F77_DUMMY_MAIN() { return 1; }
3610 rm -f conftest.
$ac_objext
3611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3612 (eval $ac_compile) 2>&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } &&
3616 { ac_try
='test -s conftest.$ac_objext'
3617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }; }; then
3622 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-prototypes"
3623 echo "$as_me:$LINENO: result: yes" >&5
3624 echo "${ECHO_T}yes" >&6
3626 echo "$as_me: failed program was:" >&5
3627 cat conftest.
$ac_ext >&5
3628 echo "$as_me:$LINENO: result: no" >&5
3629 echo "${ECHO_T}no" >&6
3631 rm -f conftest.
$ac_objext conftest.
$ac_ext
3632 CFLAGS
="$ac_save_CFLAGS"
3633 echo "$as_me:$LINENO: checking whether compiler accepts -Wnested-externs" >&5
3634 echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6
3636 ac_save_CFLAGS
="$CFLAGS"
3637 CFLAGS
="$CFLAGS -Wnested-externs"
3638 cat >conftest.
$ac_ext <<_ACEOF
3639 #line $LINENO "configure"
3640 #include "confdefs.h"
3642 #ifdef F77_DUMMY_MAIN
3646 int F77_DUMMY_MAIN() { return 1; }
3656 rm -f conftest.
$ac_objext
3657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3658 (eval $ac_compile) 2>&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); } &&
3662 { ac_try
='test -s conftest.$ac_objext'
3663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; }; then
3668 WARNING_CFLAGS
="$WARNING_CFLAGS -Wnested-externs"
3669 echo "$as_me:$LINENO: result: yes" >&5
3670 echo "${ECHO_T}yes" >&6
3672 echo "$as_me: failed program was:" >&5
3673 cat conftest.
$ac_ext >&5
3674 echo "$as_me:$LINENO: result: no" >&5
3675 echo "${ECHO_T}no" >&6
3677 rm -f conftest.
$ac_objext conftest.
$ac_ext
3678 CFLAGS
="$ac_save_CFLAGS"
3679 echo "$as_me:$LINENO: checking whether compiler accepts -Wshadow" >&5
3680 echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6
3682 ac_save_CFLAGS
="$CFLAGS"
3683 CFLAGS
="$CFLAGS -Wshadow"
3684 cat >conftest.
$ac_ext <<_ACEOF
3685 #line $LINENO "configure"
3686 #include "confdefs.h"
3688 #ifdef F77_DUMMY_MAIN
3692 int F77_DUMMY_MAIN() { return 1; }
3702 rm -f conftest.
$ac_objext
3703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3704 (eval $ac_compile) 2>&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } &&
3708 { ac_try
='test -s conftest.$ac_objext'
3709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; }; then
3714 WARNING_CFLAGS
="$WARNING_CFLAGS -Wshadow"
3715 echo "$as_me:$LINENO: result: yes" >&5
3716 echo "${ECHO_T}yes" >&6
3718 echo "$as_me: failed program was:" >&5
3719 cat conftest.
$ac_ext >&5
3720 echo "$as_me:$LINENO: result: no" >&5
3721 echo "${ECHO_T}no" >&6
3723 rm -f conftest.
$ac_objext conftest.
$ac_ext
3724 CFLAGS
="$ac_save_CFLAGS"
3725 echo "$as_me:$LINENO: checking whether compiler accepts -Wstrict-prototypes" >&5
3726 echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6
3728 ac_save_CFLAGS
="$CFLAGS"
3729 CFLAGS
="$CFLAGS -Wstrict-prototypes"
3730 cat >conftest.
$ac_ext <<_ACEOF
3731 #line $LINENO "configure"
3732 #include "confdefs.h"
3734 #ifdef F77_DUMMY_MAIN
3738 int F77_DUMMY_MAIN() { return 1; }
3748 rm -f conftest.
$ac_objext
3749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3750 (eval $ac_compile) 2>&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } &&
3754 { ac_try
='test -s conftest.$ac_objext'
3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; }; then
3760 WARNING_CFLAGS
="$WARNING_CFLAGS -Wstrict-prototypes"
3761 echo "$as_me:$LINENO: result: yes" >&5
3762 echo "${ECHO_T}yes" >&6
3764 echo "$as_me: failed program was:" >&5
3765 cat conftest.
$ac_ext >&5
3766 echo "$as_me:$LINENO: result: no" >&5
3767 echo "${ECHO_T}no" >&6
3769 rm -f conftest.
$ac_objext conftest.
$ac_ext
3770 CFLAGS
="$ac_save_CFLAGS"
3771 echo "$as_me:$LINENO: checking whether compiler accepts -Wwrite-strings" >&5
3772 echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6
3774 ac_save_CFLAGS
="$CFLAGS"
3775 CFLAGS
="$CFLAGS -Wwrite-strings"
3776 cat >conftest.
$ac_ext <<_ACEOF
3777 #line $LINENO "configure"
3778 #include "confdefs.h"
3780 #ifdef F77_DUMMY_MAIN
3784 int F77_DUMMY_MAIN() { return 1; }
3794 rm -f conftest.
$ac_objext
3795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3796 (eval $ac_compile) 2>&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); } &&
3800 { ac_try
='test -s conftest.$ac_objext'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; }; then
3806 WARNING_CFLAGS
="$WARNING_CFLAGS -Wwrite-strings"
3807 echo "$as_me:$LINENO: result: yes" >&5
3808 echo "${ECHO_T}yes" >&6
3810 echo "$as_me: failed program was:" >&5
3811 cat conftest.
$ac_ext >&5
3812 echo "$as_me:$LINENO: result: no" >&5
3813 echo "${ECHO_T}no" >&6
3815 rm -f conftest.
$ac_objext conftest.
$ac_ext
3816 CFLAGS
="$ac_save_CFLAGS"
3819 # Checks for libraries.
3821 cat >>confdefs.h
<<\_ACEOF
3822 #define _GNU_SOURCE 1
3826 # Checks for header files.
3827 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3828 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3829 if test "${ac_cv_header_stdc+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 cat >conftest.
$ac_ext <<_ACEOF
3833 #line $LINENO "configure"
3834 #include "confdefs.h"
3841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3842 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3844 egrep -v '^ *\+' conftest.er1
>conftest.err
3846 cat conftest.err
>&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); } >/dev
/null
; then
3849 if test -s conftest.err
; then
3850 ac_cpp_err
=$ac_c_preproc_warn_flag
3857 if test -z "$ac_cpp_err"; then
3858 ac_cv_header_stdc
=yes
3860 echo "$as_me: failed program was:" >&5
3861 cat conftest.
$ac_ext >&5
3862 ac_cv_header_stdc
=no
3864 rm -f conftest.err conftest.
$ac_ext
3866 if test $ac_cv_header_stdc = yes; then
3867 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3868 cat >conftest.
$ac_ext <<_ACEOF
3869 #line $LINENO "configure"
3870 #include "confdefs.h"
3874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3875 egrep "memchr" >/dev
/null
2>&1; then
3878 ac_cv_header_stdc
=no
3884 if test $ac_cv_header_stdc = yes; then
3885 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3886 cat >conftest.
$ac_ext <<_ACEOF
3887 #line $LINENO "configure"
3888 #include "confdefs.h"
3892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3893 egrep "free" >/dev
/null
2>&1; then
3896 ac_cv_header_stdc
=no
3902 if test $ac_cv_header_stdc = yes; then
3903 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3904 if test "$cross_compiling" = yes; then
3907 cat >conftest.
$ac_ext <<_ACEOF
3908 #line $LINENO "configure"
3909 #include "confdefs.h"
3911 #if ((' ' & 0x0FF) == 0x020)
3912 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3913 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3915 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3916 || ('j' <= (c) && (c) <= 'r') \
3917 || ('s' <= (c) && (c) <= 'z'))
3918 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3921 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3926 for (i = 0; i < 256; i++)
3927 if (XOR (islower (i), ISLOWER (i))
3928 || toupper (i) != TOUPPER (i))
3933 rm -f conftest
$ac_exeext
3934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3935 (eval $ac_link) 2>&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }; }; then
3946 echo "$as_me: program exited with status $ac_status" >&5
3947 echo "$as_me: failed program was:" >&5
3948 cat conftest.
$ac_ext >&5
3950 ac_cv_header_stdc
=no
3952 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3956 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3957 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3958 if test $ac_cv_header_stdc = yes; then
3960 cat >>confdefs.h
<<\_ACEOF
3961 #define STDC_HEADERS 1
3972 for ac_header
in ctype.h locale.h memory.h stdlib.h string.h unistd.h
3974 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3976 echo "$as_me:$LINENO: checking for $ac_header" >&5
3977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3984 # Is the header compilable?
3985 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3987 cat >conftest.
$ac_ext <<_ACEOF
3988 #line $LINENO "configure"
3989 #include "confdefs.h"
3990 $ac_includes_default
3991 #include <$ac_header>
3993 rm -f conftest.
$ac_objext
3994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3995 (eval $ac_compile) 2>&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); } &&
3999 { ac_try
='test -s conftest.$ac_objext'
4000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); }; }; then
4005 ac_header_compiler
=yes
4007 echo "$as_me: failed program was:" >&5
4008 cat conftest.
$ac_ext >&5
4009 ac_header_compiler
=no
4011 rm -f conftest.
$ac_objext conftest.
$ac_ext
4012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4013 echo "${ECHO_T}$ac_header_compiler" >&6
4015 # Is the header present?
4016 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4018 cat >conftest.
$ac_ext <<_ACEOF
4019 #line $LINENO "configure"
4020 #include "confdefs.h"
4021 #include <$ac_header>
4023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4024 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4026 egrep -v '^ *\+' conftest.er1
>conftest.err
4028 cat conftest.err
>&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } >/dev
/null
; then
4031 if test -s conftest.err
; then
4032 ac_cpp_err
=$ac_c_preproc_warn_flag
4039 if test -z "$ac_cpp_err"; then
4040 ac_header_preproc
=yes
4042 echo "$as_me: failed program was:" >&5
4043 cat conftest.
$ac_ext >&5
4044 ac_header_preproc
=no
4046 rm -f conftest.err conftest.
$ac_ext
4047 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4048 echo "${ECHO_T}$ac_header_preproc" >&6
4050 # So? What about this header?
4051 case $ac_header_compiler:$ac_header_preproc in
4053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4054 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
4059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
4060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4061 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4065 echo "$as_me:$LINENO: checking for $ac_header" >&5
4066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 eval "$as_ac_Header=$ac_header_preproc"
4072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4077 cat >>confdefs.h
<<_ACEOF
4078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4086 # Checks for typedefs.
4088 # Checks for structures.
4090 # Checks for compiler characteristics.
4091 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4092 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4093 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4096 ac_cv_prog_cc_stdc
=no
4098 cat >conftest.
$ac_ext <<_ACEOF
4099 #line $LINENO "configure"
4100 #include "confdefs.h"
4103 #include <sys/types.h>
4104 #include <sys/stat.h>
4105 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4106 struct buf { int x; };
4107 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4108 static char *e (p, i)
4114 static char *f (char * (*g) (char **, int), char **p, ...)
4119 s = g (p, va_arg (v,int));
4123 int test (int i, double x);
4124 struct s1 {int (*f) (int a);};
4125 struct s2 {int (*f) (double a);};
4126 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4129 #ifdef F77_DUMMY_MAIN
4133 int F77_DUMMY_MAIN() { return 1; }
4138 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4143 # Don't try gcc -ansi; that turns off useful extensions and
4144 # breaks some systems' header files.
4145 # AIX -qlanglvl=ansi
4146 # Ultrix and OSF/1 -std1
4147 # HP-UX 10.20 and later -Ae
4148 # HP-UX older versions -Aa -D_HPUX_SOURCE
4149 # SVR4 -Xc -D__EXTENSIONS__
4150 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4152 CC
="$ac_save_CC $ac_arg"
4153 rm -f conftest.
$ac_objext
4154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4155 (eval $ac_compile) 2>&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try
='test -s conftest.$ac_objext'
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; }; then
4165 ac_cv_prog_cc_stdc
=$ac_arg
4168 echo "$as_me: failed program was:" >&5
4169 cat conftest.
$ac_ext >&5
4171 rm -f conftest.
$ac_objext
4173 rm -f conftest.
$ac_ext conftest.
$ac_objext
4178 case "x$ac_cv_prog_cc_stdc" in
4180 echo "$as_me:$LINENO: result: none needed" >&5
4181 echo "${ECHO_T}none needed" >&6 ;;
4183 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4184 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4185 CC
="$CC $ac_cv_prog_cc_stdc" ;;
4188 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4189 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4190 if test "${ac_cv_c_const+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 cat >conftest.
$ac_ext <<_ACEOF
4194 #line $LINENO "configure"
4195 #include "confdefs.h"
4197 #ifdef F77_DUMMY_MAIN
4201 int F77_DUMMY_MAIN() { return 1; }
4206 /* FIXME: Include the comments suggested by Paul. */
4208 /* Ultrix mips cc rejects this. */
4209 typedef int charset[2];
4211 /* SunOS 4.1.1 cc rejects this. */
4212 char const *const *ccp;
4214 /* NEC SVR4.0.2 mips cc rejects this. */
4215 struct point {int x, y;};
4216 static struct point const zero = {0,0};
4217 /* AIX XL C 1.02.0.0 rejects this.
4218 It does not let you subtract one const X* pointer from another in
4219 an arm of an if-expression whose if-part is not a constant
4221 const char *g = "string";
4222 ccp = &g + (g ? g-g : 0);
4223 /* HPUX 7.0 cc rejects these. */
4226 ccp = (char const *const *) p;
4227 { /* SCO 3.2v4 cc rejects this. */
4229 char const *s = 0 ? (char *) 0 : (char const *) 0;
4233 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4235 const int *foo = &x[0];
4238 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4239 typedef const int *iptr;
4243 { /* AIX XL C 1.02.0.0 rejects this saying
4244 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4245 struct s { int j; const int *ap[3]; };
4246 struct s *b; b->j = 5;
4248 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4257 rm -f conftest.
$ac_objext
4258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4259 (eval $ac_compile) 2>&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } &&
4263 { ac_try
='test -s conftest.$ac_objext'
4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; }; then
4271 echo "$as_me: failed program was:" >&5
4272 cat conftest.
$ac_ext >&5
4275 rm -f conftest.
$ac_objext conftest.
$ac_ext
4277 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4278 echo "${ECHO_T}$ac_cv_c_const" >&6
4279 if test $ac_cv_c_const = no
; then
4281 cat >>confdefs.h
<<\_ACEOF
4287 echo "$as_me:$LINENO: checking for inline" >&5
4288 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4289 if test "${ac_cv_c_inline+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 for ac_kw
in inline __inline__ __inline
; do
4294 cat >conftest.
$ac_ext <<_ACEOF
4295 #line $LINENO "configure"
4296 #include "confdefs.h"
4298 static $ac_kw int static_foo () {return 0; }
4299 $ac_kw int foo () {return 0; }
4303 rm -f conftest.
$ac_objext
4304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4305 (eval $ac_compile) 2>&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } &&
4309 { ac_try
='test -s conftest.$ac_objext'
4310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }; }; then
4315 ac_cv_c_inline
=$ac_kw; break
4317 echo "$as_me: failed program was:" >&5
4318 cat conftest.
$ac_ext >&5
4320 rm -f conftest.
$ac_objext conftest.
$ac_ext
4324 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4325 echo "${ECHO_T}$ac_cv_c_inline" >&6
4326 case $ac_cv_c_inline in
4329 cat >>confdefs.h
<<\_ACEOF
4333 *) cat >>confdefs.h
<<_ACEOF
4334 #define inline $ac_cv_c_inline
4341 echo "$as_me:$LINENO: checking for function prototypes" >&5
4342 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4343 if test "$am_cv_prog_cc_stdc" != no
; then
4344 echo "$as_me:$LINENO: result: yes" >&5
4345 echo "${ECHO_T}yes" >&6
4347 cat >>confdefs.h
<<\_ACEOF
4348 #define PROTOTYPES 1
4353 echo "$as_me:$LINENO: result: no" >&5
4354 echo "${ECHO_T}no" >&6
4355 U
=_ ANSI2KNR
=.
/ansi2knr
4357 # Ensure some checks needed by ansi2knr itself.
4358 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4359 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4360 if test "${ac_cv_header_stdc+set}" = set; then
4361 echo $ECHO_N "(cached) $ECHO_C" >&6
4363 cat >conftest.
$ac_ext <<_ACEOF
4364 #line $LINENO "configure"
4365 #include "confdefs.h"
4372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4373 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4375 egrep -v '^ *\+' conftest.er1
>conftest.err
4377 cat conftest.err
>&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); } >/dev
/null
; then
4380 if test -s conftest.err
; then
4381 ac_cpp_err
=$ac_c_preproc_warn_flag
4388 if test -z "$ac_cpp_err"; then
4389 ac_cv_header_stdc
=yes
4391 echo "$as_me: failed program was:" >&5
4392 cat conftest.
$ac_ext >&5
4393 ac_cv_header_stdc
=no
4395 rm -f conftest.err conftest.
$ac_ext
4397 if test $ac_cv_header_stdc = yes; then
4398 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4399 cat >conftest.
$ac_ext <<_ACEOF
4400 #line $LINENO "configure"
4401 #include "confdefs.h"
4405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4406 egrep "memchr" >/dev
/null
2>&1; then
4409 ac_cv_header_stdc
=no
4415 if test $ac_cv_header_stdc = yes; then
4416 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4417 cat >conftest.
$ac_ext <<_ACEOF
4418 #line $LINENO "configure"
4419 #include "confdefs.h"
4423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4424 egrep "free" >/dev
/null
2>&1; then
4427 ac_cv_header_stdc
=no
4433 if test $ac_cv_header_stdc = yes; then
4434 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4435 if test "$cross_compiling" = yes; then
4438 cat >conftest.
$ac_ext <<_ACEOF
4439 #line $LINENO "configure"
4440 #include "confdefs.h"
4442 #if ((' ' & 0x0FF) == 0x020)
4443 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4444 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4446 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4447 || ('j' <= (c) && (c) <= 'r') \
4448 || ('s' <= (c) && (c) <= 'z'))
4449 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4452 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4457 for (i = 0; i < 256; i++)
4458 if (XOR (islower (i), ISLOWER (i))
4459 || toupper (i) != TOUPPER (i))
4464 rm -f conftest
$ac_exeext
4465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4466 (eval $ac_link) 2>&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; }; then
4477 echo "$as_me: program exited with status $ac_status" >&5
4478 echo "$as_me: failed program was:" >&5
4479 cat conftest.
$ac_ext >&5
4481 ac_cv_header_stdc
=no
4483 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4487 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4488 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4489 if test $ac_cv_header_stdc = yes; then
4491 cat >>confdefs.h
<<\_ACEOF
4492 #define STDC_HEADERS 1
4498 for ac_header
in string.h
4500 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4502 echo "$as_me:$LINENO: checking for $ac_header" >&5
4503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4510 # Is the header compilable?
4511 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4512 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4513 cat >conftest.
$ac_ext <<_ACEOF
4514 #line $LINENO "configure"
4515 #include "confdefs.h"
4516 $ac_includes_default
4517 #include <$ac_header>
4519 rm -f conftest.
$ac_objext
4520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521 (eval $ac_compile) 2>&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); } &&
4525 { ac_try
='test -s conftest.$ac_objext'
4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; }; then
4531 ac_header_compiler
=yes
4533 echo "$as_me: failed program was:" >&5
4534 cat conftest.
$ac_ext >&5
4535 ac_header_compiler
=no
4537 rm -f conftest.
$ac_objext conftest.
$ac_ext
4538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4539 echo "${ECHO_T}$ac_header_compiler" >&6
4541 # Is the header present?
4542 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4544 cat >conftest.
$ac_ext <<_ACEOF
4545 #line $LINENO "configure"
4546 #include "confdefs.h"
4547 #include <$ac_header>
4549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4550 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4552 egrep -v '^ *\+' conftest.er1
>conftest.err
4554 cat conftest.err
>&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } >/dev
/null
; then
4557 if test -s conftest.err
; then
4558 ac_cpp_err
=$ac_c_preproc_warn_flag
4565 if test -z "$ac_cpp_err"; then
4566 ac_header_preproc
=yes
4568 echo "$as_me: failed program was:" >&5
4569 cat conftest.
$ac_ext >&5
4570 ac_header_preproc
=no
4572 rm -f conftest.err conftest.
$ac_ext
4573 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4574 echo "${ECHO_T}$ac_header_preproc" >&6
4576 # So? What about this header?
4577 case $ac_header_compiler:$ac_header_preproc in
4579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
4585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
4586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4587 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4589 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4591 echo "$as_me:$LINENO: checking for $ac_header" >&5
4592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 eval "$as_ac_Header=$ac_header_preproc"
4598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4603 cat >>confdefs.h
<<_ACEOF
4604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4613 # Checks for library functions.
4614 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4615 # for constant arguments. Useless!
4616 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4617 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4618 if test "${ac_cv_working_alloca_h+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 cat >conftest.
$ac_ext <<_ACEOF
4622 #line $LINENO "configure"
4623 #include "confdefs.h"
4625 #ifdef F77_DUMMY_MAIN
4629 int F77_DUMMY_MAIN() { return 1; }
4634 char *p = (char *) alloca (2 * sizeof (int));
4639 rm -f conftest.
$ac_objext conftest
$ac_exeext
4640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4641 (eval $ac_link) 2>&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } &&
4645 { ac_try
='test -s conftest$ac_exeext'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; }; then
4651 ac_cv_working_alloca_h
=yes
4653 echo "$as_me: failed program was:" >&5
4654 cat conftest.
$ac_ext >&5
4655 ac_cv_working_alloca_h
=no
4657 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4659 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4660 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4661 if test $ac_cv_working_alloca_h = yes; then
4663 cat >>confdefs.h
<<\_ACEOF
4664 #define HAVE_ALLOCA_H 1
4669 echo "$as_me:$LINENO: checking for alloca" >&5
4670 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4671 if test "${ac_cv_func_alloca_works+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4674 cat >conftest.
$ac_ext <<_ACEOF
4675 #line $LINENO "configure"
4676 #include "confdefs.h"
4678 # define alloca __builtin_alloca
4681 # include <malloc.h>
4682 # define alloca _alloca
4685 # include <alloca.h>
4690 # ifndef alloca /* predefined by HP cc +Olibcalls */
4698 #ifdef F77_DUMMY_MAIN
4702 int F77_DUMMY_MAIN() { return 1; }
4707 char *p = (char *) alloca (1);
4712 rm -f conftest.
$ac_objext conftest
$ac_exeext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4714 (eval $ac_link) 2>&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } &&
4718 { ac_try
='test -s conftest$ac_exeext'
4719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; }; then
4724 ac_cv_func_alloca_works
=yes
4726 echo "$as_me: failed program was:" >&5
4727 cat conftest.
$ac_ext >&5
4728 ac_cv_func_alloca_works
=no
4730 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4732 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4733 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4735 if test $ac_cv_func_alloca_works = yes; then
4737 cat >>confdefs.h
<<\_ACEOF
4738 #define HAVE_ALLOCA 1
4742 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4743 # that cause trouble. Some versions do not even contain alloca or
4744 # contain a buggy version. If you still want to use their alloca,
4745 # use ar to extract alloca.o from them instead of compiling alloca.c.
4747 ALLOCA
=alloca.
$ac_objext
4749 cat >>confdefs.h
<<\_ACEOF
4754 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4755 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4756 if test "${ac_cv_os_cray+set}" = set; then
4757 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 cat >conftest.
$ac_ext <<_ACEOF
4760 #line $LINENO "configure"
4761 #include "confdefs.h"
4762 #if defined(CRAY) && ! defined(CRAY2)
4769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4770 egrep "webecray" >/dev
/null
2>&1; then
4778 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4779 echo "${ECHO_T}$ac_cv_os_cray" >&6
4780 if test $ac_cv_os_cray = yes; then
4781 for ac_func
in _getb67 GETB67 getb67
; do
4782 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4783 echo "$as_me:$LINENO: checking for $ac_func" >&5
4784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4785 if eval "test \"\${$as_ac_var+set}\" = set"; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 cat >conftest.
$ac_ext <<_ACEOF
4789 #line $LINENO "configure"
4790 #include "confdefs.h"
4791 /* System header to define __stub macros and hopefully few prototypes,
4792 which can conflict with char $ac_func (); below. */
4794 /* Override any gcc2 internal prototype to avoid an error. */
4798 /* We use char because int might match the return type of a gcc2
4799 builtin and then its argument prototype would still apply. */
4803 #ifdef F77_DUMMY_MAIN
4807 int F77_DUMMY_MAIN() { return 1; }
4812 /* The GNU C library defines this for functions which it implements
4813 to always fail with ENOSYS. Some functions are actually named
4814 something starting with __ and the normal name is an alias. */
4815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4825 rm -f conftest.
$ac_objext conftest
$ac_exeext
4826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4827 (eval $ac_link) 2>&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
4831 { ac_try
='test -s conftest$ac_exeext'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; }; then
4837 eval "$as_ac_var=yes"
4839 echo "$as_me: failed program was:" >&5
4840 cat conftest.
$ac_ext >&5
4841 eval "$as_ac_var=no"
4843 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4846 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4847 if test `eval echo '${'$as_ac_var'}'` = yes; then
4849 cat >>confdefs.h
<<_ACEOF
4850 #define CRAY_STACKSEG_END $ac_func
4859 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4860 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4861 if test "${ac_cv_c_stack_direction+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 if test "$cross_compiling" = yes; then
4865 ac_cv_c_stack_direction
=0
4867 cat >conftest.
$ac_ext <<_ACEOF
4868 #line $LINENO "configure"
4869 #include "confdefs.h"
4871 find_stack_direction ()
4873 static char *addr = 0;
4878 return find_stack_direction ();
4881 return (&dummy > addr) ? 1 : -1;
4887 exit (find_stack_direction () < 0);
4890 rm -f conftest
$ac_exeext
4891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4892 (eval $ac_link) 2>&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; }; then
4901 ac_cv_c_stack_direction
=1
4903 echo "$as_me: program exited with status $ac_status" >&5
4904 echo "$as_me: failed program was:" >&5
4905 cat conftest.
$ac_ext >&5
4907 ac_cv_c_stack_direction
=-1
4909 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4912 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4913 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4915 cat >>confdefs.h
<<_ACEOF
4916 #define STACK_DIRECTION $ac_cv_c_stack_direction
4922 echo "$as_me:$LINENO: checking for obstacks" >&5
4923 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
4924 if test "${ac_cv_func_obstack+set}" = set; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 cat >conftest.
$ac_ext <<_ACEOF
4928 #line $LINENO "configure"
4929 #include "confdefs.h"
4930 #include "obstack.h"
4931 #ifdef F77_DUMMY_MAIN
4935 int F77_DUMMY_MAIN() { return 1; }
4940 struct obstack *mem; obstack_free(mem,(char *) 0)
4945 rm -f conftest.
$ac_objext conftest
$ac_exeext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4947 (eval $ac_link) 2>&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); } &&
4951 { ac_try
='test -s conftest$ac_exeext'
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; }; then
4957 ac_cv_func_obstack
=yes
4959 echo "$as_me: failed program was:" >&5
4960 cat conftest.
$ac_ext >&5
4961 ac_cv_func_obstack
=no
4963 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4965 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
4966 echo "${ECHO_T}$ac_cv_func_obstack" >&6
4967 if test $ac_cv_func_obstack = yes; then
4969 cat >>confdefs.h
<<\_ACEOF
4970 #define HAVE_OBSTACK 1
4974 LIBOBJS
="$LIBOBJS obstack.$ac_objext"
4977 echo "$as_me:$LINENO: checking for error_at_line" >&5
4978 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
4979 if test "${ac_cv_lib_error_at_line+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 cat >conftest.
$ac_ext <<_ACEOF
4983 #line $LINENO "configure"
4984 #include "confdefs.h"
4986 #ifdef F77_DUMMY_MAIN
4990 int F77_DUMMY_MAIN() { return 1; }
4995 error_at_line (0, 0, "", 0, "");
5000 rm -f conftest.
$ac_objext conftest
$ac_exeext
5001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5002 (eval $ac_link) 2>&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } &&
5006 { ac_try
='test -s conftest$ac_exeext'
5007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); }; }; then
5012 ac_cv_lib_error_at_line
=yes
5014 echo "$as_me: failed program was:" >&5
5015 cat conftest.
$ac_ext >&5
5016 ac_cv_lib_error_at_line
=no
5018 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5020 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
5021 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
5022 if test $ac_cv_lib_error_at_line = no
; then
5023 LIBOBJS
="$LIBOBJS error.$ac_objext"
5026 echo "$as_me:$LINENO: checking for working strnlen" >&5
5027 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6
5028 if test "${ac_cv_func_strnlen_working+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 if test "$cross_compiling" = yes; then
5032 ac_cv_func_strnlen_working
=no
5034 cat >conftest.
$ac_ext <<_ACEOF
5035 #line $LINENO "configure"
5036 #include "confdefs.h"
5038 #ifdef F77_DUMMY_MAIN
5042 int F77_DUMMY_MAIN() { return 1; }
5049 #define S_LEN (sizeof S - 1)
5051 /* At least one implementation is buggy: that of AIX 4.3 would
5052 give strnlen (S, 1) == 3. */
5055 for (i = 0; i < S_LEN + 1; ++i)
5057 int expected = i <= S_LEN ? i : S_LEN;
5058 if (strnlen (S, i) != expected)
5067 rm -f conftest
$ac_exeext
5068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5069 (eval $ac_link) 2>&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }; }; then
5078 ac_cv_func_strnlen_working
=yes
5080 echo "$as_me: program exited with status $ac_status" >&5
5081 echo "$as_me: failed program was:" >&5
5082 cat conftest.
$ac_ext >&5
5084 ac_cv_func_strnlen_working
=no
5086 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5089 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
5090 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6
5091 test $ac_cv_func_strnlen_working = no
&& LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
5095 for ac_func
in mkstemp setlocale
5097 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5098 echo "$as_me:$LINENO: checking for $ac_func" >&5
5099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5100 if eval "test \"\${$as_ac_var+set}\" = set"; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
5103 cat >conftest.
$ac_ext <<_ACEOF
5104 #line $LINENO "configure"
5105 #include "confdefs.h"
5106 /* System header to define __stub macros and hopefully few prototypes,
5107 which can conflict with char $ac_func (); below. */
5109 /* Override any gcc2 internal prototype to avoid an error. */
5113 /* We use char because int might match the return type of a gcc2
5114 builtin and then its argument prototype would still apply. */
5118 #ifdef F77_DUMMY_MAIN
5122 int F77_DUMMY_MAIN() { return 1; }
5127 /* The GNU C library defines this for functions which it implements
5128 to always fail with ENOSYS. Some functions are actually named
5129 something starting with __ and the normal name is an alias. */
5130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5140 rm -f conftest.
$ac_objext conftest
$ac_exeext
5141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5142 (eval $ac_link) 2>&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } &&
5146 { ac_try
='test -s conftest$ac_exeext'
5147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); }; }; then
5152 eval "$as_ac_var=yes"
5154 echo "$as_me: failed program was:" >&5
5155 cat conftest.
$ac_ext >&5
5156 eval "$as_ac_var=no"
5158 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5161 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5162 if test `eval echo '${'$as_ac_var'}'` = yes; then
5163 cat >>confdefs.h
<<_ACEOF
5164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5170 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
5171 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
5172 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5175 cat >conftest.
$ac_ext <<_ACEOF
5176 #line $LINENO "configure"
5177 #include "confdefs.h"
5178 $ac_includes_default
5179 #ifdef F77_DUMMY_MAIN
5183 int F77_DUMMY_MAIN() { return 1; }
5189 char *p = (char *) stpcpy;
5196 rm -f conftest.
$ac_objext
5197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5198 (eval $ac_compile) 2>&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } &&
5202 { ac_try
='test -s conftest.$ac_objext'
5203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; }; then
5208 ac_cv_have_decl_stpcpy
=yes
5210 echo "$as_me: failed program was:" >&5
5211 cat conftest.
$ac_ext >&5
5212 ac_cv_have_decl_stpcpy
=no
5214 rm -f conftest.
$ac_objext conftest.
$ac_ext
5216 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
5217 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
5218 if test $ac_cv_have_decl_stpcpy = yes; then
5220 cat >>confdefs.h
<<_ACEOF
5221 #define HAVE_DECL_STPCPY 1
5226 cat >>confdefs.h
<<_ACEOF
5227 #define HAVE_DECL_STPCPY 0
5232 echo "$as_me:$LINENO: checking whether strchr is declared" >&5
5233 echo $ECHO_N "checking whether strchr is declared... $ECHO_C" >&6
5234 if test "${ac_cv_have_decl_strchr+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 cat >conftest.
$ac_ext <<_ACEOF
5238 #line $LINENO "configure"
5239 #include "confdefs.h"
5240 $ac_includes_default
5241 #ifdef F77_DUMMY_MAIN
5245 int F77_DUMMY_MAIN() { return 1; }
5251 char *p = (char *) strchr;
5258 rm -f conftest.
$ac_objext
5259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5260 (eval $ac_compile) 2>&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } &&
5264 { ac_try
='test -s conftest.$ac_objext'
5265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); }; }; then
5270 ac_cv_have_decl_strchr
=yes
5272 echo "$as_me: failed program was:" >&5
5273 cat conftest.
$ac_ext >&5
5274 ac_cv_have_decl_strchr
=no
5276 rm -f conftest.
$ac_objext conftest.
$ac_ext
5278 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strchr" >&5
5279 echo "${ECHO_T}$ac_cv_have_decl_strchr" >&6
5280 if test $ac_cv_have_decl_strchr = yes; then
5282 cat >>confdefs.h
<<_ACEOF
5283 #define HAVE_DECL_STRCHR 1
5288 cat >>confdefs.h
<<_ACEOF
5289 #define HAVE_DECL_STRCHR 0
5294 echo "$as_me:$LINENO: checking whether strspn is declared" >&5
5295 echo $ECHO_N "checking whether strspn is declared... $ECHO_C" >&6
5296 if test "${ac_cv_have_decl_strspn+set}" = set; then
5297 echo $ECHO_N "(cached) $ECHO_C" >&6
5299 cat >conftest.
$ac_ext <<_ACEOF
5300 #line $LINENO "configure"
5301 #include "confdefs.h"
5302 $ac_includes_default
5303 #ifdef F77_DUMMY_MAIN
5307 int F77_DUMMY_MAIN() { return 1; }
5313 char *p = (char *) strspn;
5320 rm -f conftest.
$ac_objext
5321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5322 (eval $ac_compile) 2>&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } &&
5326 { ac_try
='test -s conftest.$ac_objext'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; }; then
5332 ac_cv_have_decl_strspn
=yes
5334 echo "$as_me: failed program was:" >&5
5335 cat conftest.
$ac_ext >&5
5336 ac_cv_have_decl_strspn
=no
5338 rm -f conftest.
$ac_objext conftest.
$ac_ext
5340 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strspn" >&5
5341 echo "${ECHO_T}$ac_cv_have_decl_strspn" >&6
5342 if test $ac_cv_have_decl_strspn = yes; then
5344 cat >>confdefs.h
<<_ACEOF
5345 #define HAVE_DECL_STRSPN 1
5350 cat >>confdefs.h
<<_ACEOF
5351 #define HAVE_DECL_STRSPN 0
5356 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
5357 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
5358 if test "${ac_cv_have_decl_strnlen+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5361 cat >conftest.
$ac_ext <<_ACEOF
5362 #line $LINENO "configure"
5363 #include "confdefs.h"
5364 $ac_includes_default
5365 #ifdef F77_DUMMY_MAIN
5369 int F77_DUMMY_MAIN() { return 1; }
5375 char *p = (char *) strnlen;
5382 rm -f conftest.
$ac_objext
5383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5384 (eval $ac_compile) 2>&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); } &&
5388 { ac_try
='test -s conftest.$ac_objext'
5389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; }; then
5394 ac_cv_have_decl_strnlen
=yes
5396 echo "$as_me: failed program was:" >&5
5397 cat conftest.
$ac_ext >&5
5398 ac_cv_have_decl_strnlen
=no
5400 rm -f conftest.
$ac_objext conftest.
$ac_ext
5402 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
5403 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
5404 if test $ac_cv_have_decl_strnlen = yes; then
5406 cat >>confdefs.h
<<_ACEOF
5407 #define HAVE_DECL_STRNLEN 1
5412 cat >>confdefs.h
<<_ACEOF
5413 #define HAVE_DECL_STRNLEN 0
5418 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
5419 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
5420 if test "${ac_cv_have_decl_memchr+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5423 cat >conftest.
$ac_ext <<_ACEOF
5424 #line $LINENO "configure"
5425 #include "confdefs.h"
5426 $ac_includes_default
5427 #ifdef F77_DUMMY_MAIN
5431 int F77_DUMMY_MAIN() { return 1; }
5437 char *p = (char *) memchr;
5444 rm -f conftest.
$ac_objext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5446 (eval $ac_compile) 2>&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } &&
5450 { ac_try
='test -s conftest.$ac_objext'
5451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; }; then
5456 ac_cv_have_decl_memchr
=yes
5458 echo "$as_me: failed program was:" >&5
5459 cat conftest.
$ac_ext >&5
5460 ac_cv_have_decl_memchr
=no
5462 rm -f conftest.
$ac_objext conftest.
$ac_ext
5464 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
5465 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
5466 if test $ac_cv_have_decl_memchr = yes; then
5468 cat >>confdefs.h
<<_ACEOF
5469 #define HAVE_DECL_MEMCHR 1
5474 cat >>confdefs.h
<<_ACEOF
5475 #define HAVE_DECL_MEMCHR 0
5480 echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
5481 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
5482 if test "${ac_cv_have_decl_memrchr+set}" = set; then
5483 echo $ECHO_N "(cached) $ECHO_C" >&6
5485 cat >conftest.
$ac_ext <<_ACEOF
5486 #line $LINENO "configure"
5487 #include "confdefs.h"
5488 $ac_includes_default
5489 #ifdef F77_DUMMY_MAIN
5493 int F77_DUMMY_MAIN() { return 1; }
5499 char *p = (char *) memrchr;
5506 rm -f conftest.
$ac_objext
5507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5508 (eval $ac_compile) 2>&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } &&
5512 { ac_try
='test -s conftest.$ac_objext'
5513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; }; then
5518 ac_cv_have_decl_memrchr
=yes
5520 echo "$as_me: failed program was:" >&5
5521 cat conftest.
$ac_ext >&5
5522 ac_cv_have_decl_memrchr
=no
5524 rm -f conftest.
$ac_objext conftest.
$ac_ext
5526 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
5527 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
5528 if test $ac_cv_have_decl_memrchr = yes; then
5530 cat >>confdefs.h
<<_ACEOF
5531 #define HAVE_DECL_MEMRCHR 1
5536 cat >>confdefs.h
<<_ACEOF
5537 #define HAVE_DECL_MEMRCHR 0
5549 for ac_func
in stpcpy strchr strspn memchr memrchr
5551 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5552 echo "$as_me:$LINENO: checking for $ac_func" >&5
5553 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5554 if eval "test \"\${$as_ac_var+set}\" = set"; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5557 cat >conftest.
$ac_ext <<_ACEOF
5558 #line $LINENO "configure"
5559 #include "confdefs.h"
5560 /* System header to define __stub macros and hopefully few prototypes,
5561 which can conflict with char $ac_func (); below. */
5563 /* Override any gcc2 internal prototype to avoid an error. */
5567 /* We use char because int might match the return type of a gcc2
5568 builtin and then its argument prototype would still apply. */
5572 #ifdef F77_DUMMY_MAIN
5576 int F77_DUMMY_MAIN() { return 1; }
5581 /* The GNU C library defines this for functions which it implements
5582 to always fail with ENOSYS. Some functions are actually named
5583 something starting with __ and the normal name is an alias. */
5584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5594 rm -f conftest.
$ac_objext conftest
$ac_exeext
5595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5596 (eval $ac_link) 2>&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } &&
5600 { ac_try
='test -s conftest$ac_exeext'
5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; }; then
5606 eval "$as_ac_var=yes"
5608 echo "$as_me: failed program was:" >&5
5609 cat conftest.
$ac_ext >&5
5610 eval "$as_ac_var=no"
5612 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5615 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5616 if test `eval echo '${'$as_ac_var'}'` = yes; then
5617 cat >>confdefs.h
<<_ACEOF
5618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5622 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
5629 cat >>confdefs.h
<<\_ACEOF
5630 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
5634 echo "$as_me:$LINENO: checking for working malloc" >&5
5635 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
5636 if test "${jm_cv_func_working_malloc+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 if test "$cross_compiling" = yes; then
5640 jm_cv_func_working_malloc
=no
5642 cat >conftest.
$ac_ext <<_ACEOF
5643 #line $LINENO "configure"
5644 #include "confdefs.h"
5650 exit (malloc (0) ? 0 : 1);
5654 rm -f conftest
$ac_exeext
5655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5656 (eval $ac_link) 2>&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); }; }; then
5665 jm_cv_func_working_malloc
=yes
5667 echo "$as_me: program exited with status $ac_status" >&5
5668 echo "$as_me: failed program was:" >&5
5669 cat conftest.
$ac_ext >&5
5671 jm_cv_func_working_malloc
=no
5673 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5677 echo "$as_me:$LINENO: result: $jm_cv_func_working_malloc" >&5
5678 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
5679 if test $jm_cv_func_working_malloc = no
; then
5680 LIBOBJS
="$LIBOBJS malloc.$ac_objext"
5682 cat >>confdefs.h
<<\_ACEOF
5683 #define malloc rpl_malloc
5690 cat >>confdefs.h
<<\_ACEOF
5691 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
5695 echo "$as_me:$LINENO: checking for working realloc" >&5
5696 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
5697 if test "${jm_cv_func_working_realloc+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 if test "$cross_compiling" = yes; then
5701 jm_cv_func_working_realloc
=no
5703 cat >conftest.
$ac_ext <<_ACEOF
5704 #line $LINENO "configure"
5705 #include "confdefs.h"
5711 exit (realloc (0, 0) ? 0 : 1);
5715 rm -f conftest
$ac_exeext
5716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5717 (eval $ac_link) 2>&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; }; then
5726 jm_cv_func_working_realloc
=yes
5728 echo "$as_me: program exited with status $ac_status" >&5
5729 echo "$as_me: failed program was:" >&5
5730 cat conftest.
$ac_ext >&5
5732 jm_cv_func_working_realloc
=no
5734 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5738 echo "$as_me:$LINENO: result: $jm_cv_func_working_realloc" >&5
5739 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
5740 if test $jm_cv_func_working_realloc = no
; then
5741 LIBOBJS
="$LIBOBJS realloc.$ac_objext"
5743 cat >>confdefs.h
<<\_ACEOF
5744 #define realloc rpl_realloc
5753 for ac_func
in isascii iswprint mbsinit
5755 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5756 echo "$as_me:$LINENO: checking for $ac_func" >&5
5757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5758 if eval "test \"\${$as_ac_var+set}\" = set"; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 cat >conftest.
$ac_ext <<_ACEOF
5762 #line $LINENO "configure"
5763 #include "confdefs.h"
5764 /* System header to define __stub macros and hopefully few prototypes,
5765 which can conflict with char $ac_func (); below. */
5767 /* Override any gcc2 internal prototype to avoid an error. */
5771 /* We use char because int might match the return type of a gcc2
5772 builtin and then its argument prototype would still apply. */
5776 #ifdef F77_DUMMY_MAIN
5780 int F77_DUMMY_MAIN() { return 1; }
5785 /* The GNU C library defines this for functions which it implements
5786 to always fail with ENOSYS. Some functions are actually named
5787 something starting with __ and the normal name is an alias. */
5788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5798 rm -f conftest.
$ac_objext conftest
$ac_exeext
5799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5800 (eval $ac_link) 2>&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } &&
5804 { ac_try
='test -s conftest$ac_exeext'
5805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; }; then
5810 eval "$as_ac_var=yes"
5812 echo "$as_me: failed program was:" >&5
5813 cat conftest.
$ac_ext >&5
5814 eval "$as_ac_var=no"
5816 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5819 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5820 if test `eval echo '${'$as_ac_var'}'` = yes; then
5821 cat >>confdefs.h
<<_ACEOF
5822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5829 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
5830 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
5831 if test "${jm_cv_func_mbrtowc+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 cat >conftest.
$ac_ext <<_ACEOF
5835 #line $LINENO "configure"
5836 #include "confdefs.h"
5838 #ifdef F77_DUMMY_MAIN
5842 int F77_DUMMY_MAIN() { return 1; }
5847 mbstate_t state; return ! (sizeof state && mbrtowc);
5852 rm -f conftest.
$ac_objext conftest
$ac_exeext
5853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5854 (eval $ac_link) 2>&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); } &&
5858 { ac_try
='test -s conftest$ac_exeext'
5859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; }; then
5864 jm_cv_func_mbrtowc
=yes
5866 echo "$as_me: failed program was:" >&5
5867 cat conftest.
$ac_ext >&5
5868 jm_cv_func_mbrtowc
=no
5870 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5872 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
5873 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
5874 if test $jm_cv_func_mbrtowc = yes; then
5876 cat >>confdefs.h
<<\_ACEOF
5877 #define HAVE_MBRTOWC 1
5888 for ac_header
in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
5890 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5892 echo "$as_me:$LINENO: checking for $ac_header" >&5
5893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5900 # Is the header compilable?
5901 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5903 cat >conftest.
$ac_ext <<_ACEOF
5904 #line $LINENO "configure"
5905 #include "confdefs.h"
5906 $ac_includes_default
5907 #include <$ac_header>
5909 rm -f conftest.
$ac_objext
5910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5911 (eval $ac_compile) 2>&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } &&
5915 { ac_try
='test -s conftest.$ac_objext'
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; }; then
5921 ac_header_compiler
=yes
5923 echo "$as_me: failed program was:" >&5
5924 cat conftest.
$ac_ext >&5
5925 ac_header_compiler
=no
5927 rm -f conftest.
$ac_objext conftest.
$ac_ext
5928 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5929 echo "${ECHO_T}$ac_header_compiler" >&6
5931 # Is the header present?
5932 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5933 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5934 cat >conftest.
$ac_ext <<_ACEOF
5935 #line $LINENO "configure"
5936 #include "confdefs.h"
5937 #include <$ac_header>
5939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5940 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5942 egrep -v '^ *\+' conftest.er1
>conftest.err
5944 cat conftest.err
>&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } >/dev
/null
; then
5947 if test -s conftest.err
; then
5948 ac_cpp_err
=$ac_c_preproc_warn_flag
5955 if test -z "$ac_cpp_err"; then
5956 ac_header_preproc
=yes
5958 echo "$as_me: failed program was:" >&5
5959 cat conftest.
$ac_ext >&5
5960 ac_header_preproc
=no
5962 rm -f conftest.err conftest.
$ac_ext
5963 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5964 echo "${ECHO_T}$ac_header_preproc" >&6
5966 # So? What about this header?
5967 case $ac_header_compiler:$ac_header_preproc in
5969 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5970 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5972 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5974 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5975 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5976 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5977 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5981 echo "$as_me:$LINENO: checking for $ac_header" >&5
5982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5986 eval "$as_ac_Header=$ac_header_preproc"
5988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5993 cat >>confdefs.h
<<_ACEOF
5994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6001 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6002 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6003 if test "${ac_cv_header_stdc+set}" = set; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
6006 cat >conftest.
$ac_ext <<_ACEOF
6007 #line $LINENO "configure"
6008 #include "confdefs.h"
6015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6016 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6018 egrep -v '^ *\+' conftest.er1
>conftest.err
6020 cat conftest.err
>&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } >/dev
/null
; then
6023 if test -s conftest.err
; then
6024 ac_cpp_err
=$ac_c_preproc_warn_flag
6031 if test -z "$ac_cpp_err"; then
6032 ac_cv_header_stdc
=yes
6034 echo "$as_me: failed program was:" >&5
6035 cat conftest.
$ac_ext >&5
6036 ac_cv_header_stdc
=no
6038 rm -f conftest.err conftest.
$ac_ext
6040 if test $ac_cv_header_stdc = yes; then
6041 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6042 cat >conftest.
$ac_ext <<_ACEOF
6043 #line $LINENO "configure"
6044 #include "confdefs.h"
6048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6049 egrep "memchr" >/dev
/null
2>&1; then
6052 ac_cv_header_stdc
=no
6058 if test $ac_cv_header_stdc = yes; then
6059 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6060 cat >conftest.
$ac_ext <<_ACEOF
6061 #line $LINENO "configure"
6062 #include "confdefs.h"
6066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6067 egrep "free" >/dev
/null
2>&1; then
6070 ac_cv_header_stdc
=no
6076 if test $ac_cv_header_stdc = yes; then
6077 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6078 if test "$cross_compiling" = yes; then
6081 cat >conftest.
$ac_ext <<_ACEOF
6082 #line $LINENO "configure"
6083 #include "confdefs.h"
6085 #if ((' ' & 0x0FF) == 0x020)
6086 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6087 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6089 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6090 || ('j' <= (c) && (c) <= 'r') \
6091 || ('s' <= (c) && (c) <= 'z'))
6092 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6095 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6100 for (i = 0; i < 256; i++)
6101 if (XOR (islower (i), ISLOWER (i))
6102 || toupper (i) != TOUPPER (i))
6107 rm -f conftest
$ac_exeext
6108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6109 (eval $ac_link) 2>&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; }; then
6120 echo "$as_me: program exited with status $ac_status" >&5
6121 echo "$as_me: failed program was:" >&5
6122 cat conftest.
$ac_ext >&5
6124 ac_cv_header_stdc
=no
6126 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6130 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6131 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6132 if test $ac_cv_header_stdc = yes; then
6134 cat >>confdefs.h
<<\_ACEOF
6135 #define STDC_HEADERS 1
6141 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
6142 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
6143 if test "${ac_cv_c_backslash_a+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 cat >conftest.
$ac_ext <<_ACEOF
6147 #line $LINENO "configure"
6148 #include "confdefs.h"
6150 #ifdef F77_DUMMY_MAIN
6154 int F77_DUMMY_MAIN() { return 1; }
6163 char buf['\a' == 'a' ? -1 : 1];
6165 return buf[0] != "\a"[0];
6171 rm -f conftest.
$ac_objext
6172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6173 (eval $ac_compile) 2>&5
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); } &&
6177 { ac_try
='test -s conftest.$ac_objext'
6178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }; }; then
6183 ac_cv_c_backslash_a
=yes
6185 echo "$as_me: failed program was:" >&5
6186 cat conftest.
$ac_ext >&5
6187 ac_cv_c_backslash_a
=no
6189 rm -f conftest.
$ac_objext conftest.
$ac_ext
6191 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
6192 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
6193 if test $ac_cv_c_backslash_a = yes; then
6195 cat >>confdefs.h
<<\_ACEOF
6196 #define HAVE_C_BACKSLASH_A 1
6203 for ac_header
in stdlib.h
6205 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6207 echo "$as_me:$LINENO: checking for $ac_header" >&5
6208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6215 # Is the header compilable?
6216 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6218 cat >conftest.
$ac_ext <<_ACEOF
6219 #line $LINENO "configure"
6220 #include "confdefs.h"
6221 $ac_includes_default
6222 #include <$ac_header>
6224 rm -f conftest.
$ac_objext
6225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6226 (eval $ac_compile) 2>&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } &&
6230 { ac_try
='test -s conftest.$ac_objext'
6231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); }; }; then
6236 ac_header_compiler
=yes
6238 echo "$as_me: failed program was:" >&5
6239 cat conftest.
$ac_ext >&5
6240 ac_header_compiler
=no
6242 rm -f conftest.
$ac_objext conftest.
$ac_ext
6243 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6244 echo "${ECHO_T}$ac_header_compiler" >&6
6246 # Is the header present?
6247 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6249 cat >conftest.
$ac_ext <<_ACEOF
6250 #line $LINENO "configure"
6251 #include "confdefs.h"
6252 #include <$ac_header>
6254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6255 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6257 egrep -v '^ *\+' conftest.er1
>conftest.err
6259 cat conftest.err
>&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } >/dev
/null
; then
6262 if test -s conftest.err
; then
6263 ac_cpp_err
=$ac_c_preproc_warn_flag
6270 if test -z "$ac_cpp_err"; then
6271 ac_header_preproc
=yes
6273 echo "$as_me: failed program was:" >&5
6274 cat conftest.
$ac_ext >&5
6275 ac_header_preproc
=no
6277 rm -f conftest.err conftest.
$ac_ext
6278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6279 echo "${ECHO_T}$ac_header_preproc" >&6
6281 # So? What about this header?
6282 case $ac_header_compiler:$ac_header_preproc in
6284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6296 echo "$as_me:$LINENO: checking for $ac_header" >&5
6297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 eval "$as_ac_Header=$ac_header_preproc"
6303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6308 cat >>confdefs.h
<<_ACEOF
6309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6317 echo "$as_me:$LINENO: checking for mbstate_t" >&5
6318 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
6319 if test "${ac_cv_type_mbstate_t+set}" = set; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
6322 cat >conftest.
$ac_ext <<_ACEOF
6323 #line $LINENO "configure"
6324 #include "confdefs.h"
6327 # include <stdlib.h>
6330 #ifdef F77_DUMMY_MAIN
6334 int F77_DUMMY_MAIN() { return 1; }
6339 mbstate_t x; return sizeof x;
6344 rm -f conftest.
$ac_objext
6345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6346 (eval $ac_compile) 2>&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } &&
6350 { ac_try
='test -s conftest.$ac_objext'
6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
6356 ac_cv_type_mbstate_t
=yes
6358 echo "$as_me: failed program was:" >&5
6359 cat conftest.
$ac_ext >&5
6360 ac_cv_type_mbstate_t
=no
6362 rm -f conftest.
$ac_objext conftest.
$ac_ext
6364 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
6365 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
6366 if test $ac_cv_type_mbstate_t = no
; then
6368 cat >>confdefs.h
<<\_ACEOF
6369 #define mbstate_t int
6375 echo "$as_me:$LINENO: checking for function prototypes" >&5
6376 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6377 if test "$am_cv_prog_cc_stdc" != no
; then
6378 echo "$as_me:$LINENO: result: yes" >&5
6379 echo "${ECHO_T}yes" >&6
6381 cat >>confdefs.h
<<\_ACEOF
6382 #define PROTOTYPES 1
6387 echo "$as_me:$LINENO: result: no" >&5
6388 echo "${ECHO_T}no" >&6
6389 U
=_ ANSI2KNR
=.
/ansi2knr
6391 # Ensure some checks needed by ansi2knr itself.
6392 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6393 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6394 if test "${ac_cv_header_stdc+set}" = set; then
6395 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 cat >conftest.
$ac_ext <<_ACEOF
6398 #line $LINENO "configure"
6399 #include "confdefs.h"
6406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6407 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6409 egrep -v '^ *\+' conftest.er1
>conftest.err
6411 cat conftest.err
>&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } >/dev
/null
; then
6414 if test -s conftest.err
; then
6415 ac_cpp_err
=$ac_c_preproc_warn_flag
6422 if test -z "$ac_cpp_err"; then
6423 ac_cv_header_stdc
=yes
6425 echo "$as_me: failed program was:" >&5
6426 cat conftest.
$ac_ext >&5
6427 ac_cv_header_stdc
=no
6429 rm -f conftest.err conftest.
$ac_ext
6431 if test $ac_cv_header_stdc = yes; then
6432 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6433 cat >conftest.
$ac_ext <<_ACEOF
6434 #line $LINENO "configure"
6435 #include "confdefs.h"
6439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6440 egrep "memchr" >/dev
/null
2>&1; then
6443 ac_cv_header_stdc
=no
6449 if test $ac_cv_header_stdc = yes; then
6450 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6451 cat >conftest.
$ac_ext <<_ACEOF
6452 #line $LINENO "configure"
6453 #include "confdefs.h"
6457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6458 egrep "free" >/dev
/null
2>&1; then
6461 ac_cv_header_stdc
=no
6467 if test $ac_cv_header_stdc = yes; then
6468 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6469 if test "$cross_compiling" = yes; then
6472 cat >conftest.
$ac_ext <<_ACEOF
6473 #line $LINENO "configure"
6474 #include "confdefs.h"
6476 #if ((' ' & 0x0FF) == 0x020)
6477 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6478 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6480 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6481 || ('j' <= (c) && (c) <= 'r') \
6482 || ('s' <= (c) && (c) <= 'z'))
6483 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6486 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6491 for (i = 0; i < 256; i++)
6492 if (XOR (islower (i), ISLOWER (i))
6493 || toupper (i) != TOUPPER (i))
6498 rm -f conftest
$ac_exeext
6499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6500 (eval $ac_link) 2>&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; }; then
6511 echo "$as_me: program exited with status $ac_status" >&5
6512 echo "$as_me: failed program was:" >&5
6513 cat conftest.
$ac_ext >&5
6515 ac_cv_header_stdc
=no
6517 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6521 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6522 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6523 if test $ac_cv_header_stdc = yes; then
6525 cat >>confdefs.h
<<\_ACEOF
6526 #define STDC_HEADERS 1
6532 for ac_header
in string.h
6534 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6536 echo "$as_me:$LINENO: checking for $ac_header" >&5
6537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
6541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6544 # Is the header compilable?
6545 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6547 cat >conftest.
$ac_ext <<_ACEOF
6548 #line $LINENO "configure"
6549 #include "confdefs.h"
6550 $ac_includes_default
6551 #include <$ac_header>
6553 rm -f conftest.
$ac_objext
6554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6555 (eval $ac_compile) 2>&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } &&
6559 { ac_try
='test -s conftest.$ac_objext'
6560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); }; }; then
6565 ac_header_compiler
=yes
6567 echo "$as_me: failed program was:" >&5
6568 cat conftest.
$ac_ext >&5
6569 ac_header_compiler
=no
6571 rm -f conftest.
$ac_objext conftest.
$ac_ext
6572 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6573 echo "${ECHO_T}$ac_header_compiler" >&6
6575 # Is the header present?
6576 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6577 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6578 cat >conftest.
$ac_ext <<_ACEOF
6579 #line $LINENO "configure"
6580 #include "confdefs.h"
6581 #include <$ac_header>
6583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6584 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6586 egrep -v '^ *\+' conftest.er1
>conftest.err
6588 cat conftest.err
>&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } >/dev
/null
; then
6591 if test -s conftest.err
; then
6592 ac_cpp_err
=$ac_c_preproc_warn_flag
6599 if test -z "$ac_cpp_err"; then
6600 ac_header_preproc
=yes
6602 echo "$as_me: failed program was:" >&5
6603 cat conftest.
$ac_ext >&5
6604 ac_header_preproc
=no
6606 rm -f conftest.err conftest.
$ac_ext
6607 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6608 echo "${ECHO_T}$ac_header_preproc" >&6
6610 # So? What about this header?
6611 case $ac_header_compiler:$ac_header_preproc in
6613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6621 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6625 echo "$as_me:$LINENO: checking for $ac_header" >&5
6626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 eval "$as_ac_Header=$ac_header_preproc"
6632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6637 cat >>confdefs.h
<<_ACEOF
6638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6651 for ac_func
in strerror vprintf doprnt
6653 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6654 echo "$as_me:$LINENO: checking for $ac_func" >&5
6655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6656 if eval "test \"\${$as_ac_var+set}\" = set"; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6659 cat >conftest.
$ac_ext <<_ACEOF
6660 #line $LINENO "configure"
6661 #include "confdefs.h"
6662 /* System header to define __stub macros and hopefully few prototypes,
6663 which can conflict with char $ac_func (); below. */
6665 /* Override any gcc2 internal prototype to avoid an error. */
6669 /* We use char because int might match the return type of a gcc2
6670 builtin and then its argument prototype would still apply. */
6674 #ifdef F77_DUMMY_MAIN
6678 int F77_DUMMY_MAIN() { return 1; }
6683 /* The GNU C library defines this for functions which it implements
6684 to always fail with ENOSYS. Some functions are actually named
6685 something starting with __ and the normal name is an alias. */
6686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6696 rm -f conftest.
$ac_objext conftest
$ac_exeext
6697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6698 (eval $ac_link) 2>&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } &&
6702 { ac_try
='test -s conftest$ac_exeext'
6703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); }; }; then
6708 eval "$as_ac_var=yes"
6710 echo "$as_me: failed program was:" >&5
6711 cat conftest.
$ac_ext >&5
6712 eval "$as_ac_var=no"
6714 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6717 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6718 if test `eval echo '${'$as_ac_var'}'` = yes; then
6719 cat >>confdefs.h
<<_ACEOF
6720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6726 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
6727 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
6728 if test "${ac_cv_have_decl_strerror+set}" = set; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
6731 cat >conftest.
$ac_ext <<_ACEOF
6732 #line $LINENO "configure"
6733 #include "confdefs.h"
6734 $ac_includes_default
6735 #ifdef F77_DUMMY_MAIN
6739 int F77_DUMMY_MAIN() { return 1; }
6745 char *p = (char *) strerror;
6752 rm -f conftest.
$ac_objext
6753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6754 (eval $ac_compile) 2>&5
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); } &&
6758 { ac_try
='test -s conftest.$ac_objext'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; }; then
6764 ac_cv_have_decl_strerror
=yes
6766 echo "$as_me: failed program was:" >&5
6767 cat conftest.
$ac_ext >&5
6768 ac_cv_have_decl_strerror
=no
6770 rm -f conftest.
$ac_objext conftest.
$ac_ext
6772 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
6773 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
6774 if test $ac_cv_have_decl_strerror = yes; then
6776 cat >>confdefs.h
<<_ACEOF
6777 #define HAVE_DECL_STRERROR 1
6782 cat >>confdefs.h
<<_ACEOF
6783 #define HAVE_DECL_STRERROR 0
6790 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
6791 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
6792 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6795 cat >conftest.
$ac_ext <<_ACEOF
6796 #line $LINENO "configure"
6797 #include "confdefs.h"
6798 $ac_includes_default
6799 #ifdef F77_DUMMY_MAIN
6803 int F77_DUMMY_MAIN() { return 1; }
6809 char *p = (char *) strerror_r;
6816 rm -f conftest.
$ac_objext
6817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6818 (eval $ac_compile) 2>&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); } &&
6822 { ac_try
='test -s conftest.$ac_objext'
6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; }; then
6828 ac_cv_have_decl_strerror_r
=yes
6830 echo "$as_me: failed program was:" >&5
6831 cat conftest.
$ac_ext >&5
6832 ac_cv_have_decl_strerror_r
=no
6834 rm -f conftest.
$ac_objext conftest.
$ac_ext
6836 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
6837 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
6838 if test $ac_cv_have_decl_strerror_r = yes; then
6840 cat >>confdefs.h
<<_ACEOF
6841 #define HAVE_DECL_STRERROR_R 1
6846 cat >>confdefs.h
<<_ACEOF
6847 #define HAVE_DECL_STRERROR_R 0
6855 for ac_func
in strerror_r
6857 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6858 echo "$as_me:$LINENO: checking for $ac_func" >&5
6859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6860 if eval "test \"\${$as_ac_var+set}\" = set"; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 cat >conftest.
$ac_ext <<_ACEOF
6864 #line $LINENO "configure"
6865 #include "confdefs.h"
6866 /* System header to define __stub macros and hopefully few prototypes,
6867 which can conflict with char $ac_func (); below. */
6869 /* Override any gcc2 internal prototype to avoid an error. */
6873 /* We use char because int might match the return type of a gcc2
6874 builtin and then its argument prototype would still apply. */
6878 #ifdef F77_DUMMY_MAIN
6882 int F77_DUMMY_MAIN() { return 1; }
6887 /* The GNU C library defines this for functions which it implements
6888 to always fail with ENOSYS. Some functions are actually named
6889 something starting with __ and the normal name is an alias. */
6890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6900 rm -f conftest.
$ac_objext conftest
$ac_exeext
6901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6902 (eval $ac_link) 2>&5
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } &&
6906 { ac_try
='test -s conftest$ac_exeext'
6907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); }; }; then
6912 eval "$as_ac_var=yes"
6914 echo "$as_me: failed program was:" >&5
6915 cat conftest.
$ac_ext >&5
6916 eval "$as_ac_var=no"
6918 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6921 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6922 if test `eval echo '${'$as_ac_var'}'` = yes; then
6923 cat >>confdefs.h
<<_ACEOF
6924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6930 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
6931 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
6932 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
6936 ac_cv_func_strerror_r_char_p
=no
6937 if test $ac_cv_have_decl_strerror_r = yes; then
6938 cat >conftest.
$ac_ext <<_ACEOF
6939 #line $LINENO "configure"
6940 #include "confdefs.h"
6941 $ac_includes_default
6942 #ifdef F77_DUMMY_MAIN
6946 int F77_DUMMY_MAIN() { return 1; }
6953 char x = *strerror_r (0, buf, sizeof buf);
6954 char *p = strerror_r (0, buf, sizeof buf);
6960 rm -f conftest.
$ac_objext
6961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6962 (eval $ac_compile) 2>&5
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } &&
6966 { ac_try
='test -s conftest.$ac_objext'
6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; }; then
6972 ac_cv_func_strerror_r_char_p
=yes
6974 echo "$as_me: failed program was:" >&5
6975 cat conftest.
$ac_ext >&5
6977 rm -f conftest.
$ac_objext conftest.
$ac_ext
6979 # strerror_r is not declared. Choose between
6980 # systems that have relatively inaccessible declarations for the
6981 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
6982 # former has a strerror_r that returns char*, while the latter
6983 # has a strerror_r that returns `int'.
6984 # This test should segfault on the DEC system.
6985 if test "$cross_compiling" = yes; then
6988 cat >conftest.
$ac_ext <<_ACEOF
6989 #line $LINENO "configure"
6990 #include "confdefs.h"
6991 $ac_includes_default
6992 extern char *strerror_r ();
6993 #ifdef F77_DUMMY_MAIN
6997 int F77_DUMMY_MAIN() { return 1; }
7003 char x = *strerror_r (0, buf, sizeof buf);
7004 exit (!isalpha (x));
7009 rm -f conftest
$ac_exeext
7010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7011 (eval $ac_link) 2>&5
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); }; }; then
7020 ac_cv_func_strerror_r_char_p
=yes
7022 echo "$as_me: program exited with status $ac_status" >&5
7023 echo "$as_me: failed program was:" >&5
7024 cat conftest.
$ac_ext >&5
7026 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7031 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
7032 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
7033 if test $ac_cv_func_strerror_r_char_p = yes; then
7035 cat >>confdefs.h
<<\_ACEOF
7036 #define STRERROR_R_CHAR_P 1
7041 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7043 if test "${ac_cv_header_stdc+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 cat >conftest.
$ac_ext <<_ACEOF
7047 #line $LINENO "configure"
7048 #include "confdefs.h"
7055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7056 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7058 egrep -v '^ *\+' conftest.er1
>conftest.err
7060 cat conftest.err
>&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } >/dev
/null
; then
7063 if test -s conftest.err
; then
7064 ac_cpp_err
=$ac_c_preproc_warn_flag
7071 if test -z "$ac_cpp_err"; then
7072 ac_cv_header_stdc
=yes
7074 echo "$as_me: failed program was:" >&5
7075 cat conftest.
$ac_ext >&5
7076 ac_cv_header_stdc
=no
7078 rm -f conftest.err conftest.
$ac_ext
7080 if test $ac_cv_header_stdc = yes; then
7081 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7082 cat >conftest.
$ac_ext <<_ACEOF
7083 #line $LINENO "configure"
7084 #include "confdefs.h"
7088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7089 egrep "memchr" >/dev
/null
2>&1; then
7092 ac_cv_header_stdc
=no
7098 if test $ac_cv_header_stdc = yes; then
7099 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7100 cat >conftest.
$ac_ext <<_ACEOF
7101 #line $LINENO "configure"
7102 #include "confdefs.h"
7106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7107 egrep "free" >/dev
/null
2>&1; then
7110 ac_cv_header_stdc
=no
7116 if test $ac_cv_header_stdc = yes; then
7117 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7118 if test "$cross_compiling" = yes; then
7121 cat >conftest.
$ac_ext <<_ACEOF
7122 #line $LINENO "configure"
7123 #include "confdefs.h"
7125 #if ((' ' & 0x0FF) == 0x020)
7126 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7127 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7129 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7130 || ('j' <= (c) && (c) <= 'r') \
7131 || ('s' <= (c) && (c) <= 'z'))
7132 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7135 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7140 for (i = 0; i < 256; i++)
7141 if (XOR (islower (i), ISLOWER (i))
7142 || toupper (i) != TOUPPER (i))
7147 rm -f conftest
$ac_exeext
7148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7149 (eval $ac_link) 2>&5
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); }; }; then
7160 echo "$as_me: program exited with status $ac_status" >&5
7161 echo "$as_me: failed program was:" >&5
7162 cat conftest.
$ac_ext >&5
7164 ac_cv_header_stdc
=no
7166 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7170 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7171 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7172 if test $ac_cv_header_stdc = yes; then
7174 cat >>confdefs.h
<<\_ACEOF
7175 #define STDC_HEADERS 1
7181 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
7182 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
7184 # Check whether --with-dmalloc or --without-dmalloc was given.
7185 if test "${with_dmalloc+set}" = set; then
7186 withval
="$with_dmalloc"
7187 if test "$withval" = yes; then
7188 echo "$as_me:$LINENO: result: yes" >&5
7189 echo "${ECHO_T}yes" >&6
7191 cat >>confdefs.h
<<\_ACEOF
7192 #define WITH_DMALLOC 1
7195 LIBS
="$LIBS -ldmalloc"
7196 LDFLAGS
="$LDFLAGS -g"
7198 echo "$as_me:$LINENO: result: no" >&5
7199 echo "${ECHO_T}no" >&6
7202 echo "$as_me:$LINENO: result: no" >&5
7203 echo "${ECHO_T}no" >&6
7207 ALL_LINGUAS
="de es et fr it ja nl ru sv tr"
7208 # Make sure we can run config.sub.
7209 $ac_config_sub sun4
>/dev
/null
2>&1 ||
7210 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
7211 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
7212 { (exit 1); exit 1; }; }
7214 echo "$as_me:$LINENO: checking build system type" >&5
7215 echo $ECHO_N "checking build system type... $ECHO_C" >&6
7216 if test "${ac_cv_build+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 ac_cv_build_alias
=$build_alias
7220 test -z "$ac_cv_build_alias" &&
7221 ac_cv_build_alias
=`$ac_config_guess`
7222 test -z "$ac_cv_build_alias" &&
7223 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
7224 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
7225 { (exit 1); exit 1; }; }
7226 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
7227 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed." >&5
7228 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
7229 { (exit 1); exit 1; }; }
7232 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
7233 echo "${ECHO_T}$ac_cv_build" >&6
7235 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7236 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7237 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7240 echo "$as_me:$LINENO: checking host system type" >&5
7241 echo $ECHO_N "checking host system type... $ECHO_C" >&6
7242 if test "${ac_cv_host+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7245 ac_cv_host_alias
=$host_alias
7246 test -z "$ac_cv_host_alias" &&
7247 ac_cv_host_alias
=$ac_cv_build_alias
7248 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
7249 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
7250 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
7251 { (exit 1); exit 1; }; }
7254 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7255 echo "${ECHO_T}$ac_cv_host" >&6
7257 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7258 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7259 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7262 echo "$as_me:$LINENO: checking for off_t" >&5
7263 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7264 if test "${ac_cv_type_off_t+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 cat >conftest.
$ac_ext <<_ACEOF
7268 #line $LINENO "configure"
7269 #include "confdefs.h"
7270 $ac_includes_default
7271 #ifdef F77_DUMMY_MAIN
7275 int F77_DUMMY_MAIN() { return 1; }
7288 rm -f conftest.
$ac_objext
7289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7290 (eval $ac_compile) 2>&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); } &&
7294 { ac_try
='test -s conftest.$ac_objext'
7295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); }; }; then
7300 ac_cv_type_off_t
=yes
7302 echo "$as_me: failed program was:" >&5
7303 cat conftest.
$ac_ext >&5
7306 rm -f conftest.
$ac_objext conftest.
$ac_ext
7308 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7309 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7310 if test $ac_cv_type_off_t = yes; then
7314 cat >>confdefs.h
<<_ACEOF
7320 echo "$as_me:$LINENO: checking for size_t" >&5
7321 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7322 if test "${ac_cv_type_size_t+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 cat >conftest.
$ac_ext <<_ACEOF
7326 #line $LINENO "configure"
7327 #include "confdefs.h"
7328 $ac_includes_default
7329 #ifdef F77_DUMMY_MAIN
7333 int F77_DUMMY_MAIN() { return 1; }
7340 if (sizeof (size_t))
7346 rm -f conftest.
$ac_objext
7347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7348 (eval $ac_compile) 2>&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } &&
7352 { ac_try
='test -s conftest.$ac_objext'
7353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); }; }; then
7358 ac_cv_type_size_t
=yes
7360 echo "$as_me: failed program was:" >&5
7361 cat conftest.
$ac_ext >&5
7362 ac_cv_type_size_t
=no
7364 rm -f conftest.
$ac_objext conftest.
$ac_ext
7366 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7367 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7368 if test $ac_cv_type_size_t = yes; then
7372 cat >>confdefs.h
<<_ACEOF
7373 #define size_t unsigned
7380 for ac_header
in stdlib.h unistd.h
7382 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7384 echo "$as_me:$LINENO: checking for $ac_header" >&5
7385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7392 # Is the header compilable?
7393 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7395 cat >conftest.
$ac_ext <<_ACEOF
7396 #line $LINENO "configure"
7397 #include "confdefs.h"
7398 $ac_includes_default
7399 #include <$ac_header>
7401 rm -f conftest.
$ac_objext
7402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7403 (eval $ac_compile) 2>&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); } &&
7407 { ac_try
='test -s conftest.$ac_objext'
7408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); }; }; then
7413 ac_header_compiler
=yes
7415 echo "$as_me: failed program was:" >&5
7416 cat conftest.
$ac_ext >&5
7417 ac_header_compiler
=no
7419 rm -f conftest.
$ac_objext conftest.
$ac_ext
7420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7421 echo "${ECHO_T}$ac_header_compiler" >&6
7423 # Is the header present?
7424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7426 cat >conftest.
$ac_ext <<_ACEOF
7427 #line $LINENO "configure"
7428 #include "confdefs.h"
7429 #include <$ac_header>
7431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7432 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7434 egrep -v '^ *\+' conftest.er1
>conftest.err
7436 cat conftest.err
>&5
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); } >/dev
/null
; then
7439 if test -s conftest.err
; then
7440 ac_cpp_err
=$ac_c_preproc_warn_flag
7447 if test -z "$ac_cpp_err"; then
7448 ac_header_preproc
=yes
7450 echo "$as_me: failed program was:" >&5
7451 cat conftest.
$ac_ext >&5
7452 ac_header_preproc
=no
7454 rm -f conftest.err conftest.
$ac_ext
7455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7456 echo "${ECHO_T}$ac_header_preproc" >&6
7458 # So? What about this header?
7459 case $ac_header_compiler:$ac_header_preproc in
7461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7473 echo "$as_me:$LINENO: checking for $ac_header" >&5
7474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7478 eval "$as_ac_Header=$ac_header_preproc"
7480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7485 cat >>confdefs.h
<<_ACEOF
7486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7494 for ac_func
in getpagesize
7496 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7497 echo "$as_me:$LINENO: checking for $ac_func" >&5
7498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7499 if eval "test \"\${$as_ac_var+set}\" = set"; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 cat >conftest.
$ac_ext <<_ACEOF
7503 #line $LINENO "configure"
7504 #include "confdefs.h"
7505 /* System header to define __stub macros and hopefully few prototypes,
7506 which can conflict with char $ac_func (); below. */
7508 /* Override any gcc2 internal prototype to avoid an error. */
7512 /* We use char because int might match the return type of a gcc2
7513 builtin and then its argument prototype would still apply. */
7517 #ifdef F77_DUMMY_MAIN
7521 int F77_DUMMY_MAIN() { return 1; }
7526 /* The GNU C library defines this for functions which it implements
7527 to always fail with ENOSYS. Some functions are actually named
7528 something starting with __ and the normal name is an alias. */
7529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7539 rm -f conftest.
$ac_objext conftest
$ac_exeext
7540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7541 (eval $ac_link) 2>&5
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); } &&
7545 { ac_try
='test -s conftest$ac_exeext'
7546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); }; }; then
7551 eval "$as_ac_var=yes"
7553 echo "$as_me: failed program was:" >&5
7554 cat conftest.
$ac_ext >&5
7555 eval "$as_ac_var=no"
7557 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7560 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7561 if test `eval echo '${'$as_ac_var'}'` = yes; then
7562 cat >>confdefs.h
<<_ACEOF
7563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7569 echo "$as_me:$LINENO: checking for working mmap" >&5
7570 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7571 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7574 if test "$cross_compiling" = yes; then
7575 ac_cv_func_mmap_fixed_mapped
=no
7577 cat >conftest.
$ac_ext <<_ACEOF
7578 #line $LINENO "configure"
7579 #include "confdefs.h"
7580 $ac_includes_default
7581 /* malloc might have been renamed as rpl_malloc. */
7584 /* Thanks to Mike Haertel and Jim Avera for this test.
7585 Here is a matrix of mmap possibilities:
7586 mmap private not fixed
7587 mmap private fixed at somewhere currently unmapped
7588 mmap private fixed at somewhere already mapped
7589 mmap shared not fixed
7590 mmap shared fixed at somewhere currently unmapped
7591 mmap shared fixed at somewhere already mapped
7592 For private mappings, we should verify that changes cannot be read()
7593 back from the file, nor mmap's back from the file at a different
7594 address. (There have been systems where private was not correctly
7595 implemented like the infamous i386 svr4.0, and systems where the
7596 VM page cache was not coherent with the file system buffer cache
7597 like early versions of FreeBSD and possibly contemporary NetBSD.)
7598 For shared mappings, we should conversely verify that changes get
7599 propagated back to all the places they're supposed to be.
7601 Grep wants private fixed already mapped.
7602 The main things grep needs to know about mmap are:
7603 * does it exist and is it safe to write into the mmap'd area
7604 * how to use it (BSD variants) */
7607 #include <sys/mman.h>
7609 #if !STDC_HEADERS && !HAVE_STDLIB_H
7613 /* This mess was copied from the GNU getpagesize.h. */
7614 #if !HAVE_GETPAGESIZE
7615 /* Assume that all systems that can run configure have sys/param.h. */
7616 # if !HAVE_SYS_PARAM_H
7617 # define HAVE_SYS_PARAM_H 1
7620 # ifdef _SC_PAGESIZE
7621 # define getpagesize() sysconf(_SC_PAGESIZE)
7622 # else /* no _SC_PAGESIZE */
7623 # if HAVE_SYS_PARAM_H
7624 # include <sys/param.h>
7625 # ifdef EXEC_PAGESIZE
7626 # define getpagesize() EXEC_PAGESIZE
7627 # else /* no EXEC_PAGESIZE */
7629 # define getpagesize() NBPG * CLSIZE
7632 # endif /* no CLSIZE */
7633 # else /* no NBPG */
7635 # define getpagesize() NBPC
7636 # else /* no NBPC */
7638 # define getpagesize() PAGESIZE
7639 # endif /* PAGESIZE */
7640 # endif /* no NBPC */
7641 # endif /* no NBPG */
7642 # endif /* no EXEC_PAGESIZE */
7643 # else /* no HAVE_SYS_PARAM_H */
7644 # define getpagesize() 8192 /* punt totally */
7645 # endif /* no HAVE_SYS_PARAM_H */
7646 # endif /* no _SC_PAGESIZE */
7648 #endif /* no HAVE_GETPAGESIZE */
7653 char *data, *data2, *data3;
7657 pagesize = getpagesize ();
7659 /* First, make a file with some known garbage in it. */
7660 data = (char *) malloc (pagesize);
7663 for (i = 0; i < pagesize; ++i)
7664 *(data + i) = rand ();
7666 fd = creat ("conftest.mmap", 0600);
7669 if (write (fd, data, pagesize) != pagesize)
7673 /* Next, try to mmap the file at a fixed address which already has
7674 something else allocated at it. If we can, also make sure that
7675 we see the same garbage. */
7676 fd = open ("conftest.mmap", O_RDWR);
7679 data2 = (char *) malloc (2 * pagesize);
7682 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7683 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7684 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7686 for (i = 0; i < pagesize; ++i)
7687 if (*(data + i) != *(data2 + i))
7690 /* Finally, make sure that changes to the mapped area do not
7691 percolate back to the file as seen by read(). (This is a bug on
7692 some variants of i386 svr4.0.) */
7693 for (i = 0; i < pagesize; ++i)
7694 *(data2 + i) = *(data2 + i) + 1;
7695 data3 = (char *) malloc (pagesize);
7698 if (read (fd, data3, pagesize) != pagesize)
7700 for (i = 0; i < pagesize; ++i)
7701 if (*(data + i) != *(data3 + i))
7707 rm -f conftest
$ac_exeext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7709 (eval $ac_link) 2>&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); }; }; then
7718 ac_cv_func_mmap_fixed_mapped
=yes
7720 echo "$as_me: program exited with status $ac_status" >&5
7721 echo "$as_me: failed program was:" >&5
7722 cat conftest.
$ac_ext >&5
7724 ac_cv_func_mmap_fixed_mapped
=no
7726 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7729 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7730 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7731 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7733 cat >>confdefs.h
<<\_ACEOF
7741 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7742 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7743 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7746 cat >conftest.
$ac_ext <<_ACEOF
7747 #line $LINENO "configure"
7748 #include "confdefs.h"
7750 #include <features.h>
7751 #ifdef __GNU_LIBRARY__
7752 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7759 egrep "Lucky GNU user" >/dev
/null
2>&1; then
7760 ac_cv_gnu_library_2_1
=yes
7762 ac_cv_gnu_library_2_1
=no
7769 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7770 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7772 GLIBC21
="$ac_cv_gnu_library_2_1"
7786 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7787 stdlib.h string.h unistd.h sys
/param.h
7789 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7791 echo "$as_me:$LINENO: checking for $ac_header" >&5
7792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7799 # Is the header compilable?
7800 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7802 cat >conftest.
$ac_ext <<_ACEOF
7803 #line $LINENO "configure"
7804 #include "confdefs.h"
7805 $ac_includes_default
7806 #include <$ac_header>
7808 rm -f conftest.
$ac_objext
7809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7810 (eval $ac_compile) 2>&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); } &&
7814 { ac_try
='test -s conftest.$ac_objext'
7815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); }; }; then
7820 ac_header_compiler
=yes
7822 echo "$as_me: failed program was:" >&5
7823 cat conftest.
$ac_ext >&5
7824 ac_header_compiler
=no
7826 rm -f conftest.
$ac_objext conftest.
$ac_ext
7827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7828 echo "${ECHO_T}$ac_header_compiler" >&6
7830 # Is the header present?
7831 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7833 cat >conftest.
$ac_ext <<_ACEOF
7834 #line $LINENO "configure"
7835 #include "confdefs.h"
7836 #include <$ac_header>
7838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7839 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7841 egrep -v '^ *\+' conftest.er1
>conftest.err
7843 cat conftest.err
>&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); } >/dev
/null
; then
7846 if test -s conftest.err
; then
7847 ac_cpp_err
=$ac_c_preproc_warn_flag
7854 if test -z "$ac_cpp_err"; then
7855 ac_header_preproc
=yes
7857 echo "$as_me: failed program was:" >&5
7858 cat conftest.
$ac_ext >&5
7859 ac_header_preproc
=no
7861 rm -f conftest.err conftest.
$ac_ext
7862 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7863 echo "${ECHO_T}$ac_header_preproc" >&6
7865 # So? What about this header?
7866 case $ac_header_compiler:$ac_header_preproc in
7868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7871 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7873 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7874 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7875 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7876 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7880 echo "$as_me:$LINENO: checking for $ac_header" >&5
7881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
7885 eval "$as_ac_Header=$ac_header_preproc"
7887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7892 cat >>confdefs.h
<<_ACEOF
7893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7921 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
7922 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
7923 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
7925 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7926 echo "$as_me:$LINENO: checking for $ac_func" >&5
7927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7928 if eval "test \"\${$as_ac_var+set}\" = set"; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7931 cat >conftest.
$ac_ext <<_ACEOF
7932 #line $LINENO "configure"
7933 #include "confdefs.h"
7934 /* System header to define __stub macros and hopefully few prototypes,
7935 which can conflict with char $ac_func (); below. */
7937 /* Override any gcc2 internal prototype to avoid an error. */
7941 /* We use char because int might match the return type of a gcc2
7942 builtin and then its argument prototype would still apply. */
7946 #ifdef F77_DUMMY_MAIN
7950 int F77_DUMMY_MAIN() { return 1; }
7955 /* The GNU C library defines this for functions which it implements
7956 to always fail with ENOSYS. Some functions are actually named
7957 something starting with __ and the normal name is an alias. */
7958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7968 rm -f conftest.
$ac_objext conftest
$ac_exeext
7969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7970 (eval $ac_link) 2>&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); } &&
7974 { ac_try
='test -s conftest$ac_exeext'
7975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; }; then
7980 eval "$as_ac_var=yes"
7982 echo "$as_me: failed program was:" >&5
7983 cat conftest.
$ac_ext >&5
7984 eval "$as_ac_var=no"
7986 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7989 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7990 if test `eval echo '${'$as_ac_var'}'` = yes; then
7991 cat >>confdefs.h
<<_ACEOF
7992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8002 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
8003 if test "${with_libiconv_prefix+set}" = set; then
8004 withval
="$with_libiconv_prefix"
8006 for dir
in `echo "$withval" | tr : ' '`; do
8007 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
8008 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
8013 echo "$as_me:$LINENO: checking for iconv" >&5
8014 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8015 if test "${am_cv_func_iconv+set}" = set; then
8016 echo $ECHO_N "(cached) $ECHO_C" >&6
8019 am_cv_func_iconv
="no, consider installing GNU libiconv"
8021 cat >conftest.
$ac_ext <<_ACEOF
8022 #line $LINENO "configure"
8023 #include "confdefs.h"
8026 #ifdef F77_DUMMY_MAIN
8030 int F77_DUMMY_MAIN() { return 1; }
8035 iconv_t cd = iconv_open("","");
8036 iconv(cd,NULL,NULL,NULL,NULL);
8042 rm -f conftest.
$ac_objext conftest
$ac_exeext
8043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8044 (eval $ac_link) 2>&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } &&
8048 { ac_try
='test -s conftest$ac_exeext'
8049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); }; }; then
8054 am_cv_func_iconv
=yes
8056 echo "$as_me: failed program was:" >&5
8057 cat conftest.
$ac_ext >&5
8059 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8060 if test "$am_cv_func_iconv" != yes; then
8061 am_save_LIBS
="$LIBS"
8062 LIBS
="$LIBS -liconv"
8063 cat >conftest.
$ac_ext <<_ACEOF
8064 #line $LINENO "configure"
8065 #include "confdefs.h"
8068 #ifdef F77_DUMMY_MAIN
8072 int F77_DUMMY_MAIN() { return 1; }
8077 iconv_t cd = iconv_open("","");
8078 iconv(cd,NULL,NULL,NULL,NULL);
8084 rm -f conftest.
$ac_objext conftest
$ac_exeext
8085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8086 (eval $ac_link) 2>&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); } &&
8090 { ac_try
='test -s conftest$ac_exeext'
8091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); }; }; then
8097 am_cv_func_iconv
=yes
8099 echo "$as_me: failed program was:" >&5
8100 cat conftest.
$ac_ext >&5
8102 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8103 LIBS
="$am_save_LIBS"
8107 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8108 echo "${ECHO_T}$am_cv_func_iconv" >&6
8109 if test "$am_cv_func_iconv" = yes; then
8111 cat >>confdefs.h
<<\_ACEOF
8112 #define HAVE_ICONV 1
8115 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8116 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8117 if test "${am_cv_proto_iconv+set}" = set; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8121 cat >conftest.
$ac_ext <<_ACEOF
8122 #line $LINENO "configure"
8123 #include "confdefs.h"
8131 #if defined(__STDC__) || defined(__cplusplus)
8132 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8137 #ifdef F77_DUMMY_MAIN
8141 int F77_DUMMY_MAIN() { return 1; }
8151 rm -f conftest.
$ac_objext
8152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8153 (eval $ac_compile) 2>&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); } &&
8157 { ac_try
='test -s conftest.$ac_objext'
8158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); }; }; then
8163 am_cv_proto_iconv_arg1
=""
8165 echo "$as_me: failed program was:" >&5
8166 cat conftest.
$ac_ext >&5
8167 am_cv_proto_iconv_arg1
="const"
8169 rm -f conftest.
$ac_objext conftest.
$ac_ext
8170 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8173 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8174 echo "$as_me:$LINENO: result: ${ac_t:-
8175 }$am_cv_proto_iconv" >&5
8176 echo "${ECHO_T}${ac_t:-
8177 }$am_cv_proto_iconv" >&6
8179 cat >>confdefs.h
<<_ACEOF
8180 #define ICONV_CONST $am_cv_proto_iconv_arg1
8185 if test "$am_cv_lib_iconv" = yes; then
8191 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8192 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8193 if test "${am_cv_langinfo_codeset+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8196 cat >conftest.
$ac_ext <<_ACEOF
8197 #line $LINENO "configure"
8198 #include "confdefs.h"
8199 #include <langinfo.h>
8200 #ifdef F77_DUMMY_MAIN
8204 int F77_DUMMY_MAIN() { return 1; }
8209 char* cs = nl_langinfo(CODESET);
8214 rm -f conftest.
$ac_objext conftest
$ac_exeext
8215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8216 (eval $ac_link) 2>&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); } &&
8220 { ac_try
='test -s conftest$ac_exeext'
8221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; }; then
8226 am_cv_langinfo_codeset
=yes
8228 echo "$as_me: failed program was:" >&5
8229 cat conftest.
$ac_ext >&5
8230 am_cv_langinfo_codeset
=no
8232 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8235 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
8236 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
8237 if test $am_cv_langinfo_codeset = yes; then
8239 cat >>confdefs.h
<<\_ACEOF
8240 #define HAVE_LANGINFO_CODESET 1
8245 if test $ac_cv_header_locale_h = yes; then
8246 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8247 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8248 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8249 echo $ECHO_N "(cached) $ECHO_C" >&6
8251 cat >conftest.
$ac_ext <<_ACEOF
8252 #line $LINENO "configure"
8253 #include "confdefs.h"
8255 #ifdef F77_DUMMY_MAIN
8259 int F77_DUMMY_MAIN() { return 1; }
8269 rm -f conftest.
$ac_objext conftest
$ac_exeext
8270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8271 (eval $ac_link) 2>&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } &&
8275 { ac_try
='test -s conftest$ac_exeext'
8276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); }; }; then
8281 am_cv_val_LC_MESSAGES
=yes
8283 echo "$as_me: failed program was:" >&5
8284 cat conftest.
$ac_ext >&5
8285 am_cv_val_LC_MESSAGES
=no
8287 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8289 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8290 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8291 if test $am_cv_val_LC_MESSAGES = yes; then
8293 cat >>confdefs.h
<<\_ACEOF
8294 #define HAVE_LC_MESSAGES 1
8299 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8300 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8301 # Check whether --enable-nls or --disable-nls was given.
8302 if test "${enable_nls+set}" = set; then
8303 enableval
="$enable_nls"
8308 echo "$as_me:$LINENO: result: $USE_NLS" >&5
8309 echo "${ECHO_T}$USE_NLS" >&6
8312 BUILD_INCLUDED_LIBINTL
=no
8313 USE_INCLUDED_LIBINTL
=no
8316 if test "$USE_NLS" = "yes"; then
8318 cat >>confdefs.h
<<\_ACEOF
8319 #define ENABLE_NLS 1
8322 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8323 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8325 # Check whether --with-included-gettext or --without-included-gettext was given.
8326 if test "${with_included_gettext+set}" = set; then
8327 withval
="$with_included_gettext"
8328 nls_cv_force_use_gnu_gettext
=$withval
8330 nls_cv_force_use_gnu_gettext
=no
8332 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8333 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8335 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
8336 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8342 if test "${ac_cv_header_libintl_h+set}" = set; then
8343 echo "$as_me:$LINENO: checking for libintl.h" >&5
8344 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8345 if test "${ac_cv_header_libintl_h+set}" = set; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8349 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8351 # Is the header compilable?
8352 echo "$as_me:$LINENO: checking libintl.h usability" >&5
8353 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
8354 cat >conftest.
$ac_ext <<_ACEOF
8355 #line $LINENO "configure"
8356 #include "confdefs.h"
8357 $ac_includes_default
8358 #include <libintl.h>
8360 rm -f conftest.
$ac_objext
8361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8362 (eval $ac_compile) 2>&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); } &&
8366 { ac_try
='test -s conftest.$ac_objext'
8367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; }; then
8372 ac_header_compiler
=yes
8374 echo "$as_me: failed program was:" >&5
8375 cat conftest.
$ac_ext >&5
8376 ac_header_compiler
=no
8378 rm -f conftest.
$ac_objext conftest.
$ac_ext
8379 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8380 echo "${ECHO_T}$ac_header_compiler" >&6
8382 # Is the header present?
8383 echo "$as_me:$LINENO: checking libintl.h presence" >&5
8384 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
8385 cat >conftest.
$ac_ext <<_ACEOF
8386 #line $LINENO "configure"
8387 #include "confdefs.h"
8388 #include <libintl.h>
8390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8391 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8393 egrep -v '^ *\+' conftest.er1
>conftest.err
8395 cat conftest.err
>&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); } >/dev
/null
; then
8398 if test -s conftest.err
; then
8399 ac_cpp_err
=$ac_c_preproc_warn_flag
8406 if test -z "$ac_cpp_err"; then
8407 ac_header_preproc
=yes
8409 echo "$as_me: failed program was:" >&5
8410 cat conftest.
$ac_ext >&5
8411 ac_header_preproc
=no
8413 rm -f conftest.err conftest.
$ac_ext
8414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8415 echo "${ECHO_T}$ac_header_preproc" >&6
8417 # So? What about this header?
8418 case $ac_header_compiler:$ac_header_preproc in
8420 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8421 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8422 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8423 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
8425 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled." >&5
8426 echo "$as_me: WARNING: libintl.h: present but cannot be compiled." >&2;}
8427 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
8428 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
8429 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8430 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
8432 echo "$as_me:$LINENO: checking for libintl.h" >&5
8433 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8434 if test "${ac_cv_header_libintl_h+set}" = set; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8437 ac_cv_header_libintl_h
=$ac_header_preproc
8439 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8440 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8443 if test $ac_cv_header_libintl_h = yes; then
8444 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
8445 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
8446 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 cat >conftest.
$ac_ext <<_ACEOF
8450 #line $LINENO "configure"
8451 #include "confdefs.h"
8452 #include <libintl.h>
8453 extern int _nl_msg_cat_cntr;
8454 #ifdef F77_DUMMY_MAIN
8458 int F77_DUMMY_MAIN() { return 1; }
8463 bindtextdomain ("", "");
8464 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr
8469 rm -f conftest.
$ac_objext conftest
$ac_exeext
8470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8471 (eval $ac_link) 2>&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); } &&
8475 { ac_try
='test -s conftest$ac_exeext'
8476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); }; }; then
8481 gt_cv_func_gnugettext2_libc
=yes
8483 echo "$as_me: failed program was:" >&5
8484 cat conftest.
$ac_ext >&5
8485 gt_cv_func_gnugettext2_libc
=no
8487 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8489 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
8490 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
8492 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
8493 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
8494 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
8495 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
8496 echo $ECHO_N "(cached) $ECHO_C" >&6
8498 gt_save_LIBS
="$LIBS"
8499 LIBS
="$LIBS -lintl $LIBICONV"
8500 cat >conftest.
$ac_ext <<_ACEOF
8501 #line $LINENO "configure"
8502 #include "confdefs.h"
8503 #include <libintl.h>
8504 extern int _nl_msg_cat_cntr;
8505 #ifdef F77_DUMMY_MAIN
8509 int F77_DUMMY_MAIN() { return 1; }
8514 bindtextdomain ("", "");
8515 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr
8520 rm -f conftest.
$ac_objext conftest
$ac_exeext
8521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8522 (eval $ac_link) 2>&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } &&
8526 { ac_try
='test -s conftest$ac_exeext'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; }; then
8532 gt_cv_func_gnugettext2_libintl
=yes
8534 echo "$as_me: failed program was:" >&5
8535 cat conftest.
$ac_ext >&5
8536 gt_cv_func_gnugettext2_libintl
=no
8538 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8539 LIBS
="$gt_save_LIBS"
8541 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
8542 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
8545 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
8546 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
8547 && test "$PACKAGE" != gettext; }; then
8549 cat >>confdefs.h
<<\_ACEOF
8550 #define HAVE_GETTEXT 1
8554 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
8555 INTLLIBS
="-lintl $LIBICONV"
8558 gt_save_LIBS
="$LIBS"
8559 LIBS
="$LIBS $INTLLIBS"
8561 for ac_func
in dcgettext
8563 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8564 echo "$as_me:$LINENO: checking for $ac_func" >&5
8565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8566 if eval "test \"\${$as_ac_var+set}\" = set"; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8569 cat >conftest.
$ac_ext <<_ACEOF
8570 #line $LINENO "configure"
8571 #include "confdefs.h"
8572 /* System header to define __stub macros and hopefully few prototypes,
8573 which can conflict with char $ac_func (); below. */
8575 /* Override any gcc2 internal prototype to avoid an error. */
8579 /* We use char because int might match the return type of a gcc2
8580 builtin and then its argument prototype would still apply. */
8584 #ifdef F77_DUMMY_MAIN
8588 int F77_DUMMY_MAIN() { return 1; }
8593 /* The GNU C library defines this for functions which it implements
8594 to always fail with ENOSYS. Some functions are actually named
8595 something starting with __ and the normal name is an alias. */
8596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8606 rm -f conftest.
$ac_objext conftest
$ac_exeext
8607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8608 (eval $ac_link) 2>&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } &&
8612 { ac_try
='test -s conftest$ac_exeext'
8613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); }; }; then
8618 eval "$as_ac_var=yes"
8620 echo "$as_me: failed program was:" >&5
8621 cat conftest.
$ac_ext >&5
8622 eval "$as_ac_var=no"
8624 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8627 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8628 if test `eval echo '${'$as_ac_var'}'` = yes; then
8629 cat >>confdefs.h
<<_ACEOF
8630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8636 LIBS
="$gt_save_LIBS"
8638 # Extract the first word of "msgfmt", so it can be a program name with args.
8639 set dummy msgfmt
; ac_word
=$2
8640 echo "$as_me:$LINENO: checking for $ac_word" >&5
8641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8642 if test "${ac_cv_path_MSGFMT+set}" = set; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8647 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8650 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8651 for ac_dir
in $PATH; do
8652 test -z "$ac_dir" && ac_dir
=.
8653 if test -f $ac_dir/$ac_word; then
8654 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8655 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8661 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8665 MSGFMT
="$ac_cv_path_MSGFMT"
8666 if test "$MSGFMT" != ":"; then
8667 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8668 echo "${ECHO_T}$MSGFMT" >&6
8670 echo "$as_me:$LINENO: result: no" >&5
8671 echo "${ECHO_T}no" >&6
8674 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8675 set dummy gmsgfmt
; ac_word
=$2
8676 echo "$as_me:$LINENO: checking for $ac_word" >&5
8677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8678 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
8683 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8690 test -z "$as_dir" && as_dir
=.
8691 for ac_exec_ext
in '' $ac_executable_extensions; do
8692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8693 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8700 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8704 GMSGFMT
=$ac_cv_path_GMSGFMT
8706 if test -n "$GMSGFMT"; then
8707 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8708 echo "${ECHO_T}$GMSGFMT" >&6
8710 echo "$as_me:$LINENO: result: no" >&5
8711 echo "${ECHO_T}no" >&6
8715 # Extract the first word of "xgettext", so it can be a program name with args.
8716 set dummy xgettext
; ac_word
=$2
8717 echo "$as_me:$LINENO: checking for $ac_word" >&5
8718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8719 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8720 echo $ECHO_N "(cached) $ECHO_C" >&6
8724 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8727 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8728 for ac_dir
in $PATH; do
8729 test -z "$ac_dir" && ac_dir
=.
8730 if test -f $ac_dir/$ac_word; then
8731 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8732 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8738 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8742 XGETTEXT
="$ac_cv_path_XGETTEXT"
8743 if test "$XGETTEXT" != ":"; then
8744 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8745 echo "${ECHO_T}$XGETTEXT" >&6
8747 echo "$as_me:$LINENO: result: no" >&5
8748 echo "${ECHO_T}no" >&6
8759 if test "$CATOBJEXT" = "NONE"; then
8760 nls_cv_use_gnu_gettext
=yes
8764 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8765 INTLOBJS
="\$(GETTOBJS)"
8766 # Extract the first word of "msgfmt", so it can be a program name with args.
8767 set dummy msgfmt
; ac_word
=$2
8768 echo "$as_me:$LINENO: checking for $ac_word" >&5
8769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8770 if test "${ac_cv_path_MSGFMT+set}" = set; then
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
8775 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8778 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8779 for ac_dir
in $PATH; do
8780 test -z "$ac_dir" && ac_dir
=.
8781 if test -f $ac_dir/$ac_word; then
8782 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8783 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8789 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8793 MSGFMT
="$ac_cv_path_MSGFMT"
8794 if test "$MSGFMT" != ":"; then
8795 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8796 echo "${ECHO_T}$MSGFMT" >&6
8798 echo "$as_me:$LINENO: result: no" >&5
8799 echo "${ECHO_T}no" >&6
8802 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8803 set dummy gmsgfmt
; ac_word
=$2
8804 echo "$as_me:$LINENO: checking for $ac_word" >&5
8805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8806 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8807 echo $ECHO_N "(cached) $ECHO_C" >&6
8811 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8818 test -z "$as_dir" && as_dir
=.
8819 for ac_exec_ext
in '' $ac_executable_extensions; do
8820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8821 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8828 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8832 GMSGFMT
=$ac_cv_path_GMSGFMT
8834 if test -n "$GMSGFMT"; then
8835 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8836 echo "${ECHO_T}$GMSGFMT" >&6
8838 echo "$as_me:$LINENO: result: no" >&5
8839 echo "${ECHO_T}no" >&6
8842 # Extract the first word of "xgettext", so it can be a program name with args.
8843 set dummy xgettext
; ac_word
=$2
8844 echo "$as_me:$LINENO: checking for $ac_word" >&5
8845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8846 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8847 echo $ECHO_N "(cached) $ECHO_C" >&6
8851 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8854 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8855 for ac_dir
in $PATH; do
8856 test -z "$ac_dir" && ac_dir
=.
8857 if test -f $ac_dir/$ac_word; then
8858 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8859 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8865 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8869 XGETTEXT
="$ac_cv_path_XGETTEXT"
8870 if test "$XGETTEXT" != ":"; then
8871 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8872 echo "${ECHO_T}$XGETTEXT" >&6
8874 echo "$as_me:$LINENO: result: no" >&5
8875 echo "${ECHO_T}no" >&6
8879 BUILD_INCLUDED_LIBINTL
=yes
8880 USE_INCLUDED_LIBINTL
=yes
8882 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
8883 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8886 if test "$GMSGFMT" != ":"; then
8887 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
8890 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
8891 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
8896 if test "$XGETTEXT" != ":"; then
8897 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
8900 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8901 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8908 ac_config_commands
="$ac_config_commands default-1"
8912 if test "$PACKAGE" = gettext; then
8913 BUILD_INCLUDED_LIBINTL
=yes
8916 for ac_prog
in bison
8918 # Extract the first word of "$ac_prog", so it can be a program name with args.
8919 set dummy
$ac_prog; ac_word
=$2
8920 echo "$as_me:$LINENO: checking for $ac_word" >&5
8921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8922 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8925 if test -n "$INTLBISON"; then
8926 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
8928 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8932 test -z "$as_dir" && as_dir
=.
8933 for ac_exec_ext
in '' $ac_executable_extensions; do
8934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8935 ac_cv_prog_INTLBISON
="$ac_prog"
8936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8944 INTLBISON
=$ac_cv_prog_INTLBISON
8945 if test -n "$INTLBISON"; then
8946 echo "$as_me:$LINENO: result: $INTLBISON" >&5
8947 echo "${ECHO_T}$INTLBISON" >&6
8949 echo "$as_me:$LINENO: result: no" >&5
8950 echo "${ECHO_T}no" >&6
8953 test -n "$INTLBISON" && break
8956 if test -z "$INTLBISON"; then
8959 echo "$as_me:$LINENO: checking version of bison" >&5
8960 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8961 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8962 case $ac_prog_version in
8963 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
8964 1.2[6-9]* | 1.
[3-9][0-9]* | [2-9].
*)
8965 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
8966 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
8968 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8969 echo "${ECHO_T}$ac_prog_version" >&6
8971 if test $ac_verc_fail = yes; then
8975 for lang
in $ALL_LINGUAS; do
8976 GMOFILES
="$GMOFILES $lang.gmo"
8977 POFILES
="$POFILES $lang.po"
8991 nls_cv_header_libgt
=
9003 if test "x$CATOBJEXT" != "x"; then
9004 if test "x$ALL_LINGUAS" = "x"; then
9007 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9008 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9010 for presentlang
in $ALL_LINGUAS; do
9012 for desiredlang
in ${LINGUAS-$ALL_LINGUAS}; do
9013 # Use the presentlang catalog if desiredlang is
9014 # a. equal to presentlang, or
9015 # b. a variant of presentlang (because in this case,
9016 # presentlang can be used as a fallback for messages
9017 # which are not translated in the desiredlang catalog).
9018 case "$desiredlang" in
9019 "$presentlang"*) useit
=yes;;
9022 if test $useit = yes; then
9023 NEW_LINGUAS
="$NEW_LINGUAS $presentlang"
9026 LINGUAS
=$NEW_LINGUAS
9027 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9028 echo "${ECHO_T}$LINGUAS" >&6
9031 if test -n "$LINGUAS"; then
9032 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
9037 if test -n "$ac_aux_dir"; then
9038 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
9040 if test -z "$MKINSTALLDIRS"; then
9041 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
9045 INTL_LIBTOOL_SUFFIX_PREFIX
=
9049 # This is necessary so that .o files in LIBOBJS are also built via
9050 # the ANSI2KNR-filtering rules.
9051 LIBOBJS
=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
9054 ac_config_files
="$ac_config_files Makefile config/Makefile intl/Makefile po/Makefile.in lib/Makefile src/Makefile doc/Makefile m4/Makefile"
9055 cat >confcache
<<\_ACEOF
9056 # This file is a shell script that caches the results of configure
9057 # tests run on this system so they can be shared between configure
9058 # scripts and configure runs, see configure's option --config-cache.
9059 # It is not useful on other systems. If it contains results you don't
9060 # want to keep, you may remove or edit it.
9062 # config.status only pays attention to the cache file if you give it
9063 # the --recheck option to rerun configure.
9065 # `ac_cv_env_foo' variables (set or unset) will be overriden when
9066 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9071 # The following way of writing the cache mishandles newlines in values,
9072 # but we know of no workaround that is simple, portable, and efficient.
9073 # So, don't put newlines in cache variables' values.
9074 # Ultrix sh set writes to stderr and can't be redirected directly,
9075 # and sets the high bit in the cache file unless we assign to the vars.
9078 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9080 # `set' does not quote correctly, so add quotes (double-quote
9081 # substitution turns \\\\ into \\, and sed turns \\ into \).
9084 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9087 # `set' quotes correctly as required by POSIX, so do not add quotes.
9089 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9096 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9098 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9100 if cmp -s $cache_file confcache
; then :; else
9101 if test -w $cache_file; then
9102 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9103 cat confcache
>$cache_file
9105 echo "not updating unwritable cache $cache_file"
9110 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9111 # Let make expand exec_prefix.
9112 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9114 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9115 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9116 # trailing colons and then remove the whole line if VPATH becomes empty
9117 # (actually we leave an empty line to preserve line numbers).
9118 if test "x$srcdir" = x.
; then
9119 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
9120 s/:*\$(srcdir):*/:/;
9121 s/:*\${srcdir}:*/:/;
9123 s/^\([^=]*=[ ]*\):*/\1/;
9129 DEFS
=-DHAVE_CONFIG_H
9131 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9132 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9133 Usually this means the macro was only invoked conditionally." >&5
9134 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9135 Usually this means the macro was only invoked conditionally." >&2;}
9136 { (exit 1); exit 1; }; }
9139 : ${CONFIG_STATUS=./config.status}
9140 ac_clean_files_save
=$ac_clean_files
9141 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9142 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9143 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9144 cat >$CONFIG_STATUS <<_ACEOF
9146 # Generated by $as_me.
9147 # Run this file to recreate the current configuration.
9148 # Compiler output produced by configure, useful for debugging
9149 # configure, is in config.log if it exists.
9152 SHELL=\${CONFIG_SHELL-$SHELL}
9155 cat >>$CONFIG_STATUS <<\_ACEOF
9157 ## --------------------- ##
9158 ## M4sh Initialization. ##
9159 ## --------------------- ##
9161 # Be Bourne compatible
9162 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
9165 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
9170 # Support unset when possible.
9171 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
9177 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
9178 { $as_unset LANG
|| test "${LANG+set}" != set; } ||
9179 { LANG
=C
; export LANG
; }
9180 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
9181 { $as_unset LC_ALL
|| test "${LC_ALL+set}" != set; } ||
9182 { LC_ALL
=C
; export LC_ALL
; }
9183 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
9184 { $as_unset LC_TIME
|| test "${LC_TIME+set}" != set; } ||
9185 { LC_TIME
=C
; export LC_TIME
; }
9186 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
9187 { $as_unset LC_CTYPE
|| test "${LC_CTYPE+set}" != set; } ||
9188 { LC_CTYPE
=C
; export LC_CTYPE
; }
9189 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
9190 { $as_unset LANGUAGE
|| test "${LANGUAGE+set}" != set; } ||
9191 { LANGUAGE
=C
; export LANGUAGE
; }
9192 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
9193 { $as_unset LC_COLLATE
|| test "${LC_COLLATE+set}" != set; } ||
9194 { LC_COLLATE
=C
; export LC_COLLATE
; }
9195 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
9196 { $as_unset LC_NUMERIC
|| test "${LC_NUMERIC+set}" != set; } ||
9197 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
9198 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
9199 { $as_unset LC_MESSAGES
|| test "${LC_MESSAGES+set}" != set; } ||
9200 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
9203 # Name of the executable.
9204 as_me
=`(basename "$0") 2>/dev/null ||
9205 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9206 X"$0" : 'X\(//\)$' \| \
9207 X"$0" : 'X\(/\)$' \| \
9208 . : '\(.\)' 2>/dev/null ||
9210 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9211 /^X\/\(\/\/\)$/{ s//\1/; q; }
9212 /^X\/\(\/\).*/{ s//\1/; q; }
9215 # PATH needs CR, and LINENO needs CR and PATH.
9216 # Avoid depending upon Character Ranges.
9217 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9218 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9219 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9220 as_cr_digits
='0123456789'
9221 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9223 # The user is always right.
9224 if test "${PATH_SEPARATOR+set}" != set; then
9225 echo "#! $SHELL" >conftest.sh
9226 echo "exit 0" >>conftest.sh
9227 chmod +x conftest.sh
9228 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
9239 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
9240 test "x$as_lineno_1" != "x$as_lineno_2" &&
9241 test "x$as_lineno_3" = "x$as_lineno_2" || {
9242 # Find who we are. Look in the path if we contain no path at all
9245 *[\\/]* ) as_myself
=$0 ;;
9246 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9250 test -z "$as_dir" && as_dir
=.
9251 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
9256 # We did not find ourselves, most probably we were run as `sh COMMAND'
9257 # in which case we are not to be found in the path.
9258 if test "x$as_myself" = x
; then
9261 if test ! -f "$as_myself"; then
9262 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9263 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9264 { (exit 1); exit 1; }; }
9266 case $CONFIG_SHELL in
9268 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9269 for as_dir
in /bin
:/usr
/bin
:$PATH
9272 test -z "$as_dir" && as_dir
=.
9273 for as_base
in sh bash ksh sh5
; do
9276 if ("$as_dir/$as_base" -c '
9279 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9280 test "x$as_lineno_1" != "x$as_lineno_2" &&
9281 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
9282 CONFIG_SHELL
=$as_dir/$as_base
9284 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9292 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9293 # uniformly replaced by the line number. The first 'sed' inserts a
9294 # line-number line before each line; the second 'sed' does the real
9295 # work. The second script uses 'N' to pair each line-number line
9296 # with the numbered line, and appends trailing '-' during
9297 # substitution so that $LINENO is not a special case at line end.
9298 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9299 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9300 sed '=' <$as_myself |
9305 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9308 s,^['$as_cr_digits']*\n,,
9310 chmod +x
$as_me.lineno
||
9311 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9312 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9313 { (exit 1); exit 1; }; }
9315 # Don't try to exec as it changes $[0], causing all sort of problems
9316 # (the dirname of $[0] is not the place where we might find the
9317 # original and so on. Autoconf is especially sensible to this).
9319 # Exit status is that of the last command.
9324 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9325 *c
*,-n*) ECHO_N
= ECHO_C
='
9327 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
9328 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
9331 if expr a
: '\(a\)' >/dev
/null
2>&1; then
9337 rm -f conf$$ conf$$.exe conf$$.
file
9339 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9340 # We could just check for DJGPP; but this test a) works b) is more generic
9341 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9342 if test -f conf$$.exe
; then
9343 # Don't use ln at all; we don't have any links
9348 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9353 rm -f conf$$ conf$$.exe conf$$.
file
9355 as_executable_p
="test -f"
9357 # Sed expression to map a string onto a valid CPP name.
9358 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9360 # Sed expression to map a string onto a valid variable name.
9361 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9365 # We need space, tab and new line, in precisely that order.
9371 $as_unset CDPATH
|| test "${CDPATH+set}" != set || { CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
9375 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9376 # report actual input values of CONFIG_FILES etc. instead of their
9377 # values after options handling. Logging --version etc. is OK.
9381 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9382 ## Running $as_me. ##
9387 This file was extended by GNU Bison $as_me 1.31a, which was
9388 generated by GNU Autoconf 2.52g. Invocation command line was
9390 CONFIG_FILES = $CONFIG_FILES
9391 CONFIG_HEADERS = $CONFIG_HEADERS
9392 CONFIG_LINKS = $CONFIG_LINKS
9393 CONFIG_COMMANDS = $CONFIG_COMMANDS
9397 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9401 # Files that config.status was made for.
9402 if test -n "$ac_config_files"; then
9403 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9406 if test -n "$ac_config_headers"; then
9407 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9410 if test -n "$ac_config_links"; then
9411 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9414 if test -n "$ac_config_commands"; then
9415 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9418 cat >>$CONFIG_STATUS <<\_ACEOF
9421 \`$as_me' instantiates files from templates according to the
9422 current configuration.
9424 Usage: $0 [OPTIONS] [FILE]...
9426 -h, --help print this help, then exit
9427 -V, --version print version number, then exit
9428 -d, --debug don't remove temporary files
9429 --recheck update $as_me by reconfiguring in the same conditions
9430 --file=FILE[:TEMPLATE]
9431 instantiate the configuration file FILE
9432 --header=FILE[:TEMPLATE]
9433 instantiate the configuration header FILE
9435 Configuration files:
9438 Configuration headers:
9441 Configuration commands:
9444 Report bugs to <bug-autoconf@gnu.org>."
9447 cat >>$CONFIG_STATUS <<_ACEOF
9449 GNU Bison config.status 1.31a
9450 configured by $0, generated by GNU Autoconf 2.52g,
9451 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9453 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9454 Free Software Foundation, Inc.
9455 This config.status script is free software; the Free Software Foundation
9456 gives unlimited permission to copy, distribute and modify it."
9461 cat >>$CONFIG_STATUS <<\_ACEOF
9462 # If no file are specified by the user, then we need to provide default
9463 # value. By we need to know if files were specified by the user.
9469 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
9470 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
9472 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
9476 *) # This is not an option, so the user has probably given explicit
9478 ac_need_defaults
=false
;;
9482 # Handling of the options.
9484 cat >>$CONFIG_STATUS <<_ACEOF
9485 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9486 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9487 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9489 cat >>$CONFIG_STATUS <<\_ACEOF
9490 --version | --vers* | -V )
9491 echo "$ac_cs_version"; exit 0 ;;
9493 # Conflict between --help and --header
9494 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9495 Try \`$0 --help' for more information." >&5
9496 echo "$as_me: error: ambiguous option: $1
9497 Try \`$0 --help' for more information." >&2;}
9498 { (exit 1); exit 1; }; };;
9499 --help | --hel | -h )
9500 echo "$ac_cs_usage"; exit 0 ;;
9501 --debug | --d* | -d )
9503 --file | --fil | --fi | --f )
9505 CONFIG_FILES
="$CONFIG_FILES $1"
9506 ac_need_defaults
=false
;;
9507 --header | --heade | --head | --hea )
9509 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
9510 ac_need_defaults
=false
;;
9513 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9514 Try \`$0 --help' for more information." >&5
9515 echo "$as_me: error: unrecognized option: $1
9516 Try \`$0 --help' for more information." >&2;}
9517 { (exit 1); exit 1; }; } ;;
9519 *) ac_config_targets
="$ac_config_targets $1" ;;
9527 cat >>$CONFIG_STATUS <<_ACEOF
9529 # INIT-COMMANDS section.
9532 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9539 cat >>$CONFIG_STATUS <<\_ACEOF
9540 for ac_config_target
in $ac_config_targets
9542 case "$ac_config_target" in
9543 # Handling of arguments.
9544 "tests/bison" ) CONFIG_FILES
="$CONFIG_FILES tests/bison" ;;
9545 "tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
9546 "tests/atlocal" ) CONFIG_FILES
="$CONFIG_FILES tests/atlocal" ;;
9547 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9548 "config/Makefile" ) CONFIG_FILES
="$CONFIG_FILES config/Makefile" ;;
9549 "intl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
9550 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
9551 "lib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
9552 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
9553 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
9554 "m4/Makefile" ) CONFIG_FILES
="$CONFIG_FILES m4/Makefile" ;;
9555 "tests/atconfig" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS tests/atconfig" ;;
9556 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
9557 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
9558 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.hin" ;;
9559 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9560 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9561 { (exit 1); exit 1; }; };;
9565 # If the user did not use the arguments to specify the items to instantiate,
9566 # then the envvar interface is used. Set only those that are not.
9567 # We use the long form for the default assignment because of an extremely
9568 # bizarre bug on SunOS 4.1.3.
9569 if $ac_need_defaults; then
9570 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9571 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9572 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9575 # Create a temporary directory, and hook for its removal unless debugging.
9578 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9579 trap '{ (exit 1); exit 1; }' 1 2 13 15
9582 # Create a (secure) tmp directory for tmp files.
9585 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9586 test -n "$tmp" && test -d "$tmp"
9589 tmp
=$TMPDIR/cs$$
-$RANDOM
9590 (umask 077 && mkdir $tmp)
9593 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9594 { (exit 1); exit 1; }
9599 cat >>$CONFIG_STATUS <<_ACEOF
9602 # CONFIG_FILES section.
9605 # No need to generate the scripts if there are no CONFIG_FILES.
9606 # This happens for instance when ./config.status config.h
9607 if test -n "\$CONFIG_FILES"; then
9608 # Protect against being on the right side of a sed subst in config.status.
9609 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9610 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9611 s,@SHELL@,$SHELL,;t t
9612 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9613 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9614 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9615 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9616 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9617 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9618 s,@exec_prefix@,$exec_prefix,;t t
9619 s,@prefix@,$prefix,;t t
9620 s,@program_transform_name@,$program_transform_name,;t t
9621 s,@bindir@,$bindir,;t t
9622 s,@sbindir@,$sbindir,;t t
9623 s,@libexecdir@,$libexecdir,;t t
9624 s,@datadir@,$datadir,;t t
9625 s,@sysconfdir@,$sysconfdir,;t t
9626 s,@sharedstatedir@,$sharedstatedir,;t t
9627 s,@localstatedir@,$localstatedir,;t t
9628 s,@libdir@,$libdir,;t t
9629 s,@includedir@,$includedir,;t t
9630 s,@oldincludedir@,$oldincludedir,;t t
9631 s,@infodir@,$infodir,;t t
9632 s,@mandir@,$mandir,;t t
9633 s,@build_alias@,$build_alias,;t t
9634 s,@host_alias@,$host_alias,;t t
9635 s,@target_alias@,$target_alias,;t t
9637 s,@ECHO_C@,$ECHO_C,;t t
9638 s,@ECHO_N@,$ECHO_N,;t t
9639 s,@ECHO_T@,$ECHO_T,;t t
9641 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9642 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9643 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9644 s,@PACKAGE@,$PACKAGE,;t t
9645 s,@VERSION@,$VERSION,;t t
9646 s,@ACLOCAL@,$ACLOCAL,;t t
9647 s,@AUTOCONF@,$AUTOCONF,;t t
9648 s,@AUTOMAKE@,$AUTOMAKE,;t t
9649 s,@AUTOHEADER@,$AUTOHEADER,;t t
9650 s,@MAKEINFO@,$MAKEINFO,;t t
9651 s,@AMTAR@,$AMTAR,;t t
9652 s,@install_sh@,$install_sh,;t t
9653 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9655 s,@SET_MAKE@,$SET_MAKE,;t t
9656 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9657 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9658 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9659 s,@DEPDIR@,$DEPDIR,;t t
9662 s,@CFLAGS@,$CFLAGS,;t t
9663 s,@LDFLAGS@,$LDFLAGS,;t t
9664 s,@CPPFLAGS@,$CPPFLAGS,;t t
9665 s,@ac_ct_CC@,$ac_ct_CC,;t t
9666 s,@EXEEXT@,$EXEEXT,;t t
9667 s,@OBJEXT@,$OBJEXT,;t t
9668 s,@am__include@,$am__include,;t t
9669 s,@am__quote@,$am__quote,;t t
9670 s,@CCDEPMODE@,$CCDEPMODE,;t t
9672 s,@RANLIB@,$RANLIB,;t t
9673 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9674 s,@AUTOM4TE@,$AUTOM4TE,;t t
9675 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
9676 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
9678 s,@ANSI2KNR@,$ANSI2KNR,;t t
9679 s,@ALLOCA@,$ALLOCA,;t t
9680 s,@LIBOBJS@,$LIBOBJS,;t t
9681 s,@build@,$build,;t t
9682 s,@build_cpu@,$build_cpu,;t t
9683 s,@build_vendor@,$build_vendor,;t t
9684 s,@build_os@,$build_os,;t t
9686 s,@host_cpu@,$host_cpu,;t t
9687 s,@host_vendor@,$host_vendor,;t t
9688 s,@host_os@,$host_os,;t t
9689 s,@GLIBC21@,$GLIBC21,;t t
9690 s,@LIBICONV@,$LIBICONV,;t t
9691 s,@USE_NLS@,$USE_NLS,;t t
9692 s,@MSGFMT@,$MSGFMT,;t t
9693 s,@GMSGFMT@,$GMSGFMT,;t t
9694 s,@XGETTEXT@,$XGETTEXT,;t t
9695 s,@INTLBISON@,$INTLBISON,;t t
9696 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
9697 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9698 s,@CATALOGS@,$CATALOGS,;t t
9699 s,@CATOBJEXT@,$CATOBJEXT,;t t
9700 s,@GMOFILES@,$GMOFILES,;t t
9701 s,@INTLLIBS@,$INTLLIBS,;t t
9702 s,@INTLOBJS@,$INTLOBJS,;t t
9703 s,@POFILES@,$POFILES,;t t
9704 s,@POSUB@,$POSUB,;t t
9705 s,@DATADIRNAME@,$DATADIRNAME,;t t
9706 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9707 s,@GENCAT@,$GENCAT,;t t
9708 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9709 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
9714 cat >>$CONFIG_STATUS <<\_ACEOF
9715 # Split the substitutions into bite-sized pieces for seds with
9716 # small command number limits, like on Digital OSF/1 and HP-UX.
9718 ac_sed_frag
=1 # Number of current file.
9719 ac_beg
=1 # First line for current file.
9720 ac_end
=$ac_max_sed_lines # Line after last line for current file.
9723 while $ac_more_lines; do
9724 if test $ac_beg -gt 1; then
9725 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9727 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9729 if test ! -s $tmp/subs.frag
; then
9732 # The purpose of the label and of the branching condition is to
9733 # speed up the sed processing (if there are no `@' at all, there
9734 # is no need to browse any of the substitutions).
9735 # These are the two extra sed commands mentioned above.
9737 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs
-$ac_sed_frag.
sed
9738 if test -z "$ac_sed_cmds"; then
9739 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
9741 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9743 ac_sed_frag
=`expr $ac_sed_frag + 1`
9745 ac_end
=`expr $ac_end + $ac_max_sed_lines`
9748 if test -z "$ac_sed_cmds"; then
9751 fi # test -n "$CONFIG_FILES"
9754 cat >>$CONFIG_STATUS <<\_ACEOF
9755 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
9756 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9758 - | *:- | *:-:* ) # input from stdin
9760 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9761 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9762 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9763 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9764 * ) ac_file_in
=$ac_file.
in ;;
9767 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9768 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9769 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9770 X"$ac_file" : 'X\(//\)[^/]' \| \
9771 X"$ac_file" : 'X\(//\)$' \| \
9772 X"$ac_file" : 'X\(/\)' \| \
9773 . : '\(.\)' 2>/dev/null ||
9775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9776 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9777 /^X\(\/\/\)$/{ s//\1/; q; }
9778 /^X\(\/\).*/{ s//\1/; q; }
9781 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9785 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9786 case $as_mkdir_dir in
9787 # Skip DOS drivespec
9788 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9790 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9791 test -d "$as_incr_dir" ||
9792 mkdir "$as_incr_dir" ||
9793 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9794 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9795 { (exit 1); exit 1; }; }
9802 if test "$ac_dir" != .
; then
9803 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9804 # A "../" for each directory in $ac_dir_suffix.
9805 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9807 ac_dir_suffix
= ac_top_builddir
=
9811 .
) # No --srcdir option. We are building in place.
9813 if test -z "$ac_top_builddir"; then
9816 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9818 [\\/]* | ?
:[\\/]* ) # Absolute path.
9819 ac_srcdir
=$srcdir$ac_dir_suffix;
9820 ac_top_srcdir
=$srcdir ;;
9822 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9823 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9825 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9827 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
9828 ac_abs_top_builddir
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9829 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9830 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9834 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9835 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
9838 if test x
"$ac_file" != x
-; then
9839 { echo "$as_me:$LINENO: creating $ac_file" >&5
9840 echo "$as_me: creating $ac_file" >&6;}
9843 # Let's still pretend it is `configure' which instantiates (i.e., don't
9844 # use $as_me), people would be surprised to read:
9845 # /* config.h. Generated by config.status. */
9846 if test x
"$ac_file" = x
-; then
9849 configure_input
="$ac_file. "
9851 configure_input
=$configure_input"Generated from `echo $ac_file_in |
9852 sed 's,.*/,,'` by configure."
9854 # First look for the input files in the build tree, otherwise in the
9856 ac_file_inputs
=`IFS=:
9857 for f in $ac_file_in; do
9859 -) echo $tmp/stdin ;;
9861 # Absolute (can't be DOS-style, as IFS=:)
9862 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9863 echo "$as_me: error: cannot find input file: $f" >&2;}
9864 { (exit 1); exit 1; }; }
9867 if test -f "$f"; then
9870 elif test -f "$srcdir/$f"; then
9875 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9876 echo "$as_me: error: cannot find input file: $f" >&2;}
9877 { (exit 1); exit 1; }; }
9880 done` || { (exit 1); exit 1; }
9882 cat >>$CONFIG_STATUS <<_ACEOF
9886 cat >>$CONFIG_STATUS <<\_ACEOF
9888 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
9889 s
,@configure_input@
,$configure_input,;t t
9890 s
,@srcdir@
,$ac_srcdir,;t t
9891 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
9892 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9893 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
9894 s
,@builddir@
,$ac_builddir,;t t
9895 s
,@abs_builddir@
,$ac_abs_builddir,;t t
9896 s
,@top_builddir@
,$ac_top_builddir,;t t
9897 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
9898 s
,@INSTALL@
,$ac_INSTALL,;t t
9899 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9901 if test x"$ac_file" != x-; then
9902 mv $tmp/out $ac_file
9908 # Run the commands associated with the file.
9910 tests/bison ) chmod +x tests/bison ;;
9914 cat >>$CONFIG_STATUS <<\_ACEOF
9917 # CONFIG_HEADER section.
9920 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9921 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9923 # ac_d sets the value in "#define NAME VALUE" lines.
9924 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9925 ac_dB
='[ ].*$,\1#\2'
9928 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9929 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9930 ac_uB
='$,\1#\2define\3'
9934 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9935 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9937 - | *:- | *:-:* ) # input from stdin
9939 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9940 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9941 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9942 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9943 * ) ac_file_in
=$ac_file.
in ;;
9946 test x
"$ac_file" != x
- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9947 echo "$as_me: creating $ac_file" >&6;}
9949 # First look for the input files in the build tree, otherwise in the
9951 ac_file_inputs
=`IFS=:
9952 for f in $ac_file_in; do
9954 -) echo $tmp/stdin ;;
9956 # Absolute (can't be DOS-style, as IFS=:)
9957 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9958 echo "$as_me: error: cannot find input file: $f" >&2;}
9959 { (exit 1); exit 1; }; }
9962 if test -f "$f"; then
9965 elif test -f "$srcdir/$f"; then
9970 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9971 echo "$as_me: error: cannot find input file: $f" >&2;}
9972 { (exit 1); exit 1; }; }
9975 done` || { (exit 1); exit 1; }
9976 # Remove the trailing spaces.
9977 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9981 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9982 # `conftest.undefs', that substitutes the proper values into
9983 # config.h.in to produce config.h. The first handles `#define'
9984 # templates, and the second `#undef' templates.
9985 # And first: Protect against being on the right side of a sed subst in
9986 # config.status. Protect against being in an unquoted here document
9988 rm -f conftest.defines conftest.undefs
9989 # Using a here document instead of a string reduces the quoting nightmare.
9990 # Putting comments in sed scripts is not portable.
9992 # `end' is used to avoid that the second main sed command (meant for
9993 # 0-ary CPP macros) applies to n-ary macro definitions.
9994 # See the Autoconf documentation for `clear'.
9995 cat >confdef2sed.
sed <<\_ACEOF
10000 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10002 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10005 # If some macros were called several times there might be several times
10006 # the same #defines, which is useless. Nevertheless, we may not want to
10007 # sort them, since we want the *last* AC-DEFINE to be honored.
10008 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10009 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10010 rm -f confdef2sed.sed
10012 # This sed command replaces #undef with comments. This is necessary, for
10013 # example, in the case of _POSIX_SOURCE, which is predefined and required
10014 # on some systems where configure will not decide to define it.
10015 cat >>conftest.undefs <<\_ACEOF
10016 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10019 # Break up conftest.defines because some shells have a limit on the size
10020 # of here documents, and old seds have small limits too (100 cmds).
10021 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10022 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10023 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10024 echo ' :' >>$CONFIG_STATUS
10025 rm -f conftest.tail
10026 while grep . conftest.defines >/dev/null
10028 # Write a limited-size here document to $tmp/defines.sed.
10029 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10030 # Speed up: don't consider the non `#define' lines.
10031 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10032 # Work around the forget-to-reset-the-flag bug.
10033 echo 't clr' >>$CONFIG_STATUS
10034 echo ': clr' >>$CONFIG_STATUS
10035 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
10037 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10039 mv $tmp/out $tmp/in
10041 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
10042 rm -f conftest.defines
10043 mv conftest.
tail conftest.defines
10045 rm -f conftest.defines
10046 echo ' fi # egrep' >>$CONFIG_STATUS
10047 echo >>$CONFIG_STATUS
10049 # Break up conftest.undefs because some shells have a limit on the size
10050 # of here documents, and old seds have small limits too (100 cmds).
10051 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10052 rm -f conftest.
tail
10053 while grep . conftest.undefs
>/dev
/null
10055 # Write a limited-size here document to $tmp/undefs.sed.
10056 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10057 # Speed up: don't consider the non
`#undef'
10058 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10059 # Work around the forget-to-reset-the-flag bug.
10060 echo 't clr' >>$CONFIG_STATUS
10061 echo ': clr' >>$CONFIG_STATUS
10062 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10064 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10066 mv $tmp/out $tmp/in
10068 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10069 rm -f conftest.undefs
10070 mv conftest.tail conftest.undefs
10072 rm -f conftest.undefs
10074 cat >>$CONFIG_STATUS <<\_ACEOF
10075 # Let's still pretend it is `configure
' which instantiates (i.e., don't
10076 # use $as_me), people would be surprised to read:
10077 # /* config.h. Generated by config.status. */
10078 if test x
"$ac_file" = x
-; then
10079 echo "/* Generated by configure. */" >$tmp/config.h
10081 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10083 cat $tmp/in >>$tmp/config.h
10085 if test x
"$ac_file" != x
-; then
10086 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
10087 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10088 echo "$as_me: $ac_file is unchanged" >&6;}
10090 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
10091 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10092 X"$ac_file" : 'X\(//\)[^/]' \| \
10093 X"$ac_file" : 'X\(//\)$' \| \
10094 X"$ac_file" : 'X\(/\)' \| \
10095 . : '\(.\)' 2>/dev/null ||
10097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10098 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10099 /^X\(\/\/\)$/{ s//\1/; q; }
10100 /^X\(\/\).*/{ s//\1/; q; }
10102 { case "$ac_dir" in
10103 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
10107 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10108 case $as_mkdir_dir in
10109 # Skip DOS drivespec
10110 ?
:) as_incr_dir
=$as_mkdir_dir ;;
10112 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
10113 test -d "$as_incr_dir" ||
10114 mkdir "$as_incr_dir" ||
10115 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10116 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10117 { (exit 1); exit 1; }; }
10123 mv $tmp/config.h
$ac_file
10127 rm -f $tmp/config.h
10129 # Run the commands associated with the file.
10131 config.h
) # update the timestamp
10132 echo 'timestamp for config.h:config.hin' >"./stamp-h1"
10137 cat >>$CONFIG_STATUS <<\_ACEOF
10140 # CONFIG_COMMANDS section.
10142 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
10143 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
10144 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10145 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
10146 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10147 X"$ac_dest" : 'X\(//\)[^/]' \| \
10148 X"$ac_dest" : 'X\(//\)$' \| \
10149 X"$ac_dest" : 'X\(/\)' \| \
10150 . : '\(.\)' 2>/dev/null ||
10152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10153 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10154 /^X\(\/\/\)$/{ s//\1/; q; }
10155 /^X\(\/\).*/{ s//\1/; q; }
10159 if test "$ac_dir" != .
; then
10160 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10161 # A "../" for each directory in $ac_dir_suffix.
10162 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10164 ac_dir_suffix
= ac_top_builddir
=
10168 .
) # No --srcdir option. We are building in place.
10170 if test -z "$ac_top_builddir"; then
10173 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
10175 [\\/]* | ?
:[\\/]* ) # Absolute path.
10176 ac_srcdir
=$srcdir$ac_dir_suffix;
10177 ac_top_srcdir
=$srcdir ;;
10178 *) # Relative path.
10179 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
10180 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
10182 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10184 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
10185 ac_abs_top_builddir
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10186 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10187 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10190 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10191 echo "$as_me: executing $ac_dest commands" >&6;}
10193 tests
/atconfig
) cat >tests
/atconfig
<<ATEOF
10194 # Configurable variable values for building test suites.
10196 # Copyright 2000, 2001 Free Software Foundation, Inc.
10198 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
10200 abs_builddir='$ac_abs_builddir'
10201 at_srcdir='$ac_srcdir'
10202 abs_srcdir='$ac_abs_srcdir'
10203 at_top_srcdir='$ac_top_srcdir'
10204 abs_top_srcdir='$ac_abs_top_srcdir'
10205 at_top_builddir='$ac_top_builddir'
10206 abs_top_builddir='$ac_abs_top_builddir'
10208 AUTOTEST_PATH='tests'
10210 SHELL=\${CONFIG_SHELL-'$SHELL'}
10213 depfiles
) test x
"$AMDEP_TRUE" != x
"" || for mf
in $CONFIG_FILES; do
10214 # Strip MF so we end up with the name of the file.
10215 mf
=`echo "$mf" | sed -e 's/:.*$//'`
10216 if (head -1 $mf | fgrep
'generated by automake') > /dev
/null
2>&1; then
10217 dirpart
=`(dirname "$mf") 2>/dev/null ||
10218 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10219 X"$mf" : 'X\(//\)[^/]' \| \
10220 X"$mf" : 'X\(//\)$' \| \
10221 X"$mf" : 'X\(/\)' \| \
10222 . : '\(.\)' 2>/dev/null ||
10224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10225 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10226 /^X\(\/\/\)$/{ s//\1/; q; }
10227 /^X\(\/\).*/{ s//\1/; q; }
10232 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null
|| continue
10233 # Extract the definition of DEP_FILES from the Makefile without
10235 DEPDIR
=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10236 test -z "$DEPDIR" && continue
10237 # When using ansi2knr, U may be empty or an underscore; expand it
10238 U
=`sed -n -e '/^U = / s///p' < "$mf"`
10239 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10240 # We invoke sed twice because it is the simplest approach to
10241 # changing $(DEPDIR) to its actual value in the expansion.
10242 for file in `sed -n -e '
10243 /^DEP_FILES = .*\\\\$/ {
10252 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10253 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10254 # Make sure the directory exists.
10255 test -f "$dirpart/$file" && continue
10256 fdir
=`(dirname "$file") 2>/dev/null ||
10257 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10258 X"$file" : 'X\(//\)[^/]' \| \
10259 X"$file" : 'X\(//\)$' \| \
10260 X"$file" : 'X\(/\)' \| \
10261 . : '\(.\)' 2>/dev/null ||
10263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10264 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10265 /^X\(\/\/\)$/{ s//\1/; q; }
10266 /^X\(\/\).*/{ s//\1/; q; }
10268 { case $dirpart/$fdir in
10269 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
10272 as_dummy
=$dirpart/$fdir
10273 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10274 case $as_mkdir_dir in
10275 # Skip DOS drivespec
10276 ?
:) as_incr_dir
=$as_mkdir_dir ;;
10278 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
10279 test -d "$as_incr_dir" ||
10280 mkdir "$as_incr_dir" ||
10281 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
10282 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
10283 { (exit 1); exit 1; }; }
10288 # echo "creating $dirpart/$file"
10289 echo '# dummy' > "$dirpart/$file"
10293 default
-1 ) for ac_file
in $CONFIG_FILES; do
10294 # Support "outfile[:infile[:infile...]]"
10296 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10298 # PO directories have a Makefile.in generated from Makefile.in.in.
10299 case "$ac_file" in */Makefile.
in)
10300 # Adjust a relative srcdir.
10301 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10302 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
10303 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10304 # In autoconf-2.13 it is called $ac_given_srcdir.
10305 # In autoconf-2.50 it is called $srcdir.
10306 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
10307 case "$ac_given_srcdir" in
10308 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
10309 /*) top_srcdir
="$ac_given_srcdir" ;;
10310 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
10312 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10313 rm -f "$ac_dir/POTFILES"
10314 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10315 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
10316 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10317 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10326 cat >>$CONFIG_STATUS <<\_ACEOF
10328 { (exit 0); exit 0; }
10330 chmod +x
$CONFIG_STATUS
10331 ac_clean_files
=$ac_clean_files_save
10334 # configure is writing to config.log, and then calls config.status.
10335 # config.status does its own redirection, appending to config.log.
10336 # Unfortunately, on DOS this fails, as config.log is still kept open
10337 # by configure, so config.status won't be able to write to it; its
10338 # output is simply discarded. So we exec the FD to /dev/null,
10339 # effectively closing config.log, so it can be properly (re)opened and
10340 # appended to by config.status. When coming back to configure, we
10341 # need to make the FD available again.
10342 if test "$no_create" != yes; then
10345 $SHELL $CONFIG_STATUS || ac_cs_success
=false
10347 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10348 # would make configure fail if this is the last instruction.
10349 $ac_cs_success || { (exit 1); exit 1; }