2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.52g for GNU Bison 1.31.
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.31'
260 PACKAGE_STRING
='GNU Bison 1.31'
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.31 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.31:";;
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.31
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.31, 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 # Find a good install program. We prefer a C program (faster),
1244 # so one script is as good as another. But avoid the broken or
1245 # incompatible versions:
1246 # SysV /etc/install, /usr/sbin/install
1247 # SunOS /usr/etc/install
1248 # IRIX /sbin/install
1250 # AmigaOS /C/install, which installs bootblocks on floppy discs
1251 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1252 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1253 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1254 # ./install, which can be erroneously created by make from ./install.sh.
1255 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
1256 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1257 if test -z "$INSTALL"; then
1258 if test "${ac_cv_path_install+set}" = set; then
1259 echo $ECHO_N "(cached) $ECHO_C" >&6
1261 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1265 test -z "$as_dir" && as_dir
=.
1266 # Account for people who put trailing slashes in PATH elements.
1268 .
/ | .
// | /cC
/* | \
1269 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
1272 # OSF1 and SCO ODT 3.0 have their own names for install.
1273 # Don't use installbsd from OSF since it installs stuff as root
1275 for ac_prog
in ginstall scoinst
install; do
1276 for ac_exec_ext
in '' $ac_executable_extensions; do
1277 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1278 if test $ac_prog = install &&
1279 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1280 # AIX install. It has an incompatible calling convention.
1282 elif test $ac_prog = install &&
1283 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1284 # program-specific install script used by HP pwplus--don't use.
1287 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1299 if test "${ac_cv_path_install+set}" = set; then
1300 INSTALL
=$ac_cv_path_install
1302 # As a last resort, use the slow shell script. We don't cache a
1303 # path for INSTALL within a source directory, because that will
1304 # break other packages using the cache if that directory is
1305 # removed, or if the path is relative.
1306 INSTALL
=$ac_install_sh
1309 echo "$as_me:$LINENO: result: $INSTALL" >&5
1310 echo "${ECHO_T}$INSTALL" >&6
1312 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1313 # It thinks the first close brace ends the variable substitution.
1314 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1316 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1318 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1320 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1321 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1324 echo timestamp
> conftest.
file
1325 # Do `set' in a subshell so we don't clobber the current shell's
1326 # arguments. Must try -L first in case configure is actually a
1327 # symlink; some systems play weird games with the mod time of symlinks
1328 # (eg FreeBSD returns the mod time of the symlink's containing
1331 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1332 if test "$*" = "X"; then
1334 set X
`ls -t $srcdir/configure conftest.file`
1337 if test "$*" != "X $srcdir/configure conftest.file" \
1338 && test "$*" != "X conftest.file $srcdir/configure"; then
1340 # If neither matched, then we have a broken ls. This can happen
1341 # if, for instance, CONFIG_SHELL is bash and it inherits a
1342 # broken ls alias from the environment. This has actually
1343 # happened. Such a system could not be considered "sane".
1344 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1345 alias in your environment" >&5
1346 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1347 alias in your environment" >&2;}
1348 { (exit 1); exit 1; }; }
1351 test "$2" = conftest.
file
1357 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1358 Check your system clock" >&5
1359 echo "$as_me: error: newly created file is older than distributed files!
1360 Check your system clock" >&2;}
1361 { (exit 1); exit 1; }; }
1363 echo "$as_me:$LINENO: result: yes" >&5
1364 echo "${ECHO_T}yes" >&6
1365 test "$program_prefix" != NONE
&&
1366 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1367 # Use a double $ so make ignores it.
1368 test "$program_suffix" != NONE
&&
1369 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1370 # Double any \ or $. echo might interpret backslashes.
1371 # By default was `s,x,x', remove it if useless.
1372 cat <<\_ACEOF
>conftest.
sed
1373 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1375 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1379 # expand $ac_aux_dir to an absolute path
1380 am_aux_dir
=`cd $ac_aux_dir && pwd`
1382 test x
"${MISSING+set}" = xset
|| MISSING
="\${SHELL} $am_aux_dir/missing"
1383 # Use eval to expand $SHELL
1384 if eval "$MISSING --run true"; then
1385 am_missing_run
="$MISSING --run "
1388 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1389 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1392 for ac_prog
in gawk mawk nawk
awk
1394 # Extract the first word of "$ac_prog", so it can be a program name with args.
1395 set dummy
$ac_prog; ac_word
=$2
1396 echo "$as_me:$LINENO: checking for $ac_word" >&5
1397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1398 if test "${ac_cv_prog_AWK+set}" = set; then
1399 echo $ECHO_N "(cached) $ECHO_C" >&6
1401 if test -n "$AWK"; then
1402 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1408 test -z "$as_dir" && as_dir
=.
1409 for ac_exec_ext
in '' $ac_executable_extensions; do
1410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1411 ac_cv_prog_AWK
="$ac_prog"
1412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1421 if test -n "$AWK"; then
1422 echo "$as_me:$LINENO: result: $AWK" >&5
1423 echo "${ECHO_T}$AWK" >&6
1425 echo "$as_me:$LINENO: result: no" >&5
1426 echo "${ECHO_T}no" >&6
1429 test -n "$AWK" && break
1432 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1433 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1434 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
1435 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1438 cat >conftest.
make <<\_ACEOF
1440 @
echo 'ac_maketemp="${MAKE}"'
1442 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1443 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1444 if test -n "$ac_maketemp"; then
1445 eval ac_cv_prog_make_
${ac_make}_set
=yes
1447 eval ac_cv_prog_make_
${ac_make}_set
=no
1451 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1452 echo "$as_me:$LINENO: result: yes" >&5
1453 echo "${ECHO_T}yes" >&6
1456 echo "$as_me:$LINENO: result: no" >&5
1457 echo "${ECHO_T}no" >&6
1458 SET_MAKE
="MAKE=${MAKE-make}"
1461 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1462 if test "${enable_dependency_tracking+set}" = set; then
1463 enableval
="$enable_dependency_tracking"
1466 if test "x$enable_dependency_tracking" != xno
; then
1467 am_depcomp
="$ac_aux_dir/depcomp"
1472 if test "x$enable_dependency_tracking" != xno; then
1482 rm -f .deps
2>/dev
/null
1483 mkdir .deps
2>/dev
/null
1484 if test -d .deps
; then
1487 # MS-DOS does not allow filenames that begin with a dot.
1490 rmdir .deps
2>/dev
/null
1493 # test to see if srcdir already configured
1494 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1495 test -f $srcdir/config.status
; then
1496 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1497 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1498 { (exit 1); exit 1; }; }
1501 # Define the identity of the package.
1505 cat >>confdefs.h
<<_ACEOF
1506 #define PACKAGE "$PACKAGE"
1510 cat >>confdefs.h
<<_ACEOF
1511 #define VERSION "$VERSION"
1516 # Some tools Automake needs.
1518 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal"}
1521 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1524 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake"}
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
1930 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1931 ls a.out conftest 2>/dev/null;
1932 ls a.* conftest.* 2>/dev/null`; do
1934 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
) ;;
1935 a.out
) # We found the default executable, but exeext='' is most
1938 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1939 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1946 echo "$as_me: failed program was:" >&5
1947 cat conftest.
$ac_ext >&5
1948 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1949 echo "$as_me: error: C compiler cannot create executables" >&2;}
1950 { (exit 77); exit 77; }; }
1953 ac_exeext
=$ac_cv_exeext
1954 echo "$as_me:$LINENO: result: $ac_file" >&5
1955 echo "${ECHO_T}$ac_file" >&6
1957 # Check the compiler produces executables we can run. If not, either
1958 # the compiler is broken, or we cross compile.
1959 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1960 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1961 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1962 # If not cross compiling, check that we can run a simple program.
1963 if test "$cross_compiling" != yes; then
1964 if { ac_try
='./$ac_file'
1965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }; }; then
1972 if test "$cross_compiling" = maybe
; then
1975 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1976 If you meant to cross compile, use \`--host'." >&5
1977 echo "$as_me: error: cannot run C compiled programs.
1978 If you meant to cross compile, use \`--host'." >&2;}
1979 { (exit 1); exit 1; }; }
1983 echo "$as_me:$LINENO: result: yes" >&5
1984 echo "${ECHO_T}yes" >&6
1986 rm -f a.out a.exe conftest
$ac_cv_exeext
1987 ac_clean_files
=$ac_clean_files_save
1988 # Check the compiler produces executables we can run. If not, either
1989 # the compiler is broken, or we cross compile.
1990 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1991 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1992 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1993 echo "${ECHO_T}$cross_compiling" >&6
1995 echo "$as_me:$LINENO: checking for executable suffix" >&5
1996 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1998 (eval $ac_link) 2>&5
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); }; then
2002 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2003 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2004 # work properly (i.e., refer to `conftest.exe'), while it won't with
2006 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2008 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
2009 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2016 { { echo "$as_me:$LINENO: error: cannot compute EXEEXT: cannot compile and link" >&5
2017 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2018 { (exit 1); exit 1; }; }
2021 rm -f conftest
$ac_cv_exeext
2022 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2023 echo "${ECHO_T}$ac_cv_exeext" >&6
2025 rm -f conftest.
$ac_ext
2026 EXEEXT
=$ac_cv_exeext
2028 echo "$as_me:$LINENO: checking for object suffix" >&5
2029 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2030 if test "${ac_cv_objext+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 cat >conftest.
$ac_ext <<_ACEOF
2034 #line $LINENO "configure"
2035 #include "confdefs.h"
2037 #ifdef F77_DUMMY_MAIN
2041 int F77_DUMMY_MAIN() { return 1; }
2051 rm -f conftest.o conftest.obj
2052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2053 (eval $ac_compile) 2>&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); }; then
2057 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2059 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
2060 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2065 echo "$as_me: failed program was:" >&5
2066 cat conftest.
$ac_ext >&5
2067 { { echo "$as_me:$LINENO: error: cannot compute OBJEXT: cannot compile" >&5
2068 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2069 { (exit 1); exit 1; }; }
2072 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2074 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2075 echo "${ECHO_T}$ac_cv_objext" >&6
2076 OBJEXT
=$ac_cv_objext
2078 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2079 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2080 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2083 cat >conftest.
$ac_ext <<_ACEOF
2084 #line $LINENO "configure"
2085 #include "confdefs.h"
2087 #ifdef F77_DUMMY_MAIN
2091 int F77_DUMMY_MAIN() { return 1; }
2104 rm -f conftest.
$ac_objext
2105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2106 (eval $ac_compile) 2>&5
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); } &&
2110 { ac_try
='test -s conftest.$ac_objext'
2111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }; }; then
2118 echo "$as_me: failed program was:" >&5
2119 cat conftest.
$ac_ext >&5
2122 rm -f conftest.
$ac_objext conftest.
$ac_ext
2123 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2126 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2127 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2128 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2129 ac_test_CFLAGS
=${CFLAGS+set}
2130 ac_save_CFLAGS
=$CFLAGS
2132 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2133 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2134 if test "${ac_cv_prog_cc_g+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 cat >conftest.
$ac_ext <<_ACEOF
2138 #line $LINENO "configure"
2139 #include "confdefs.h"
2141 #ifdef F77_DUMMY_MAIN
2145 int F77_DUMMY_MAIN() { return 1; }
2155 rm -f conftest.
$ac_objext
2156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2157 (eval $ac_compile) 2>&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); } &&
2161 { ac_try
='test -s conftest.$ac_objext'
2162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; }; then
2169 echo "$as_me: failed program was:" >&5
2170 cat conftest.
$ac_ext >&5
2173 rm -f conftest.
$ac_objext conftest.
$ac_ext
2175 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2176 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2177 if test "$ac_test_CFLAGS" = set; then
2178 CFLAGS
=$ac_save_CFLAGS
2179 elif test $ac_cv_prog_cc_g = yes; then
2180 if test "$GCC" = yes; then
2186 if test "$GCC" = yes; then
2192 # Some people use a C++ compiler to compile C. Since we use `exit',
2193 # in C++ we need to declare it. In case someone uses the same compiler
2194 # for both compiling C and C++ we need to have the C++ compiler decide
2195 # the declaration of exit, since it's the most demanding environment.
2196 cat >conftest.
$ac_ext <<_ACEOF
2201 rm -f conftest.
$ac_objext
2202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2203 (eval $ac_compile) 2>&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); } &&
2207 { ac_try
='test -s conftest.$ac_objext'
2208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; }; then
2213 for ac_declaration
in \
2215 '#include <stdlib.h>' \
2216 'extern "C" void std::exit (int) throw (); using std::exit;' \
2217 'extern "C" void std::exit (int); using std::exit;' \
2218 'extern "C" void exit (int) throw ();' \
2219 'extern "C" void exit (int);' \
2222 cat >conftest.
$ac_ext <<_ACEOF
2223 #line $LINENO "configure"
2224 #include "confdefs.h"
2227 #ifdef F77_DUMMY_MAIN
2231 int F77_DUMMY_MAIN() { return 1; }
2241 rm -f conftest.
$ac_objext
2242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2243 (eval $ac_compile) 2>&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); } &&
2247 { ac_try
='test -s conftest.$ac_objext'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; }; then
2255 echo "$as_me: failed program was:" >&5
2256 cat conftest.
$ac_ext >&5
2259 rm -f conftest.
$ac_objext conftest.
$ac_ext
2260 cat >conftest.
$ac_ext <<_ACEOF
2261 #line $LINENO "configure"
2262 #include "confdefs.h"
2264 #ifdef F77_DUMMY_MAIN
2268 int F77_DUMMY_MAIN() { return 1; }
2278 rm -f conftest.
$ac_objext
2279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2280 (eval $ac_compile) 2>&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); } &&
2284 { ac_try
='test -s conftest.$ac_objext'
2285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }; }; then
2292 echo "$as_me: failed program was:" >&5
2293 cat conftest.
$ac_ext >&5
2295 rm -f conftest.
$ac_objext conftest.
$ac_ext
2298 if test -n "$ac_declaration"; then
2299 echo '#ifdef __cplusplus' >>confdefs.h
2300 echo $ac_declaration >>confdefs.h
2301 echo '#endif' >>confdefs.h
2305 echo "$as_me: failed program was:" >&5
2306 cat conftest.
$ac_ext >&5
2308 rm -f conftest.
$ac_objext conftest.
$ac_ext
2310 ac_cpp
='$CPP $CPPFLAGS'
2311 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2314 ac_config_commands
="$ac_config_commands depfiles"
2317 am_make
=${MAKE-make}
2318 cat > confinc
<< 'END'
2322 # If we don't find an include directive, just comment out the code.
2323 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2324 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2328 # First try GNU make style include.
2329 echo "include confinc" > confmf
2330 # We grep out `Entering directory' and `Leaving directory'
2331 # messages which can occur if `w' ends up in MAKEFLAGS.
2332 # In particular we don't look at `^make:' because GNU make might
2333 # be invoked under some other name (usually "gmake"), in which
2334 # case it prints its new name instead of `make'.
2335 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2340 # Now try BSD make style include.
2341 if test "$am__include" = "#"; then
2342 echo '.include "confinc"' > confmf
2343 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2344 am__include
=.include
2351 echo "$as_me:$LINENO: result: $_am_result" >&5
2352 echo "${ECHO_T}$_am_result" >&6
2353 rm -f confinc confmf
2356 depcc
="$CC" am_compiler_list
=
2358 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2359 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2360 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2364 # We make a subdir and do the tests there. Otherwise we can end up
2365 # making bogus files that we don't know about and never remove. For
2366 # instance it was reported that on HP-UX the gcc test will end up
2367 # making a dummy file named `D' -- because `-MD' means `put the output
2370 # Copy depcomp to subdir because otherwise we won't find it if we're
2371 # using a relative directory.
2372 cp "$am_depcomp" conftest.dir
2375 am_cv_CC_dependencies_compiler_type
=none
2376 if test "$am_compiler_list" = ""; then
2377 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2379 for depmode
in $am_compiler_list; do
2380 # We need to recreate these files for each test, as the compiler may
2381 # overwrite some of them when testing with obscure command lines.
2382 # This happens at least with the AIX C compiler.
2383 echo '#include "conftest.h"' > conftest.c
2384 echo 'int i;' > conftest.h
2385 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2389 # after this tag, mechanisms are not by side-effect, so they'll
2390 # only be used when explicitly requested
2391 if test "x$enable_dependency_tracking" = xyes
; then
2399 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2400 # mode. It turns out that the SunPro C++ compiler does not properly
2401 # handle `-M -o', and we need to detect this.
2402 if depmode
=$depmode \
2403 source=conftest.c object
=conftest.o \
2404 depfile
=conftest.Po tmpdepfile
=conftest.TPo \
2405 $SHELL .
/depcomp
$depcc -c conftest.c
-o conftest.o
>/dev
/null
2>&1 &&
2406 grep conftest.h conftest.Po
> /dev
/null
2>&1 &&
2407 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2408 am_cv_CC_dependencies_compiler_type
=$depmode
2416 am_cv_CC_dependencies_compiler_type
=none
2420 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2421 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2422 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
2427 ac_cpp
='$CPP $CPPFLAGS'
2428 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2429 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2430 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2431 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2432 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2433 # On Suns, sometimes $CPP names a directory.
2434 if test -n "$CPP" && test -d "$CPP"; then
2437 if test -z "$CPP"; then
2438 if test "${ac_cv_prog_CPP+set}" = set; then
2439 echo $ECHO_N "(cached) $ECHO_C" >&6
2441 # Double quotes because CPP needs to be expanded
2442 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2445 for ac_c_preproc_warn_flag
in '' yes
2447 # Use a header file that comes with gcc, so configuring glibc
2448 # with a fresh cross-compiler works.
2449 # On the NeXT, cc -E runs the code through the compiler's parser,
2450 # not just through cpp. "Syntax error" is here to catch this case.
2451 cat >conftest.
$ac_ext <<_ACEOF
2452 #line $LINENO "configure"
2453 #include "confdefs.h"
2457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2458 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2460 egrep -v '^ *\+' conftest.er1
>conftest.err
2462 cat conftest.err
>&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); } >/dev
/null
; then
2465 if test -s conftest.err
; then
2466 ac_cpp_err
=$ac_c_preproc_warn_flag
2473 if test -z "$ac_cpp_err"; then
2476 echo "$as_me: failed program was:" >&5
2477 cat conftest.
$ac_ext >&5
2478 # Broken: fails on valid input.
2481 rm -f conftest.err conftest.
$ac_ext
2483 # OK, works on sane cases. Now check whether non-existent headers
2484 # can be detected and how.
2485 cat >conftest.
$ac_ext <<_ACEOF
2486 #line $LINENO "configure"
2487 #include "confdefs.h"
2488 #include <ac_nonexistent.h>
2490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2491 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2493 egrep -v '^ *\+' conftest.er1
>conftest.err
2495 cat conftest.err
>&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); } >/dev
/null
; then
2498 if test -s conftest.err
; then
2499 ac_cpp_err
=$ac_c_preproc_warn_flag
2506 if test -z "$ac_cpp_err"; then
2507 # Broken: success on invalid input.
2510 echo "$as_me: failed program was:" >&5
2511 cat conftest.
$ac_ext >&5
2512 # Passes both tests.
2516 rm -f conftest.err conftest.
$ac_ext
2519 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2520 rm -f conftest.err conftest.
$ac_ext
2521 if $ac_preproc_ok; then
2533 echo "$as_me:$LINENO: result: $CPP" >&5
2534 echo "${ECHO_T}$CPP" >&6
2536 for ac_c_preproc_warn_flag
in '' yes
2538 # Use a header file that comes with gcc, so configuring glibc
2539 # with a fresh cross-compiler works.
2540 # On the NeXT, cc -E runs the code through the compiler's parser,
2541 # not just through cpp. "Syntax error" is here to catch this case.
2542 cat >conftest.
$ac_ext <<_ACEOF
2543 #line $LINENO "configure"
2544 #include "confdefs.h"
2548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2549 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2551 egrep -v '^ *\+' conftest.er1
>conftest.err
2553 cat conftest.err
>&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); } >/dev
/null
; then
2556 if test -s conftest.err
; then
2557 ac_cpp_err
=$ac_c_preproc_warn_flag
2564 if test -z "$ac_cpp_err"; then
2567 echo "$as_me: failed program was:" >&5
2568 cat conftest.
$ac_ext >&5
2569 # Broken: fails on valid input.
2572 rm -f conftest.err conftest.
$ac_ext
2574 # OK, works on sane cases. Now check whether non-existent headers
2575 # can be detected and how.
2576 cat >conftest.
$ac_ext <<_ACEOF
2577 #line $LINENO "configure"
2578 #include "confdefs.h"
2579 #include <ac_nonexistent.h>
2581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2582 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2584 egrep -v '^ *\+' conftest.er1
>conftest.err
2586 cat conftest.err
>&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); } >/dev
/null
; then
2589 if test -s conftest.err
; then
2590 ac_cpp_err
=$ac_c_preproc_warn_flag
2597 if test -z "$ac_cpp_err"; then
2598 # Broken: success on invalid input.
2601 echo "$as_me: failed program was:" >&5
2602 cat conftest.
$ac_ext >&5
2603 # Passes both tests.
2607 rm -f conftest.err conftest.
$ac_ext
2610 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2611 rm -f conftest.err conftest.
$ac_ext
2612 if $ac_preproc_ok; then
2615 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2616 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2617 { (exit 1); exit 1; }; }
2621 ac_cpp
='$CPP $CPPFLAGS'
2622 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2623 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2624 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2627 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2628 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2629 if test "${ac_cv_header_stdc+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2632 cat >conftest.
$ac_ext <<_ACEOF
2633 #line $LINENO "configure"
2634 #include "confdefs.h"
2641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2642 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2644 egrep -v '^ *\+' conftest.er1
>conftest.err
2646 cat conftest.err
>&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); } >/dev
/null
; then
2649 if test -s conftest.err
; then
2650 ac_cpp_err
=$ac_c_preproc_warn_flag
2657 if test -z "$ac_cpp_err"; then
2658 ac_cv_header_stdc
=yes
2660 echo "$as_me: failed program was:" >&5
2661 cat conftest.
$ac_ext >&5
2662 ac_cv_header_stdc
=no
2664 rm -f conftest.err conftest.
$ac_ext
2666 if test $ac_cv_header_stdc = yes; then
2667 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2668 cat >conftest.
$ac_ext <<_ACEOF
2669 #line $LINENO "configure"
2670 #include "confdefs.h"
2674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2675 egrep "memchr" >/dev
/null
2>&1; then
2678 ac_cv_header_stdc
=no
2684 if test $ac_cv_header_stdc = yes; then
2685 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2686 cat >conftest.
$ac_ext <<_ACEOF
2687 #line $LINENO "configure"
2688 #include "confdefs.h"
2692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2693 egrep "free" >/dev
/null
2>&1; then
2696 ac_cv_header_stdc
=no
2702 if test $ac_cv_header_stdc = yes; then
2703 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2704 if test "$cross_compiling" = yes; then
2707 cat >conftest.
$ac_ext <<_ACEOF
2708 #line $LINENO "configure"
2709 #include "confdefs.h"
2711 #if ((' ' & 0x0FF) == 0x020)
2712 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2713 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2715 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2716 || ('j' <= (c) && (c) <= 'r') \
2717 || ('s' <= (c) && (c) <= 'z'))
2718 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2721 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2726 for (i = 0; i < 256; i++)
2727 if (XOR (islower (i), ISLOWER (i))
2728 || toupper (i) != TOUPPER (i))
2733 rm -f conftest
$ac_exeext
2734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2735 (eval $ac_link) 2>&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; }; then
2746 echo "$as_me: program exited with status $ac_status" >&5
2747 echo "$as_me: failed program was:" >&5
2748 cat conftest.
$ac_ext >&5
2750 ac_cv_header_stdc
=no
2752 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2756 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2757 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2758 if test $ac_cv_header_stdc = yes; then
2760 cat >>confdefs.h
<<\_ACEOF
2761 #define STDC_HEADERS 1
2766 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2776 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2777 inttypes.h stdint.h unistd.h
2779 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2780 echo "$as_me:$LINENO: checking for $ac_header" >&5
2781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 cat >conftest.
$ac_ext <<_ACEOF
2786 #line $LINENO "configure"
2787 #include "confdefs.h"
2788 $ac_includes_default
2790 #include <$ac_header>
2792 rm -f conftest.
$ac_objext
2793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2794 (eval $ac_compile) 2>&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); } &&
2798 { ac_try
='test -s conftest.$ac_objext'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; }; then
2804 eval "$as_ac_Header=yes"
2806 echo "$as_me: failed program was:" >&5
2807 cat conftest.
$ac_ext >&5
2808 eval "$as_ac_Header=no"
2810 rm -f conftest.
$ac_objext conftest.
$ac_ext
2812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2815 cat >>confdefs.h
<<_ACEOF
2816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2824 if test "${ac_cv_header_minix_config_h+set}" = set; then
2825 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2826 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2827 if test "${ac_cv_header_minix_config_h+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2830 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2831 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2833 # Is the header compilable?
2834 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2835 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2836 cat >conftest.
$ac_ext <<_ACEOF
2837 #line $LINENO "configure"
2838 #include "confdefs.h"
2839 $ac_includes_default
2840 #include <minix/config.h>
2842 rm -f conftest.
$ac_objext
2843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2844 (eval $ac_compile) 2>&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); } &&
2848 { ac_try
='test -s conftest.$ac_objext'
2849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; }; then
2854 ac_header_compiler
=yes
2856 echo "$as_me: failed program was:" >&5
2857 cat conftest.
$ac_ext >&5
2858 ac_header_compiler
=no
2860 rm -f conftest.
$ac_objext conftest.
$ac_ext
2861 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2862 echo "${ECHO_T}$ac_header_compiler" >&6
2864 # Is the header present?
2865 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2866 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2867 cat >conftest.
$ac_ext <<_ACEOF
2868 #line $LINENO "configure"
2869 #include "confdefs.h"
2870 #include <minix/config.h>
2872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2873 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2875 egrep -v '^ *\+' conftest.er1
>conftest.err
2877 cat conftest.err
>&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); } >/dev
/null
; then
2880 if test -s conftest.err
; then
2881 ac_cpp_err
=$ac_c_preproc_warn_flag
2888 if test -z "$ac_cpp_err"; then
2889 ac_header_preproc
=yes
2891 echo "$as_me: failed program was:" >&5
2892 cat conftest.
$ac_ext >&5
2893 ac_header_preproc
=no
2895 rm -f conftest.err conftest.
$ac_ext
2896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2897 echo "${ECHO_T}$ac_header_preproc" >&6
2899 # So? What about this header?
2900 case $ac_header_compiler:$ac_header_preproc in
2902 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
2903 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2904 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2905 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2907 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled." >&5
2908 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled." >&2;}
2909 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
2910 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
2911 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2912 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2914 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2915 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2916 if test "${ac_cv_header_minix_config_h+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 ac_cv_header_minix_config_h
=$ac_header_preproc
2921 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2922 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2925 if test $ac_cv_header_minix_config_h = yes; then
2932 if test "$MINIX" = yes; then
2934 cat >>confdefs.h
<<\_ACEOF
2935 #define _POSIX_SOURCE 1
2939 cat >>confdefs.h
<<\_ACEOF
2940 #define _POSIX_1_SOURCE 2
2944 cat >>confdefs.h
<<\_ACEOF
2951 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2952 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2953 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 ac_check_lib_save_LIBS
=$LIBS
2957 LIBS
="-lcposix $LIBS"
2958 cat >conftest.
$ac_ext <<_ACEOF
2959 #line $LINENO "configure"
2960 #include "confdefs.h"
2962 /* Override any gcc2 internal prototype to avoid an error. */
2966 /* We use char because int might match the return type of a gcc2
2967 builtin and then its argument prototype would still apply. */
2969 #ifdef F77_DUMMY_MAIN
2973 int F77_DUMMY_MAIN() { return 1; }
2983 rm -f conftest.
$ac_objext conftest
$ac_exeext
2984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2985 (eval $ac_link) 2>&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); } &&
2989 { ac_try
='test -s conftest$ac_exeext'
2990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; }; then
2995 ac_cv_lib_cposix_strerror
=yes
2997 echo "$as_me: failed program was:" >&5
2998 cat conftest.
$ac_ext >&5
2999 ac_cv_lib_cposix_strerror
=no
3001 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3002 LIBS
=$ac_check_lib_save_LIBS
3004 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3005 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3006 if test $ac_cv_lib_cposix_strerror = yes; then
3007 LIBS
="$LIBS -lcposix"
3015 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3016 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3017 if test "${am_cv_prog_cc_stdc+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3020 am_cv_prog_cc_stdc
=no
3022 # Don't try gcc -ansi; that turns off useful extensions and
3023 # breaks some systems' header files.
3024 # AIX -qlanglvl=ansi
3025 # Ultrix and OSF/1 -std1
3026 # HP-UX 10.20 and later -Ae
3027 # HP-UX older versions -Aa -D_HPUX_SOURCE
3028 # SVR4 -Xc -D__EXTENSIONS__
3029 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3031 CC
="$ac_save_CC $ac_arg"
3032 cat >conftest.
$ac_ext <<_ACEOF
3033 #line $LINENO "configure"
3034 #include "confdefs.h"
3037 #include <sys/types.h>
3038 #include <sys/stat.h>
3039 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3040 struct buf { int x; };
3041 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3042 static char *e (p, i)
3048 static char *f (char * (*g) (char **, int), char **p, ...)
3053 s = g (p, va_arg (v,int));
3057 int test (int i, double x);
3058 struct s1 {int (*f) (int a);};
3059 struct s2 {int (*f) (double a);};
3060 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3064 #ifdef F77_DUMMY_MAIN
3068 int F77_DUMMY_MAIN() { return 1; }
3074 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3080 rm -f conftest.
$ac_objext
3081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3082 (eval $ac_compile) 2>&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); } &&
3086 { ac_try
='test -s conftest.$ac_objext'
3087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; }; then
3092 am_cv_prog_cc_stdc
="$ac_arg"; break
3094 echo "$as_me: failed program was:" >&5
3095 cat conftest.
$ac_ext >&5
3097 rm -f conftest.
$ac_objext conftest.
$ac_ext
3103 if test -z "$am_cv_prog_cc_stdc"; then
3104 echo "$as_me:$LINENO: result: none needed" >&5
3105 echo "${ECHO_T}none needed" >&6
3107 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3108 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3110 case "x$am_cv_prog_cc_stdc" in
3112 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
3115 if test -n "$ac_tool_prefix"; then
3116 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3117 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3118 echo "$as_me:$LINENO: checking for $ac_word" >&5
3119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3120 if test "${ac_cv_prog_RANLIB+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 if test -n "$RANLIB"; then
3124 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3126 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3130 test -z "$as_dir" && as_dir
=.
3131 for ac_exec_ext
in '' $ac_executable_extensions; do
3132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3133 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 RANLIB
=$ac_cv_prog_RANLIB
3143 if test -n "$RANLIB"; then
3144 echo "$as_me:$LINENO: result: $RANLIB" >&5
3145 echo "${ECHO_T}$RANLIB" >&6
3147 echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6
3152 if test -z "$ac_cv_prog_RANLIB"; then
3153 ac_ct_RANLIB
=$RANLIB
3154 # Extract the first word of "ranlib", so it can be a program name with args.
3155 set dummy ranlib
; ac_word
=$2
3156 echo "$as_me:$LINENO: checking for $ac_word" >&5
3157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3158 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3161 if test -n "$ac_ct_RANLIB"; then
3162 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3168 test -z "$as_dir" && as_dir
=.
3169 for ac_exec_ext
in '' $ac_executable_extensions; do
3170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3181 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3182 if test -n "$ac_ct_RANLIB"; then
3183 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3184 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3186 echo "$as_me:$LINENO: result: no" >&5
3187 echo "${ECHO_T}no" >&6
3190 RANLIB
=$ac_ct_RANLIB
3192 RANLIB
="$ac_cv_prog_RANLIB"
3196 AUTOM4TE
=${AUTOM4TE-"${am_missing_run}autom4te"}
3199 # Check whether --enable-gcc-warnings or --disable-gcc-warnings was given.
3200 if test "${enable_gcc_warnings+set}" = set; then
3201 enableval
="$enable_gcc_warnings"
3202 case "${enableval}" in
3204 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for gcc-warnings option" >&5
3205 echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;}
3206 { (exit 1); exit 1; }; } ;;
3211 if test "${enableval}" = yes; then
3212 echo "$as_me:$LINENO: checking whether compiler accepts -Werror" >&5
3213 echo $ECHO_N "checking whether compiler accepts -Werror... $ECHO_C" >&6
3215 ac_save_CFLAGS
="$CFLAGS"
3216 CFLAGS
="$CFLAGS -Werror"
3217 cat >conftest.
$ac_ext <<_ACEOF
3218 #line $LINENO "configure"
3219 #include "confdefs.h"
3221 #ifdef F77_DUMMY_MAIN
3225 int F77_DUMMY_MAIN() { return 1; }
3235 rm -f conftest.
$ac_objext
3236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3237 (eval $ac_compile) 2>&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); } &&
3241 { ac_try
='test -s conftest.$ac_objext'
3242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; }; then
3247 WARNING_CFLAGS
="$WARNING_CFLAGS -Werror"
3248 echo "$as_me:$LINENO: result: yes" >&5
3249 echo "${ECHO_T}yes" >&6
3251 echo "$as_me: failed program was:" >&5
3252 cat conftest.
$ac_ext >&5
3253 echo "$as_me:$LINENO: result: no" >&5
3254 echo "${ECHO_T}no" >&6
3256 rm -f conftest.
$ac_objext conftest.
$ac_ext
3257 CFLAGS
="$ac_save_CFLAGS"
3258 WERROR_CFLAGS
=$WARNING_CFLAGS
3261 echo "$as_me:$LINENO: checking whether compiler accepts -Wall" >&5
3262 echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6
3264 ac_save_CFLAGS
="$CFLAGS"
3265 CFLAGS
="$CFLAGS -Wall"
3266 cat >conftest.
$ac_ext <<_ACEOF
3267 #line $LINENO "configure"
3268 #include "confdefs.h"
3270 #ifdef F77_DUMMY_MAIN
3274 int F77_DUMMY_MAIN() { return 1; }
3284 rm -f conftest.
$ac_objext
3285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3286 (eval $ac_compile) 2>&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } &&
3290 { ac_try
='test -s conftest.$ac_objext'
3291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }; }; then
3296 WARNING_CFLAGS
="$WARNING_CFLAGS -Wall"
3297 echo "$as_me:$LINENO: result: yes" >&5
3298 echo "${ECHO_T}yes" >&6
3300 echo "$as_me: failed program was:" >&5
3301 cat conftest.
$ac_ext >&5
3302 echo "$as_me:$LINENO: result: no" >&5
3303 echo "${ECHO_T}no" >&6
3305 rm -f conftest.
$ac_objext conftest.
$ac_ext
3306 CFLAGS
="$ac_save_CFLAGS"
3307 echo "$as_me:$LINENO: checking whether compiler accepts -W" >&5
3308 echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6
3310 ac_save_CFLAGS
="$CFLAGS"
3312 cat >conftest.
$ac_ext <<_ACEOF
3313 #line $LINENO "configure"
3314 #include "confdefs.h"
3316 #ifdef F77_DUMMY_MAIN
3320 int F77_DUMMY_MAIN() { return 1; }
3330 rm -f conftest.
$ac_objext
3331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3332 (eval $ac_compile) 2>&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } &&
3336 { ac_try
='test -s conftest.$ac_objext'
3337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; }; then
3342 WARNING_CFLAGS
="$WARNING_CFLAGS -W"
3343 echo "$as_me:$LINENO: result: yes" >&5
3344 echo "${ECHO_T}yes" >&6
3346 echo "$as_me: failed program was:" >&5
3347 cat conftest.
$ac_ext >&5
3348 echo "$as_me:$LINENO: result: no" >&5
3349 echo "${ECHO_T}no" >&6
3351 rm -f conftest.
$ac_objext conftest.
$ac_ext
3352 CFLAGS
="$ac_save_CFLAGS"
3353 echo "$as_me:$LINENO: checking whether compiler accepts -Wbad-function-cast" >&5
3354 echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6
3356 ac_save_CFLAGS
="$CFLAGS"
3357 CFLAGS
="$CFLAGS -Wbad-function-cast"
3358 cat >conftest.
$ac_ext <<_ACEOF
3359 #line $LINENO "configure"
3360 #include "confdefs.h"
3362 #ifdef F77_DUMMY_MAIN
3366 int F77_DUMMY_MAIN() { return 1; }
3376 rm -f conftest.
$ac_objext
3377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3378 (eval $ac_compile) 2>&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } &&
3382 { ac_try
='test -s conftest.$ac_objext'
3383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }; }; then
3388 WARNING_CFLAGS
="$WARNING_CFLAGS -Wbad-function-cast"
3389 echo "$as_me:$LINENO: result: yes" >&5
3390 echo "${ECHO_T}yes" >&6
3392 echo "$as_me: failed program was:" >&5
3393 cat conftest.
$ac_ext >&5
3394 echo "$as_me:$LINENO: result: no" >&5
3395 echo "${ECHO_T}no" >&6
3397 rm -f conftest.
$ac_objext conftest.
$ac_ext
3398 CFLAGS
="$ac_save_CFLAGS"
3399 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-align" >&5
3400 echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6
3402 ac_save_CFLAGS
="$CFLAGS"
3403 CFLAGS
="$CFLAGS -Wcast-align"
3404 cat >conftest.
$ac_ext <<_ACEOF
3405 #line $LINENO "configure"
3406 #include "confdefs.h"
3408 #ifdef F77_DUMMY_MAIN
3412 int F77_DUMMY_MAIN() { return 1; }
3422 rm -f conftest.
$ac_objext
3423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3424 (eval $ac_compile) 2>&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } &&
3428 { ac_try
='test -s conftest.$ac_objext'
3429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; }; then
3434 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-align"
3435 echo "$as_me:$LINENO: result: yes" >&5
3436 echo "${ECHO_T}yes" >&6
3438 echo "$as_me: failed program was:" >&5
3439 cat conftest.
$ac_ext >&5
3440 echo "$as_me:$LINENO: result: no" >&5
3441 echo "${ECHO_T}no" >&6
3443 rm -f conftest.
$ac_objext conftest.
$ac_ext
3444 CFLAGS
="$ac_save_CFLAGS"
3445 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-qual" >&5
3446 echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6
3448 ac_save_CFLAGS
="$CFLAGS"
3449 CFLAGS
="$CFLAGS -Wcast-qual"
3450 cat >conftest.
$ac_ext <<_ACEOF
3451 #line $LINENO "configure"
3452 #include "confdefs.h"
3454 #ifdef F77_DUMMY_MAIN
3458 int F77_DUMMY_MAIN() { return 1; }
3468 rm -f conftest.
$ac_objext
3469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3470 (eval $ac_compile) 2>&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } &&
3474 { ac_try
='test -s conftest.$ac_objext'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; }; then
3480 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-qual"
3481 echo "$as_me:$LINENO: result: yes" >&5
3482 echo "${ECHO_T}yes" >&6
3484 echo "$as_me: failed program was:" >&5
3485 cat conftest.
$ac_ext >&5
3486 echo "$as_me:$LINENO: result: no" >&5
3487 echo "${ECHO_T}no" >&6
3489 rm -f conftest.
$ac_objext conftest.
$ac_ext
3490 CFLAGS
="$ac_save_CFLAGS"
3491 echo "$as_me:$LINENO: checking whether compiler accepts -Wformat" >&5
3492 echo $ECHO_N "checking whether compiler accepts -Wformat... $ECHO_C" >&6
3494 ac_save_CFLAGS
="$CFLAGS"
3495 CFLAGS
="$CFLAGS -Wformat"
3496 cat >conftest.
$ac_ext <<_ACEOF
3497 #line $LINENO "configure"
3498 #include "confdefs.h"
3500 #ifdef F77_DUMMY_MAIN
3504 int F77_DUMMY_MAIN() { return 1; }
3514 rm -f conftest.
$ac_objext
3515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3516 (eval $ac_compile) 2>&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } &&
3520 { ac_try
='test -s conftest.$ac_objext'
3521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; }; then
3526 WARNING_CFLAGS
="$WARNING_CFLAGS -Wformat"
3527 echo "$as_me:$LINENO: result: yes" >&5
3528 echo "${ECHO_T}yes" >&6
3530 echo "$as_me: failed program was:" >&5
3531 cat conftest.
$ac_ext >&5
3532 echo "$as_me:$LINENO: result: no" >&5
3533 echo "${ECHO_T}no" >&6
3535 rm -f conftest.
$ac_objext conftest.
$ac_ext
3536 CFLAGS
="$ac_save_CFLAGS"
3537 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-declarations" >&5
3538 echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6
3540 ac_save_CFLAGS
="$CFLAGS"
3541 CFLAGS
="$CFLAGS -Wmissing-declarations"
3542 cat >conftest.
$ac_ext <<_ACEOF
3543 #line $LINENO "configure"
3544 #include "confdefs.h"
3546 #ifdef F77_DUMMY_MAIN
3550 int F77_DUMMY_MAIN() { return 1; }
3560 rm -f conftest.
$ac_objext
3561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3562 (eval $ac_compile) 2>&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } &&
3566 { ac_try
='test -s conftest.$ac_objext'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; }; then
3572 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-declarations"
3573 echo "$as_me:$LINENO: result: yes" >&5
3574 echo "${ECHO_T}yes" >&6
3576 echo "$as_me: failed program was:" >&5
3577 cat conftest.
$ac_ext >&5
3578 echo "$as_me:$LINENO: result: no" >&5
3579 echo "${ECHO_T}no" >&6
3581 rm -f conftest.
$ac_objext conftest.
$ac_ext
3582 CFLAGS
="$ac_save_CFLAGS"
3583 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-prototypes" >&5
3584 echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6
3586 ac_save_CFLAGS
="$CFLAGS"
3587 CFLAGS
="$CFLAGS -Wmissing-prototypes"
3588 cat >conftest.
$ac_ext <<_ACEOF
3589 #line $LINENO "configure"
3590 #include "confdefs.h"
3592 #ifdef F77_DUMMY_MAIN
3596 int F77_DUMMY_MAIN() { return 1; }
3606 rm -f conftest.
$ac_objext
3607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3608 (eval $ac_compile) 2>&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } &&
3612 { ac_try
='test -s conftest.$ac_objext'
3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; }; then
3618 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-prototypes"
3619 echo "$as_me:$LINENO: result: yes" >&5
3620 echo "${ECHO_T}yes" >&6
3622 echo "$as_me: failed program was:" >&5
3623 cat conftest.
$ac_ext >&5
3624 echo "$as_me:$LINENO: result: no" >&5
3625 echo "${ECHO_T}no" >&6
3627 rm -f conftest.
$ac_objext conftest.
$ac_ext
3628 CFLAGS
="$ac_save_CFLAGS"
3629 echo "$as_me:$LINENO: checking whether compiler accepts -Wnested-externs" >&5
3630 echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6
3632 ac_save_CFLAGS
="$CFLAGS"
3633 CFLAGS
="$CFLAGS -Wnested-externs"
3634 cat >conftest.
$ac_ext <<_ACEOF
3635 #line $LINENO "configure"
3636 #include "confdefs.h"
3638 #ifdef F77_DUMMY_MAIN
3642 int F77_DUMMY_MAIN() { return 1; }
3652 rm -f conftest.
$ac_objext
3653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3654 (eval $ac_compile) 2>&5
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); } &&
3658 { ac_try
='test -s conftest.$ac_objext'
3659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); }; }; then
3664 WARNING_CFLAGS
="$WARNING_CFLAGS -Wnested-externs"
3665 echo "$as_me:$LINENO: result: yes" >&5
3666 echo "${ECHO_T}yes" >&6
3668 echo "$as_me: failed program was:" >&5
3669 cat conftest.
$ac_ext >&5
3670 echo "$as_me:$LINENO: result: no" >&5
3671 echo "${ECHO_T}no" >&6
3673 rm -f conftest.
$ac_objext conftest.
$ac_ext
3674 CFLAGS
="$ac_save_CFLAGS"
3675 echo "$as_me:$LINENO: checking whether compiler accepts -Wshadow" >&5
3676 echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6
3678 ac_save_CFLAGS
="$CFLAGS"
3679 CFLAGS
="$CFLAGS -Wshadow"
3680 cat >conftest.
$ac_ext <<_ACEOF
3681 #line $LINENO "configure"
3682 #include "confdefs.h"
3684 #ifdef F77_DUMMY_MAIN
3688 int F77_DUMMY_MAIN() { return 1; }
3698 rm -f conftest.
$ac_objext
3699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3700 (eval $ac_compile) 2>&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); } &&
3704 { ac_try
='test -s conftest.$ac_objext'
3705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; }; then
3710 WARNING_CFLAGS
="$WARNING_CFLAGS -Wshadow"
3711 echo "$as_me:$LINENO: result: yes" >&5
3712 echo "${ECHO_T}yes" >&6
3714 echo "$as_me: failed program was:" >&5
3715 cat conftest.
$ac_ext >&5
3716 echo "$as_me:$LINENO: result: no" >&5
3717 echo "${ECHO_T}no" >&6
3719 rm -f conftest.
$ac_objext conftest.
$ac_ext
3720 CFLAGS
="$ac_save_CFLAGS"
3721 echo "$as_me:$LINENO: checking whether compiler accepts -Wstrict-prototypes" >&5
3722 echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6
3724 ac_save_CFLAGS
="$CFLAGS"
3725 CFLAGS
="$CFLAGS -Wstrict-prototypes"
3726 cat >conftest.
$ac_ext <<_ACEOF
3727 #line $LINENO "configure"
3728 #include "confdefs.h"
3730 #ifdef F77_DUMMY_MAIN
3734 int F77_DUMMY_MAIN() { return 1; }
3744 rm -f conftest.
$ac_objext
3745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3746 (eval $ac_compile) 2>&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); } &&
3750 { ac_try
='test -s conftest.$ac_objext'
3751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); }; }; then
3756 WARNING_CFLAGS
="$WARNING_CFLAGS -Wstrict-prototypes"
3757 echo "$as_me:$LINENO: result: yes" >&5
3758 echo "${ECHO_T}yes" >&6
3760 echo "$as_me: failed program was:" >&5
3761 cat conftest.
$ac_ext >&5
3762 echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6
3765 rm -f conftest.
$ac_objext conftest.
$ac_ext
3766 CFLAGS
="$ac_save_CFLAGS"
3767 echo "$as_me:$LINENO: checking whether compiler accepts -Wwrite-strings" >&5
3768 echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6
3770 ac_save_CFLAGS
="$CFLAGS"
3771 CFLAGS
="$CFLAGS -Wwrite-strings"
3772 cat >conftest.
$ac_ext <<_ACEOF
3773 #line $LINENO "configure"
3774 #include "confdefs.h"
3776 #ifdef F77_DUMMY_MAIN
3780 int F77_DUMMY_MAIN() { return 1; }
3790 rm -f conftest.
$ac_objext
3791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3792 (eval $ac_compile) 2>&5
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } &&
3796 { ac_try
='test -s conftest.$ac_objext'
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; }; then
3802 WARNING_CFLAGS
="$WARNING_CFLAGS -Wwrite-strings"
3803 echo "$as_me:$LINENO: result: yes" >&5
3804 echo "${ECHO_T}yes" >&6
3806 echo "$as_me: failed program was:" >&5
3807 cat conftest.
$ac_ext >&5
3808 echo "$as_me:$LINENO: result: no" >&5
3809 echo "${ECHO_T}no" >&6
3811 rm -f conftest.
$ac_objext conftest.
$ac_ext
3812 CFLAGS
="$ac_save_CFLAGS"
3815 # Checks for libraries.
3817 cat >>confdefs.h
<<\_ACEOF
3818 #define _GNU_SOURCE 1
3822 # Checks for header files.
3823 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3824 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3825 if test "${ac_cv_header_stdc+set}" = set; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 cat >conftest.
$ac_ext <<_ACEOF
3829 #line $LINENO "configure"
3830 #include "confdefs.h"
3837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3838 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3840 egrep -v '^ *\+' conftest.er1
>conftest.err
3842 cat conftest.err
>&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); } >/dev
/null
; then
3845 if test -s conftest.err
; then
3846 ac_cpp_err
=$ac_c_preproc_warn_flag
3853 if test -z "$ac_cpp_err"; then
3854 ac_cv_header_stdc
=yes
3856 echo "$as_me: failed program was:" >&5
3857 cat conftest.
$ac_ext >&5
3858 ac_cv_header_stdc
=no
3860 rm -f conftest.err conftest.
$ac_ext
3862 if test $ac_cv_header_stdc = yes; then
3863 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3864 cat >conftest.
$ac_ext <<_ACEOF
3865 #line $LINENO "configure"
3866 #include "confdefs.h"
3870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3871 egrep "memchr" >/dev
/null
2>&1; then
3874 ac_cv_header_stdc
=no
3880 if test $ac_cv_header_stdc = yes; then
3881 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3882 cat >conftest.
$ac_ext <<_ACEOF
3883 #line $LINENO "configure"
3884 #include "confdefs.h"
3888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3889 egrep "free" >/dev
/null
2>&1; then
3892 ac_cv_header_stdc
=no
3898 if test $ac_cv_header_stdc = yes; then
3899 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3900 if test "$cross_compiling" = yes; then
3903 cat >conftest.
$ac_ext <<_ACEOF
3904 #line $LINENO "configure"
3905 #include "confdefs.h"
3907 #if ((' ' & 0x0FF) == 0x020)
3908 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3909 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3911 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3912 || ('j' <= (c) && (c) <= 'r') \
3913 || ('s' <= (c) && (c) <= 'z'))
3914 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3922 for (i = 0; i < 256; i++)
3923 if (XOR (islower (i), ISLOWER (i))
3924 || toupper (i) != TOUPPER (i))
3929 rm -f conftest
$ac_exeext
3930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3931 (eval $ac_link) 2>&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); }; }; then
3942 echo "$as_me: program exited with status $ac_status" >&5
3943 echo "$as_me: failed program was:" >&5
3944 cat conftest.
$ac_ext >&5
3946 ac_cv_header_stdc
=no
3948 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3952 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3953 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3954 if test $ac_cv_header_stdc = yes; then
3956 cat >>confdefs.h
<<\_ACEOF
3957 #define STDC_HEADERS 1
3968 for ac_header
in ctype.h locale.h memory.h stdlib.h string.h unistd.h
3970 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3972 echo "$as_me:$LINENO: checking for $ac_header" >&5
3973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3980 # Is the header compilable?
3981 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3983 cat >conftest.
$ac_ext <<_ACEOF
3984 #line $LINENO "configure"
3985 #include "confdefs.h"
3986 $ac_includes_default
3987 #include <$ac_header>
3989 rm -f conftest.
$ac_objext
3990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3991 (eval $ac_compile) 2>&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } &&
3995 { ac_try
='test -s conftest.$ac_objext'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; }; then
4001 ac_header_compiler
=yes
4003 echo "$as_me: failed program was:" >&5
4004 cat conftest.
$ac_ext >&5
4005 ac_header_compiler
=no
4007 rm -f conftest.
$ac_objext conftest.
$ac_ext
4008 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4009 echo "${ECHO_T}$ac_header_compiler" >&6
4011 # Is the header present?
4012 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4013 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4014 cat >conftest.
$ac_ext <<_ACEOF
4015 #line $LINENO "configure"
4016 #include "confdefs.h"
4017 #include <$ac_header>
4019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4020 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4022 egrep -v '^ *\+' conftest.er1
>conftest.err
4024 cat conftest.err
>&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); } >/dev
/null
; then
4027 if test -s conftest.err
; then
4028 ac_cpp_err
=$ac_c_preproc_warn_flag
4035 if test -z "$ac_cpp_err"; then
4036 ac_header_preproc
=yes
4038 echo "$as_me: failed program was:" >&5
4039 cat conftest.
$ac_ext >&5
4040 ac_header_preproc
=no
4042 rm -f conftest.err conftest.
$ac_ext
4043 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4044 echo "${ECHO_T}$ac_header_preproc" >&6
4046 # So? What about this header?
4047 case $ac_header_compiler:$ac_header_preproc in
4049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
4055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
4056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4057 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4061 echo "$as_me:$LINENO: checking for $ac_header" >&5
4062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 eval "$as_ac_Header=$ac_header_preproc"
4068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4073 cat >>confdefs.h
<<_ACEOF
4074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4082 # Checks for typedefs.
4084 # Checks for structures.
4086 # Checks for compiler characteristics.
4087 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4088 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4089 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4092 ac_cv_prog_cc_stdc
=no
4094 cat >conftest.
$ac_ext <<_ACEOF
4095 #line $LINENO "configure"
4096 #include "confdefs.h"
4099 #include <sys/types.h>
4100 #include <sys/stat.h>
4101 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4102 struct buf { int x; };
4103 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4104 static char *e (p, i)
4110 static char *f (char * (*g) (char **, int), char **p, ...)
4115 s = g (p, va_arg (v,int));
4119 int test (int i, double x);
4120 struct s1 {int (*f) (int a);};
4121 struct s2 {int (*f) (double a);};
4122 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4125 #ifdef F77_DUMMY_MAIN
4129 int F77_DUMMY_MAIN() { return 1; }
4134 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4139 # Don't try gcc -ansi; that turns off useful extensions and
4140 # breaks some systems' header files.
4141 # AIX -qlanglvl=ansi
4142 # Ultrix and OSF/1 -std1
4143 # HP-UX 10.20 and later -Ae
4144 # HP-UX older versions -Aa -D_HPUX_SOURCE
4145 # SVR4 -Xc -D__EXTENSIONS__
4146 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4148 CC
="$ac_save_CC $ac_arg"
4149 rm -f conftest.
$ac_objext
4150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4151 (eval $ac_compile) 2>&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } &&
4155 { ac_try
='test -s conftest.$ac_objext'
4156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; }; then
4161 ac_cv_prog_cc_stdc
=$ac_arg
4164 echo "$as_me: failed program was:" >&5
4165 cat conftest.
$ac_ext >&5
4167 rm -f conftest.
$ac_objext
4169 rm -f conftest.
$ac_ext conftest.
$ac_objext
4174 case "x$ac_cv_prog_cc_stdc" in
4176 echo "$as_me:$LINENO: result: none needed" >&5
4177 echo "${ECHO_T}none needed" >&6 ;;
4179 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4180 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4181 CC
="$CC $ac_cv_prog_cc_stdc" ;;
4184 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4185 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4186 if test "${ac_cv_c_const+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 cat >conftest.
$ac_ext <<_ACEOF
4190 #line $LINENO "configure"
4191 #include "confdefs.h"
4193 #ifdef F77_DUMMY_MAIN
4197 int F77_DUMMY_MAIN() { return 1; }
4202 /* FIXME: Include the comments suggested by Paul. */
4204 /* Ultrix mips cc rejects this. */
4205 typedef int charset[2];
4207 /* SunOS 4.1.1 cc rejects this. */
4208 char const *const *ccp;
4210 /* NEC SVR4.0.2 mips cc rejects this. */
4211 struct point {int x, y;};
4212 static struct point const zero = {0,0};
4213 /* AIX XL C 1.02.0.0 rejects this.
4214 It does not let you subtract one const X* pointer from another in
4215 an arm of an if-expression whose if-part is not a constant
4217 const char *g = "string";
4218 ccp = &g + (g ? g-g : 0);
4219 /* HPUX 7.0 cc rejects these. */
4222 ccp = (char const *const *) p;
4223 { /* SCO 3.2v4 cc rejects this. */
4225 char const *s = 0 ? (char *) 0 : (char const *) 0;
4229 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4231 const int *foo = &x[0];
4234 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4235 typedef const int *iptr;
4239 { /* AIX XL C 1.02.0.0 rejects this saying
4240 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4241 struct s { int j; const int *ap[3]; };
4242 struct s *b; b->j = 5;
4244 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4253 rm -f conftest.
$ac_objext
4254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4255 (eval $ac_compile) 2>&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); } &&
4259 { ac_try
='test -s conftest.$ac_objext'
4260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); }; }; then
4267 echo "$as_me: failed program was:" >&5
4268 cat conftest.
$ac_ext >&5
4271 rm -f conftest.
$ac_objext conftest.
$ac_ext
4273 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4274 echo "${ECHO_T}$ac_cv_c_const" >&6
4275 if test $ac_cv_c_const = no
; then
4277 cat >>confdefs.h
<<\_ACEOF
4283 echo "$as_me:$LINENO: checking for inline" >&5
4284 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4285 if test "${ac_cv_c_inline+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 for ac_kw
in inline __inline__ __inline
; do
4290 cat >conftest.
$ac_ext <<_ACEOF
4291 #line $LINENO "configure"
4292 #include "confdefs.h"
4294 static $ac_kw int static_foo () {return 0; }
4295 $ac_kw int foo () {return 0; }
4299 rm -f conftest.
$ac_objext
4300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4301 (eval $ac_compile) 2>&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); } &&
4305 { ac_try
='test -s conftest.$ac_objext'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; }; then
4311 ac_cv_c_inline
=$ac_kw; break
4313 echo "$as_me: failed program was:" >&5
4314 cat conftest.
$ac_ext >&5
4316 rm -f conftest.
$ac_objext conftest.
$ac_ext
4320 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4321 echo "${ECHO_T}$ac_cv_c_inline" >&6
4322 case $ac_cv_c_inline in
4325 cat >>confdefs.h
<<\_ACEOF
4329 *) cat >>confdefs.h
<<_ACEOF
4330 #define inline $ac_cv_c_inline
4337 echo "$as_me:$LINENO: checking for function prototypes" >&5
4338 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4339 if test "$am_cv_prog_cc_stdc" != no
; then
4340 echo "$as_me:$LINENO: result: yes" >&5
4341 echo "${ECHO_T}yes" >&6
4343 cat >>confdefs.h
<<\_ACEOF
4344 #define PROTOTYPES 1
4349 echo "$as_me:$LINENO: result: no" >&5
4350 echo "${ECHO_T}no" >&6
4351 U
=_ ANSI2KNR
=.
/ansi2knr
4353 # Ensure some checks needed by ansi2knr itself.
4354 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4355 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4356 if test "${ac_cv_header_stdc+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 cat >conftest.
$ac_ext <<_ACEOF
4360 #line $LINENO "configure"
4361 #include "confdefs.h"
4368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4369 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4371 egrep -v '^ *\+' conftest.er1
>conftest.err
4373 cat conftest.err
>&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); } >/dev
/null
; then
4376 if test -s conftest.err
; then
4377 ac_cpp_err
=$ac_c_preproc_warn_flag
4384 if test -z "$ac_cpp_err"; then
4385 ac_cv_header_stdc
=yes
4387 echo "$as_me: failed program was:" >&5
4388 cat conftest.
$ac_ext >&5
4389 ac_cv_header_stdc
=no
4391 rm -f conftest.err conftest.
$ac_ext
4393 if test $ac_cv_header_stdc = yes; then
4394 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4395 cat >conftest.
$ac_ext <<_ACEOF
4396 #line $LINENO "configure"
4397 #include "confdefs.h"
4401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4402 egrep "memchr" >/dev
/null
2>&1; then
4405 ac_cv_header_stdc
=no
4411 if test $ac_cv_header_stdc = yes; then
4412 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4413 cat >conftest.
$ac_ext <<_ACEOF
4414 #line $LINENO "configure"
4415 #include "confdefs.h"
4419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4420 egrep "free" >/dev
/null
2>&1; then
4423 ac_cv_header_stdc
=no
4429 if test $ac_cv_header_stdc = yes; then
4430 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4431 if test "$cross_compiling" = yes; then
4434 cat >conftest.
$ac_ext <<_ACEOF
4435 #line $LINENO "configure"
4436 #include "confdefs.h"
4438 #if ((' ' & 0x0FF) == 0x020)
4439 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4440 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4442 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4443 || ('j' <= (c) && (c) <= 'r') \
4444 || ('s' <= (c) && (c) <= 'z'))
4445 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4448 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4453 for (i = 0; i < 256; i++)
4454 if (XOR (islower (i), ISLOWER (i))
4455 || toupper (i) != TOUPPER (i))
4460 rm -f conftest
$ac_exeext
4461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4462 (eval $ac_link) 2>&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; }; then
4473 echo "$as_me: program exited with status $ac_status" >&5
4474 echo "$as_me: failed program was:" >&5
4475 cat conftest.
$ac_ext >&5
4477 ac_cv_header_stdc
=no
4479 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4483 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4484 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4485 if test $ac_cv_header_stdc = yes; then
4487 cat >>confdefs.h
<<\_ACEOF
4488 #define STDC_HEADERS 1
4494 for ac_header
in string.h
4496 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4498 echo "$as_me:$LINENO: checking for $ac_header" >&5
4499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4506 # Is the header compilable?
4507 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4509 cat >conftest.
$ac_ext <<_ACEOF
4510 #line $LINENO "configure"
4511 #include "confdefs.h"
4512 $ac_includes_default
4513 #include <$ac_header>
4515 rm -f conftest.
$ac_objext
4516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4517 (eval $ac_compile) 2>&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); } &&
4521 { ac_try
='test -s conftest.$ac_objext'
4522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; }; then
4527 ac_header_compiler
=yes
4529 echo "$as_me: failed program was:" >&5
4530 cat conftest.
$ac_ext >&5
4531 ac_header_compiler
=no
4533 rm -f conftest.
$ac_objext conftest.
$ac_ext
4534 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4535 echo "${ECHO_T}$ac_header_compiler" >&6
4537 # Is the header present?
4538 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4540 cat >conftest.
$ac_ext <<_ACEOF
4541 #line $LINENO "configure"
4542 #include "confdefs.h"
4543 #include <$ac_header>
4545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4546 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4548 egrep -v '^ *\+' conftest.er1
>conftest.err
4550 cat conftest.err
>&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); } >/dev
/null
; then
4553 if test -s conftest.err
; then
4554 ac_cpp_err
=$ac_c_preproc_warn_flag
4561 if test -z "$ac_cpp_err"; then
4562 ac_header_preproc
=yes
4564 echo "$as_me: failed program was:" >&5
4565 cat conftest.
$ac_ext >&5
4566 ac_header_preproc
=no
4568 rm -f conftest.err conftest.
$ac_ext
4569 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4570 echo "${ECHO_T}$ac_header_preproc" >&6
4572 # So? What about this header?
4573 case $ac_header_compiler:$ac_header_preproc in
4575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4580 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
4581 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
4582 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4583 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4587 echo "$as_me:$LINENO: checking for $ac_header" >&5
4588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4590 echo $ECHO_N "(cached) $ECHO_C" >&6
4592 eval "$as_ac_Header=$ac_header_preproc"
4594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4599 cat >>confdefs.h
<<_ACEOF
4600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4609 # Checks for library functions.
4610 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4611 # for constant arguments. Useless!
4612 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4613 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4614 if test "${ac_cv_working_alloca_h+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 cat >conftest.
$ac_ext <<_ACEOF
4618 #line $LINENO "configure"
4619 #include "confdefs.h"
4621 #ifdef F77_DUMMY_MAIN
4625 int F77_DUMMY_MAIN() { return 1; }
4630 char *p = (char *) alloca (2 * sizeof (int));
4635 rm -f conftest.
$ac_objext conftest
$ac_exeext
4636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4637 (eval $ac_link) 2>&5
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); } &&
4641 { ac_try
='test -s conftest$ac_exeext'
4642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; }; then
4647 ac_cv_working_alloca_h
=yes
4649 echo "$as_me: failed program was:" >&5
4650 cat conftest.
$ac_ext >&5
4651 ac_cv_working_alloca_h
=no
4653 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4655 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4656 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4657 if test $ac_cv_working_alloca_h = yes; then
4659 cat >>confdefs.h
<<\_ACEOF
4660 #define HAVE_ALLOCA_H 1
4665 echo "$as_me:$LINENO: checking for alloca" >&5
4666 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4667 if test "${ac_cv_func_alloca_works+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4670 cat >conftest.
$ac_ext <<_ACEOF
4671 #line $LINENO "configure"
4672 #include "confdefs.h"
4674 # define alloca __builtin_alloca
4677 # include <malloc.h>
4678 # define alloca _alloca
4681 # include <alloca.h>
4686 # ifndef alloca /* predefined by HP cc +Olibcalls */
4694 #ifdef F77_DUMMY_MAIN
4698 int F77_DUMMY_MAIN() { return 1; }
4703 char *p = (char *) alloca (1);
4708 rm -f conftest.
$ac_objext conftest
$ac_exeext
4709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4710 (eval $ac_link) 2>&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } &&
4714 { ac_try
='test -s conftest$ac_exeext'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; }; then
4720 ac_cv_func_alloca_works
=yes
4722 echo "$as_me: failed program was:" >&5
4723 cat conftest.
$ac_ext >&5
4724 ac_cv_func_alloca_works
=no
4726 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4728 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4729 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4731 if test $ac_cv_func_alloca_works = yes; then
4733 cat >>confdefs.h
<<\_ACEOF
4734 #define HAVE_ALLOCA 1
4738 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4739 # that cause trouble. Some versions do not even contain alloca or
4740 # contain a buggy version. If you still want to use their alloca,
4741 # use ar to extract alloca.o from them instead of compiling alloca.c.
4743 ALLOCA
=alloca.
$ac_objext
4745 cat >>confdefs.h
<<\_ACEOF
4750 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4751 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4752 if test "${ac_cv_os_cray+set}" = set; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4755 cat >conftest.
$ac_ext <<_ACEOF
4756 #line $LINENO "configure"
4757 #include "confdefs.h"
4758 #if defined(CRAY) && ! defined(CRAY2)
4765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4766 egrep "webecray" >/dev
/null
2>&1; then
4774 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4775 echo "${ECHO_T}$ac_cv_os_cray" >&6
4776 if test $ac_cv_os_cray = yes; then
4777 for ac_func
in _getb67 GETB67 getb67
; do
4778 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4779 echo "$as_me:$LINENO: checking for $ac_func" >&5
4780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4781 if eval "test \"\${$as_ac_var+set}\" = set"; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 cat >conftest.
$ac_ext <<_ACEOF
4785 #line $LINENO "configure"
4786 #include "confdefs.h"
4787 /* System header to define __stub macros and hopefully few prototypes,
4788 which can conflict with char $ac_func (); below. */
4790 /* Override any gcc2 internal prototype to avoid an error. */
4794 /* We use char because int might match the return type of a gcc2
4795 builtin and then its argument prototype would still apply. */
4799 #ifdef F77_DUMMY_MAIN
4803 int F77_DUMMY_MAIN() { return 1; }
4808 /* The GNU C library defines this for functions which it implements
4809 to always fail with ENOSYS. Some functions are actually named
4810 something starting with __ and the normal name is an alias. */
4811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4821 rm -f conftest.
$ac_objext conftest
$ac_exeext
4822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4823 (eval $ac_link) 2>&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); } &&
4827 { ac_try
='test -s conftest$ac_exeext'
4828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); }; }; then
4833 eval "$as_ac_var=yes"
4835 echo "$as_me: failed program was:" >&5
4836 cat conftest.
$ac_ext >&5
4837 eval "$as_ac_var=no"
4839 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4842 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4843 if test `eval echo '${'$as_ac_var'}'` = yes; then
4845 cat >>confdefs.h
<<_ACEOF
4846 #define CRAY_STACKSEG_END $ac_func
4855 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4856 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4857 if test "${ac_cv_c_stack_direction+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 if test "$cross_compiling" = yes; then
4861 ac_cv_c_stack_direction
=0
4863 cat >conftest.
$ac_ext <<_ACEOF
4864 #line $LINENO "configure"
4865 #include "confdefs.h"
4867 find_stack_direction ()
4869 static char *addr = 0;
4874 return find_stack_direction ();
4877 return (&dummy > addr) ? 1 : -1;
4883 exit (find_stack_direction () < 0);
4886 rm -f conftest
$ac_exeext
4887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4888 (eval $ac_link) 2>&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; }; then
4897 ac_cv_c_stack_direction
=1
4899 echo "$as_me: program exited with status $ac_status" >&5
4900 echo "$as_me: failed program was:" >&5
4901 cat conftest.
$ac_ext >&5
4903 ac_cv_c_stack_direction
=-1
4905 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4908 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4909 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4911 cat >>confdefs.h
<<_ACEOF
4912 #define STACK_DIRECTION $ac_cv_c_stack_direction
4918 echo "$as_me:$LINENO: checking for obstacks" >&5
4919 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
4920 if test "${ac_cv_func_obstack+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 cat >conftest.
$ac_ext <<_ACEOF
4924 #line $LINENO "configure"
4925 #include "confdefs.h"
4926 #include "obstack.h"
4927 #ifdef F77_DUMMY_MAIN
4931 int F77_DUMMY_MAIN() { return 1; }
4936 struct obstack *mem; obstack_free(mem,(char *) 0)
4941 rm -f conftest.
$ac_objext conftest
$ac_exeext
4942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4943 (eval $ac_link) 2>&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } &&
4947 { ac_try
='test -s conftest$ac_exeext'
4948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); }; }; then
4953 ac_cv_func_obstack
=yes
4955 echo "$as_me: failed program was:" >&5
4956 cat conftest.
$ac_ext >&5
4957 ac_cv_func_obstack
=no
4959 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4961 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
4962 echo "${ECHO_T}$ac_cv_func_obstack" >&6
4963 if test $ac_cv_func_obstack = yes; then
4965 cat >>confdefs.h
<<\_ACEOF
4966 #define HAVE_OBSTACK 1
4970 LIBOBJS
="$LIBOBJS obstack.$ac_objext"
4973 echo "$as_me:$LINENO: checking for error_at_line" >&5
4974 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
4975 if test "${ac_cv_lib_error_at_line+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 cat >conftest.
$ac_ext <<_ACEOF
4979 #line $LINENO "configure"
4980 #include "confdefs.h"
4982 #ifdef F77_DUMMY_MAIN
4986 int F77_DUMMY_MAIN() { return 1; }
4991 error_at_line (0, 0, "", 0, "");
4996 rm -f conftest.
$ac_objext conftest
$ac_exeext
4997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4998 (eval $ac_link) 2>&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } &&
5002 { ac_try
='test -s conftest$ac_exeext'
5003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; }; then
5008 ac_cv_lib_error_at_line
=yes
5010 echo "$as_me: failed program was:" >&5
5011 cat conftest.
$ac_ext >&5
5012 ac_cv_lib_error_at_line
=no
5014 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5016 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
5017 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
5018 if test $ac_cv_lib_error_at_line = no
; then
5019 LIBOBJS
="$LIBOBJS error.$ac_objext"
5022 echo "$as_me:$LINENO: checking for working strnlen" >&5
5023 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6
5024 if test "${ac_cv_func_strnlen_working+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 if test "$cross_compiling" = yes; then
5028 ac_cv_func_strnlen_working
=no
5030 cat >conftest.
$ac_ext <<_ACEOF
5031 #line $LINENO "configure"
5032 #include "confdefs.h"
5034 #ifdef F77_DUMMY_MAIN
5038 int F77_DUMMY_MAIN() { return 1; }
5045 #define S_LEN (sizeof S - 1)
5047 /* At least one implementation is buggy: that of AIX 4.3 would
5048 give strnlen (S, 1) == 3. */
5051 for (i = 0; i < S_LEN + 1; ++i)
5053 int expected = i <= S_LEN ? i : S_LEN;
5054 if (strnlen (S, i) != expected)
5063 rm -f conftest
$ac_exeext
5064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5065 (eval $ac_link) 2>&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); }; }; then
5074 ac_cv_func_strnlen_working
=yes
5076 echo "$as_me: program exited with status $ac_status" >&5
5077 echo "$as_me: failed program was:" >&5
5078 cat conftest.
$ac_ext >&5
5080 ac_cv_func_strnlen_working
=no
5082 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5085 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
5086 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6
5087 test $ac_cv_func_strnlen_working = no
&& LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
5091 for ac_func
in mkstemp setlocale
5093 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5094 echo "$as_me:$LINENO: checking for $ac_func" >&5
5095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5096 if eval "test \"\${$as_ac_var+set}\" = set"; then
5097 echo $ECHO_N "(cached) $ECHO_C" >&6
5099 cat >conftest.
$ac_ext <<_ACEOF
5100 #line $LINENO "configure"
5101 #include "confdefs.h"
5102 /* System header to define __stub macros and hopefully few prototypes,
5103 which can conflict with char $ac_func (); below. */
5105 /* Override any gcc2 internal prototype to avoid an error. */
5109 /* We use char because int might match the return type of a gcc2
5110 builtin and then its argument prototype would still apply. */
5114 #ifdef F77_DUMMY_MAIN
5118 int F77_DUMMY_MAIN() { return 1; }
5123 /* The GNU C library defines this for functions which it implements
5124 to always fail with ENOSYS. Some functions are actually named
5125 something starting with __ and the normal name is an alias. */
5126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5136 rm -f conftest.
$ac_objext conftest
$ac_exeext
5137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5138 (eval $ac_link) 2>&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } &&
5142 { ac_try
='test -s conftest$ac_exeext'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; }; then
5148 eval "$as_ac_var=yes"
5150 echo "$as_me: failed program was:" >&5
5151 cat conftest.
$ac_ext >&5
5152 eval "$as_ac_var=no"
5154 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5157 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5158 if test `eval echo '${'$as_ac_var'}'` = yes; then
5159 cat >>confdefs.h
<<_ACEOF
5160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5166 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
5167 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
5168 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
5169 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 cat >conftest.
$ac_ext <<_ACEOF
5172 #line $LINENO "configure"
5173 #include "confdefs.h"
5174 $ac_includes_default
5175 #ifdef F77_DUMMY_MAIN
5179 int F77_DUMMY_MAIN() { return 1; }
5185 char *p = (char *) stpcpy;
5192 rm -f conftest.
$ac_objext
5193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5194 (eval $ac_compile) 2>&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } &&
5198 { ac_try
='test -s conftest.$ac_objext'
5199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }; }; then
5204 ac_cv_have_decl_stpcpy
=yes
5206 echo "$as_me: failed program was:" >&5
5207 cat conftest.
$ac_ext >&5
5208 ac_cv_have_decl_stpcpy
=no
5210 rm -f conftest.
$ac_objext conftest.
$ac_ext
5212 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
5213 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
5214 if test $ac_cv_have_decl_stpcpy = yes; then
5216 cat >>confdefs.h
<<_ACEOF
5217 #define HAVE_DECL_STPCPY 1
5222 cat >>confdefs.h
<<_ACEOF
5223 #define HAVE_DECL_STPCPY 0
5228 echo "$as_me:$LINENO: checking whether strchr is declared" >&5
5229 echo $ECHO_N "checking whether strchr is declared... $ECHO_C" >&6
5230 if test "${ac_cv_have_decl_strchr+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5233 cat >conftest.
$ac_ext <<_ACEOF
5234 #line $LINENO "configure"
5235 #include "confdefs.h"
5236 $ac_includes_default
5237 #ifdef F77_DUMMY_MAIN
5241 int F77_DUMMY_MAIN() { return 1; }
5247 char *p = (char *) strchr;
5254 rm -f conftest.
$ac_objext
5255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5256 (eval $ac_compile) 2>&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } &&
5260 { ac_try
='test -s conftest.$ac_objext'
5261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); }; }; then
5266 ac_cv_have_decl_strchr
=yes
5268 echo "$as_me: failed program was:" >&5
5269 cat conftest.
$ac_ext >&5
5270 ac_cv_have_decl_strchr
=no
5272 rm -f conftest.
$ac_objext conftest.
$ac_ext
5274 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strchr" >&5
5275 echo "${ECHO_T}$ac_cv_have_decl_strchr" >&6
5276 if test $ac_cv_have_decl_strchr = yes; then
5278 cat >>confdefs.h
<<_ACEOF
5279 #define HAVE_DECL_STRCHR 1
5284 cat >>confdefs.h
<<_ACEOF
5285 #define HAVE_DECL_STRCHR 0
5290 echo "$as_me:$LINENO: checking whether strspn is declared" >&5
5291 echo $ECHO_N "checking whether strspn is declared... $ECHO_C" >&6
5292 if test "${ac_cv_have_decl_strspn+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 cat >conftest.
$ac_ext <<_ACEOF
5296 #line $LINENO "configure"
5297 #include "confdefs.h"
5298 $ac_includes_default
5299 #ifdef F77_DUMMY_MAIN
5303 int F77_DUMMY_MAIN() { return 1; }
5309 char *p = (char *) strspn;
5316 rm -f conftest.
$ac_objext
5317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5318 (eval $ac_compile) 2>&5
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); } &&
5322 { ac_try
='test -s conftest.$ac_objext'
5323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); }; }; then
5328 ac_cv_have_decl_strspn
=yes
5330 echo "$as_me: failed program was:" >&5
5331 cat conftest.
$ac_ext >&5
5332 ac_cv_have_decl_strspn
=no
5334 rm -f conftest.
$ac_objext conftest.
$ac_ext
5336 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strspn" >&5
5337 echo "${ECHO_T}$ac_cv_have_decl_strspn" >&6
5338 if test $ac_cv_have_decl_strspn = yes; then
5340 cat >>confdefs.h
<<_ACEOF
5341 #define HAVE_DECL_STRSPN 1
5346 cat >>confdefs.h
<<_ACEOF
5347 #define HAVE_DECL_STRSPN 0
5352 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
5353 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
5354 if test "${ac_cv_have_decl_strnlen+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5357 cat >conftest.
$ac_ext <<_ACEOF
5358 #line $LINENO "configure"
5359 #include "confdefs.h"
5360 $ac_includes_default
5361 #ifdef F77_DUMMY_MAIN
5365 int F77_DUMMY_MAIN() { return 1; }
5371 char *p = (char *) strnlen;
5378 rm -f conftest.
$ac_objext
5379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5380 (eval $ac_compile) 2>&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } &&
5384 { ac_try
='test -s conftest.$ac_objext'
5385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; }; then
5390 ac_cv_have_decl_strnlen
=yes
5392 echo "$as_me: failed program was:" >&5
5393 cat conftest.
$ac_ext >&5
5394 ac_cv_have_decl_strnlen
=no
5396 rm -f conftest.
$ac_objext conftest.
$ac_ext
5398 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
5399 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
5400 if test $ac_cv_have_decl_strnlen = yes; then
5402 cat >>confdefs.h
<<_ACEOF
5403 #define HAVE_DECL_STRNLEN 1
5408 cat >>confdefs.h
<<_ACEOF
5409 #define HAVE_DECL_STRNLEN 0
5414 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
5415 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
5416 if test "${ac_cv_have_decl_memchr+set}" = set; then
5417 echo $ECHO_N "(cached) $ECHO_C" >&6
5419 cat >conftest.
$ac_ext <<_ACEOF
5420 #line $LINENO "configure"
5421 #include "confdefs.h"
5422 $ac_includes_default
5423 #ifdef F77_DUMMY_MAIN
5427 int F77_DUMMY_MAIN() { return 1; }
5433 char *p = (char *) memchr;
5440 rm -f conftest.
$ac_objext
5441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5442 (eval $ac_compile) 2>&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } &&
5446 { ac_try
='test -s conftest.$ac_objext'
5447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }; }; then
5452 ac_cv_have_decl_memchr
=yes
5454 echo "$as_me: failed program was:" >&5
5455 cat conftest.
$ac_ext >&5
5456 ac_cv_have_decl_memchr
=no
5458 rm -f conftest.
$ac_objext conftest.
$ac_ext
5460 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
5461 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
5462 if test $ac_cv_have_decl_memchr = yes; then
5464 cat >>confdefs.h
<<_ACEOF
5465 #define HAVE_DECL_MEMCHR 1
5470 cat >>confdefs.h
<<_ACEOF
5471 #define HAVE_DECL_MEMCHR 0
5476 echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
5477 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
5478 if test "${ac_cv_have_decl_memrchr+set}" = set; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5481 cat >conftest.
$ac_ext <<_ACEOF
5482 #line $LINENO "configure"
5483 #include "confdefs.h"
5484 $ac_includes_default
5485 #ifdef F77_DUMMY_MAIN
5489 int F77_DUMMY_MAIN() { return 1; }
5495 char *p = (char *) memrchr;
5502 rm -f conftest.
$ac_objext
5503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5504 (eval $ac_compile) 2>&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } &&
5508 { ac_try
='test -s conftest.$ac_objext'
5509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); }; }; then
5514 ac_cv_have_decl_memrchr
=yes
5516 echo "$as_me: failed program was:" >&5
5517 cat conftest.
$ac_ext >&5
5518 ac_cv_have_decl_memrchr
=no
5520 rm -f conftest.
$ac_objext conftest.
$ac_ext
5522 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
5523 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
5524 if test $ac_cv_have_decl_memrchr = yes; then
5526 cat >>confdefs.h
<<_ACEOF
5527 #define HAVE_DECL_MEMRCHR 1
5532 cat >>confdefs.h
<<_ACEOF
5533 #define HAVE_DECL_MEMRCHR 0
5545 for ac_func
in stpcpy strchr strspn memchr memrchr
5547 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5548 echo "$as_me:$LINENO: checking for $ac_func" >&5
5549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5550 if eval "test \"\${$as_ac_var+set}\" = set"; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 cat >conftest.
$ac_ext <<_ACEOF
5554 #line $LINENO "configure"
5555 #include "confdefs.h"
5556 /* System header to define __stub macros and hopefully few prototypes,
5557 which can conflict with char $ac_func (); below. */
5559 /* Override any gcc2 internal prototype to avoid an error. */
5563 /* We use char because int might match the return type of a gcc2
5564 builtin and then its argument prototype would still apply. */
5568 #ifdef F77_DUMMY_MAIN
5572 int F77_DUMMY_MAIN() { return 1; }
5577 /* The GNU C library defines this for functions which it implements
5578 to always fail with ENOSYS. Some functions are actually named
5579 something starting with __ and the normal name is an alias. */
5580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5590 rm -f conftest.
$ac_objext conftest
$ac_exeext
5591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5592 (eval $ac_link) 2>&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); } &&
5596 { ac_try
='test -s conftest$ac_exeext'
5597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; }; then
5602 eval "$as_ac_var=yes"
5604 echo "$as_me: failed program was:" >&5
5605 cat conftest.
$ac_ext >&5
5606 eval "$as_ac_var=no"
5608 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5611 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5612 if test `eval echo '${'$as_ac_var'}'` = yes; then
5613 cat >>confdefs.h
<<_ACEOF
5614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5618 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
5625 cat >>confdefs.h
<<\_ACEOF
5626 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
5630 echo "$as_me:$LINENO: checking for working malloc" >&5
5631 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
5632 if test "${jm_cv_func_working_malloc+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 if test "$cross_compiling" = yes; then
5636 jm_cv_func_working_malloc
=no
5638 cat >conftest.
$ac_ext <<_ACEOF
5639 #line $LINENO "configure"
5640 #include "confdefs.h"
5646 exit (malloc (0) ? 0 : 1);
5650 rm -f conftest
$ac_exeext
5651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5652 (eval $ac_link) 2>&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); }; }; then
5661 jm_cv_func_working_malloc
=yes
5663 echo "$as_me: program exited with status $ac_status" >&5
5664 echo "$as_me: failed program was:" >&5
5665 cat conftest.
$ac_ext >&5
5667 jm_cv_func_working_malloc
=no
5669 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5673 echo "$as_me:$LINENO: result: $jm_cv_func_working_malloc" >&5
5674 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
5675 if test $jm_cv_func_working_malloc = no
; then
5676 LIBOBJS
="$LIBOBJS malloc.$ac_objext"
5678 cat >>confdefs.h
<<\_ACEOF
5679 #define malloc rpl_malloc
5686 cat >>confdefs.h
<<\_ACEOF
5687 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
5691 echo "$as_me:$LINENO: checking for working realloc" >&5
5692 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
5693 if test "${jm_cv_func_working_realloc+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5696 if test "$cross_compiling" = yes; then
5697 jm_cv_func_working_realloc
=no
5699 cat >conftest.
$ac_ext <<_ACEOF
5700 #line $LINENO "configure"
5701 #include "confdefs.h"
5707 exit (realloc (0, 0) ? 0 : 1);
5711 rm -f conftest
$ac_exeext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5713 (eval $ac_link) 2>&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); }; }; then
5722 jm_cv_func_working_realloc
=yes
5724 echo "$as_me: program exited with status $ac_status" >&5
5725 echo "$as_me: failed program was:" >&5
5726 cat conftest.
$ac_ext >&5
5728 jm_cv_func_working_realloc
=no
5730 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5734 echo "$as_me:$LINENO: result: $jm_cv_func_working_realloc" >&5
5735 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
5736 if test $jm_cv_func_working_realloc = no
; then
5737 LIBOBJS
="$LIBOBJS realloc.$ac_objext"
5739 cat >>confdefs.h
<<\_ACEOF
5740 #define realloc rpl_realloc
5749 for ac_func
in isascii iswprint mbsinit
5751 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5752 echo "$as_me:$LINENO: checking for $ac_func" >&5
5753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5754 if eval "test \"\${$as_ac_var+set}\" = set"; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5757 cat >conftest.
$ac_ext <<_ACEOF
5758 #line $LINENO "configure"
5759 #include "confdefs.h"
5760 /* System header to define __stub macros and hopefully few prototypes,
5761 which can conflict with char $ac_func (); below. */
5763 /* Override any gcc2 internal prototype to avoid an error. */
5767 /* We use char because int might match the return type of a gcc2
5768 builtin and then its argument prototype would still apply. */
5772 #ifdef F77_DUMMY_MAIN
5776 int F77_DUMMY_MAIN() { return 1; }
5781 /* The GNU C library defines this for functions which it implements
5782 to always fail with ENOSYS. Some functions are actually named
5783 something starting with __ and the normal name is an alias. */
5784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5794 rm -f conftest.
$ac_objext conftest
$ac_exeext
5795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5796 (eval $ac_link) 2>&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } &&
5800 { ac_try
='test -s conftest$ac_exeext'
5801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }; }; then
5806 eval "$as_ac_var=yes"
5808 echo "$as_me: failed program was:" >&5
5809 cat conftest.
$ac_ext >&5
5810 eval "$as_ac_var=no"
5812 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5815 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5816 if test `eval echo '${'$as_ac_var'}'` = yes; then
5817 cat >>confdefs.h
<<_ACEOF
5818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5825 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
5826 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
5827 if test "${jm_cv_func_mbrtowc+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5830 cat >conftest.
$ac_ext <<_ACEOF
5831 #line $LINENO "configure"
5832 #include "confdefs.h"
5834 #ifdef F77_DUMMY_MAIN
5838 int F77_DUMMY_MAIN() { return 1; }
5843 mbstate_t state; return ! (sizeof state && mbrtowc);
5848 rm -f conftest.
$ac_objext conftest
$ac_exeext
5849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5850 (eval $ac_link) 2>&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } &&
5854 { ac_try
='test -s conftest$ac_exeext'
5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; }; then
5860 jm_cv_func_mbrtowc
=yes
5862 echo "$as_me: failed program was:" >&5
5863 cat conftest.
$ac_ext >&5
5864 jm_cv_func_mbrtowc
=no
5866 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5868 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
5869 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
5870 if test $jm_cv_func_mbrtowc = yes; then
5872 cat >>confdefs.h
<<\_ACEOF
5873 #define HAVE_MBRTOWC 1
5884 for ac_header
in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
5886 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5888 echo "$as_me:$LINENO: checking for $ac_header" >&5
5889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5896 # Is the header compilable?
5897 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5899 cat >conftest.
$ac_ext <<_ACEOF
5900 #line $LINENO "configure"
5901 #include "confdefs.h"
5902 $ac_includes_default
5903 #include <$ac_header>
5905 rm -f conftest.
$ac_objext
5906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5907 (eval $ac_compile) 2>&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); } &&
5911 { ac_try
='test -s conftest.$ac_objext'
5912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; }; then
5917 ac_header_compiler
=yes
5919 echo "$as_me: failed program was:" >&5
5920 cat conftest.
$ac_ext >&5
5921 ac_header_compiler
=no
5923 rm -f conftest.
$ac_objext conftest.
$ac_ext
5924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5925 echo "${ECHO_T}$ac_header_compiler" >&6
5927 # Is the header present?
5928 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5930 cat >conftest.
$ac_ext <<_ACEOF
5931 #line $LINENO "configure"
5932 #include "confdefs.h"
5933 #include <$ac_header>
5935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5936 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5938 egrep -v '^ *\+' conftest.er1
>conftest.err
5940 cat conftest.err
>&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); } >/dev
/null
; then
5943 if test -s conftest.err
; then
5944 ac_cpp_err
=$ac_c_preproc_warn_flag
5951 if test -z "$ac_cpp_err"; then
5952 ac_header_preproc
=yes
5954 echo "$as_me: failed program was:" >&5
5955 cat conftest.
$ac_ext >&5
5956 ac_header_preproc
=no
5958 rm -f conftest.err conftest.
$ac_ext
5959 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5960 echo "${ECHO_T}$ac_header_preproc" >&6
5962 # So? What about this header?
5963 case $ac_header_compiler:$ac_header_preproc in
5965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5968 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5970 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5971 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5972 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5973 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5975 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5977 echo "$as_me:$LINENO: checking for $ac_header" >&5
5978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 eval "$as_ac_Header=$ac_header_preproc"
5984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5989 cat >>confdefs.h
<<_ACEOF
5990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5997 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5998 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5999 if test "${ac_cv_header_stdc+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6002 cat >conftest.
$ac_ext <<_ACEOF
6003 #line $LINENO "configure"
6004 #include "confdefs.h"
6011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6012 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6014 egrep -v '^ *\+' conftest.er1
>conftest.err
6016 cat conftest.err
>&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } >/dev
/null
; then
6019 if test -s conftest.err
; then
6020 ac_cpp_err
=$ac_c_preproc_warn_flag
6027 if test -z "$ac_cpp_err"; then
6028 ac_cv_header_stdc
=yes
6030 echo "$as_me: failed program was:" >&5
6031 cat conftest.
$ac_ext >&5
6032 ac_cv_header_stdc
=no
6034 rm -f conftest.err conftest.
$ac_ext
6036 if test $ac_cv_header_stdc = yes; then
6037 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6038 cat >conftest.
$ac_ext <<_ACEOF
6039 #line $LINENO "configure"
6040 #include "confdefs.h"
6044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6045 egrep "memchr" >/dev
/null
2>&1; then
6048 ac_cv_header_stdc
=no
6054 if test $ac_cv_header_stdc = yes; then
6055 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6056 cat >conftest.
$ac_ext <<_ACEOF
6057 #line $LINENO "configure"
6058 #include "confdefs.h"
6062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6063 egrep "free" >/dev
/null
2>&1; then
6066 ac_cv_header_stdc
=no
6072 if test $ac_cv_header_stdc = yes; then
6073 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6074 if test "$cross_compiling" = yes; then
6077 cat >conftest.
$ac_ext <<_ACEOF
6078 #line $LINENO "configure"
6079 #include "confdefs.h"
6081 #if ((' ' & 0x0FF) == 0x020)
6082 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6083 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6085 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6086 || ('j' <= (c) && (c) <= 'r') \
6087 || ('s' <= (c) && (c) <= 'z'))
6088 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6091 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6096 for (i = 0; i < 256; i++)
6097 if (XOR (islower (i), ISLOWER (i))
6098 || toupper (i) != TOUPPER (i))
6103 rm -f conftest
$ac_exeext
6104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6105 (eval $ac_link) 2>&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }; }; then
6116 echo "$as_me: program exited with status $ac_status" >&5
6117 echo "$as_me: failed program was:" >&5
6118 cat conftest.
$ac_ext >&5
6120 ac_cv_header_stdc
=no
6122 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6126 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6127 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6128 if test $ac_cv_header_stdc = yes; then
6130 cat >>confdefs.h
<<\_ACEOF
6131 #define STDC_HEADERS 1
6137 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
6138 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
6139 if test "${ac_cv_c_backslash_a+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 cat >conftest.
$ac_ext <<_ACEOF
6143 #line $LINENO "configure"
6144 #include "confdefs.h"
6146 #ifdef F77_DUMMY_MAIN
6150 int F77_DUMMY_MAIN() { return 1; }
6159 char buf['\a' == 'a' ? -1 : 1];
6161 return buf[0] != "\a"[0];
6167 rm -f conftest.
$ac_objext
6168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6169 (eval $ac_compile) 2>&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); } &&
6173 { ac_try
='test -s conftest.$ac_objext'
6174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; }; then
6179 ac_cv_c_backslash_a
=yes
6181 echo "$as_me: failed program was:" >&5
6182 cat conftest.
$ac_ext >&5
6183 ac_cv_c_backslash_a
=no
6185 rm -f conftest.
$ac_objext conftest.
$ac_ext
6187 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
6188 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
6189 if test $ac_cv_c_backslash_a = yes; then
6191 cat >>confdefs.h
<<\_ACEOF
6192 #define HAVE_C_BACKSLASH_A 1
6199 for ac_header
in stdlib.h
6201 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6203 echo "$as_me:$LINENO: checking for $ac_header" >&5
6204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6211 # Is the header compilable?
6212 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6213 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6214 cat >conftest.
$ac_ext <<_ACEOF
6215 #line $LINENO "configure"
6216 #include "confdefs.h"
6217 $ac_includes_default
6218 #include <$ac_header>
6220 rm -f conftest.
$ac_objext
6221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6222 (eval $ac_compile) 2>&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } &&
6226 { ac_try
='test -s conftest.$ac_objext'
6227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; }; then
6232 ac_header_compiler
=yes
6234 echo "$as_me: failed program was:" >&5
6235 cat conftest.
$ac_ext >&5
6236 ac_header_compiler
=no
6238 rm -f conftest.
$ac_objext conftest.
$ac_ext
6239 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6240 echo "${ECHO_T}$ac_header_compiler" >&6
6242 # Is the header present?
6243 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6244 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6245 cat >conftest.
$ac_ext <<_ACEOF
6246 #line $LINENO "configure"
6247 #include "confdefs.h"
6248 #include <$ac_header>
6250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6251 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6253 egrep -v '^ *\+' conftest.er1
>conftest.err
6255 cat conftest.err
>&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } >/dev
/null
; then
6258 if test -s conftest.err
; then
6259 ac_cpp_err
=$ac_c_preproc_warn_flag
6266 if test -z "$ac_cpp_err"; then
6267 ac_header_preproc
=yes
6269 echo "$as_me: failed program was:" >&5
6270 cat conftest.
$ac_ext >&5
6271 ac_header_preproc
=no
6273 rm -f conftest.err conftest.
$ac_ext
6274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6275 echo "${ECHO_T}$ac_header_preproc" >&6
6277 # So? What about this header?
6278 case $ac_header_compiler:$ac_header_preproc in
6280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6288 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6292 echo "$as_me:$LINENO: checking for $ac_header" >&5
6293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6297 eval "$as_ac_Header=$ac_header_preproc"
6299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6304 cat >>confdefs.h
<<_ACEOF
6305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6313 echo "$as_me:$LINENO: checking for mbstate_t" >&5
6314 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
6315 if test "${ac_cv_type_mbstate_t+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6318 cat >conftest.
$ac_ext <<_ACEOF
6319 #line $LINENO "configure"
6320 #include "confdefs.h"
6323 # include <stdlib.h>
6326 #ifdef F77_DUMMY_MAIN
6330 int F77_DUMMY_MAIN() { return 1; }
6335 mbstate_t x; return sizeof x;
6340 rm -f conftest.
$ac_objext
6341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6342 (eval $ac_compile) 2>&5
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); } &&
6346 { ac_try
='test -s conftest.$ac_objext'
6347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; }; then
6352 ac_cv_type_mbstate_t
=yes
6354 echo "$as_me: failed program was:" >&5
6355 cat conftest.
$ac_ext >&5
6356 ac_cv_type_mbstate_t
=no
6358 rm -f conftest.
$ac_objext conftest.
$ac_ext
6360 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
6361 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
6362 if test $ac_cv_type_mbstate_t = no
; then
6364 cat >>confdefs.h
<<\_ACEOF
6365 #define mbstate_t int
6371 echo "$as_me:$LINENO: checking for function prototypes" >&5
6372 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6373 if test "$am_cv_prog_cc_stdc" != no
; then
6374 echo "$as_me:$LINENO: result: yes" >&5
6375 echo "${ECHO_T}yes" >&6
6377 cat >>confdefs.h
<<\_ACEOF
6378 #define PROTOTYPES 1
6383 echo "$as_me:$LINENO: result: no" >&5
6384 echo "${ECHO_T}no" >&6
6385 U
=_ ANSI2KNR
=.
/ansi2knr
6387 # Ensure some checks needed by ansi2knr itself.
6388 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6389 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6390 if test "${ac_cv_header_stdc+set}" = set; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6393 cat >conftest.
$ac_ext <<_ACEOF
6394 #line $LINENO "configure"
6395 #include "confdefs.h"
6402 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6403 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6405 egrep -v '^ *\+' conftest.er1
>conftest.err
6407 cat conftest.err
>&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } >/dev
/null
; then
6410 if test -s conftest.err
; then
6411 ac_cpp_err
=$ac_c_preproc_warn_flag
6418 if test -z "$ac_cpp_err"; then
6419 ac_cv_header_stdc
=yes
6421 echo "$as_me: failed program was:" >&5
6422 cat conftest.
$ac_ext >&5
6423 ac_cv_header_stdc
=no
6425 rm -f conftest.err conftest.
$ac_ext
6427 if test $ac_cv_header_stdc = yes; then
6428 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6429 cat >conftest.
$ac_ext <<_ACEOF
6430 #line $LINENO "configure"
6431 #include "confdefs.h"
6435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6436 egrep "memchr" >/dev
/null
2>&1; then
6439 ac_cv_header_stdc
=no
6445 if test $ac_cv_header_stdc = yes; then
6446 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6447 cat >conftest.
$ac_ext <<_ACEOF
6448 #line $LINENO "configure"
6449 #include "confdefs.h"
6453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6454 egrep "free" >/dev
/null
2>&1; then
6457 ac_cv_header_stdc
=no
6463 if test $ac_cv_header_stdc = yes; then
6464 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6465 if test "$cross_compiling" = yes; then
6468 cat >conftest.
$ac_ext <<_ACEOF
6469 #line $LINENO "configure"
6470 #include "confdefs.h"
6472 #if ((' ' & 0x0FF) == 0x020)
6473 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6474 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6476 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6477 || ('j' <= (c) && (c) <= 'r') \
6478 || ('s' <= (c) && (c) <= 'z'))
6479 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6482 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6487 for (i = 0; i < 256; i++)
6488 if (XOR (islower (i), ISLOWER (i))
6489 || toupper (i) != TOUPPER (i))
6494 rm -f conftest
$ac_exeext
6495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6496 (eval $ac_link) 2>&5
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; }; then
6507 echo "$as_me: program exited with status $ac_status" >&5
6508 echo "$as_me: failed program was:" >&5
6509 cat conftest.
$ac_ext >&5
6511 ac_cv_header_stdc
=no
6513 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6517 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6518 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6519 if test $ac_cv_header_stdc = yes; then
6521 cat >>confdefs.h
<<\_ACEOF
6522 #define STDC_HEADERS 1
6528 for ac_header
in string.h
6530 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6532 echo "$as_me:$LINENO: checking for $ac_header" >&5
6533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6540 # Is the header compilable?
6541 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6543 cat >conftest.
$ac_ext <<_ACEOF
6544 #line $LINENO "configure"
6545 #include "confdefs.h"
6546 $ac_includes_default
6547 #include <$ac_header>
6549 rm -f conftest.
$ac_objext
6550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6551 (eval $ac_compile) 2>&5
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); } &&
6555 { ac_try
='test -s conftest.$ac_objext'
6556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; }; then
6561 ac_header_compiler
=yes
6563 echo "$as_me: failed program was:" >&5
6564 cat conftest.
$ac_ext >&5
6565 ac_header_compiler
=no
6567 rm -f conftest.
$ac_objext conftest.
$ac_ext
6568 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6569 echo "${ECHO_T}$ac_header_compiler" >&6
6571 # Is the header present?
6572 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6574 cat >conftest.
$ac_ext <<_ACEOF
6575 #line $LINENO "configure"
6576 #include "confdefs.h"
6577 #include <$ac_header>
6579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6580 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6582 egrep -v '^ *\+' conftest.er1
>conftest.err
6584 cat conftest.err
>&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } >/dev
/null
; then
6587 if test -s conftest.err
; then
6588 ac_cpp_err
=$ac_c_preproc_warn_flag
6595 if test -z "$ac_cpp_err"; then
6596 ac_header_preproc
=yes
6598 echo "$as_me: failed program was:" >&5
6599 cat conftest.
$ac_ext >&5
6600 ac_header_preproc
=no
6602 rm -f conftest.err conftest.
$ac_ext
6603 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6604 echo "${ECHO_T}$ac_header_preproc" >&6
6606 # So? What about this header?
6607 case $ac_header_compiler:$ac_header_preproc in
6609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6617 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6621 echo "$as_me:$LINENO: checking for $ac_header" >&5
6622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6626 eval "$as_ac_Header=$ac_header_preproc"
6628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6633 cat >>confdefs.h
<<_ACEOF
6634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6647 for ac_func
in strerror vprintf doprnt
6649 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6650 echo "$as_me:$LINENO: checking for $ac_func" >&5
6651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6652 if eval "test \"\${$as_ac_var+set}\" = set"; then
6653 echo $ECHO_N "(cached) $ECHO_C" >&6
6655 cat >conftest.
$ac_ext <<_ACEOF
6656 #line $LINENO "configure"
6657 #include "confdefs.h"
6658 /* System header to define __stub macros and hopefully few prototypes,
6659 which can conflict with char $ac_func (); below. */
6661 /* Override any gcc2 internal prototype to avoid an error. */
6665 /* We use char because int might match the return type of a gcc2
6666 builtin and then its argument prototype would still apply. */
6670 #ifdef F77_DUMMY_MAIN
6674 int F77_DUMMY_MAIN() { return 1; }
6679 /* The GNU C library defines this for functions which it implements
6680 to always fail with ENOSYS. Some functions are actually named
6681 something starting with __ and the normal name is an alias. */
6682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6692 rm -f conftest.
$ac_objext conftest
$ac_exeext
6693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6694 (eval $ac_link) 2>&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } &&
6698 { ac_try
='test -s conftest$ac_exeext'
6699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); }; }; then
6704 eval "$as_ac_var=yes"
6706 echo "$as_me: failed program was:" >&5
6707 cat conftest.
$ac_ext >&5
6708 eval "$as_ac_var=no"
6710 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6713 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6714 if test `eval echo '${'$as_ac_var'}'` = yes; then
6715 cat >>confdefs.h
<<_ACEOF
6716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6722 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
6723 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
6724 if test "${ac_cv_have_decl_strerror+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6727 cat >conftest.
$ac_ext <<_ACEOF
6728 #line $LINENO "configure"
6729 #include "confdefs.h"
6730 $ac_includes_default
6731 #ifdef F77_DUMMY_MAIN
6735 int F77_DUMMY_MAIN() { return 1; }
6741 char *p = (char *) strerror;
6748 rm -f conftest.
$ac_objext
6749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6750 (eval $ac_compile) 2>&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } &&
6754 { ac_try
='test -s conftest.$ac_objext'
6755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); }; }; then
6760 ac_cv_have_decl_strerror
=yes
6762 echo "$as_me: failed program was:" >&5
6763 cat conftest.
$ac_ext >&5
6764 ac_cv_have_decl_strerror
=no
6766 rm -f conftest.
$ac_objext conftest.
$ac_ext
6768 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
6769 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
6770 if test $ac_cv_have_decl_strerror = yes; then
6772 cat >>confdefs.h
<<_ACEOF
6773 #define HAVE_DECL_STRERROR 1
6778 cat >>confdefs.h
<<_ACEOF
6779 #define HAVE_DECL_STRERROR 0
6786 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
6787 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
6788 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 cat >conftest.
$ac_ext <<_ACEOF
6792 #line $LINENO "configure"
6793 #include "confdefs.h"
6794 $ac_includes_default
6795 #ifdef F77_DUMMY_MAIN
6799 int F77_DUMMY_MAIN() { return 1; }
6805 char *p = (char *) strerror_r;
6812 rm -f conftest.
$ac_objext
6813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6814 (eval $ac_compile) 2>&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); } &&
6818 { ac_try
='test -s conftest.$ac_objext'
6819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); }; }; then
6824 ac_cv_have_decl_strerror_r
=yes
6826 echo "$as_me: failed program was:" >&5
6827 cat conftest.
$ac_ext >&5
6828 ac_cv_have_decl_strerror_r
=no
6830 rm -f conftest.
$ac_objext conftest.
$ac_ext
6832 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
6833 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
6834 if test $ac_cv_have_decl_strerror_r = yes; then
6836 cat >>confdefs.h
<<_ACEOF
6837 #define HAVE_DECL_STRERROR_R 1
6842 cat >>confdefs.h
<<_ACEOF
6843 #define HAVE_DECL_STRERROR_R 0
6851 for ac_func
in strerror_r
6853 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6854 echo "$as_me:$LINENO: checking for $ac_func" >&5
6855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6856 if eval "test \"\${$as_ac_var+set}\" = set"; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 cat >conftest.
$ac_ext <<_ACEOF
6860 #line $LINENO "configure"
6861 #include "confdefs.h"
6862 /* System header to define __stub macros and hopefully few prototypes,
6863 which can conflict with char $ac_func (); below. */
6865 /* Override any gcc2 internal prototype to avoid an error. */
6869 /* We use char because int might match the return type of a gcc2
6870 builtin and then its argument prototype would still apply. */
6874 #ifdef F77_DUMMY_MAIN
6878 int F77_DUMMY_MAIN() { return 1; }
6883 /* The GNU C library defines this for functions which it implements
6884 to always fail with ENOSYS. Some functions are actually named
6885 something starting with __ and the normal name is an alias. */
6886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6896 rm -f conftest.
$ac_objext conftest
$ac_exeext
6897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6898 (eval $ac_link) 2>&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } &&
6902 { ac_try
='test -s conftest$ac_exeext'
6903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); }; }; then
6908 eval "$as_ac_var=yes"
6910 echo "$as_me: failed program was:" >&5
6911 cat conftest.
$ac_ext >&5
6912 eval "$as_ac_var=no"
6914 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6918 if test `eval echo '${'$as_ac_var'}'` = yes; then
6919 cat >>confdefs.h
<<_ACEOF
6920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6926 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
6927 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
6928 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 ac_cv_func_strerror_r_char_p
=no
6933 if test $ac_cv_have_decl_strerror_r = yes; then
6934 cat >conftest.
$ac_ext <<_ACEOF
6935 #line $LINENO "configure"
6936 #include "confdefs.h"
6937 $ac_includes_default
6938 #ifdef F77_DUMMY_MAIN
6942 int F77_DUMMY_MAIN() { return 1; }
6949 char x = *strerror_r (0, buf, sizeof buf);
6950 char *p = strerror_r (0, buf, sizeof buf);
6956 rm -f conftest.
$ac_objext
6957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6958 (eval $ac_compile) 2>&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } &&
6962 { ac_try
='test -s conftest.$ac_objext'
6963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); }; }; then
6968 ac_cv_func_strerror_r_char_p
=yes
6970 echo "$as_me: failed program was:" >&5
6971 cat conftest.
$ac_ext >&5
6973 rm -f conftest.
$ac_objext conftest.
$ac_ext
6975 # strerror_r is not declared. Choose between
6976 # systems that have relatively inaccessible declarations for the
6977 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
6978 # former has a strerror_r that returns char*, while the latter
6979 # has a strerror_r that returns `int'.
6980 # This test should segfault on the DEC system.
6981 if test "$cross_compiling" = yes; then
6984 cat >conftest.
$ac_ext <<_ACEOF
6985 #line $LINENO "configure"
6986 #include "confdefs.h"
6987 $ac_includes_default
6988 extern char *strerror_r ();
6989 #ifdef F77_DUMMY_MAIN
6993 int F77_DUMMY_MAIN() { return 1; }
6999 char x = *strerror_r (0, buf, sizeof buf);
7000 exit (!isalpha (x));
7005 rm -f conftest
$ac_exeext
7006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7007 (eval $ac_link) 2>&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; }; then
7016 ac_cv_func_strerror_r_char_p
=yes
7018 echo "$as_me: program exited with status $ac_status" >&5
7019 echo "$as_me: failed program was:" >&5
7020 cat conftest.
$ac_ext >&5
7022 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7027 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
7028 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
7029 if test $ac_cv_func_strerror_r_char_p = yes; then
7031 cat >>confdefs.h
<<\_ACEOF
7032 #define STRERROR_R_CHAR_P 1
7037 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7038 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7039 if test "${ac_cv_header_stdc+set}" = set; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
7042 cat >conftest.
$ac_ext <<_ACEOF
7043 #line $LINENO "configure"
7044 #include "confdefs.h"
7051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7052 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7054 egrep -v '^ *\+' conftest.er1
>conftest.err
7056 cat conftest.err
>&5
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); } >/dev
/null
; then
7059 if test -s conftest.err
; then
7060 ac_cpp_err
=$ac_c_preproc_warn_flag
7067 if test -z "$ac_cpp_err"; then
7068 ac_cv_header_stdc
=yes
7070 echo "$as_me: failed program was:" >&5
7071 cat conftest.
$ac_ext >&5
7072 ac_cv_header_stdc
=no
7074 rm -f conftest.err conftest.
$ac_ext
7076 if test $ac_cv_header_stdc = yes; then
7077 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7078 cat >conftest.
$ac_ext <<_ACEOF
7079 #line $LINENO "configure"
7080 #include "confdefs.h"
7084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7085 egrep "memchr" >/dev
/null
2>&1; then
7088 ac_cv_header_stdc
=no
7094 if test $ac_cv_header_stdc = yes; then
7095 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7096 cat >conftest.
$ac_ext <<_ACEOF
7097 #line $LINENO "configure"
7098 #include "confdefs.h"
7102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7103 egrep "free" >/dev
/null
2>&1; then
7106 ac_cv_header_stdc
=no
7112 if test $ac_cv_header_stdc = yes; then
7113 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7114 if test "$cross_compiling" = yes; then
7117 cat >conftest.
$ac_ext <<_ACEOF
7118 #line $LINENO "configure"
7119 #include "confdefs.h"
7121 #if ((' ' & 0x0FF) == 0x020)
7122 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7123 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7125 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7126 || ('j' <= (c) && (c) <= 'r') \
7127 || ('s' <= (c) && (c) <= 'z'))
7128 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7131 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7136 for (i = 0; i < 256; i++)
7137 if (XOR (islower (i), ISLOWER (i))
7138 || toupper (i) != TOUPPER (i))
7143 rm -f conftest
$ac_exeext
7144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7145 (eval $ac_link) 2>&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); }; }; then
7156 echo "$as_me: program exited with status $ac_status" >&5
7157 echo "$as_me: failed program was:" >&5
7158 cat conftest.
$ac_ext >&5
7160 ac_cv_header_stdc
=no
7162 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7166 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7167 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7168 if test $ac_cv_header_stdc = yes; then
7170 cat >>confdefs.h
<<\_ACEOF
7171 #define STDC_HEADERS 1
7177 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
7178 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
7180 # Check whether --with-dmalloc or --without-dmalloc was given.
7181 if test "${with_dmalloc+set}" = set; then
7182 withval
="$with_dmalloc"
7183 if test "$withval" = yes; then
7184 echo "$as_me:$LINENO: result: yes" >&5
7185 echo "${ECHO_T}yes" >&6
7187 cat >>confdefs.h
<<\_ACEOF
7188 #define WITH_DMALLOC 1
7191 LIBS
="$LIBS -ldmalloc"
7192 LDFLAGS
="$LDFLAGS -g"
7194 echo "$as_me:$LINENO: result: no" >&5
7195 echo "${ECHO_T}no" >&6
7198 echo "$as_me:$LINENO: result: no" >&5
7199 echo "${ECHO_T}no" >&6
7203 ALL_LINGUAS
="de es et fr ja nl ru sv tr"
7204 # Make sure we can run config.sub.
7205 $ac_config_sub sun4
>/dev
/null
2>&1 ||
7206 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
7207 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
7208 { (exit 1); exit 1; }; }
7210 echo "$as_me:$LINENO: checking build system type" >&5
7211 echo $ECHO_N "checking build system type... $ECHO_C" >&6
7212 if test "${ac_cv_build+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 ac_cv_build_alias
=$build_alias
7216 test -z "$ac_cv_build_alias" &&
7217 ac_cv_build_alias
=`$ac_config_guess`
7218 test -z "$ac_cv_build_alias" &&
7219 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
7220 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
7221 { (exit 1); exit 1; }; }
7222 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
7223 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed." >&5
7224 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
7225 { (exit 1); exit 1; }; }
7228 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
7229 echo "${ECHO_T}$ac_cv_build" >&6
7231 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7232 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7233 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7236 echo "$as_me:$LINENO: checking host system type" >&5
7237 echo $ECHO_N "checking host system type... $ECHO_C" >&6
7238 if test "${ac_cv_host+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 ac_cv_host_alias
=$host_alias
7242 test -z "$ac_cv_host_alias" &&
7243 ac_cv_host_alias
=$ac_cv_build_alias
7244 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
7245 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
7246 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
7247 { (exit 1); exit 1; }; }
7250 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7251 echo "${ECHO_T}$ac_cv_host" >&6
7253 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7254 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7255 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7258 echo "$as_me:$LINENO: checking for off_t" >&5
7259 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7260 if test "${ac_cv_type_off_t+set}" = set; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
7263 cat >conftest.
$ac_ext <<_ACEOF
7264 #line $LINENO "configure"
7265 #include "confdefs.h"
7266 $ac_includes_default
7267 #ifdef F77_DUMMY_MAIN
7271 int F77_DUMMY_MAIN() { return 1; }
7284 rm -f conftest.
$ac_objext
7285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7286 (eval $ac_compile) 2>&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } &&
7290 { ac_try
='test -s conftest.$ac_objext'
7291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); }; }; then
7296 ac_cv_type_off_t
=yes
7298 echo "$as_me: failed program was:" >&5
7299 cat conftest.
$ac_ext >&5
7302 rm -f conftest.
$ac_objext conftest.
$ac_ext
7304 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7305 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7306 if test $ac_cv_type_off_t = yes; then
7310 cat >>confdefs.h
<<_ACEOF
7316 echo "$as_me:$LINENO: checking for size_t" >&5
7317 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7318 if test "${ac_cv_type_size_t+set}" = set; then
7319 echo $ECHO_N "(cached) $ECHO_C" >&6
7321 cat >conftest.
$ac_ext <<_ACEOF
7322 #line $LINENO "configure"
7323 #include "confdefs.h"
7324 $ac_includes_default
7325 #ifdef F77_DUMMY_MAIN
7329 int F77_DUMMY_MAIN() { return 1; }
7336 if (sizeof (size_t))
7342 rm -f conftest.
$ac_objext
7343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7344 (eval $ac_compile) 2>&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); } &&
7348 { ac_try
='test -s conftest.$ac_objext'
7349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); }; }; then
7354 ac_cv_type_size_t
=yes
7356 echo "$as_me: failed program was:" >&5
7357 cat conftest.
$ac_ext >&5
7358 ac_cv_type_size_t
=no
7360 rm -f conftest.
$ac_objext conftest.
$ac_ext
7362 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7363 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7364 if test $ac_cv_type_size_t = yes; then
7368 cat >>confdefs.h
<<_ACEOF
7369 #define size_t unsigned
7376 for ac_header
in stdlib.h unistd.h
7378 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7380 echo "$as_me:$LINENO: checking for $ac_header" >&5
7381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7388 # Is the header compilable?
7389 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7391 cat >conftest.
$ac_ext <<_ACEOF
7392 #line $LINENO "configure"
7393 #include "confdefs.h"
7394 $ac_includes_default
7395 #include <$ac_header>
7397 rm -f conftest.
$ac_objext
7398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7399 (eval $ac_compile) 2>&5
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); } &&
7403 { ac_try
='test -s conftest.$ac_objext'
7404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); }; }; then
7409 ac_header_compiler
=yes
7411 echo "$as_me: failed program was:" >&5
7412 cat conftest.
$ac_ext >&5
7413 ac_header_compiler
=no
7415 rm -f conftest.
$ac_objext conftest.
$ac_ext
7416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7417 echo "${ECHO_T}$ac_header_compiler" >&6
7419 # Is the header present?
7420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7422 cat >conftest.
$ac_ext <<_ACEOF
7423 #line $LINENO "configure"
7424 #include "confdefs.h"
7425 #include <$ac_header>
7427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7428 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7430 egrep -v '^ *\+' conftest.er1
>conftest.err
7432 cat conftest.err
>&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); } >/dev
/null
; then
7435 if test -s conftest.err
; then
7436 ac_cpp_err
=$ac_c_preproc_warn_flag
7443 if test -z "$ac_cpp_err"; then
7444 ac_header_preproc
=yes
7446 echo "$as_me: failed program was:" >&5
7447 cat conftest.
$ac_ext >&5
7448 ac_header_preproc
=no
7450 rm -f conftest.err conftest.
$ac_ext
7451 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7452 echo "${ECHO_T}$ac_header_preproc" >&6
7454 # So? What about this header?
7455 case $ac_header_compiler:$ac_header_preproc in
7457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7469 echo "$as_me:$LINENO: checking for $ac_header" >&5
7470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7472 echo $ECHO_N "(cached) $ECHO_C" >&6
7474 eval "$as_ac_Header=$ac_header_preproc"
7476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7481 cat >>confdefs.h
<<_ACEOF
7482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7490 for ac_func
in getpagesize
7492 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7493 echo "$as_me:$LINENO: checking for $ac_func" >&5
7494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7495 if eval "test \"\${$as_ac_var+set}\" = set"; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
7498 cat >conftest.
$ac_ext <<_ACEOF
7499 #line $LINENO "configure"
7500 #include "confdefs.h"
7501 /* System header to define __stub macros and hopefully few prototypes,
7502 which can conflict with char $ac_func (); below. */
7504 /* Override any gcc2 internal prototype to avoid an error. */
7508 /* We use char because int might match the return type of a gcc2
7509 builtin and then its argument prototype would still apply. */
7513 #ifdef F77_DUMMY_MAIN
7517 int F77_DUMMY_MAIN() { return 1; }
7522 /* The GNU C library defines this for functions which it implements
7523 to always fail with ENOSYS. Some functions are actually named
7524 something starting with __ and the normal name is an alias. */
7525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7535 rm -f conftest.
$ac_objext conftest
$ac_exeext
7536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7537 (eval $ac_link) 2>&5
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); } &&
7541 { ac_try
='test -s conftest$ac_exeext'
7542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); }; }; then
7547 eval "$as_ac_var=yes"
7549 echo "$as_me: failed program was:" >&5
7550 cat conftest.
$ac_ext >&5
7551 eval "$as_ac_var=no"
7553 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7556 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7557 if test `eval echo '${'$as_ac_var'}'` = yes; then
7558 cat >>confdefs.h
<<_ACEOF
7559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7565 echo "$as_me:$LINENO: checking for working mmap" >&5
7566 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7567 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7570 if test "$cross_compiling" = yes; then
7571 ac_cv_func_mmap_fixed_mapped
=no
7573 cat >conftest.
$ac_ext <<_ACEOF
7574 #line $LINENO "configure"
7575 #include "confdefs.h"
7576 $ac_includes_default
7577 /* Thanks to Mike Haertel and Jim Avera for this test.
7578 Here is a matrix of mmap possibilities:
7579 mmap private not fixed
7580 mmap private fixed at somewhere currently unmapped
7581 mmap private fixed at somewhere already mapped
7582 mmap shared not fixed
7583 mmap shared fixed at somewhere currently unmapped
7584 mmap shared fixed at somewhere already mapped
7585 For private mappings, we should verify that changes cannot be read()
7586 back from the file, nor mmap's back from the file at a different
7587 address. (There have been systems where private was not correctly
7588 implemented like the infamous i386 svr4.0, and systems where the
7589 VM page cache was not coherent with the file system buffer cache
7590 like early versions of FreeBSD and possibly contemporary NetBSD.)
7591 For shared mappings, we should conversely verify that changes get
7592 propagated back to all the places they're supposed to be.
7594 Grep wants private fixed already mapped.
7595 The main things grep needs to know about mmap are:
7596 * does it exist and is it safe to write into the mmap'd area
7597 * how to use it (BSD variants) */
7600 #include <sys/mman.h>
7602 #if !STDC_HEADERS && !HAVE_STDLIB_H
7606 /* This mess was copied from the GNU getpagesize.h. */
7607 #if !HAVE_GETPAGESIZE
7608 /* Assume that all systems that can run configure have sys/param.h. */
7609 # if !HAVE_SYS_PARAM_H
7610 # define HAVE_SYS_PARAM_H 1
7613 # ifdef _SC_PAGESIZE
7614 # define getpagesize() sysconf(_SC_PAGESIZE)
7615 # else /* no _SC_PAGESIZE */
7616 # if HAVE_SYS_PARAM_H
7617 # include <sys/param.h>
7618 # ifdef EXEC_PAGESIZE
7619 # define getpagesize() EXEC_PAGESIZE
7620 # else /* no EXEC_PAGESIZE */
7622 # define getpagesize() NBPG * CLSIZE
7625 # endif /* no CLSIZE */
7626 # else /* no NBPG */
7628 # define getpagesize() NBPC
7629 # else /* no NBPC */
7631 # define getpagesize() PAGESIZE
7632 # endif /* PAGESIZE */
7633 # endif /* no NBPC */
7634 # endif /* no NBPG */
7635 # endif /* no EXEC_PAGESIZE */
7636 # else /* no HAVE_SYS_PARAM_H */
7637 # define getpagesize() 8192 /* punt totally */
7638 # endif /* no HAVE_SYS_PARAM_H */
7639 # endif /* no _SC_PAGESIZE */
7641 #endif /* no HAVE_GETPAGESIZE */
7646 char *data, *data2, *data3;
7650 pagesize = getpagesize ();
7652 /* First, make a file with some known garbage in it. */
7653 data = (char *) malloc (pagesize);
7656 for (i = 0; i < pagesize; ++i)
7657 *(data + i) = rand ();
7659 fd = creat ("conftest.mmap", 0600);
7662 if (write (fd, data, pagesize) != pagesize)
7666 /* Next, try to mmap the file at a fixed address which already has
7667 something else allocated at it. If we can, also make sure that
7668 we see the same garbage. */
7669 fd = open ("conftest.mmap", O_RDWR);
7672 data2 = (char *) malloc (2 * pagesize);
7675 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7676 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7677 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7679 for (i = 0; i < pagesize; ++i)
7680 if (*(data + i) != *(data2 + i))
7683 /* Finally, make sure that changes to the mapped area do not
7684 percolate back to the file as seen by read(). (This is a bug on
7685 some variants of i386 svr4.0.) */
7686 for (i = 0; i < pagesize; ++i)
7687 *(data2 + i) = *(data2 + i) + 1;
7688 data3 = (char *) malloc (pagesize);
7691 if (read (fd, data3, pagesize) != pagesize)
7693 for (i = 0; i < pagesize; ++i)
7694 if (*(data + i) != *(data3 + i))
7700 rm -f conftest
$ac_exeext
7701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7702 (eval $ac_link) 2>&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); }; }; then
7711 ac_cv_func_mmap_fixed_mapped
=yes
7713 echo "$as_me: program exited with status $ac_status" >&5
7714 echo "$as_me: failed program was:" >&5
7715 cat conftest.
$ac_ext >&5
7717 ac_cv_func_mmap_fixed_mapped
=no
7719 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7722 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7723 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7724 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7726 cat >>confdefs.h
<<\_ACEOF
7734 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7735 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7736 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7737 echo $ECHO_N "(cached) $ECHO_C" >&6
7739 cat >conftest.
$ac_ext <<_ACEOF
7740 #line $LINENO "configure"
7741 #include "confdefs.h"
7743 #include <features.h>
7744 #ifdef __GNU_LIBRARY__
7745 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7752 egrep "Lucky GNU user" >/dev
/null
2>&1; then
7753 ac_cv_gnu_library_2_1
=yes
7755 ac_cv_gnu_library_2_1
=no
7762 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7763 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7765 GLIBC21
="$ac_cv_gnu_library_2_1"
7779 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7780 stdlib.h string.h unistd.h sys
/param.h
7782 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7784 echo "$as_me:$LINENO: checking for $ac_header" >&5
7785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7792 # Is the header compilable?
7793 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7795 cat >conftest.
$ac_ext <<_ACEOF
7796 #line $LINENO "configure"
7797 #include "confdefs.h"
7798 $ac_includes_default
7799 #include <$ac_header>
7801 rm -f conftest.
$ac_objext
7802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7803 (eval $ac_compile) 2>&5
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); } &&
7807 { ac_try
='test -s conftest.$ac_objext'
7808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); }; }; then
7813 ac_header_compiler
=yes
7815 echo "$as_me: failed program was:" >&5
7816 cat conftest.
$ac_ext >&5
7817 ac_header_compiler
=no
7819 rm -f conftest.
$ac_objext conftest.
$ac_ext
7820 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7821 echo "${ECHO_T}$ac_header_compiler" >&6
7823 # Is the header present?
7824 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7825 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7826 cat >conftest.
$ac_ext <<_ACEOF
7827 #line $LINENO "configure"
7828 #include "confdefs.h"
7829 #include <$ac_header>
7831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7832 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7834 egrep -v '^ *\+' conftest.er1
>conftest.err
7836 cat conftest.err
>&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } >/dev
/null
; then
7839 if test -s conftest.err
; then
7840 ac_cpp_err
=$ac_c_preproc_warn_flag
7847 if test -z "$ac_cpp_err"; then
7848 ac_header_preproc
=yes
7850 echo "$as_me: failed program was:" >&5
7851 cat conftest.
$ac_ext >&5
7852 ac_header_preproc
=no
7854 rm -f conftest.err conftest.
$ac_ext
7855 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7856 echo "${ECHO_T}$ac_header_preproc" >&6
7858 # So? What about this header?
7859 case $ac_header_compiler:$ac_header_preproc in
7861 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7862 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7869 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&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: checking for $ac_header" >&5
7874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7878 eval "$as_ac_Header=$ac_header_preproc"
7880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7885 cat >>confdefs.h
<<_ACEOF
7886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7914 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
7915 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
7916 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
7918 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7919 echo "$as_me:$LINENO: checking for $ac_func" >&5
7920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7921 if eval "test \"\${$as_ac_var+set}\" = set"; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7924 cat >conftest.
$ac_ext <<_ACEOF
7925 #line $LINENO "configure"
7926 #include "confdefs.h"
7927 /* System header to define __stub macros and hopefully few prototypes,
7928 which can conflict with char $ac_func (); below. */
7930 /* Override any gcc2 internal prototype to avoid an error. */
7934 /* We use char because int might match the return type of a gcc2
7935 builtin and then its argument prototype would still apply. */
7939 #ifdef F77_DUMMY_MAIN
7943 int F77_DUMMY_MAIN() { return 1; }
7948 /* The GNU C library defines this for functions which it implements
7949 to always fail with ENOSYS. Some functions are actually named
7950 something starting with __ and the normal name is an alias. */
7951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7961 rm -f conftest.
$ac_objext conftest
$ac_exeext
7962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7963 (eval $ac_link) 2>&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); } &&
7967 { ac_try
='test -s conftest$ac_exeext'
7968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); }; }; then
7973 eval "$as_ac_var=yes"
7975 echo "$as_me: failed program was:" >&5
7976 cat conftest.
$ac_ext >&5
7977 eval "$as_ac_var=no"
7979 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7982 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7983 if test `eval echo '${'$as_ac_var'}'` = yes; then
7984 cat >>confdefs.h
<<_ACEOF
7985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7995 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7996 if test "${with_libiconv_prefix+set}" = set; then
7997 withval
="$with_libiconv_prefix"
7999 for dir
in `echo "$withval" | tr : ' '`; do
8000 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
8001 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
8006 echo "$as_me:$LINENO: checking for iconv" >&5
8007 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8008 if test "${am_cv_func_iconv+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8012 am_cv_func_iconv
="no, consider installing GNU libiconv"
8014 cat >conftest.
$ac_ext <<_ACEOF
8015 #line $LINENO "configure"
8016 #include "confdefs.h"
8019 #ifdef F77_DUMMY_MAIN
8023 int F77_DUMMY_MAIN() { return 1; }
8028 iconv_t cd = iconv_open("","");
8029 iconv(cd,NULL,NULL,NULL,NULL);
8035 rm -f conftest.
$ac_objext conftest
$ac_exeext
8036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8037 (eval $ac_link) 2>&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); } &&
8041 { ac_try
='test -s conftest$ac_exeext'
8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; }; then
8047 am_cv_func_iconv
=yes
8049 echo "$as_me: failed program was:" >&5
8050 cat conftest.
$ac_ext >&5
8052 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8053 if test "$am_cv_func_iconv" != yes; then
8054 am_save_LIBS
="$LIBS"
8055 LIBS
="$LIBS -liconv"
8056 cat >conftest.
$ac_ext <<_ACEOF
8057 #line $LINENO "configure"
8058 #include "confdefs.h"
8061 #ifdef F77_DUMMY_MAIN
8065 int F77_DUMMY_MAIN() { return 1; }
8070 iconv_t cd = iconv_open("","");
8071 iconv(cd,NULL,NULL,NULL,NULL);
8077 rm -f conftest.
$ac_objext conftest
$ac_exeext
8078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8079 (eval $ac_link) 2>&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } &&
8083 { ac_try
='test -s conftest$ac_exeext'
8084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; }; then
8090 am_cv_func_iconv
=yes
8092 echo "$as_me: failed program was:" >&5
8093 cat conftest.
$ac_ext >&5
8095 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8096 LIBS
="$am_save_LIBS"
8100 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8101 echo "${ECHO_T}$am_cv_func_iconv" >&6
8102 if test "$am_cv_func_iconv" = yes; then
8104 cat >>confdefs.h
<<\_ACEOF
8105 #define HAVE_ICONV 1
8108 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8109 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8110 if test "${am_cv_proto_iconv+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8114 cat >conftest.
$ac_ext <<_ACEOF
8115 #line $LINENO "configure"
8116 #include "confdefs.h"
8124 #if defined(__STDC__) || defined(__cplusplus)
8125 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8130 #ifdef F77_DUMMY_MAIN
8134 int F77_DUMMY_MAIN() { return 1; }
8144 rm -f conftest.
$ac_objext
8145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8146 (eval $ac_compile) 2>&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); } &&
8150 { ac_try
='test -s conftest.$ac_objext'
8151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); }; }; then
8156 am_cv_proto_iconv_arg1
=""
8158 echo "$as_me: failed program was:" >&5
8159 cat conftest.
$ac_ext >&5
8160 am_cv_proto_iconv_arg1
="const"
8162 rm -f conftest.
$ac_objext conftest.
$ac_ext
8163 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);"
8166 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8167 echo "$as_me:$LINENO: result: ${ac_t:-
8168 }$am_cv_proto_iconv" >&5
8169 echo "${ECHO_T}${ac_t:-
8170 }$am_cv_proto_iconv" >&6
8172 cat >>confdefs.h
<<_ACEOF
8173 #define ICONV_CONST $am_cv_proto_iconv_arg1
8178 if test "$am_cv_lib_iconv" = yes; then
8184 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8185 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8186 if test "${am_cv_langinfo_codeset+set}" = set; then
8187 echo $ECHO_N "(cached) $ECHO_C" >&6
8189 cat >conftest.
$ac_ext <<_ACEOF
8190 #line $LINENO "configure"
8191 #include "confdefs.h"
8192 #include <langinfo.h>
8193 #ifdef F77_DUMMY_MAIN
8197 int F77_DUMMY_MAIN() { return 1; }
8202 char* cs = nl_langinfo(CODESET);
8207 rm -f conftest.
$ac_objext conftest
$ac_exeext
8208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8209 (eval $ac_link) 2>&5
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); } &&
8213 { ac_try
='test -s conftest$ac_exeext'
8214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); }; }; then
8219 am_cv_langinfo_codeset
=yes
8221 echo "$as_me: failed program was:" >&5
8222 cat conftest.
$ac_ext >&5
8223 am_cv_langinfo_codeset
=no
8225 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8228 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
8229 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
8230 if test $am_cv_langinfo_codeset = yes; then
8232 cat >>confdefs.h
<<\_ACEOF
8233 #define HAVE_LANGINFO_CODESET 1
8238 if test $ac_cv_header_locale_h = yes; then
8239 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8240 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8241 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8242 echo $ECHO_N "(cached) $ECHO_C" >&6
8244 cat >conftest.
$ac_ext <<_ACEOF
8245 #line $LINENO "configure"
8246 #include "confdefs.h"
8248 #ifdef F77_DUMMY_MAIN
8252 int F77_DUMMY_MAIN() { return 1; }
8262 rm -f conftest.
$ac_objext conftest
$ac_exeext
8263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8264 (eval $ac_link) 2>&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); } &&
8268 { ac_try
='test -s conftest$ac_exeext'
8269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; }; then
8274 am_cv_val_LC_MESSAGES
=yes
8276 echo "$as_me: failed program was:" >&5
8277 cat conftest.
$ac_ext >&5
8278 am_cv_val_LC_MESSAGES
=no
8280 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8282 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8283 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8284 if test $am_cv_val_LC_MESSAGES = yes; then
8286 cat >>confdefs.h
<<\_ACEOF
8287 #define HAVE_LC_MESSAGES 1
8292 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8293 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8294 # Check whether --enable-nls or --disable-nls was given.
8295 if test "${enable_nls+set}" = set; then
8296 enableval
="$enable_nls"
8301 echo "$as_me:$LINENO: result: $USE_NLS" >&5
8302 echo "${ECHO_T}$USE_NLS" >&6
8305 BUILD_INCLUDED_LIBINTL
=no
8306 USE_INCLUDED_LIBINTL
=no
8309 if test "$USE_NLS" = "yes"; then
8311 cat >>confdefs.h
<<\_ACEOF
8312 #define ENABLE_NLS 1
8315 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8316 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8318 # Check whether --with-included-gettext or --without-included-gettext was given.
8319 if test "${with_included_gettext+set}" = set; then
8320 withval
="$with_included_gettext"
8321 nls_cv_force_use_gnu_gettext
=$withval
8323 nls_cv_force_use_gnu_gettext
=no
8325 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8326 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8328 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
8329 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8335 if test "${ac_cv_header_libintl_h+set}" = set; then
8336 echo "$as_me:$LINENO: checking for libintl.h" >&5
8337 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8338 if test "${ac_cv_header_libintl_h+set}" = set; then
8339 echo $ECHO_N "(cached) $ECHO_C" >&6
8341 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8342 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8344 # Is the header compilable?
8345 echo "$as_me:$LINENO: checking libintl.h usability" >&5
8346 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
8347 cat >conftest.
$ac_ext <<_ACEOF
8348 #line $LINENO "configure"
8349 #include "confdefs.h"
8350 $ac_includes_default
8351 #include <libintl.h>
8353 rm -f conftest.
$ac_objext
8354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8355 (eval $ac_compile) 2>&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); } &&
8359 { ac_try
='test -s conftest.$ac_objext'
8360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; }; then
8365 ac_header_compiler
=yes
8367 echo "$as_me: failed program was:" >&5
8368 cat conftest.
$ac_ext >&5
8369 ac_header_compiler
=no
8371 rm -f conftest.
$ac_objext conftest.
$ac_ext
8372 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8373 echo "${ECHO_T}$ac_header_compiler" >&6
8375 # Is the header present?
8376 echo "$as_me:$LINENO: checking libintl.h presence" >&5
8377 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
8378 cat >conftest.
$ac_ext <<_ACEOF
8379 #line $LINENO "configure"
8380 #include "confdefs.h"
8381 #include <libintl.h>
8383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8384 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8386 egrep -v '^ *\+' conftest.er1
>conftest.err
8388 cat conftest.err
>&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } >/dev
/null
; then
8391 if test -s conftest.err
; then
8392 ac_cpp_err
=$ac_c_preproc_warn_flag
8399 if test -z "$ac_cpp_err"; then
8400 ac_header_preproc
=yes
8402 echo "$as_me: failed program was:" >&5
8403 cat conftest.
$ac_ext >&5
8404 ac_header_preproc
=no
8406 rm -f conftest.err conftest.
$ac_ext
8407 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8408 echo "${ECHO_T}$ac_header_preproc" >&6
8410 # So? What about this header?
8411 case $ac_header_compiler:$ac_header_preproc in
8413 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8414 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8415 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8416 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
8418 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled." >&5
8419 echo "$as_me: WARNING: libintl.h: present but cannot be compiled." >&2;}
8420 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
8421 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&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: checking for libintl.h" >&5
8426 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8427 if test "${ac_cv_header_libintl_h+set}" = set; then
8428 echo $ECHO_N "(cached) $ECHO_C" >&6
8430 ac_cv_header_libintl_h
=$ac_header_preproc
8432 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8433 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8436 if test $ac_cv_header_libintl_h = yes; then
8437 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
8438 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
8439 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
8442 cat >conftest.
$ac_ext <<_ACEOF
8443 #line $LINENO "configure"
8444 #include "confdefs.h"
8445 #include <libintl.h>
8446 extern int _nl_msg_cat_cntr;
8447 #ifdef F77_DUMMY_MAIN
8451 int F77_DUMMY_MAIN() { return 1; }
8456 bindtextdomain ("", "");
8457 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr
8462 rm -f conftest.
$ac_objext conftest
$ac_exeext
8463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8464 (eval $ac_link) 2>&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } &&
8468 { ac_try
='test -s conftest$ac_exeext'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; }; then
8474 gt_cv_func_gnugettext2_libc
=yes
8476 echo "$as_me: failed program was:" >&5
8477 cat conftest.
$ac_ext >&5
8478 gt_cv_func_gnugettext2_libc
=no
8480 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8482 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
8483 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
8485 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
8486 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
8487 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
8488 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
8489 echo $ECHO_N "(cached) $ECHO_C" >&6
8491 gt_save_LIBS
="$LIBS"
8492 LIBS
="$LIBS -lintl $LIBICONV"
8493 cat >conftest.
$ac_ext <<_ACEOF
8494 #line $LINENO "configure"
8495 #include "confdefs.h"
8496 #include <libintl.h>
8497 extern int _nl_msg_cat_cntr;
8498 #ifdef F77_DUMMY_MAIN
8502 int F77_DUMMY_MAIN() { return 1; }
8507 bindtextdomain ("", "");
8508 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr
8513 rm -f conftest.
$ac_objext conftest
$ac_exeext
8514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8515 (eval $ac_link) 2>&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } &&
8519 { ac_try
='test -s conftest$ac_exeext'
8520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); }; }; then
8525 gt_cv_func_gnugettext2_libintl
=yes
8527 echo "$as_me: failed program was:" >&5
8528 cat conftest.
$ac_ext >&5
8529 gt_cv_func_gnugettext2_libintl
=no
8531 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8532 LIBS
="$gt_save_LIBS"
8534 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
8535 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
8538 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
8539 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
8540 && test "$PACKAGE" != gettext; }; then
8542 cat >>confdefs.h
<<\_ACEOF
8543 #define HAVE_GETTEXT 1
8547 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
8548 INTLLIBS
="-lintl $LIBICONV"
8551 gt_save_LIBS
="$LIBS"
8552 LIBS
="$LIBS $INTLLIBS"
8554 for ac_func
in dcgettext
8556 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8557 echo "$as_me:$LINENO: checking for $ac_func" >&5
8558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8559 if eval "test \"\${$as_ac_var+set}\" = set"; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8562 cat >conftest.
$ac_ext <<_ACEOF
8563 #line $LINENO "configure"
8564 #include "confdefs.h"
8565 /* System header to define __stub macros and hopefully few prototypes,
8566 which can conflict with char $ac_func (); below. */
8568 /* Override any gcc2 internal prototype to avoid an error. */
8572 /* We use char because int might match the return type of a gcc2
8573 builtin and then its argument prototype would still apply. */
8577 #ifdef F77_DUMMY_MAIN
8581 int F77_DUMMY_MAIN() { return 1; }
8586 /* The GNU C library defines this for functions which it implements
8587 to always fail with ENOSYS. Some functions are actually named
8588 something starting with __ and the normal name is an alias. */
8589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8599 rm -f conftest.
$ac_objext conftest
$ac_exeext
8600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8601 (eval $ac_link) 2>&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); } &&
8605 { ac_try
='test -s conftest$ac_exeext'
8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; }; then
8611 eval "$as_ac_var=yes"
8613 echo "$as_me: failed program was:" >&5
8614 cat conftest.
$ac_ext >&5
8615 eval "$as_ac_var=no"
8617 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8620 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8621 if test `eval echo '${'$as_ac_var'}'` = yes; then
8622 cat >>confdefs.h
<<_ACEOF
8623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8629 LIBS
="$gt_save_LIBS"
8631 # Extract the first word of "msgfmt", so it can be a program name with args.
8632 set dummy msgfmt
; ac_word
=$2
8633 echo "$as_me:$LINENO: checking for $ac_word" >&5
8634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8635 if test "${ac_cv_path_MSGFMT+set}" = set; then
8636 echo $ECHO_N "(cached) $ECHO_C" >&6
8640 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8643 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8644 for ac_dir
in $PATH; do
8645 test -z "$ac_dir" && ac_dir
=.
8646 if test -f $ac_dir/$ac_word; then
8647 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8648 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8654 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8658 MSGFMT
="$ac_cv_path_MSGFMT"
8659 if test "$MSGFMT" != ":"; then
8660 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8661 echo "${ECHO_T}$MSGFMT" >&6
8663 echo "$as_me:$LINENO: result: no" >&5
8664 echo "${ECHO_T}no" >&6
8667 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8668 set dummy gmsgfmt
; ac_word
=$2
8669 echo "$as_me:$LINENO: checking for $ac_word" >&5
8670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8671 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8676 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8679 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8683 test -z "$as_dir" && as_dir
=.
8684 for ac_exec_ext
in '' $ac_executable_extensions; do
8685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8686 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8693 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8697 GMSGFMT
=$ac_cv_path_GMSGFMT
8699 if test -n "$GMSGFMT"; then
8700 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8701 echo "${ECHO_T}$GMSGFMT" >&6
8703 echo "$as_me:$LINENO: result: no" >&5
8704 echo "${ECHO_T}no" >&6
8708 # Extract the first word of "xgettext", so it can be a program name with args.
8709 set dummy xgettext
; ac_word
=$2
8710 echo "$as_me:$LINENO: checking for $ac_word" >&5
8711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8712 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8713 echo $ECHO_N "(cached) $ECHO_C" >&6
8717 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8720 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8721 for ac_dir
in $PATH; do
8722 test -z "$ac_dir" && ac_dir
=.
8723 if test -f $ac_dir/$ac_word; then
8724 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8725 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8731 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8735 XGETTEXT
="$ac_cv_path_XGETTEXT"
8736 if test "$XGETTEXT" != ":"; then
8737 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8738 echo "${ECHO_T}$XGETTEXT" >&6
8740 echo "$as_me:$LINENO: result: no" >&5
8741 echo "${ECHO_T}no" >&6
8752 if test "$CATOBJEXT" = "NONE"; then
8753 nls_cv_use_gnu_gettext
=yes
8757 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8758 INTLOBJS
="\$(GETTOBJS)"
8759 # Extract the first word of "msgfmt", so it can be a program name with args.
8760 set dummy msgfmt
; ac_word
=$2
8761 echo "$as_me:$LINENO: checking for $ac_word" >&5
8762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8763 if test "${ac_cv_path_MSGFMT+set}" = set; then
8764 echo $ECHO_N "(cached) $ECHO_C" >&6
8768 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8771 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8772 for ac_dir
in $PATH; do
8773 test -z "$ac_dir" && ac_dir
=.
8774 if test -f $ac_dir/$ac_word; then
8775 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8776 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8782 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8786 MSGFMT
="$ac_cv_path_MSGFMT"
8787 if test "$MSGFMT" != ":"; then
8788 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8789 echo "${ECHO_T}$MSGFMT" >&6
8791 echo "$as_me:$LINENO: result: no" >&5
8792 echo "${ECHO_T}no" >&6
8795 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8796 set dummy gmsgfmt
; ac_word
=$2
8797 echo "$as_me:$LINENO: checking for $ac_word" >&5
8798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8799 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8800 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8807 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8811 test -z "$as_dir" && as_dir
=.
8812 for ac_exec_ext
in '' $ac_executable_extensions; do
8813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8814 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8821 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8825 GMSGFMT
=$ac_cv_path_GMSGFMT
8827 if test -n "$GMSGFMT"; then
8828 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8829 echo "${ECHO_T}$GMSGFMT" >&6
8831 echo "$as_me:$LINENO: result: no" >&5
8832 echo "${ECHO_T}no" >&6
8835 # Extract the first word of "xgettext", so it can be a program name with args.
8836 set dummy xgettext
; ac_word
=$2
8837 echo "$as_me:$LINENO: checking for $ac_word" >&5
8838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8839 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
8844 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8847 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8848 for ac_dir
in $PATH; do
8849 test -z "$ac_dir" && ac_dir
=.
8850 if test -f $ac_dir/$ac_word; then
8851 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8852 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8858 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8862 XGETTEXT
="$ac_cv_path_XGETTEXT"
8863 if test "$XGETTEXT" != ":"; then
8864 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8865 echo "${ECHO_T}$XGETTEXT" >&6
8867 echo "$as_me:$LINENO: result: no" >&5
8868 echo "${ECHO_T}no" >&6
8872 BUILD_INCLUDED_LIBINTL
=yes
8873 USE_INCLUDED_LIBINTL
=yes
8875 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
8876 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8879 if test "$GMSGFMT" != ":"; then
8880 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
8883 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
8884 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
8889 if test "$XGETTEXT" != ":"; then
8890 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
8893 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8894 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8901 ac_config_commands
="$ac_config_commands default-1"
8905 if test "$PACKAGE" = gettext; then
8906 BUILD_INCLUDED_LIBINTL
=yes
8909 for ac_prog
in bison
8911 # Extract the first word of "$ac_prog", so it can be a program name with args.
8912 set dummy
$ac_prog; ac_word
=$2
8913 echo "$as_me:$LINENO: checking for $ac_word" >&5
8914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8915 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8916 echo $ECHO_N "(cached) $ECHO_C" >&6
8918 if test -n "$INTLBISON"; then
8919 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
8921 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8925 test -z "$as_dir" && as_dir
=.
8926 for ac_exec_ext
in '' $ac_executable_extensions; do
8927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8928 ac_cv_prog_INTLBISON
="$ac_prog"
8929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8937 INTLBISON
=$ac_cv_prog_INTLBISON
8938 if test -n "$INTLBISON"; then
8939 echo "$as_me:$LINENO: result: $INTLBISON" >&5
8940 echo "${ECHO_T}$INTLBISON" >&6
8942 echo "$as_me:$LINENO: result: no" >&5
8943 echo "${ECHO_T}no" >&6
8946 test -n "$INTLBISON" && break
8949 if test -z "$INTLBISON"; then
8952 echo "$as_me:$LINENO: checking version of bison" >&5
8953 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8954 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8955 case $ac_prog_version in
8956 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
8957 1.2[6-9]* | 1.
[3-9][0-9]* | [2-9].
*)
8958 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
8959 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
8961 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8962 echo "${ECHO_T}$ac_prog_version" >&6
8964 if test $ac_verc_fail = yes; then
8968 for lang
in $ALL_LINGUAS; do
8969 GMOFILES
="$GMOFILES $lang.gmo"
8970 POFILES
="$POFILES $lang.po"
8984 nls_cv_header_libgt
=
8996 if test "x$CATOBJEXT" != "x"; then
8997 if test "x$ALL_LINGUAS" = "x"; then
9000 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9001 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9003 for presentlang
in $ALL_LINGUAS; do
9005 for desiredlang
in ${LINGUAS-$ALL_LINGUAS}; do
9006 # Use the presentlang catalog if desiredlang is
9007 # a. equal to presentlang, or
9008 # b. a variant of presentlang (because in this case,
9009 # presentlang can be used as a fallback for messages
9010 # which are not translated in the desiredlang catalog).
9011 case "$desiredlang" in
9012 "$presentlang"*) useit
=yes;;
9015 if test $useit = yes; then
9016 NEW_LINGUAS
="$NEW_LINGUAS $presentlang"
9019 LINGUAS
=$NEW_LINGUAS
9020 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9021 echo "${ECHO_T}$LINGUAS" >&6
9024 if test -n "$LINGUAS"; then
9025 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
9030 if test -n "$ac_aux_dir"; then
9031 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
9033 if test -z "$MKINSTALLDIRS"; then
9034 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
9038 INTL_LIBTOOL_SUFFIX_PREFIX
=
9042 # This is necessary so that .o files in LIBOBJS are also built via
9043 # the ANSI2KNR-filtering rules.
9044 LIBOBJS
=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
9047 ac_config_files
="$ac_config_files Makefile config/Makefile intl/Makefile po/Makefile.in lib/Makefile src/Makefile doc/Makefile m4/Makefile"
9048 cat >confcache
<<\_ACEOF
9049 # This file is a shell script that caches the results of configure
9050 # tests run on this system so they can be shared between configure
9051 # scripts and configure runs, see configure's option --config-cache.
9052 # It is not useful on other systems. If it contains results you don't
9053 # want to keep, you may remove or edit it.
9055 # config.status only pays attention to the cache file if you give it
9056 # the --recheck option to rerun configure.
9058 # `ac_cv_env_foo' variables (set or unset) will be overriden when
9059 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9064 # The following way of writing the cache mishandles newlines in values,
9065 # but we know of no workaround that is simple, portable, and efficient.
9066 # So, don't put newlines in cache variables' values.
9067 # Ultrix sh set writes to stderr and can't be redirected directly,
9068 # and sets the high bit in the cache file unless we assign to the vars.
9071 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9073 # `set' does not quote correctly, so add quotes (double-quote
9074 # substitution turns \\\\ into \\, and sed turns \\ into \).
9077 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9080 # `set' quotes correctly as required by POSIX, so do not add quotes.
9082 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9089 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9091 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9093 if cmp -s $cache_file confcache
; then :; else
9094 if test -w $cache_file; then
9095 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9096 cat confcache
>$cache_file
9098 echo "not updating unwritable cache $cache_file"
9103 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9104 # Let make expand exec_prefix.
9105 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9107 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9108 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9109 # trailing colons and then remove the whole line if VPATH becomes empty
9110 # (actually we leave an empty line to preserve line numbers).
9111 if test "x$srcdir" = x.
; then
9112 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
9113 s/:*\$(srcdir):*/:/;
9114 s/:*\${srcdir}:*/:/;
9116 s/^\([^=]*=[ ]*\):*/\1/;
9122 DEFS
=-DHAVE_CONFIG_H
9124 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9125 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9126 Usually this means the macro was only invoked conditionally." >&5
9127 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9128 Usually this means the macro was only invoked conditionally." >&2;}
9129 { (exit 1); exit 1; }; }
9132 : ${CONFIG_STATUS=./config.status}
9133 ac_clean_files_save
=$ac_clean_files
9134 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9135 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9136 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9137 cat >$CONFIG_STATUS <<_ACEOF
9139 # Generated by $as_me.
9140 # Run this file to recreate the current configuration.
9141 # Compiler output produced by configure, useful for debugging
9142 # configure, is in config.log if it exists.
9145 SHELL=\${CONFIG_SHELL-$SHELL}
9148 cat >>$CONFIG_STATUS <<\_ACEOF
9150 ## --------------------- ##
9151 ## M4sh Initialization. ##
9152 ## --------------------- ##
9154 # Be Bourne compatible
9155 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
9158 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
9163 # Support unset when possible.
9164 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
9170 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
9171 { $as_unset LANG
|| test "${LANG+set}" != set; } ||
9172 { LANG
=C
; export LANG
; }
9173 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
9174 { $as_unset LC_ALL
|| test "${LC_ALL+set}" != set; } ||
9175 { LC_ALL
=C
; export LC_ALL
; }
9176 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
9177 { $as_unset LC_TIME
|| test "${LC_TIME+set}" != set; } ||
9178 { LC_TIME
=C
; export LC_TIME
; }
9179 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
9180 { $as_unset LC_CTYPE
|| test "${LC_CTYPE+set}" != set; } ||
9181 { LC_CTYPE
=C
; export LC_CTYPE
; }
9182 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
9183 { $as_unset LANGUAGE
|| test "${LANGUAGE+set}" != set; } ||
9184 { LANGUAGE
=C
; export LANGUAGE
; }
9185 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
9186 { $as_unset LC_COLLATE
|| test "${LC_COLLATE+set}" != set; } ||
9187 { LC_COLLATE
=C
; export LC_COLLATE
; }
9188 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
9189 { $as_unset LC_NUMERIC
|| test "${LC_NUMERIC+set}" != set; } ||
9190 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
9191 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
9192 { $as_unset LC_MESSAGES
|| test "${LC_MESSAGES+set}" != set; } ||
9193 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
9196 # Name of the executable.
9197 as_me
=`(basename "$0") 2>/dev/null ||
9198 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9199 X"$0" : 'X\(//\)$' \| \
9200 X"$0" : 'X\(/\)$' \| \
9201 . : '\(.\)' 2>/dev/null ||
9203 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9204 /^X\/\(\/\/\)$/{ s//\1/; q; }
9205 /^X\/\(\/\).*/{ s//\1/; q; }
9208 # PATH needs CR, and LINENO needs CR and PATH.
9209 # Avoid depending upon Character Ranges.
9210 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9211 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9212 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9213 as_cr_digits
='0123456789'
9214 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9216 # The user is always right.
9217 if test "${PATH_SEPARATOR+set}" != set; then
9218 echo "#! $SHELL" >conftest.sh
9219 echo "exit 0" >>conftest.sh
9220 chmod +x conftest.sh
9221 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
9232 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
9233 test "x$as_lineno_1" != "x$as_lineno_2" &&
9234 test "x$as_lineno_3" = "x$as_lineno_2" || {
9235 # Find who we are. Look in the path if we contain no path at all
9238 *[\\/]* ) as_myself
=$0 ;;
9239 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9243 test -z "$as_dir" && as_dir
=.
9244 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
9249 # We did not find ourselves, most probably we were run as `sh COMMAND'
9250 # in which case we are not to be found in the path.
9251 if test "x$as_myself" = x
; then
9254 if test ! -f "$as_myself"; then
9255 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9256 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9257 { (exit 1); exit 1; }; }
9259 case $CONFIG_SHELL in
9261 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9262 for as_dir
in /bin
:/usr
/bin
:$PATH
9265 test -z "$as_dir" && as_dir
=.
9266 for as_base
in sh bash ksh sh5
; do
9269 if ("$as_dir/$as_base" -c '
9272 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9273 test "x$as_lineno_1" != "x$as_lineno_2" &&
9274 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
9275 CONFIG_SHELL
=$as_dir/$as_base
9277 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9285 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9286 # uniformly replaced by the line number. The first 'sed' inserts a
9287 # line-number line before each line; the second 'sed' does the real
9288 # work. The second script uses 'N' to pair each line-number line
9289 # with the numbered line, and appends trailing '-' during
9290 # substitution so that $LINENO is not a special case at line end.
9291 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9292 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9293 sed '=' <$as_myself |
9298 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9301 s,^['$as_cr_digits']*\n,,
9303 chmod +x
$as_me.lineno
||
9304 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9305 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9306 { (exit 1); exit 1; }; }
9308 # Don't try to exec as it changes $[0], causing all sort of problems
9309 # (the dirname of $[0] is not the place where we might find the
9310 # original and so on. Autoconf is especially sensible to this).
9312 # Exit status is that of the last command.
9317 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9318 *c
*,-n*) ECHO_N
= ECHO_C
='
9320 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
9321 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
9324 if expr a
: '\(a\)' >/dev
/null
2>&1; then
9330 rm -f conf$$ conf$$.exe conf$$.
file
9332 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9333 # We could just check for DJGPP; but this test a) works b) is more generic
9334 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9335 if test -f conf$$.exe
; then
9336 # Don't use ln at all; we don't have any links
9341 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9346 rm -f conf$$ conf$$.exe conf$$.
file
9348 as_executable_p
="test -f"
9350 # Sed expression to map a string onto a valid CPP name.
9351 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9353 # Sed expression to map a string onto a valid variable name.
9354 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9358 # We need space, tab and new line, in precisely that order.
9364 $as_unset CDPATH
|| test "${CDPATH+set}" != set || { CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
9368 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9369 # report actual input values of CONFIG_FILES etc. instead of their
9370 # values after options handling. Logging --version etc. is OK.
9374 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9375 ## Running $as_me. ##
9380 This file was extended by GNU Bison $as_me 1.31, which was
9381 generated by GNU Autoconf 2.52g. Invocation command line was
9383 CONFIG_FILES = $CONFIG_FILES
9384 CONFIG_HEADERS = $CONFIG_HEADERS
9385 CONFIG_LINKS = $CONFIG_LINKS
9386 CONFIG_COMMANDS = $CONFIG_COMMANDS
9390 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9394 # Files that config.status was made for.
9395 if test -n "$ac_config_files"; then
9396 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9399 if test -n "$ac_config_headers"; then
9400 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9403 if test -n "$ac_config_links"; then
9404 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9407 if test -n "$ac_config_commands"; then
9408 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9411 cat >>$CONFIG_STATUS <<\_ACEOF
9414 \`$as_me' instantiates files from templates according to the
9415 current configuration.
9417 Usage: $0 [OPTIONS] [FILE]...
9419 -h, --help print this help, then exit
9420 -V, --version print version number, then exit
9421 -d, --debug don't remove temporary files
9422 --recheck update $as_me by reconfiguring in the same conditions
9423 --file=FILE[:TEMPLATE]
9424 instantiate the configuration file FILE
9425 --header=FILE[:TEMPLATE]
9426 instantiate the configuration header FILE
9428 Configuration files:
9431 Configuration headers:
9434 Configuration commands:
9437 Report bugs to <bug-autoconf@gnu.org>."
9440 cat >>$CONFIG_STATUS <<_ACEOF
9442 GNU Bison config.status 1.31
9443 configured by $0, generated by GNU Autoconf 2.52g,
9444 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9446 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9447 Free Software Foundation, Inc.
9448 This config.status script is free software; the Free Software Foundation
9449 gives unlimited permission to copy, distribute and modify it."
9454 cat >>$CONFIG_STATUS <<\_ACEOF
9455 # If no file are specified by the user, then we need to provide default
9456 # value. By we need to know if files were specified by the user.
9462 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
9463 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
9465 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
9469 *) # This is not an option, so the user has probably given explicit
9471 ac_need_defaults
=false
;;
9475 # Handling of the options.
9477 cat >>$CONFIG_STATUS <<_ACEOF
9478 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9479 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9480 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9482 cat >>$CONFIG_STATUS <<\_ACEOF
9483 --version | --vers* | -V )
9484 echo "$ac_cs_version"; exit 0 ;;
9486 # Conflict between --help and --header
9487 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9488 Try \`$0 --help' for more information." >&5
9489 echo "$as_me: error: ambiguous option: $1
9490 Try \`$0 --help' for more information." >&2;}
9491 { (exit 1); exit 1; }; };;
9492 --help | --hel | -h )
9493 echo "$ac_cs_usage"; exit 0 ;;
9494 --debug | --d* | -d )
9496 --file | --fil | --fi | --f )
9498 CONFIG_FILES
="$CONFIG_FILES $1"
9499 ac_need_defaults
=false
;;
9500 --header | --heade | --head | --hea )
9502 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
9503 ac_need_defaults
=false
;;
9506 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9507 Try \`$0 --help' for more information." >&5
9508 echo "$as_me: error: unrecognized option: $1
9509 Try \`$0 --help' for more information." >&2;}
9510 { (exit 1); exit 1; }; } ;;
9512 *) ac_config_targets
="$ac_config_targets $1" ;;
9520 cat >>$CONFIG_STATUS <<_ACEOF
9522 # INIT-COMMANDS section.
9525 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9532 cat >>$CONFIG_STATUS <<\_ACEOF
9533 for ac_config_target
in $ac_config_targets
9535 case "$ac_config_target" in
9536 # Handling of arguments.
9537 "tests/bison" ) CONFIG_FILES
="$CONFIG_FILES tests/bison" ;;
9538 "tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
9539 "tests/atlocal" ) CONFIG_FILES
="$CONFIG_FILES tests/atlocal" ;;
9540 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9541 "config/Makefile" ) CONFIG_FILES
="$CONFIG_FILES config/Makefile" ;;
9542 "intl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
9543 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
9544 "lib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
9545 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
9546 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
9547 "m4/Makefile" ) CONFIG_FILES
="$CONFIG_FILES m4/Makefile" ;;
9548 "tests/atconfig" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS tests/atconfig" ;;
9549 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
9550 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
9551 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.hin" ;;
9552 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9553 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9554 { (exit 1); exit 1; }; };;
9558 # If the user did not use the arguments to specify the items to instantiate,
9559 # then the envvar interface is used. Set only those that are not.
9560 # We use the long form for the default assignment because of an extremely
9561 # bizarre bug on SunOS 4.1.3.
9562 if $ac_need_defaults; then
9563 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9564 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9565 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9568 # Create a temporary directory, and hook for its removal unless debugging.
9571 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9572 trap '{ (exit 1); exit 1; }' 1 2 13 15
9575 # Create a (secure) tmp directory for tmp files.
9578 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9579 test -n "$tmp" && test -d "$tmp"
9582 tmp
=$TMPDIR/cs$$
-$RANDOM
9583 (umask 077 && mkdir $tmp)
9586 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9587 { (exit 1); exit 1; }
9592 cat >>$CONFIG_STATUS <<_ACEOF
9595 # CONFIG_FILES section.
9598 # No need to generate the scripts if there are no CONFIG_FILES.
9599 # This happens for instance when ./config.status config.h
9600 if test -n "\$CONFIG_FILES"; then
9601 # Protect against being on the right side of a sed subst in config.status.
9602 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9603 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9604 s,@SHELL@,$SHELL,;t t
9605 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9606 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9607 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9608 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9609 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9610 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9611 s,@exec_prefix@,$exec_prefix,;t t
9612 s,@prefix@,$prefix,;t t
9613 s,@program_transform_name@,$program_transform_name,;t t
9614 s,@bindir@,$bindir,;t t
9615 s,@sbindir@,$sbindir,;t t
9616 s,@libexecdir@,$libexecdir,;t t
9617 s,@datadir@,$datadir,;t t
9618 s,@sysconfdir@,$sysconfdir,;t t
9619 s,@sharedstatedir@,$sharedstatedir,;t t
9620 s,@localstatedir@,$localstatedir,;t t
9621 s,@libdir@,$libdir,;t t
9622 s,@includedir@,$includedir,;t t
9623 s,@oldincludedir@,$oldincludedir,;t t
9624 s,@infodir@,$infodir,;t t
9625 s,@mandir@,$mandir,;t t
9626 s,@build_alias@,$build_alias,;t t
9627 s,@host_alias@,$host_alias,;t t
9628 s,@target_alias@,$target_alias,;t t
9630 s,@ECHO_C@,$ECHO_C,;t t
9631 s,@ECHO_N@,$ECHO_N,;t t
9632 s,@ECHO_T@,$ECHO_T,;t t
9634 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9635 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9636 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9637 s,@PACKAGE@,$PACKAGE,;t t
9638 s,@VERSION@,$VERSION,;t t
9639 s,@ACLOCAL@,$ACLOCAL,;t t
9640 s,@AUTOCONF@,$AUTOCONF,;t t
9641 s,@AUTOMAKE@,$AUTOMAKE,;t t
9642 s,@AUTOHEADER@,$AUTOHEADER,;t t
9643 s,@MAKEINFO@,$MAKEINFO,;t t
9644 s,@AMTAR@,$AMTAR,;t t
9645 s,@install_sh@,$install_sh,;t t
9646 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9648 s,@SET_MAKE@,$SET_MAKE,;t t
9649 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9650 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9651 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9652 s,@DEPDIR@,$DEPDIR,;t t
9655 s,@CFLAGS@,$CFLAGS,;t t
9656 s,@LDFLAGS@,$LDFLAGS,;t t
9657 s,@CPPFLAGS@,$CPPFLAGS,;t t
9658 s,@ac_ct_CC@,$ac_ct_CC,;t t
9659 s,@EXEEXT@,$EXEEXT,;t t
9660 s,@OBJEXT@,$OBJEXT,;t t
9661 s,@am__include@,$am__include,;t t
9662 s,@am__quote@,$am__quote,;t t
9663 s,@CCDEPMODE@,$CCDEPMODE,;t t
9665 s,@RANLIB@,$RANLIB,;t t
9666 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9667 s,@AUTOM4TE@,$AUTOM4TE,;t t
9668 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
9669 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
9671 s,@ANSI2KNR@,$ANSI2KNR,;t t
9672 s,@ALLOCA@,$ALLOCA,;t t
9673 s,@LIBOBJS@,$LIBOBJS,;t t
9674 s,@build@,$build,;t t
9675 s,@build_cpu@,$build_cpu,;t t
9676 s,@build_vendor@,$build_vendor,;t t
9677 s,@build_os@,$build_os,;t t
9679 s,@host_cpu@,$host_cpu,;t t
9680 s,@host_vendor@,$host_vendor,;t t
9681 s,@host_os@,$host_os,;t t
9682 s,@GLIBC21@,$GLIBC21,;t t
9683 s,@LIBICONV@,$LIBICONV,;t t
9684 s,@USE_NLS@,$USE_NLS,;t t
9685 s,@MSGFMT@,$MSGFMT,;t t
9686 s,@GMSGFMT@,$GMSGFMT,;t t
9687 s,@XGETTEXT@,$XGETTEXT,;t t
9688 s,@INTLBISON@,$INTLBISON,;t t
9689 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
9690 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9691 s,@CATALOGS@,$CATALOGS,;t t
9692 s,@CATOBJEXT@,$CATOBJEXT,;t t
9693 s,@GMOFILES@,$GMOFILES,;t t
9694 s,@INTLLIBS@,$INTLLIBS,;t t
9695 s,@INTLOBJS@,$INTLOBJS,;t t
9696 s,@POFILES@,$POFILES,;t t
9697 s,@POSUB@,$POSUB,;t t
9698 s,@DATADIRNAME@,$DATADIRNAME,;t t
9699 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9700 s,@GENCAT@,$GENCAT,;t t
9701 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9702 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
9707 cat >>$CONFIG_STATUS <<\_ACEOF
9708 # Split the substitutions into bite-sized pieces for seds with
9709 # small command number limits, like on Digital OSF/1 and HP-UX.
9711 ac_sed_frag
=1 # Number of current file.
9712 ac_beg
=1 # First line for current file.
9713 ac_end
=$ac_max_sed_lines # Line after last line for current file.
9716 while $ac_more_lines; do
9717 if test $ac_beg -gt 1; then
9718 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9720 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9722 if test ! -s $tmp/subs.frag
; then
9725 # The purpose of the label and of the branching condition is to
9726 # speed up the sed processing (if there are no `@' at all, there
9727 # is no need to browse any of the substitutions).
9728 # These are the two extra sed commands mentioned above.
9730 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs
-$ac_sed_frag.
sed
9731 if test -z "$ac_sed_cmds"; then
9732 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
9734 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9736 ac_sed_frag
=`expr $ac_sed_frag + 1`
9738 ac_end
=`expr $ac_end + $ac_max_sed_lines`
9741 if test -z "$ac_sed_cmds"; then
9744 fi # test -n "$CONFIG_FILES"
9747 cat >>$CONFIG_STATUS <<\_ACEOF
9748 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
9749 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9751 - | *:- | *:-:* ) # input from stdin
9753 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9754 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9755 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9756 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9757 * ) ac_file_in
=$ac_file.
in ;;
9760 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9761 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9762 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9763 X"$ac_file" : 'X\(//\)[^/]' \| \
9764 X"$ac_file" : 'X\(//\)$' \| \
9765 X"$ac_file" : 'X\(/\)' \| \
9766 . : '\(.\)' 2>/dev/null ||
9768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9770 /^X\(\/\/\)$/{ s//\1/; q; }
9771 /^X\(\/\).*/{ s//\1/; q; }
9774 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9778 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9779 case $as_mkdir_dir in
9780 # Skip DOS drivespec
9781 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9783 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9784 test -d "$as_incr_dir" ||
9785 mkdir "$as_incr_dir" ||
9786 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9787 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9788 { (exit 1); exit 1; }; }
9795 if test "$ac_dir" != .
; then
9796 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9797 # A "../" for each directory in $ac_dir_suffix.
9798 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9800 ac_dir_suffix
= ac_top_builddir
=
9804 .
) # No --srcdir option. We are building in place.
9806 if test -z "$ac_top_builddir"; then
9809 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9811 [\\/]* | ?
:[\\/]* ) # Absolute path.
9812 ac_srcdir
=$srcdir$ac_dir_suffix;
9813 ac_top_srcdir
=$srcdir ;;
9815 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9816 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9818 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9820 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
9821 ac_abs_top_builddir
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9822 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9823 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9827 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9828 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
9831 if test x
"$ac_file" != x
-; then
9832 { echo "$as_me:$LINENO: creating $ac_file" >&5
9833 echo "$as_me: creating $ac_file" >&6;}
9836 # Let's still pretend it is `configure' which instantiates (i.e., don't
9837 # use $as_me), people would be surprised to read:
9838 # /* config.h. Generated by config.status. */
9839 if test x
"$ac_file" = x
-; then
9842 configure_input
="$ac_file. "
9844 configure_input
=$configure_input"Generated from `echo $ac_file_in |
9845 sed 's,.*/,,'` by configure."
9847 # First look for the input files in the build tree, otherwise in the
9849 ac_file_inputs
=`IFS=:
9850 for f in $ac_file_in; do
9852 -) echo $tmp/stdin ;;
9854 # Absolute (can't be DOS-style, as IFS=:)
9855 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9856 echo "$as_me: error: cannot find input file: $f" >&2;}
9857 { (exit 1); exit 1; }; }
9860 if test -f "$f"; then
9863 elif test -f "$srcdir/$f"; then
9868 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9869 echo "$as_me: error: cannot find input file: $f" >&2;}
9870 { (exit 1); exit 1; }; }
9873 done` || { (exit 1); exit 1; }
9875 cat >>$CONFIG_STATUS <<_ACEOF
9879 cat >>$CONFIG_STATUS <<\_ACEOF
9881 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
9882 s
,@configure_input@
,$configure_input,;t t
9883 s
,@srcdir@
,$ac_srcdir,;t t
9884 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
9885 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9886 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
9887 s
,@builddir@
,$ac_builddir,;t t
9888 s
,@abs_builddir@
,$ac_abs_builddir,;t t
9889 s
,@top_builddir@
,$ac_top_builddir,;t t
9890 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
9891 s
,@INSTALL@
,$ac_INSTALL,;t t
9892 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9894 if test x"$ac_file" != x-; then
9895 mv $tmp/out $ac_file
9901 # Run the commands associated with the file.
9903 tests/bison ) chmod +x tests/bison ;;
9907 cat >>$CONFIG_STATUS <<\_ACEOF
9910 # CONFIG_HEADER section.
9913 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9914 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9916 # ac_d sets the value in "#define NAME VALUE" lines.
9917 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9918 ac_dB
='[ ].*$,\1#\2'
9921 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9922 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9923 ac_uB
='$,\1#\2define\3'
9927 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9928 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9930 - | *:- | *:-:* ) # input from stdin
9932 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9933 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9934 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9935 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9936 * ) ac_file_in
=$ac_file.
in ;;
9939 test x
"$ac_file" != x
- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9940 echo "$as_me: creating $ac_file" >&6;}
9942 # First look for the input files in the build tree, otherwise in the
9944 ac_file_inputs
=`IFS=:
9945 for f in $ac_file_in; do
9947 -) echo $tmp/stdin ;;
9949 # Absolute (can't be DOS-style, as IFS=:)
9950 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9951 echo "$as_me: error: cannot find input file: $f" >&2;}
9952 { (exit 1); exit 1; }; }
9955 if test -f "$f"; then
9958 elif test -f "$srcdir/$f"; then
9963 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9964 echo "$as_me: error: cannot find input file: $f" >&2;}
9965 { (exit 1); exit 1; }; }
9968 done` || { (exit 1); exit 1; }
9969 # Remove the trailing spaces.
9970 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9974 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9975 # `conftest.undefs', that substitutes the proper values into
9976 # config.h.in to produce config.h. The first handles `#define'
9977 # templates, and the second `#undef' templates.
9978 # And first: Protect against being on the right side of a sed subst in
9979 # config.status. Protect against being in an unquoted here document
9981 rm -f conftest.defines conftest.undefs
9982 # Using a here document instead of a string reduces the quoting nightmare.
9983 # Putting comments in sed scripts is not portable.
9985 # `end' is used to avoid that the second main sed command (meant for
9986 # 0-ary CPP macros) applies to n-ary macro definitions.
9987 # See the Autoconf documentation for `clear'.
9988 cat >confdef2sed.
sed <<\_ACEOF
9993 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9995 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9998 # If some macros were called several times there might be several times
9999 # the same #defines, which is useless. Nevertheless, we may not want to
10000 # sort them, since we want the *last* AC-DEFINE to be honored.
10001 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10002 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10003 rm -f confdef2sed.sed
10005 # This sed command replaces #undef with comments. This is necessary, for
10006 # example, in the case of _POSIX_SOURCE, which is predefined and required
10007 # on some systems where configure will not decide to define it.
10008 cat >>conftest.undefs <<\_ACEOF
10009 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10012 # Break up conftest.defines because some shells have a limit on the size
10013 # of here documents, and old seds have small limits too (100 cmds).
10014 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10015 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10016 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10017 echo ' :' >>$CONFIG_STATUS
10018 rm -f conftest.tail
10019 while grep . conftest.defines >/dev/null
10021 # Write a limited-size here document to $tmp/defines.sed.
10022 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10023 # Speed up: don't consider the non `#define' lines.
10024 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10025 # Work around the forget-to-reset-the-flag bug.
10026 echo 't clr' >>$CONFIG_STATUS
10027 echo ': clr' >>$CONFIG_STATUS
10028 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
10030 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10032 mv $tmp/out $tmp/in
10034 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
10035 rm -f conftest.defines
10036 mv conftest.
tail conftest.defines
10038 rm -f conftest.defines
10039 echo ' fi # egrep' >>$CONFIG_STATUS
10040 echo >>$CONFIG_STATUS
10042 # Break up conftest.undefs because some shells have a limit on the size
10043 # of here documents, and old seds have small limits too (100 cmds).
10044 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10045 rm -f conftest.
tail
10046 while grep . conftest.undefs
>/dev
/null
10048 # Write a limited-size here document to $tmp/undefs.sed.
10049 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10050 # Speed up: don't consider the non
`#undef'
10051 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10052 # Work around the forget-to-reset-the-flag bug.
10053 echo 't clr' >>$CONFIG_STATUS
10054 echo ': clr' >>$CONFIG_STATUS
10055 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10057 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10059 mv $tmp/out $tmp/in
10061 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10062 rm -f conftest.undefs
10063 mv conftest.tail conftest.undefs
10065 rm -f conftest.undefs
10067 cat >>$CONFIG_STATUS <<\_ACEOF
10068 # Let's still pretend it is `configure
' which instantiates (i.e., don't
10069 # use $as_me), people would be surprised to read:
10070 # /* config.h. Generated by config.status. */
10071 if test x
"$ac_file" = x
-; then
10072 echo "/* Generated by configure. */" >$tmp/config.h
10074 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10076 cat $tmp/in >>$tmp/config.h
10078 if test x
"$ac_file" != x
-; then
10079 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
10080 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10081 echo "$as_me: $ac_file is unchanged" >&6;}
10083 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
10084 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10085 X"$ac_file" : 'X\(//\)[^/]' \| \
10086 X"$ac_file" : 'X\(//\)$' \| \
10087 X"$ac_file" : 'X\(/\)' \| \
10088 . : '\(.\)' 2>/dev/null ||
10090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10091 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10092 /^X\(\/\/\)$/{ s//\1/; q; }
10093 /^X\(\/\).*/{ s//\1/; q; }
10095 { case "$ac_dir" in
10096 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
10100 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10101 case $as_mkdir_dir in
10102 # Skip DOS drivespec
10103 ?
:) as_incr_dir
=$as_mkdir_dir ;;
10105 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
10106 test -d "$as_incr_dir" ||
10107 mkdir "$as_incr_dir" ||
10108 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10109 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10110 { (exit 1); exit 1; }; }
10116 mv $tmp/config.h
$ac_file
10120 rm -f $tmp/config.h
10122 # Run the commands associated with the file.
10124 config.h
) # update the timestamp
10125 echo 'timestamp for config.h:config.hin' >"./stamp-h1"
10130 cat >>$CONFIG_STATUS <<\_ACEOF
10133 # CONFIG_COMMANDS section.
10135 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
10136 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
10137 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10138 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
10139 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10140 X"$ac_dest" : 'X\(//\)[^/]' \| \
10141 X"$ac_dest" : 'X\(//\)$' \| \
10142 X"$ac_dest" : 'X\(/\)' \| \
10143 . : '\(.\)' 2>/dev/null ||
10145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10146 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10147 /^X\(\/\/\)$/{ s//\1/; q; }
10148 /^X\(\/\).*/{ s//\1/; q; }
10152 if test "$ac_dir" != .
; then
10153 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10154 # A "../" for each directory in $ac_dir_suffix.
10155 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10157 ac_dir_suffix
= ac_top_builddir
=
10161 .
) # No --srcdir option. We are building in place.
10163 if test -z "$ac_top_builddir"; then
10166 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
10168 [\\/]* | ?
:[\\/]* ) # Absolute path.
10169 ac_srcdir
=$srcdir$ac_dir_suffix;
10170 ac_top_srcdir
=$srcdir ;;
10171 *) # Relative path.
10172 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
10173 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
10175 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10177 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
10178 ac_abs_top_builddir
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10179 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10180 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10183 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10184 echo "$as_me: executing $ac_dest commands" >&6;}
10186 tests
/atconfig
) cat >tests
/atconfig
<<ATEOF
10187 # Configurable variable values for building test suites.
10189 # Copyright 2000, 2001 Free Software Foundation, Inc.
10191 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
10193 abs_builddir='$ac_abs_builddir'
10194 at_srcdir='$ac_srcdir'
10195 abs_srcdir='$ac_abs_srcdir'
10196 at_top_srcdir='$ac_top_srcdir'
10197 abs_top_srcdir='$ac_abs_top_srcdir'
10198 at_top_builddir='$ac_top_builddir'
10199 abs_top_builddir='$ac_abs_top_builddir'
10201 AUTOTEST_PATH='tests'
10203 SHELL=\${CONFIG_SHELL-'$SHELL'}
10206 depfiles
) test x
"$AMDEP_TRUE" != x
"" || for mf
in $CONFIG_FILES; do
10207 # Strip MF so we end up with the name of the file.
10208 mf
=`echo "$mf" | sed -e 's/:.*$//'`
10209 if (head -1 $mf | fgrep
'generated by automake') > /dev
/null
2>&1; then
10210 dirpart
=`(dirname "$mf") 2>/dev/null ||
10211 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10212 X"$mf" : 'X\(//\)[^/]' \| \
10213 X"$mf" : 'X\(//\)$' \| \
10214 X"$mf" : 'X\(/\)' \| \
10215 . : '\(.\)' 2>/dev/null ||
10217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10218 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10219 /^X\(\/\/\)$/{ s//\1/; q; }
10220 /^X\(\/\).*/{ s//\1/; q; }
10225 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null
|| continue
10226 # Extract the definition of DEP_FILES from the Makefile without
10228 DEPDIR
=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10229 test -z "$DEPDIR" && continue
10230 # When using ansi2knr, U may be empty or an underscore; expand it
10231 U
=`sed -n -e '/^U = / s///p' < "$mf"`
10232 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10233 # We invoke sed twice because it is the simplest approach to
10234 # changing $(DEPDIR) to its actual value in the expansion.
10235 for file in `sed -n -e '
10236 /^DEP_FILES = .*\\\\$/ {
10245 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10246 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10247 # Make sure the directory exists.
10248 test -f "$dirpart/$file" && continue
10249 fdir
=`(dirname "$file") 2>/dev/null ||
10250 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10251 X"$file" : 'X\(//\)[^/]' \| \
10252 X"$file" : 'X\(//\)$' \| \
10253 X"$file" : 'X\(/\)' \| \
10254 . : '\(.\)' 2>/dev/null ||
10256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10257 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10258 /^X\(\/\/\)$/{ s//\1/; q; }
10259 /^X\(\/\).*/{ s//\1/; q; }
10261 { case $dirpart/$fdir in
10262 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
10265 as_dummy
=$dirpart/$fdir
10266 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10267 case $as_mkdir_dir in
10268 # Skip DOS drivespec
10269 ?
:) as_incr_dir
=$as_mkdir_dir ;;
10271 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
10272 test -d "$as_incr_dir" ||
10273 mkdir "$as_incr_dir" ||
10274 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
10275 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
10276 { (exit 1); exit 1; }; }
10281 # echo "creating $dirpart/$file"
10282 echo '# dummy' > "$dirpart/$file"
10286 default
-1 ) for ac_file
in $CONFIG_FILES; do
10287 # Support "outfile[:infile[:infile...]]"
10289 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10291 # PO directories have a Makefile.in generated from Makefile.in.in.
10292 case "$ac_file" in */Makefile.
in)
10293 # Adjust a relative srcdir.
10294 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10295 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
10296 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10297 # In autoconf-2.13 it is called $ac_given_srcdir.
10298 # In autoconf-2.50 it is called $srcdir.
10299 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
10300 case "$ac_given_srcdir" in
10301 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
10302 /*) top_srcdir
="$ac_given_srcdir" ;;
10303 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
10305 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10306 rm -f "$ac_dir/POTFILES"
10307 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10308 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
10309 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10310 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10319 cat >>$CONFIG_STATUS <<\_ACEOF
10321 { (exit 0); exit 0; }
10323 chmod +x
$CONFIG_STATUS
10324 ac_clean_files
=$ac_clean_files_save
10327 # configure is writing to config.log, and then calls config.status.
10328 # config.status does its own redirection, appending to config.log.
10329 # Unfortunately, on DOS this fails, as config.log is still kept open
10330 # by configure, so config.status won't be able to write to it; its
10331 # output is simply discarded. So we exec the FD to /dev/null,
10332 # effectively closing config.log, so it can be properly (re)opened and
10333 # appended to by config.status. When coming back to configure, we
10334 # need to make the FD available again.
10335 if test "$no_create" != yes; then
10338 $SHELL $CONFIG_STATUS || ac_cs_success
=false
10340 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10341 # would make configure fail if this is the last instruction.
10342 $ac_cs_success || { (exit 1); exit 1; }