2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.52g for GNU Bison 1.30j.
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.30j'
260 PACKAGE_STRING
='GNU Bison 1.30j'
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.30j 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.30j:";;
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.30j
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.30j, 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 -Wall" >&5
3213 echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6
3215 ac_save_CFLAGS
="$CFLAGS"
3216 CFLAGS
="$CFLAGS -Wall"
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 -Wall"
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 echo "$as_me:$LINENO: checking whether compiler accepts -W" >&5
3259 echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6
3261 ac_save_CFLAGS
="$CFLAGS"
3263 cat >conftest.
$ac_ext <<_ACEOF
3264 #line $LINENO "configure"
3265 #include "confdefs.h"
3267 #ifdef F77_DUMMY_MAIN
3271 int F77_DUMMY_MAIN() { return 1; }
3281 rm -f conftest.
$ac_objext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3283 (eval $ac_compile) 2>&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } &&
3287 { ac_try
='test -s conftest.$ac_objext'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3293 WARNING_CFLAGS
="$WARNING_CFLAGS -W"
3294 echo "$as_me:$LINENO: result: yes" >&5
3295 echo "${ECHO_T}yes" >&6
3297 echo "$as_me: failed program was:" >&5
3298 cat conftest.
$ac_ext >&5
3299 echo "$as_me:$LINENO: result: no" >&5
3300 echo "${ECHO_T}no" >&6
3302 rm -f conftest.
$ac_objext conftest.
$ac_ext
3303 CFLAGS
="$ac_save_CFLAGS"
3304 echo "$as_me:$LINENO: checking whether compiler accepts -Wbad-function-cast" >&5
3305 echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6
3307 ac_save_CFLAGS
="$CFLAGS"
3308 CFLAGS
="$CFLAGS -Wbad-function-cast"
3309 cat >conftest.
$ac_ext <<_ACEOF
3310 #line $LINENO "configure"
3311 #include "confdefs.h"
3313 #ifdef F77_DUMMY_MAIN
3317 int F77_DUMMY_MAIN() { return 1; }
3327 rm -f conftest.
$ac_objext
3328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3329 (eval $ac_compile) 2>&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); } &&
3333 { ac_try
='test -s conftest.$ac_objext'
3334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }; }; then
3339 WARNING_CFLAGS
="$WARNING_CFLAGS -Wbad-function-cast"
3340 echo "$as_me:$LINENO: result: yes" >&5
3341 echo "${ECHO_T}yes" >&6
3343 echo "$as_me: failed program was:" >&5
3344 cat conftest.
$ac_ext >&5
3345 echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3348 rm -f conftest.
$ac_objext conftest.
$ac_ext
3349 CFLAGS
="$ac_save_CFLAGS"
3350 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-align" >&5
3351 echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6
3353 ac_save_CFLAGS
="$CFLAGS"
3354 CFLAGS
="$CFLAGS -Wcast-align"
3355 cat >conftest.
$ac_ext <<_ACEOF
3356 #line $LINENO "configure"
3357 #include "confdefs.h"
3359 #ifdef F77_DUMMY_MAIN
3363 int F77_DUMMY_MAIN() { return 1; }
3373 rm -f conftest.
$ac_objext
3374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3375 (eval $ac_compile) 2>&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } &&
3379 { ac_try
='test -s conftest.$ac_objext'
3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; }; then
3385 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-align"
3386 echo "$as_me:$LINENO: result: yes" >&5
3387 echo "${ECHO_T}yes" >&6
3389 echo "$as_me: failed program was:" >&5
3390 cat conftest.
$ac_ext >&5
3391 echo "$as_me:$LINENO: result: no" >&5
3392 echo "${ECHO_T}no" >&6
3394 rm -f conftest.
$ac_objext conftest.
$ac_ext
3395 CFLAGS
="$ac_save_CFLAGS"
3396 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-qual" >&5
3397 echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6
3399 ac_save_CFLAGS
="$CFLAGS"
3400 CFLAGS
="$CFLAGS -Wcast-qual"
3401 cat >conftest.
$ac_ext <<_ACEOF
3402 #line $LINENO "configure"
3403 #include "confdefs.h"
3405 #ifdef F77_DUMMY_MAIN
3409 int F77_DUMMY_MAIN() { return 1; }
3419 rm -f conftest.
$ac_objext
3420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3421 (eval $ac_compile) 2>&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } &&
3425 { ac_try
='test -s conftest.$ac_objext'
3426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; }; then
3431 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-qual"
3432 echo "$as_me:$LINENO: result: yes" >&5
3433 echo "${ECHO_T}yes" >&6
3435 echo "$as_me: failed program was:" >&5
3436 cat conftest.
$ac_ext >&5
3437 echo "$as_me:$LINENO: result: no" >&5
3438 echo "${ECHO_T}no" >&6
3440 rm -f conftest.
$ac_objext conftest.
$ac_ext
3441 CFLAGS
="$ac_save_CFLAGS"
3442 echo "$as_me:$LINENO: checking whether compiler accepts -Wformat" >&5
3443 echo $ECHO_N "checking whether compiler accepts -Wformat... $ECHO_C" >&6
3445 ac_save_CFLAGS
="$CFLAGS"
3446 CFLAGS
="$CFLAGS -Wformat"
3447 cat >conftest.
$ac_ext <<_ACEOF
3448 #line $LINENO "configure"
3449 #include "confdefs.h"
3451 #ifdef F77_DUMMY_MAIN
3455 int F77_DUMMY_MAIN() { return 1; }
3465 rm -f conftest.
$ac_objext
3466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3467 (eval $ac_compile) 2>&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); } &&
3471 { ac_try
='test -s conftest.$ac_objext'
3472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }; }; then
3477 WARNING_CFLAGS
="$WARNING_CFLAGS -Wformat"
3478 echo "$as_me:$LINENO: result: yes" >&5
3479 echo "${ECHO_T}yes" >&6
3481 echo "$as_me: failed program was:" >&5
3482 cat conftest.
$ac_ext >&5
3483 echo "$as_me:$LINENO: result: no" >&5
3484 echo "${ECHO_T}no" >&6
3486 rm -f conftest.
$ac_objext conftest.
$ac_ext
3487 CFLAGS
="$ac_save_CFLAGS"
3488 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-declarations" >&5
3489 echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6
3491 ac_save_CFLAGS
="$CFLAGS"
3492 CFLAGS
="$CFLAGS -Wmissing-declarations"
3493 cat >conftest.
$ac_ext <<_ACEOF
3494 #line $LINENO "configure"
3495 #include "confdefs.h"
3497 #ifdef F77_DUMMY_MAIN
3501 int F77_DUMMY_MAIN() { return 1; }
3511 rm -f conftest.
$ac_objext
3512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3513 (eval $ac_compile) 2>&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } &&
3517 { ac_try
='test -s conftest.$ac_objext'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; }; then
3523 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-declarations"
3524 echo "$as_me:$LINENO: result: yes" >&5
3525 echo "${ECHO_T}yes" >&6
3527 echo "$as_me: failed program was:" >&5
3528 cat conftest.
$ac_ext >&5
3529 echo "$as_me:$LINENO: result: no" >&5
3530 echo "${ECHO_T}no" >&6
3532 rm -f conftest.
$ac_objext conftest.
$ac_ext
3533 CFLAGS
="$ac_save_CFLAGS"
3534 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-prototypes" >&5
3535 echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6
3537 ac_save_CFLAGS
="$CFLAGS"
3538 CFLAGS
="$CFLAGS -Wmissing-prototypes"
3539 cat >conftest.
$ac_ext <<_ACEOF
3540 #line $LINENO "configure"
3541 #include "confdefs.h"
3543 #ifdef F77_DUMMY_MAIN
3547 int F77_DUMMY_MAIN() { return 1; }
3557 rm -f conftest.
$ac_objext
3558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3559 (eval $ac_compile) 2>&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } &&
3563 { ac_try
='test -s conftest.$ac_objext'
3564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }; }; then
3569 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-prototypes"
3570 echo "$as_me:$LINENO: result: yes" >&5
3571 echo "${ECHO_T}yes" >&6
3573 echo "$as_me: failed program was:" >&5
3574 cat conftest.
$ac_ext >&5
3575 echo "$as_me:$LINENO: result: no" >&5
3576 echo "${ECHO_T}no" >&6
3578 rm -f conftest.
$ac_objext conftest.
$ac_ext
3579 CFLAGS
="$ac_save_CFLAGS"
3580 echo "$as_me:$LINENO: checking whether compiler accepts -Wnested-externs" >&5
3581 echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6
3583 ac_save_CFLAGS
="$CFLAGS"
3584 CFLAGS
="$CFLAGS -Wnested-externs"
3585 cat >conftest.
$ac_ext <<_ACEOF
3586 #line $LINENO "configure"
3587 #include "confdefs.h"
3589 #ifdef F77_DUMMY_MAIN
3593 int F77_DUMMY_MAIN() { return 1; }
3603 rm -f conftest.
$ac_objext
3604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3605 (eval $ac_compile) 2>&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } &&
3609 { ac_try
='test -s conftest.$ac_objext'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; }; then
3615 WARNING_CFLAGS
="$WARNING_CFLAGS -Wnested-externs"
3616 echo "$as_me:$LINENO: result: yes" >&5
3617 echo "${ECHO_T}yes" >&6
3619 echo "$as_me: failed program was:" >&5
3620 cat conftest.
$ac_ext >&5
3621 echo "$as_me:$LINENO: result: no" >&5
3622 echo "${ECHO_T}no" >&6
3624 rm -f conftest.
$ac_objext conftest.
$ac_ext
3625 CFLAGS
="$ac_save_CFLAGS"
3626 echo "$as_me:$LINENO: checking whether compiler accepts -Wshadow" >&5
3627 echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6
3629 ac_save_CFLAGS
="$CFLAGS"
3630 CFLAGS
="$CFLAGS -Wshadow"
3631 cat >conftest.
$ac_ext <<_ACEOF
3632 #line $LINENO "configure"
3633 #include "confdefs.h"
3635 #ifdef F77_DUMMY_MAIN
3639 int F77_DUMMY_MAIN() { return 1; }
3649 rm -f conftest.
$ac_objext
3650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3651 (eval $ac_compile) 2>&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } &&
3655 { ac_try
='test -s conftest.$ac_objext'
3656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); }; }; then
3661 WARNING_CFLAGS
="$WARNING_CFLAGS -Wshadow"
3662 echo "$as_me:$LINENO: result: yes" >&5
3663 echo "${ECHO_T}yes" >&6
3665 echo "$as_me: failed program was:" >&5
3666 cat conftest.
$ac_ext >&5
3667 echo "$as_me:$LINENO: result: no" >&5
3668 echo "${ECHO_T}no" >&6
3670 rm -f conftest.
$ac_objext conftest.
$ac_ext
3671 CFLAGS
="$ac_save_CFLAGS"
3672 echo "$as_me:$LINENO: checking whether compiler accepts -Wstrict-prototypes" >&5
3673 echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6
3675 ac_save_CFLAGS
="$CFLAGS"
3676 CFLAGS
="$CFLAGS -Wstrict-prototypes"
3677 cat >conftest.
$ac_ext <<_ACEOF
3678 #line $LINENO "configure"
3679 #include "confdefs.h"
3681 #ifdef F77_DUMMY_MAIN
3685 int F77_DUMMY_MAIN() { return 1; }
3695 rm -f conftest.
$ac_objext
3696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3697 (eval $ac_compile) 2>&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); } &&
3701 { ac_try
='test -s conftest.$ac_objext'
3702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); }; }; then
3707 WARNING_CFLAGS
="$WARNING_CFLAGS -Wstrict-prototypes"
3708 echo "$as_me:$LINENO: result: yes" >&5
3709 echo "${ECHO_T}yes" >&6
3711 echo "$as_me: failed program was:" >&5
3712 cat conftest.
$ac_ext >&5
3713 echo "$as_me:$LINENO: result: no" >&5
3714 echo "${ECHO_T}no" >&6
3716 rm -f conftest.
$ac_objext conftest.
$ac_ext
3717 CFLAGS
="$ac_save_CFLAGS"
3718 echo "$as_me:$LINENO: checking whether compiler accepts -Wwrite-strings" >&5
3719 echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6
3721 ac_save_CFLAGS
="$CFLAGS"
3722 CFLAGS
="$CFLAGS -Wwrite-strings"
3723 cat >conftest.
$ac_ext <<_ACEOF
3724 #line $LINENO "configure"
3725 #include "confdefs.h"
3727 #ifdef F77_DUMMY_MAIN
3731 int F77_DUMMY_MAIN() { return 1; }
3741 rm -f conftest.
$ac_objext
3742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3743 (eval $ac_compile) 2>&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } &&
3747 { ac_try
='test -s conftest.$ac_objext'
3748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }; }; then
3753 WARNING_CFLAGS
="$WARNING_CFLAGS -Wwrite-strings"
3754 echo "$as_me:$LINENO: result: yes" >&5
3755 echo "${ECHO_T}yes" >&6
3757 echo "$as_me: failed program was:" >&5
3758 cat conftest.
$ac_ext >&5
3759 echo "$as_me:$LINENO: result: no" >&5
3760 echo "${ECHO_T}no" >&6
3762 rm -f conftest.
$ac_objext conftest.
$ac_ext
3763 CFLAGS
="$ac_save_CFLAGS"
3764 echo "$as_me:$LINENO: checking whether compiler accepts -Werror" >&5
3765 echo $ECHO_N "checking whether compiler accepts -Werror... $ECHO_C" >&6
3767 ac_save_CFLAGS
="$CFLAGS"
3768 CFLAGS
="$CFLAGS -Werror"
3769 cat >conftest.
$ac_ext <<_ACEOF
3770 #line $LINENO "configure"
3771 #include "confdefs.h"
3773 #ifdef F77_DUMMY_MAIN
3777 int F77_DUMMY_MAIN() { return 1; }
3787 rm -f conftest.
$ac_objext
3788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3789 (eval $ac_compile) 2>&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } &&
3793 { ac_try
='test -s conftest.$ac_objext'
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; }; then
3799 WARNING_CFLAGS
="$WARNING_CFLAGS -Werror"
3800 echo "$as_me:$LINENO: result: yes" >&5
3801 echo "${ECHO_T}yes" >&6
3803 echo "$as_me: failed program was:" >&5
3804 cat conftest.
$ac_ext >&5
3805 echo "$as_me:$LINENO: result: no" >&5
3806 echo "${ECHO_T}no" >&6
3808 rm -f conftest.
$ac_objext conftest.
$ac_ext
3809 CFLAGS
="$ac_save_CFLAGS"
3812 # Checks for libraries.
3814 cat >>confdefs.h
<<\_ACEOF
3815 #define _GNU_SOURCE 1
3819 # Checks for header files.
3820 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3821 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3822 if test "${ac_cv_header_stdc+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 cat >conftest.
$ac_ext <<_ACEOF
3826 #line $LINENO "configure"
3827 #include "confdefs.h"
3834 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3835 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3837 egrep -v '^ *\+' conftest.er1
>conftest.err
3839 cat conftest.err
>&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); } >/dev
/null
; then
3842 if test -s conftest.err
; then
3843 ac_cpp_err
=$ac_c_preproc_warn_flag
3850 if test -z "$ac_cpp_err"; then
3851 ac_cv_header_stdc
=yes
3853 echo "$as_me: failed program was:" >&5
3854 cat conftest.
$ac_ext >&5
3855 ac_cv_header_stdc
=no
3857 rm -f conftest.err conftest.
$ac_ext
3859 if test $ac_cv_header_stdc = yes; then
3860 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3861 cat >conftest.
$ac_ext <<_ACEOF
3862 #line $LINENO "configure"
3863 #include "confdefs.h"
3867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3868 egrep "memchr" >/dev
/null
2>&1; then
3871 ac_cv_header_stdc
=no
3877 if test $ac_cv_header_stdc = yes; then
3878 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3879 cat >conftest.
$ac_ext <<_ACEOF
3880 #line $LINENO "configure"
3881 #include "confdefs.h"
3885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3886 egrep "free" >/dev
/null
2>&1; then
3889 ac_cv_header_stdc
=no
3895 if test $ac_cv_header_stdc = yes; then
3896 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3897 if test "$cross_compiling" = yes; then
3900 cat >conftest.
$ac_ext <<_ACEOF
3901 #line $LINENO "configure"
3902 #include "confdefs.h"
3904 #if ((' ' & 0x0FF) == 0x020)
3905 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3906 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3908 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3909 || ('j' <= (c) && (c) <= 'r') \
3910 || ('s' <= (c) && (c) <= 'z'))
3911 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3914 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3919 for (i = 0; i < 256; i++)
3920 if (XOR (islower (i), ISLOWER (i))
3921 || toupper (i) != TOUPPER (i))
3926 rm -f conftest
$ac_exeext
3927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3928 (eval $ac_link) 2>&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }; }; then
3939 echo "$as_me: program exited with status $ac_status" >&5
3940 echo "$as_me: failed program was:" >&5
3941 cat conftest.
$ac_ext >&5
3943 ac_cv_header_stdc
=no
3945 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3949 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3950 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3951 if test $ac_cv_header_stdc = yes; then
3953 cat >>confdefs.h
<<\_ACEOF
3954 #define STDC_HEADERS 1
3965 for ac_header
in ctype.h locale.h memory.h stdlib.h string.h unistd.h
3967 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3969 echo "$as_me:$LINENO: checking for $ac_header" >&5
3970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3977 # Is the header compilable?
3978 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3980 cat >conftest.
$ac_ext <<_ACEOF
3981 #line $LINENO "configure"
3982 #include "confdefs.h"
3983 $ac_includes_default
3984 #include <$ac_header>
3986 rm -f conftest.
$ac_objext
3987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3988 (eval $ac_compile) 2>&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } &&
3992 { ac_try
='test -s conftest.$ac_objext'
3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }; }; then
3998 ac_header_compiler
=yes
4000 echo "$as_me: failed program was:" >&5
4001 cat conftest.
$ac_ext >&5
4002 ac_header_compiler
=no
4004 rm -f conftest.
$ac_objext conftest.
$ac_ext
4005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4006 echo "${ECHO_T}$ac_header_compiler" >&6
4008 # Is the header present?
4009 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4011 cat >conftest.
$ac_ext <<_ACEOF
4012 #line $LINENO "configure"
4013 #include "confdefs.h"
4014 #include <$ac_header>
4016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4017 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4019 egrep -v '^ *\+' conftest.er1
>conftest.err
4021 cat conftest.err
>&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); } >/dev
/null
; then
4024 if test -s conftest.err
; then
4025 ac_cpp_err
=$ac_c_preproc_warn_flag
4032 if test -z "$ac_cpp_err"; then
4033 ac_header_preproc
=yes
4035 echo "$as_me: failed program was:" >&5
4036 cat conftest.
$ac_ext >&5
4037 ac_header_preproc
=no
4039 rm -f conftest.err conftest.
$ac_ext
4040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4041 echo "${ECHO_T}$ac_header_preproc" >&6
4043 # So? What about this header?
4044 case $ac_header_compiler:$ac_header_preproc in
4046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4051 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
4052 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
4053 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4054 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4058 echo "$as_me:$LINENO: checking for $ac_header" >&5
4059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 eval "$as_ac_Header=$ac_header_preproc"
4065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4070 cat >>confdefs.h
<<_ACEOF
4071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4079 # Checks for typedefs.
4081 # Checks for structures.
4083 # Checks for compiler characteristics.
4084 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4085 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4086 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 ac_cv_prog_cc_stdc
=no
4091 cat >conftest.
$ac_ext <<_ACEOF
4092 #line $LINENO "configure"
4093 #include "confdefs.h"
4096 #include <sys/types.h>
4097 #include <sys/stat.h>
4098 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4099 struct buf { int x; };
4100 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4101 static char *e (p, i)
4107 static char *f (char * (*g) (char **, int), char **p, ...)
4112 s = g (p, va_arg (v,int));
4116 int test (int i, double x);
4117 struct s1 {int (*f) (int a);};
4118 struct s2 {int (*f) (double a);};
4119 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4122 #ifdef F77_DUMMY_MAIN
4126 int F77_DUMMY_MAIN() { return 1; }
4131 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4136 # Don't try gcc -ansi; that turns off useful extensions and
4137 # breaks some systems' header files.
4138 # AIX -qlanglvl=ansi
4139 # Ultrix and OSF/1 -std1
4140 # HP-UX 10.20 and later -Ae
4141 # HP-UX older versions -Aa -D_HPUX_SOURCE
4142 # SVR4 -Xc -D__EXTENSIONS__
4143 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4145 CC
="$ac_save_CC $ac_arg"
4146 rm -f conftest.
$ac_objext
4147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4148 (eval $ac_compile) 2>&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); } &&
4152 { ac_try
='test -s conftest.$ac_objext'
4153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; }; then
4158 ac_cv_prog_cc_stdc
=$ac_arg
4161 echo "$as_me: failed program was:" >&5
4162 cat conftest.
$ac_ext >&5
4164 rm -f conftest.
$ac_objext
4166 rm -f conftest.
$ac_ext conftest.
$ac_objext
4171 case "x$ac_cv_prog_cc_stdc" in
4173 echo "$as_me:$LINENO: result: none needed" >&5
4174 echo "${ECHO_T}none needed" >&6 ;;
4176 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4177 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4178 CC
="$CC $ac_cv_prog_cc_stdc" ;;
4181 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4182 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4183 if test "${ac_cv_c_const+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4186 cat >conftest.
$ac_ext <<_ACEOF
4187 #line $LINENO "configure"
4188 #include "confdefs.h"
4190 #ifdef F77_DUMMY_MAIN
4194 int F77_DUMMY_MAIN() { return 1; }
4199 /* FIXME: Include the comments suggested by Paul. */
4201 /* Ultrix mips cc rejects this. */
4202 typedef int charset[2];
4204 /* SunOS 4.1.1 cc rejects this. */
4205 char const *const *ccp;
4207 /* NEC SVR4.0.2 mips cc rejects this. */
4208 struct point {int x, y;};
4209 static struct point const zero = {0,0};
4210 /* AIX XL C 1.02.0.0 rejects this.
4211 It does not let you subtract one const X* pointer from another in
4212 an arm of an if-expression whose if-part is not a constant
4214 const char *g = "string";
4215 ccp = &g + (g ? g-g : 0);
4216 /* HPUX 7.0 cc rejects these. */
4219 ccp = (char const *const *) p;
4220 { /* SCO 3.2v4 cc rejects this. */
4222 char const *s = 0 ? (char *) 0 : (char const *) 0;
4226 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4228 const int *foo = &x[0];
4231 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4232 typedef const int *iptr;
4236 { /* AIX XL C 1.02.0.0 rejects this saying
4237 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4238 struct s { int j; const int *ap[3]; };
4239 struct s *b; b->j = 5;
4241 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4250 rm -f conftest.
$ac_objext
4251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4252 (eval $ac_compile) 2>&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } &&
4256 { ac_try
='test -s conftest.$ac_objext'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; }; then
4264 echo "$as_me: failed program was:" >&5
4265 cat conftest.
$ac_ext >&5
4268 rm -f conftest.
$ac_objext conftest.
$ac_ext
4270 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4271 echo "${ECHO_T}$ac_cv_c_const" >&6
4272 if test $ac_cv_c_const = no
; then
4274 cat >>confdefs.h
<<\_ACEOF
4280 echo "$as_me:$LINENO: checking for inline" >&5
4281 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4282 if test "${ac_cv_c_inline+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 for ac_kw
in inline __inline__ __inline
; do
4287 cat >conftest.
$ac_ext <<_ACEOF
4288 #line $LINENO "configure"
4289 #include "confdefs.h"
4291 static $ac_kw int static_foo () {return 0; }
4292 $ac_kw int foo () {return 0; }
4296 rm -f conftest.
$ac_objext
4297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4298 (eval $ac_compile) 2>&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); } &&
4302 { ac_try
='test -s conftest.$ac_objext'
4303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }; }; then
4308 ac_cv_c_inline
=$ac_kw; break
4310 echo "$as_me: failed program was:" >&5
4311 cat conftest.
$ac_ext >&5
4313 rm -f conftest.
$ac_objext conftest.
$ac_ext
4317 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4318 echo "${ECHO_T}$ac_cv_c_inline" >&6
4319 case $ac_cv_c_inline in
4322 cat >>confdefs.h
<<\_ACEOF
4326 *) cat >>confdefs.h
<<_ACEOF
4327 #define inline $ac_cv_c_inline
4334 echo "$as_me:$LINENO: checking for function prototypes" >&5
4335 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4336 if test "$am_cv_prog_cc_stdc" != no
; then
4337 echo "$as_me:$LINENO: result: yes" >&5
4338 echo "${ECHO_T}yes" >&6
4340 cat >>confdefs.h
<<\_ACEOF
4341 #define PROTOTYPES 1
4346 echo "$as_me:$LINENO: result: no" >&5
4347 echo "${ECHO_T}no" >&6
4348 U
=_ ANSI2KNR
=.
/ansi2knr
4350 # Ensure some checks needed by ansi2knr itself.
4351 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4352 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4353 if test "${ac_cv_header_stdc+set}" = set; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 cat >conftest.
$ac_ext <<_ACEOF
4357 #line $LINENO "configure"
4358 #include "confdefs.h"
4365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4366 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4368 egrep -v '^ *\+' conftest.er1
>conftest.err
4370 cat conftest.err
>&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } >/dev
/null
; then
4373 if test -s conftest.err
; then
4374 ac_cpp_err
=$ac_c_preproc_warn_flag
4381 if test -z "$ac_cpp_err"; then
4382 ac_cv_header_stdc
=yes
4384 echo "$as_me: failed program was:" >&5
4385 cat conftest.
$ac_ext >&5
4386 ac_cv_header_stdc
=no
4388 rm -f conftest.err conftest.
$ac_ext
4390 if test $ac_cv_header_stdc = yes; then
4391 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4392 cat >conftest.
$ac_ext <<_ACEOF
4393 #line $LINENO "configure"
4394 #include "confdefs.h"
4398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4399 egrep "memchr" >/dev
/null
2>&1; then
4402 ac_cv_header_stdc
=no
4408 if test $ac_cv_header_stdc = yes; then
4409 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4410 cat >conftest.
$ac_ext <<_ACEOF
4411 #line $LINENO "configure"
4412 #include "confdefs.h"
4416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4417 egrep "free" >/dev
/null
2>&1; then
4420 ac_cv_header_stdc
=no
4426 if test $ac_cv_header_stdc = yes; then
4427 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4428 if test "$cross_compiling" = yes; then
4431 cat >conftest.
$ac_ext <<_ACEOF
4432 #line $LINENO "configure"
4433 #include "confdefs.h"
4435 #if ((' ' & 0x0FF) == 0x020)
4436 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4437 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4439 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4440 || ('j' <= (c) && (c) <= 'r') \
4441 || ('s' <= (c) && (c) <= 'z'))
4442 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4445 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4450 for (i = 0; i < 256; i++)
4451 if (XOR (islower (i), ISLOWER (i))
4452 || toupper (i) != TOUPPER (i))
4457 rm -f conftest
$ac_exeext
4458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4459 (eval $ac_link) 2>&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; }; then
4470 echo "$as_me: program exited with status $ac_status" >&5
4471 echo "$as_me: failed program was:" >&5
4472 cat conftest.
$ac_ext >&5
4474 ac_cv_header_stdc
=no
4476 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4480 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4481 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4482 if test $ac_cv_header_stdc = yes; then
4484 cat >>confdefs.h
<<\_ACEOF
4485 #define STDC_HEADERS 1
4491 for ac_header
in string.h
4493 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4495 echo "$as_me:$LINENO: checking for $ac_header" >&5
4496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4503 # Is the header compilable?
4504 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4506 cat >conftest.
$ac_ext <<_ACEOF
4507 #line $LINENO "configure"
4508 #include "confdefs.h"
4509 $ac_includes_default
4510 #include <$ac_header>
4512 rm -f conftest.
$ac_objext
4513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4514 (eval $ac_compile) 2>&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); } &&
4518 { ac_try
='test -s conftest.$ac_objext'
4519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); }; }; then
4524 ac_header_compiler
=yes
4526 echo "$as_me: failed program was:" >&5
4527 cat conftest.
$ac_ext >&5
4528 ac_header_compiler
=no
4530 rm -f conftest.
$ac_objext conftest.
$ac_ext
4531 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4532 echo "${ECHO_T}$ac_header_compiler" >&6
4534 # Is the header present?
4535 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4537 cat >conftest.
$ac_ext <<_ACEOF
4538 #line $LINENO "configure"
4539 #include "confdefs.h"
4540 #include <$ac_header>
4542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4543 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4545 egrep -v '^ *\+' conftest.er1
>conftest.err
4547 cat conftest.err
>&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } >/dev
/null
; then
4550 if test -s conftest.err
; then
4551 ac_cpp_err
=$ac_c_preproc_warn_flag
4558 if test -z "$ac_cpp_err"; then
4559 ac_header_preproc
=yes
4561 echo "$as_me: failed program was:" >&5
4562 cat conftest.
$ac_ext >&5
4563 ac_header_preproc
=no
4565 rm -f conftest.err conftest.
$ac_ext
4566 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4567 echo "${ECHO_T}$ac_header_preproc" >&6
4569 # So? What about this header?
4570 case $ac_header_compiler:$ac_header_preproc in
4572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
4578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
4579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4584 echo "$as_me:$LINENO: checking for $ac_header" >&5
4585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 eval "$as_ac_Header=$ac_header_preproc"
4591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4596 cat >>confdefs.h
<<_ACEOF
4597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4606 # Checks for library functions.
4607 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4608 # for constant arguments. Useless!
4609 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4610 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4611 if test "${ac_cv_working_alloca_h+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 cat >conftest.
$ac_ext <<_ACEOF
4615 #line $LINENO "configure"
4616 #include "confdefs.h"
4618 #ifdef F77_DUMMY_MAIN
4622 int F77_DUMMY_MAIN() { return 1; }
4627 char *p = (char *) alloca (2 * sizeof (int));
4632 rm -f conftest.
$ac_objext conftest
$ac_exeext
4633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4634 (eval $ac_link) 2>&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } &&
4638 { ac_try
='test -s conftest$ac_exeext'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; }; then
4644 ac_cv_working_alloca_h
=yes
4646 echo "$as_me: failed program was:" >&5
4647 cat conftest.
$ac_ext >&5
4648 ac_cv_working_alloca_h
=no
4650 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4652 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4653 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4654 if test $ac_cv_working_alloca_h = yes; then
4656 cat >>confdefs.h
<<\_ACEOF
4657 #define HAVE_ALLOCA_H 1
4662 echo "$as_me:$LINENO: checking for alloca" >&5
4663 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4664 if test "${ac_cv_func_alloca_works+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 cat >conftest.
$ac_ext <<_ACEOF
4668 #line $LINENO "configure"
4669 #include "confdefs.h"
4671 # define alloca __builtin_alloca
4674 # include <malloc.h>
4675 # define alloca _alloca
4678 # include <alloca.h>
4683 # ifndef alloca /* predefined by HP cc +Olibcalls */
4691 #ifdef F77_DUMMY_MAIN
4695 int F77_DUMMY_MAIN() { return 1; }
4700 char *p = (char *) alloca (1);
4705 rm -f conftest.
$ac_objext conftest
$ac_exeext
4706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4707 (eval $ac_link) 2>&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } &&
4711 { ac_try
='test -s conftest$ac_exeext'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; }; then
4717 ac_cv_func_alloca_works
=yes
4719 echo "$as_me: failed program was:" >&5
4720 cat conftest.
$ac_ext >&5
4721 ac_cv_func_alloca_works
=no
4723 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4725 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4726 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4728 if test $ac_cv_func_alloca_works = yes; then
4730 cat >>confdefs.h
<<\_ACEOF
4731 #define HAVE_ALLOCA 1
4735 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4736 # that cause trouble. Some versions do not even contain alloca or
4737 # contain a buggy version. If you still want to use their alloca,
4738 # use ar to extract alloca.o from them instead of compiling alloca.c.
4740 ALLOCA
=alloca.
$ac_objext
4742 cat >>confdefs.h
<<\_ACEOF
4747 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4748 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4749 if test "${ac_cv_os_cray+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4752 cat >conftest.
$ac_ext <<_ACEOF
4753 #line $LINENO "configure"
4754 #include "confdefs.h"
4755 #if defined(CRAY) && ! defined(CRAY2)
4762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4763 egrep "webecray" >/dev
/null
2>&1; then
4771 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4772 echo "${ECHO_T}$ac_cv_os_cray" >&6
4773 if test $ac_cv_os_cray = yes; then
4774 for ac_func
in _getb67 GETB67 getb67
; do
4775 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4776 echo "$as_me:$LINENO: checking for $ac_func" >&5
4777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4778 if eval "test \"\${$as_ac_var+set}\" = set"; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4781 cat >conftest.
$ac_ext <<_ACEOF
4782 #line $LINENO "configure"
4783 #include "confdefs.h"
4784 /* System header to define __stub macros and hopefully few prototypes,
4785 which can conflict with char $ac_func (); below. */
4787 /* Override any gcc2 internal prototype to avoid an error. */
4791 /* We use char because int might match the return type of a gcc2
4792 builtin and then its argument prototype would still apply. */
4796 #ifdef F77_DUMMY_MAIN
4800 int F77_DUMMY_MAIN() { return 1; }
4805 /* The GNU C library defines this for functions which it implements
4806 to always fail with ENOSYS. Some functions are actually named
4807 something starting with __ and the normal name is an alias. */
4808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4818 rm -f conftest.
$ac_objext conftest
$ac_exeext
4819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4820 (eval $ac_link) 2>&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); } &&
4824 { ac_try
='test -s conftest$ac_exeext'
4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; }; then
4830 eval "$as_ac_var=yes"
4832 echo "$as_me: failed program was:" >&5
4833 cat conftest.
$ac_ext >&5
4834 eval "$as_ac_var=no"
4836 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4839 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4840 if test `eval echo '${'$as_ac_var'}'` = yes; then
4842 cat >>confdefs.h
<<_ACEOF
4843 #define CRAY_STACKSEG_END $ac_func
4852 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4853 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4854 if test "${ac_cv_c_stack_direction+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 if test "$cross_compiling" = yes; then
4858 ac_cv_c_stack_direction
=0
4860 cat >conftest.
$ac_ext <<_ACEOF
4861 #line $LINENO "configure"
4862 #include "confdefs.h"
4864 find_stack_direction ()
4866 static char *addr = 0;
4871 return find_stack_direction ();
4874 return (&dummy > addr) ? 1 : -1;
4880 exit (find_stack_direction () < 0);
4883 rm -f conftest
$ac_exeext
4884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4885 (eval $ac_link) 2>&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; }; then
4894 ac_cv_c_stack_direction
=1
4896 echo "$as_me: program exited with status $ac_status" >&5
4897 echo "$as_me: failed program was:" >&5
4898 cat conftest.
$ac_ext >&5
4900 ac_cv_c_stack_direction
=-1
4902 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4905 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4906 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4908 cat >>confdefs.h
<<_ACEOF
4909 #define STACK_DIRECTION $ac_cv_c_stack_direction
4915 echo "$as_me:$LINENO: checking for obstacks" >&5
4916 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
4917 if test "${ac_cv_func_obstack+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4920 cat >conftest.
$ac_ext <<_ACEOF
4921 #line $LINENO "configure"
4922 #include "confdefs.h"
4923 #include "obstack.h"
4924 #ifdef F77_DUMMY_MAIN
4928 int F77_DUMMY_MAIN() { return 1; }
4933 struct obstack *mem; obstack_free(mem,(char *) 0)
4938 rm -f conftest.
$ac_objext conftest
$ac_exeext
4939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4940 (eval $ac_link) 2>&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } &&
4944 { ac_try
='test -s conftest$ac_exeext'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; }; then
4950 ac_cv_func_obstack
=yes
4952 echo "$as_me: failed program was:" >&5
4953 cat conftest.
$ac_ext >&5
4954 ac_cv_func_obstack
=no
4956 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4958 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
4959 echo "${ECHO_T}$ac_cv_func_obstack" >&6
4960 if test $ac_cv_func_obstack = yes; then
4962 cat >>confdefs.h
<<\_ACEOF
4963 #define HAVE_OBSTACK 1
4967 LIBOBJS
="$LIBOBJS obstack.$ac_objext"
4970 echo "$as_me:$LINENO: checking for error_at_line" >&5
4971 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
4972 if test "${ac_cv_lib_error_at_line+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 cat >conftest.
$ac_ext <<_ACEOF
4976 #line $LINENO "configure"
4977 #include "confdefs.h"
4979 #ifdef F77_DUMMY_MAIN
4983 int F77_DUMMY_MAIN() { return 1; }
4988 error_at_line (0, 0, "", 0, "");
4993 rm -f conftest.
$ac_objext conftest
$ac_exeext
4994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4995 (eval $ac_link) 2>&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); } &&
4999 { ac_try
='test -s conftest$ac_exeext'
5000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }; }; then
5005 ac_cv_lib_error_at_line
=yes
5007 echo "$as_me: failed program was:" >&5
5008 cat conftest.
$ac_ext >&5
5009 ac_cv_lib_error_at_line
=no
5011 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5013 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
5014 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
5015 if test $ac_cv_lib_error_at_line = no
; then
5016 LIBOBJS
="$LIBOBJS error.$ac_objext"
5021 for ac_func
in mkstemp setlocale
5023 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5024 echo "$as_me:$LINENO: checking for $ac_func" >&5
5025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5026 if eval "test \"\${$as_ac_var+set}\" = set"; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5029 cat >conftest.
$ac_ext <<_ACEOF
5030 #line $LINENO "configure"
5031 #include "confdefs.h"
5032 /* System header to define __stub macros and hopefully few prototypes,
5033 which can conflict with char $ac_func (); below. */
5035 /* Override any gcc2 internal prototype to avoid an error. */
5039 /* We use char because int might match the return type of a gcc2
5040 builtin and then its argument prototype would still apply. */
5044 #ifdef F77_DUMMY_MAIN
5048 int F77_DUMMY_MAIN() { return 1; }
5053 /* The GNU C library defines this for functions which it implements
5054 to always fail with ENOSYS. Some functions are actually named
5055 something starting with __ and the normal name is an alias. */
5056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5066 rm -f conftest.
$ac_objext conftest
$ac_exeext
5067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5068 (eval $ac_link) 2>&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } &&
5072 { ac_try
='test -s conftest$ac_exeext'
5073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }; }; then
5078 eval "$as_ac_var=yes"
5080 echo "$as_me: failed program was:" >&5
5081 cat conftest.
$ac_ext >&5
5082 eval "$as_ac_var=no"
5084 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5087 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5088 if test `eval echo '${'$as_ac_var'}'` = yes; then
5089 cat >>confdefs.h
<<_ACEOF
5090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5096 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
5097 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
5098 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 cat >conftest.
$ac_ext <<_ACEOF
5102 #line $LINENO "configure"
5103 #include "confdefs.h"
5104 $ac_includes_default
5105 #ifdef F77_DUMMY_MAIN
5109 int F77_DUMMY_MAIN() { return 1; }
5115 char *p = (char *) stpcpy;
5122 rm -f conftest.
$ac_objext
5123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5124 (eval $ac_compile) 2>&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } &&
5128 { ac_try
='test -s conftest.$ac_objext'
5129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); }; }; then
5134 ac_cv_have_decl_stpcpy
=yes
5136 echo "$as_me: failed program was:" >&5
5137 cat conftest.
$ac_ext >&5
5138 ac_cv_have_decl_stpcpy
=no
5140 rm -f conftest.
$ac_objext conftest.
$ac_ext
5142 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
5143 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
5144 if test $ac_cv_have_decl_stpcpy = yes; then
5146 cat >>confdefs.h
<<_ACEOF
5147 #define HAVE_DECL_STPCPY 1
5152 cat >>confdefs.h
<<_ACEOF
5153 #define HAVE_DECL_STPCPY 0
5158 echo "$as_me:$LINENO: checking whether strchr is declared" >&5
5159 echo $ECHO_N "checking whether strchr is declared... $ECHO_C" >&6
5160 if test "${ac_cv_have_decl_strchr+set}" = set; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 cat >conftest.
$ac_ext <<_ACEOF
5164 #line $LINENO "configure"
5165 #include "confdefs.h"
5166 $ac_includes_default
5167 #ifdef F77_DUMMY_MAIN
5171 int F77_DUMMY_MAIN() { return 1; }
5177 char *p = (char *) strchr;
5184 rm -f conftest.
$ac_objext
5185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5186 (eval $ac_compile) 2>&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); } &&
5190 { ac_try
='test -s conftest.$ac_objext'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; }; then
5196 ac_cv_have_decl_strchr
=yes
5198 echo "$as_me: failed program was:" >&5
5199 cat conftest.
$ac_ext >&5
5200 ac_cv_have_decl_strchr
=no
5202 rm -f conftest.
$ac_objext conftest.
$ac_ext
5204 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strchr" >&5
5205 echo "${ECHO_T}$ac_cv_have_decl_strchr" >&6
5206 if test $ac_cv_have_decl_strchr = yes; then
5208 cat >>confdefs.h
<<_ACEOF
5209 #define HAVE_DECL_STRCHR 1
5214 cat >>confdefs.h
<<_ACEOF
5215 #define HAVE_DECL_STRCHR 0
5220 echo "$as_me:$LINENO: checking whether strspn is declared" >&5
5221 echo $ECHO_N "checking whether strspn is declared... $ECHO_C" >&6
5222 if test "${ac_cv_have_decl_strspn+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 cat >conftest.
$ac_ext <<_ACEOF
5226 #line $LINENO "configure"
5227 #include "confdefs.h"
5228 $ac_includes_default
5229 #ifdef F77_DUMMY_MAIN
5233 int F77_DUMMY_MAIN() { return 1; }
5239 char *p = (char *) strspn;
5246 rm -f conftest.
$ac_objext
5247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5248 (eval $ac_compile) 2>&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); } &&
5252 { ac_try
='test -s conftest.$ac_objext'
5253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }; }; then
5258 ac_cv_have_decl_strspn
=yes
5260 echo "$as_me: failed program was:" >&5
5261 cat conftest.
$ac_ext >&5
5262 ac_cv_have_decl_strspn
=no
5264 rm -f conftest.
$ac_objext conftest.
$ac_ext
5266 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strspn" >&5
5267 echo "${ECHO_T}$ac_cv_have_decl_strspn" >&6
5268 if test $ac_cv_have_decl_strspn = yes; then
5270 cat >>confdefs.h
<<_ACEOF
5271 #define HAVE_DECL_STRSPN 1
5276 cat >>confdefs.h
<<_ACEOF
5277 #define HAVE_DECL_STRSPN 0
5282 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
5283 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
5284 if test "${ac_cv_have_decl_strnlen+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 cat >conftest.
$ac_ext <<_ACEOF
5288 #line $LINENO "configure"
5289 #include "confdefs.h"
5290 $ac_includes_default
5291 #ifdef F77_DUMMY_MAIN
5295 int F77_DUMMY_MAIN() { return 1; }
5301 char *p = (char *) strnlen;
5308 rm -f conftest.
$ac_objext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5310 (eval $ac_compile) 2>&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } &&
5314 { ac_try
='test -s conftest.$ac_objext'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5320 ac_cv_have_decl_strnlen
=yes
5322 echo "$as_me: failed program was:" >&5
5323 cat conftest.
$ac_ext >&5
5324 ac_cv_have_decl_strnlen
=no
5326 rm -f conftest.
$ac_objext conftest.
$ac_ext
5328 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
5329 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
5330 if test $ac_cv_have_decl_strnlen = yes; then
5332 cat >>confdefs.h
<<_ACEOF
5333 #define HAVE_DECL_STRNLEN 1
5338 cat >>confdefs.h
<<_ACEOF
5339 #define HAVE_DECL_STRNLEN 0
5344 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
5345 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
5346 if test "${ac_cv_have_decl_memchr+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 cat >conftest.
$ac_ext <<_ACEOF
5350 #line $LINENO "configure"
5351 #include "confdefs.h"
5352 $ac_includes_default
5353 #ifdef F77_DUMMY_MAIN
5357 int F77_DUMMY_MAIN() { return 1; }
5363 char *p = (char *) memchr;
5370 rm -f conftest.
$ac_objext
5371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5372 (eval $ac_compile) 2>&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); } &&
5376 { ac_try
='test -s conftest.$ac_objext'
5377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); }; }; then
5382 ac_cv_have_decl_memchr
=yes
5384 echo "$as_me: failed program was:" >&5
5385 cat conftest.
$ac_ext >&5
5386 ac_cv_have_decl_memchr
=no
5388 rm -f conftest.
$ac_objext conftest.
$ac_ext
5390 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
5391 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
5392 if test $ac_cv_have_decl_memchr = yes; then
5394 cat >>confdefs.h
<<_ACEOF
5395 #define HAVE_DECL_MEMCHR 1
5400 cat >>confdefs.h
<<_ACEOF
5401 #define HAVE_DECL_MEMCHR 0
5406 echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
5407 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
5408 if test "${ac_cv_have_decl_memrchr+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5411 cat >conftest.
$ac_ext <<_ACEOF
5412 #line $LINENO "configure"
5413 #include "confdefs.h"
5414 $ac_includes_default
5415 #ifdef F77_DUMMY_MAIN
5419 int F77_DUMMY_MAIN() { return 1; }
5425 char *p = (char *) memrchr;
5432 rm -f conftest.
$ac_objext
5433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5434 (eval $ac_compile) 2>&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } &&
5438 { ac_try
='test -s conftest.$ac_objext'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5444 ac_cv_have_decl_memrchr
=yes
5446 echo "$as_me: failed program was:" >&5
5447 cat conftest.
$ac_ext >&5
5448 ac_cv_have_decl_memrchr
=no
5450 rm -f conftest.
$ac_objext conftest.
$ac_ext
5452 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
5453 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
5454 if test $ac_cv_have_decl_memrchr = yes; then
5456 cat >>confdefs.h
<<_ACEOF
5457 #define HAVE_DECL_MEMRCHR 1
5462 cat >>confdefs.h
<<_ACEOF
5463 #define HAVE_DECL_MEMRCHR 0
5476 for ac_func
in stpcpy strchr strnlen strspn memchr memrchr
5478 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5479 echo "$as_me:$LINENO: checking for $ac_func" >&5
5480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5481 if eval "test \"\${$as_ac_var+set}\" = set"; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 cat >conftest.
$ac_ext <<_ACEOF
5485 #line $LINENO "configure"
5486 #include "confdefs.h"
5487 /* System header to define __stub macros and hopefully few prototypes,
5488 which can conflict with char $ac_func (); below. */
5490 /* Override any gcc2 internal prototype to avoid an error. */
5494 /* We use char because int might match the return type of a gcc2
5495 builtin and then its argument prototype would still apply. */
5499 #ifdef F77_DUMMY_MAIN
5503 int F77_DUMMY_MAIN() { return 1; }
5508 /* The GNU C library defines this for functions which it implements
5509 to always fail with ENOSYS. Some functions are actually named
5510 something starting with __ and the normal name is an alias. */
5511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5521 rm -f conftest.
$ac_objext conftest
$ac_exeext
5522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5523 (eval $ac_link) 2>&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } &&
5527 { ac_try
='test -s conftest$ac_exeext'
5528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); }; }; then
5533 eval "$as_ac_var=yes"
5535 echo "$as_me: failed program was:" >&5
5536 cat conftest.
$ac_ext >&5
5537 eval "$as_ac_var=no"
5539 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5542 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5543 if test `eval echo '${'$as_ac_var'}'` = yes; then
5544 cat >>confdefs.h
<<_ACEOF
5545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5549 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
5556 cat >>confdefs.h
<<\_ACEOF
5557 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
5561 echo "$as_me:$LINENO: checking for working malloc" >&5
5562 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
5563 if test "${jm_cv_func_working_malloc+set}" = set; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5566 if test "$cross_compiling" = yes; then
5567 jm_cv_func_working_malloc
=no
5569 cat >conftest.
$ac_ext <<_ACEOF
5570 #line $LINENO "configure"
5571 #include "confdefs.h"
5577 exit (malloc (0) ? 0 : 1);
5581 rm -f conftest
$ac_exeext
5582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5583 (eval $ac_link) 2>&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); }; }; then
5592 jm_cv_func_working_malloc
=yes
5594 echo "$as_me: program exited with status $ac_status" >&5
5595 echo "$as_me: failed program was:" >&5
5596 cat conftest.
$ac_ext >&5
5598 jm_cv_func_working_malloc
=no
5600 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5604 echo "$as_me:$LINENO: result: $jm_cv_func_working_malloc" >&5
5605 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
5606 if test $jm_cv_func_working_malloc = no
; then
5607 LIBOBJS
="$LIBOBJS malloc.$ac_objext"
5609 cat >>confdefs.h
<<\_ACEOF
5610 #define malloc rpl_malloc
5617 cat >>confdefs.h
<<\_ACEOF
5618 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
5622 echo "$as_me:$LINENO: checking for working realloc" >&5
5623 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
5624 if test "${jm_cv_func_working_realloc+set}" = set; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 if test "$cross_compiling" = yes; then
5628 jm_cv_func_working_realloc
=no
5630 cat >conftest.
$ac_ext <<_ACEOF
5631 #line $LINENO "configure"
5632 #include "confdefs.h"
5638 exit (realloc (0, 0) ? 0 : 1);
5642 rm -f conftest
$ac_exeext
5643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5644 (eval $ac_link) 2>&5
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; }; then
5653 jm_cv_func_working_realloc
=yes
5655 echo "$as_me: program exited with status $ac_status" >&5
5656 echo "$as_me: failed program was:" >&5
5657 cat conftest.
$ac_ext >&5
5659 jm_cv_func_working_realloc
=no
5661 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5665 echo "$as_me:$LINENO: result: $jm_cv_func_working_realloc" >&5
5666 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
5667 if test $jm_cv_func_working_realloc = no
; then
5668 LIBOBJS
="$LIBOBJS realloc.$ac_objext"
5670 cat >>confdefs.h
<<\_ACEOF
5671 #define realloc rpl_realloc
5680 for ac_func
in isascii iswprint mbsinit
5682 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5683 echo "$as_me:$LINENO: checking for $ac_func" >&5
5684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5685 if eval "test \"\${$as_ac_var+set}\" = set"; then
5686 echo $ECHO_N "(cached) $ECHO_C" >&6
5688 cat >conftest.
$ac_ext <<_ACEOF
5689 #line $LINENO "configure"
5690 #include "confdefs.h"
5691 /* System header to define __stub macros and hopefully few prototypes,
5692 which can conflict with char $ac_func (); below. */
5694 /* Override any gcc2 internal prototype to avoid an error. */
5698 /* We use char because int might match the return type of a gcc2
5699 builtin and then its argument prototype would still apply. */
5703 #ifdef F77_DUMMY_MAIN
5707 int F77_DUMMY_MAIN() { return 1; }
5712 /* The GNU C library defines this for functions which it implements
5713 to always fail with ENOSYS. Some functions are actually named
5714 something starting with __ and the normal name is an alias. */
5715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5725 rm -f conftest.
$ac_objext conftest
$ac_exeext
5726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5727 (eval $ac_link) 2>&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } &&
5731 { ac_try
='test -s conftest$ac_exeext'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; }; then
5737 eval "$as_ac_var=yes"
5739 echo "$as_me: failed program was:" >&5
5740 cat conftest.
$ac_ext >&5
5741 eval "$as_ac_var=no"
5743 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5746 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5747 if test `eval echo '${'$as_ac_var'}'` = yes; then
5748 cat >>confdefs.h
<<_ACEOF
5749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5756 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
5757 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
5758 if test "${jm_cv_func_mbrtowc+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 cat >conftest.
$ac_ext <<_ACEOF
5762 #line $LINENO "configure"
5763 #include "confdefs.h"
5765 #ifdef F77_DUMMY_MAIN
5769 int F77_DUMMY_MAIN() { return 1; }
5774 mbstate_t state; return ! (sizeof state && mbrtowc);
5779 rm -f conftest.
$ac_objext conftest
$ac_exeext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5781 (eval $ac_link) 2>&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
5785 { ac_try
='test -s conftest$ac_exeext'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; }; then
5791 jm_cv_func_mbrtowc
=yes
5793 echo "$as_me: failed program was:" >&5
5794 cat conftest.
$ac_ext >&5
5795 jm_cv_func_mbrtowc
=no
5797 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5799 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
5800 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
5801 if test $jm_cv_func_mbrtowc = yes; then
5803 cat >>confdefs.h
<<\_ACEOF
5804 #define HAVE_MBRTOWC 1
5815 for ac_header
in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
5817 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5819 echo "$as_me:$LINENO: checking for $ac_header" >&5
5820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5825 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5827 # Is the header compilable?
5828 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5829 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5830 cat >conftest.
$ac_ext <<_ACEOF
5831 #line $LINENO "configure"
5832 #include "confdefs.h"
5833 $ac_includes_default
5834 #include <$ac_header>
5836 rm -f conftest.
$ac_objext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5838 (eval $ac_compile) 2>&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } &&
5842 { ac_try
='test -s conftest.$ac_objext'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; }; then
5848 ac_header_compiler
=yes
5850 echo "$as_me: failed program was:" >&5
5851 cat conftest.
$ac_ext >&5
5852 ac_header_compiler
=no
5854 rm -f conftest.
$ac_objext conftest.
$ac_ext
5855 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5856 echo "${ECHO_T}$ac_header_compiler" >&6
5858 # Is the header present?
5859 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5861 cat >conftest.
$ac_ext <<_ACEOF
5862 #line $LINENO "configure"
5863 #include "confdefs.h"
5864 #include <$ac_header>
5866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5867 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5869 egrep -v '^ *\+' conftest.er1
>conftest.err
5871 cat conftest.err
>&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } >/dev
/null
; then
5874 if test -s conftest.err
; then
5875 ac_cpp_err
=$ac_c_preproc_warn_flag
5882 if test -z "$ac_cpp_err"; then
5883 ac_header_preproc
=yes
5885 echo "$as_me: failed program was:" >&5
5886 cat conftest.
$ac_ext >&5
5887 ac_header_preproc
=no
5889 rm -f conftest.err conftest.
$ac_ext
5890 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5891 echo "${ECHO_T}$ac_header_preproc" >&6
5893 # So? What about this header?
5894 case $ac_header_compiler:$ac_header_preproc in
5896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5904 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5908 echo "$as_me:$LINENO: checking for $ac_header" >&5
5909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 eval "$as_ac_Header=$ac_header_preproc"
5915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5920 cat >>confdefs.h
<<_ACEOF
5921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5928 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5929 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5930 if test "${ac_cv_header_stdc+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 cat >conftest.
$ac_ext <<_ACEOF
5934 #line $LINENO "configure"
5935 #include "confdefs.h"
5942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5943 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5945 egrep -v '^ *\+' conftest.er1
>conftest.err
5947 cat conftest.err
>&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } >/dev
/null
; then
5950 if test -s conftest.err
; then
5951 ac_cpp_err
=$ac_c_preproc_warn_flag
5958 if test -z "$ac_cpp_err"; then
5959 ac_cv_header_stdc
=yes
5961 echo "$as_me: failed program was:" >&5
5962 cat conftest.
$ac_ext >&5
5963 ac_cv_header_stdc
=no
5965 rm -f conftest.err conftest.
$ac_ext
5967 if test $ac_cv_header_stdc = yes; then
5968 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5969 cat >conftest.
$ac_ext <<_ACEOF
5970 #line $LINENO "configure"
5971 #include "confdefs.h"
5975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5976 egrep "memchr" >/dev
/null
2>&1; then
5979 ac_cv_header_stdc
=no
5985 if test $ac_cv_header_stdc = yes; then
5986 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5987 cat >conftest.
$ac_ext <<_ACEOF
5988 #line $LINENO "configure"
5989 #include "confdefs.h"
5993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5994 egrep "free" >/dev
/null
2>&1; then
5997 ac_cv_header_stdc
=no
6003 if test $ac_cv_header_stdc = yes; then
6004 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6005 if test "$cross_compiling" = yes; then
6008 cat >conftest.
$ac_ext <<_ACEOF
6009 #line $LINENO "configure"
6010 #include "confdefs.h"
6012 #if ((' ' & 0x0FF) == 0x020)
6013 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6014 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6016 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6017 || ('j' <= (c) && (c) <= 'r') \
6018 || ('s' <= (c) && (c) <= 'z'))
6019 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6022 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6027 for (i = 0; i < 256; i++)
6028 if (XOR (islower (i), ISLOWER (i))
6029 || toupper (i) != TOUPPER (i))
6034 rm -f conftest
$ac_exeext
6035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6036 (eval $ac_link) 2>&5
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); }; }; then
6047 echo "$as_me: program exited with status $ac_status" >&5
6048 echo "$as_me: failed program was:" >&5
6049 cat conftest.
$ac_ext >&5
6051 ac_cv_header_stdc
=no
6053 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6057 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6058 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6059 if test $ac_cv_header_stdc = yes; then
6061 cat >>confdefs.h
<<\_ACEOF
6062 #define STDC_HEADERS 1
6068 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
6069 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
6070 if test "${ac_cv_c_backslash_a+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 cat >conftest.
$ac_ext <<_ACEOF
6074 #line $LINENO "configure"
6075 #include "confdefs.h"
6077 #ifdef F77_DUMMY_MAIN
6081 int F77_DUMMY_MAIN() { return 1; }
6090 char buf['\a' == 'a' ? -1 : 1];
6092 return buf[0] != "\a"[0];
6098 rm -f conftest.
$ac_objext
6099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6100 (eval $ac_compile) 2>&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); } &&
6104 { ac_try
='test -s conftest.$ac_objext'
6105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; }; then
6110 ac_cv_c_backslash_a
=yes
6112 echo "$as_me: failed program was:" >&5
6113 cat conftest.
$ac_ext >&5
6114 ac_cv_c_backslash_a
=no
6116 rm -f conftest.
$ac_objext conftest.
$ac_ext
6118 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
6119 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
6120 if test $ac_cv_c_backslash_a = yes; then
6122 cat >>confdefs.h
<<\_ACEOF
6123 #define HAVE_C_BACKSLASH_A 1
6130 for ac_header
in stdlib.h
6132 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6134 echo "$as_me:$LINENO: checking for $ac_header" >&5
6135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6142 # Is the header compilable?
6143 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6145 cat >conftest.
$ac_ext <<_ACEOF
6146 #line $LINENO "configure"
6147 #include "confdefs.h"
6148 $ac_includes_default
6149 #include <$ac_header>
6151 rm -f conftest.
$ac_objext
6152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6153 (eval $ac_compile) 2>&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } &&
6157 { ac_try
='test -s conftest.$ac_objext'
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
6163 ac_header_compiler
=yes
6165 echo "$as_me: failed program was:" >&5
6166 cat conftest.
$ac_ext >&5
6167 ac_header_compiler
=no
6169 rm -f conftest.
$ac_objext conftest.
$ac_ext
6170 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6171 echo "${ECHO_T}$ac_header_compiler" >&6
6173 # Is the header present?
6174 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6176 cat >conftest.
$ac_ext <<_ACEOF
6177 #line $LINENO "configure"
6178 #include "confdefs.h"
6179 #include <$ac_header>
6181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6182 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6184 egrep -v '^ *\+' conftest.er1
>conftest.err
6186 cat conftest.err
>&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } >/dev
/null
; then
6189 if test -s conftest.err
; then
6190 ac_cpp_err
=$ac_c_preproc_warn_flag
6197 if test -z "$ac_cpp_err"; then
6198 ac_header_preproc
=yes
6200 echo "$as_me: failed program was:" >&5
6201 cat conftest.
$ac_ext >&5
6202 ac_header_preproc
=no
6204 rm -f conftest.err conftest.
$ac_ext
6205 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6206 echo "${ECHO_T}$ac_header_preproc" >&6
6208 # So? What about this header?
6209 case $ac_header_compiler:$ac_header_preproc in
6211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6219 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6223 echo "$as_me:$LINENO: checking for $ac_header" >&5
6224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 eval "$as_ac_Header=$ac_header_preproc"
6230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6235 cat >>confdefs.h
<<_ACEOF
6236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6244 echo "$as_me:$LINENO: checking for mbstate_t" >&5
6245 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
6246 if test "${ac_cv_type_mbstate_t+set}" = set; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6249 cat >conftest.
$ac_ext <<_ACEOF
6250 #line $LINENO "configure"
6251 #include "confdefs.h"
6254 # include <stdlib.h>
6257 #ifdef F77_DUMMY_MAIN
6261 int F77_DUMMY_MAIN() { return 1; }
6266 mbstate_t x; return sizeof x;
6271 rm -f conftest.
$ac_objext
6272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6273 (eval $ac_compile) 2>&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); } &&
6277 { ac_try
='test -s conftest.$ac_objext'
6278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; }; then
6283 ac_cv_type_mbstate_t
=yes
6285 echo "$as_me: failed program was:" >&5
6286 cat conftest.
$ac_ext >&5
6287 ac_cv_type_mbstate_t
=no
6289 rm -f conftest.
$ac_objext conftest.
$ac_ext
6291 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
6292 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
6293 if test $ac_cv_type_mbstate_t = no
; then
6295 cat >>confdefs.h
<<\_ACEOF
6296 #define mbstate_t int
6302 echo "$as_me:$LINENO: checking for function prototypes" >&5
6303 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6304 if test "$am_cv_prog_cc_stdc" != no
; then
6305 echo "$as_me:$LINENO: result: yes" >&5
6306 echo "${ECHO_T}yes" >&6
6308 cat >>confdefs.h
<<\_ACEOF
6309 #define PROTOTYPES 1
6314 echo "$as_me:$LINENO: result: no" >&5
6315 echo "${ECHO_T}no" >&6
6316 U
=_ ANSI2KNR
=.
/ansi2knr
6318 # Ensure some checks needed by ansi2knr itself.
6319 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6320 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6321 if test "${ac_cv_header_stdc+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6324 cat >conftest.
$ac_ext <<_ACEOF
6325 #line $LINENO "configure"
6326 #include "confdefs.h"
6333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6334 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6336 egrep -v '^ *\+' conftest.er1
>conftest.err
6338 cat conftest.err
>&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); } >/dev
/null
; then
6341 if test -s conftest.err
; then
6342 ac_cpp_err
=$ac_c_preproc_warn_flag
6349 if test -z "$ac_cpp_err"; then
6350 ac_cv_header_stdc
=yes
6352 echo "$as_me: failed program was:" >&5
6353 cat conftest.
$ac_ext >&5
6354 ac_cv_header_stdc
=no
6356 rm -f conftest.err conftest.
$ac_ext
6358 if test $ac_cv_header_stdc = yes; then
6359 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6360 cat >conftest.
$ac_ext <<_ACEOF
6361 #line $LINENO "configure"
6362 #include "confdefs.h"
6366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6367 egrep "memchr" >/dev
/null
2>&1; then
6370 ac_cv_header_stdc
=no
6376 if test $ac_cv_header_stdc = yes; then
6377 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6378 cat >conftest.
$ac_ext <<_ACEOF
6379 #line $LINENO "configure"
6380 #include "confdefs.h"
6384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6385 egrep "free" >/dev
/null
2>&1; then
6388 ac_cv_header_stdc
=no
6394 if test $ac_cv_header_stdc = yes; then
6395 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6396 if test "$cross_compiling" = yes; then
6399 cat >conftest.
$ac_ext <<_ACEOF
6400 #line $LINENO "configure"
6401 #include "confdefs.h"
6403 #if ((' ' & 0x0FF) == 0x020)
6404 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6405 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6407 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6408 || ('j' <= (c) && (c) <= 'r') \
6409 || ('s' <= (c) && (c) <= 'z'))
6410 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6413 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6418 for (i = 0; i < 256; i++)
6419 if (XOR (islower (i), ISLOWER (i))
6420 || toupper (i) != TOUPPER (i))
6425 rm -f conftest
$ac_exeext
6426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6427 (eval $ac_link) 2>&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); }; }; then
6438 echo "$as_me: program exited with status $ac_status" >&5
6439 echo "$as_me: failed program was:" >&5
6440 cat conftest.
$ac_ext >&5
6442 ac_cv_header_stdc
=no
6444 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6448 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6449 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6450 if test $ac_cv_header_stdc = yes; then
6452 cat >>confdefs.h
<<\_ACEOF
6453 #define STDC_HEADERS 1
6459 for ac_header
in string.h
6461 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6463 echo "$as_me:$LINENO: checking for $ac_header" >&5
6464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6471 # Is the header compilable?
6472 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6473 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6474 cat >conftest.
$ac_ext <<_ACEOF
6475 #line $LINENO "configure"
6476 #include "confdefs.h"
6477 $ac_includes_default
6478 #include <$ac_header>
6480 rm -f conftest.
$ac_objext
6481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6482 (eval $ac_compile) 2>&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } &&
6486 { ac_try
='test -s conftest.$ac_objext'
6487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; }; then
6492 ac_header_compiler
=yes
6494 echo "$as_me: failed program was:" >&5
6495 cat conftest.
$ac_ext >&5
6496 ac_header_compiler
=no
6498 rm -f conftest.
$ac_objext conftest.
$ac_ext
6499 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6500 echo "${ECHO_T}$ac_header_compiler" >&6
6502 # Is the header present?
6503 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6504 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6505 cat >conftest.
$ac_ext <<_ACEOF
6506 #line $LINENO "configure"
6507 #include "confdefs.h"
6508 #include <$ac_header>
6510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6511 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6513 egrep -v '^ *\+' conftest.er1
>conftest.err
6515 cat conftest.err
>&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } >/dev
/null
; then
6518 if test -s conftest.err
; then
6519 ac_cpp_err
=$ac_c_preproc_warn_flag
6526 if test -z "$ac_cpp_err"; then
6527 ac_header_preproc
=yes
6529 echo "$as_me: failed program was:" >&5
6530 cat conftest.
$ac_ext >&5
6531 ac_header_preproc
=no
6533 rm -f conftest.err conftest.
$ac_ext
6534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6535 echo "${ECHO_T}$ac_header_preproc" >&6
6537 # So? What about this header?
6538 case $ac_header_compiler:$ac_header_preproc in
6540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6552 echo "$as_me:$LINENO: checking for $ac_header" >&5
6553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6557 eval "$as_ac_Header=$ac_header_preproc"
6559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6564 cat >>confdefs.h
<<_ACEOF
6565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6578 for ac_func
in strerror vprintf doprnt
6580 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6581 echo "$as_me:$LINENO: checking for $ac_func" >&5
6582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6583 if eval "test \"\${$as_ac_var+set}\" = set"; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 cat >conftest.
$ac_ext <<_ACEOF
6587 #line $LINENO "configure"
6588 #include "confdefs.h"
6589 /* System header to define __stub macros and hopefully few prototypes,
6590 which can conflict with char $ac_func (); below. */
6592 /* Override any gcc2 internal prototype to avoid an error. */
6596 /* We use char because int might match the return type of a gcc2
6597 builtin and then its argument prototype would still apply. */
6601 #ifdef F77_DUMMY_MAIN
6605 int F77_DUMMY_MAIN() { return 1; }
6610 /* The GNU C library defines this for functions which it implements
6611 to always fail with ENOSYS. Some functions are actually named
6612 something starting with __ and the normal name is an alias. */
6613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6623 rm -f conftest.
$ac_objext conftest
$ac_exeext
6624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6625 (eval $ac_link) 2>&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); } &&
6629 { ac_try
='test -s conftest$ac_exeext'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; }; then
6635 eval "$as_ac_var=yes"
6637 echo "$as_me: failed program was:" >&5
6638 cat conftest.
$ac_ext >&5
6639 eval "$as_ac_var=no"
6641 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6645 if test `eval echo '${'$as_ac_var'}'` = yes; then
6646 cat >>confdefs.h
<<_ACEOF
6647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6653 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
6654 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
6655 if test "${ac_cv_have_decl_strerror+set}" = set; then
6656 echo $ECHO_N "(cached) $ECHO_C" >&6
6658 cat >conftest.
$ac_ext <<_ACEOF
6659 #line $LINENO "configure"
6660 #include "confdefs.h"
6661 $ac_includes_default
6662 #ifdef F77_DUMMY_MAIN
6666 int F77_DUMMY_MAIN() { return 1; }
6672 char *p = (char *) strerror;
6679 rm -f conftest.
$ac_objext
6680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6681 (eval $ac_compile) 2>&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); } &&
6685 { ac_try
='test -s conftest.$ac_objext'
6686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); }; }; then
6691 ac_cv_have_decl_strerror
=yes
6693 echo "$as_me: failed program was:" >&5
6694 cat conftest.
$ac_ext >&5
6695 ac_cv_have_decl_strerror
=no
6697 rm -f conftest.
$ac_objext conftest.
$ac_ext
6699 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
6700 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
6701 if test $ac_cv_have_decl_strerror = yes; then
6703 cat >>confdefs.h
<<_ACEOF
6704 #define HAVE_DECL_STRERROR 1
6709 cat >>confdefs.h
<<_ACEOF
6710 #define HAVE_DECL_STRERROR 0
6717 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
6718 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
6719 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6722 cat >conftest.
$ac_ext <<_ACEOF
6723 #line $LINENO "configure"
6724 #include "confdefs.h"
6725 $ac_includes_default
6726 #ifdef F77_DUMMY_MAIN
6730 int F77_DUMMY_MAIN() { return 1; }
6736 char *p = (char *) strerror_r;
6743 rm -f conftest.
$ac_objext
6744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6745 (eval $ac_compile) 2>&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } &&
6749 { ac_try
='test -s conftest.$ac_objext'
6750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; }; then
6755 ac_cv_have_decl_strerror_r
=yes
6757 echo "$as_me: failed program was:" >&5
6758 cat conftest.
$ac_ext >&5
6759 ac_cv_have_decl_strerror_r
=no
6761 rm -f conftest.
$ac_objext conftest.
$ac_ext
6763 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
6764 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
6765 if test $ac_cv_have_decl_strerror_r = yes; then
6767 cat >>confdefs.h
<<_ACEOF
6768 #define HAVE_DECL_STRERROR_R 1
6773 cat >>confdefs.h
<<_ACEOF
6774 #define HAVE_DECL_STRERROR_R 0
6782 for ac_func
in strerror_r
6784 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6785 echo "$as_me:$LINENO: checking for $ac_func" >&5
6786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6787 if eval "test \"\${$as_ac_var+set}\" = set"; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 cat >conftest.
$ac_ext <<_ACEOF
6791 #line $LINENO "configure"
6792 #include "confdefs.h"
6793 /* System header to define __stub macros and hopefully few prototypes,
6794 which can conflict with char $ac_func (); below. */
6796 /* Override any gcc2 internal prototype to avoid an error. */
6800 /* We use char because int might match the return type of a gcc2
6801 builtin and then its argument prototype would still apply. */
6805 #ifdef F77_DUMMY_MAIN
6809 int F77_DUMMY_MAIN() { return 1; }
6814 /* The GNU C library defines this for functions which it implements
6815 to always fail with ENOSYS. Some functions are actually named
6816 something starting with __ and the normal name is an alias. */
6817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6827 rm -f conftest.
$ac_objext conftest
$ac_exeext
6828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6829 (eval $ac_link) 2>&5
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); } &&
6833 { ac_try
='test -s conftest$ac_exeext'
6834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); }; }; then
6839 eval "$as_ac_var=yes"
6841 echo "$as_me: failed program was:" >&5
6842 cat conftest.
$ac_ext >&5
6843 eval "$as_ac_var=no"
6845 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6848 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6849 if test `eval echo '${'$as_ac_var'}'` = yes; then
6850 cat >>confdefs.h
<<_ACEOF
6851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6857 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
6858 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
6859 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 ac_cv_func_strerror_r_char_p
=no
6864 if test $ac_cv_have_decl_strerror_r = yes; then
6865 cat >conftest.
$ac_ext <<_ACEOF
6866 #line $LINENO "configure"
6867 #include "confdefs.h"
6868 $ac_includes_default
6869 #ifdef F77_DUMMY_MAIN
6873 int F77_DUMMY_MAIN() { return 1; }
6880 char x = *strerror_r (0, buf, sizeof buf);
6881 char *p = strerror_r (0, buf, sizeof buf);
6887 rm -f conftest.
$ac_objext
6888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6889 (eval $ac_compile) 2>&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); } &&
6893 { ac_try
='test -s conftest.$ac_objext'
6894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; }; then
6899 ac_cv_func_strerror_r_char_p
=yes
6901 echo "$as_me: failed program was:" >&5
6902 cat conftest.
$ac_ext >&5
6904 rm -f conftest.
$ac_objext conftest.
$ac_ext
6906 # strerror_r is not declared. Choose between
6907 # systems that have relatively inaccessible declarations for the
6908 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
6909 # former has a strerror_r that returns char*, while the latter
6910 # has a strerror_r that returns `int'.
6911 # This test should segfault on the DEC system.
6912 if test "$cross_compiling" = yes; then
6915 cat >conftest.
$ac_ext <<_ACEOF
6916 #line $LINENO "configure"
6917 #include "confdefs.h"
6918 $ac_includes_default
6919 extern char *strerror_r ();
6920 #ifdef F77_DUMMY_MAIN
6924 int F77_DUMMY_MAIN() { return 1; }
6930 char x = *strerror_r (0, buf, sizeof buf);
6931 exit (!isalpha (x));
6936 rm -f conftest
$ac_exeext
6937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6938 (eval $ac_link) 2>&5
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; }; then
6947 ac_cv_func_strerror_r_char_p
=yes
6949 echo "$as_me: program exited with status $ac_status" >&5
6950 echo "$as_me: failed program was:" >&5
6951 cat conftest.
$ac_ext >&5
6953 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6958 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
6959 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
6960 if test $ac_cv_func_strerror_r_char_p = yes; then
6962 cat >>confdefs.h
<<\_ACEOF
6963 #define STRERROR_R_CHAR_P 1
6968 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6969 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6970 if test "${ac_cv_header_stdc+set}" = set; then
6971 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 cat >conftest.
$ac_ext <<_ACEOF
6974 #line $LINENO "configure"
6975 #include "confdefs.h"
6982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6983 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6985 egrep -v '^ *\+' conftest.er1
>conftest.err
6987 cat conftest.err
>&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } >/dev
/null
; then
6990 if test -s conftest.err
; then
6991 ac_cpp_err
=$ac_c_preproc_warn_flag
6998 if test -z "$ac_cpp_err"; then
6999 ac_cv_header_stdc
=yes
7001 echo "$as_me: failed program was:" >&5
7002 cat conftest.
$ac_ext >&5
7003 ac_cv_header_stdc
=no
7005 rm -f conftest.err conftest.
$ac_ext
7007 if test $ac_cv_header_stdc = yes; then
7008 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7009 cat >conftest.
$ac_ext <<_ACEOF
7010 #line $LINENO "configure"
7011 #include "confdefs.h"
7015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7016 egrep "memchr" >/dev
/null
2>&1; then
7019 ac_cv_header_stdc
=no
7025 if test $ac_cv_header_stdc = yes; then
7026 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7027 cat >conftest.
$ac_ext <<_ACEOF
7028 #line $LINENO "configure"
7029 #include "confdefs.h"
7033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7034 egrep "free" >/dev
/null
2>&1; then
7037 ac_cv_header_stdc
=no
7043 if test $ac_cv_header_stdc = yes; then
7044 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7045 if test "$cross_compiling" = yes; then
7048 cat >conftest.
$ac_ext <<_ACEOF
7049 #line $LINENO "configure"
7050 #include "confdefs.h"
7052 #if ((' ' & 0x0FF) == 0x020)
7053 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7054 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7056 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7057 || ('j' <= (c) && (c) <= 'r') \
7058 || ('s' <= (c) && (c) <= 'z'))
7059 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7062 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7067 for (i = 0; i < 256; i++)
7068 if (XOR (islower (i), ISLOWER (i))
7069 || toupper (i) != TOUPPER (i))
7074 rm -f conftest
$ac_exeext
7075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7076 (eval $ac_link) 2>&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); }; }; then
7087 echo "$as_me: program exited with status $ac_status" >&5
7088 echo "$as_me: failed program was:" >&5
7089 cat conftest.
$ac_ext >&5
7091 ac_cv_header_stdc
=no
7093 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7097 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7098 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7099 if test $ac_cv_header_stdc = yes; then
7101 cat >>confdefs.h
<<\_ACEOF
7102 #define STDC_HEADERS 1
7108 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
7109 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
7111 # Check whether --with-dmalloc or --without-dmalloc was given.
7112 if test "${with_dmalloc+set}" = set; then
7113 withval
="$with_dmalloc"
7114 if test "$withval" = yes; then
7115 echo "$as_me:$LINENO: result: yes" >&5
7116 echo "${ECHO_T}yes" >&6
7118 cat >>confdefs.h
<<\_ACEOF
7119 #define WITH_DMALLOC 1
7122 LIBS
="$LIBS -ldmalloc"
7123 LDFLAGS
="$LDFLAGS -g"
7125 echo "$as_me:$LINENO: result: no" >&5
7126 echo "${ECHO_T}no" >&6
7129 echo "$as_me:$LINENO: result: no" >&5
7130 echo "${ECHO_T}no" >&6
7134 ALL_LINGUAS
="de es et fr ja nl ru sv tr"
7135 # Make sure we can run config.sub.
7136 $ac_config_sub sun4
>/dev
/null
2>&1 ||
7137 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
7138 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
7139 { (exit 1); exit 1; }; }
7141 echo "$as_me:$LINENO: checking build system type" >&5
7142 echo $ECHO_N "checking build system type... $ECHO_C" >&6
7143 if test "${ac_cv_build+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 ac_cv_build_alias
=$build_alias
7147 test -z "$ac_cv_build_alias" &&
7148 ac_cv_build_alias
=`$ac_config_guess`
7149 test -z "$ac_cv_build_alias" &&
7150 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
7151 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
7152 { (exit 1); exit 1; }; }
7153 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
7154 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed." >&5
7155 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
7156 { (exit 1); exit 1; }; }
7159 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
7160 echo "${ECHO_T}$ac_cv_build" >&6
7162 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7163 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7164 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7167 echo "$as_me:$LINENO: checking host system type" >&5
7168 echo $ECHO_N "checking host system type... $ECHO_C" >&6
7169 if test "${ac_cv_host+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7172 ac_cv_host_alias
=$host_alias
7173 test -z "$ac_cv_host_alias" &&
7174 ac_cv_host_alias
=$ac_cv_build_alias
7175 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
7176 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
7177 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
7178 { (exit 1); exit 1; }; }
7181 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7182 echo "${ECHO_T}$ac_cv_host" >&6
7184 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7185 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7186 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7189 echo "$as_me:$LINENO: checking for off_t" >&5
7190 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7191 if test "${ac_cv_type_off_t+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 cat >conftest.
$ac_ext <<_ACEOF
7195 #line $LINENO "configure"
7196 #include "confdefs.h"
7197 $ac_includes_default
7198 #ifdef F77_DUMMY_MAIN
7202 int F77_DUMMY_MAIN() { return 1; }
7215 rm -f conftest.
$ac_objext
7216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7217 (eval $ac_compile) 2>&5
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); } &&
7221 { ac_try
='test -s conftest.$ac_objext'
7222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); }; }; then
7227 ac_cv_type_off_t
=yes
7229 echo "$as_me: failed program was:" >&5
7230 cat conftest.
$ac_ext >&5
7233 rm -f conftest.
$ac_objext conftest.
$ac_ext
7235 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7236 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7237 if test $ac_cv_type_off_t = yes; then
7241 cat >>confdefs.h
<<_ACEOF
7247 echo "$as_me:$LINENO: checking for size_t" >&5
7248 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7249 if test "${ac_cv_type_size_t+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7252 cat >conftest.
$ac_ext <<_ACEOF
7253 #line $LINENO "configure"
7254 #include "confdefs.h"
7255 $ac_includes_default
7256 #ifdef F77_DUMMY_MAIN
7260 int F77_DUMMY_MAIN() { return 1; }
7267 if (sizeof (size_t))
7273 rm -f conftest.
$ac_objext
7274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7275 (eval $ac_compile) 2>&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); } &&
7279 { ac_try
='test -s conftest.$ac_objext'
7280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); }; }; then
7285 ac_cv_type_size_t
=yes
7287 echo "$as_me: failed program was:" >&5
7288 cat conftest.
$ac_ext >&5
7289 ac_cv_type_size_t
=no
7291 rm -f conftest.
$ac_objext conftest.
$ac_ext
7293 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7294 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7295 if test $ac_cv_type_size_t = yes; then
7299 cat >>confdefs.h
<<_ACEOF
7300 #define size_t unsigned
7307 for ac_header
in stdlib.h unistd.h
7309 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7311 echo "$as_me:$LINENO: checking for $ac_header" >&5
7312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7314 echo $ECHO_N "(cached) $ECHO_C" >&6
7316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7319 # Is the header compilable?
7320 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7322 cat >conftest.
$ac_ext <<_ACEOF
7323 #line $LINENO "configure"
7324 #include "confdefs.h"
7325 $ac_includes_default
7326 #include <$ac_header>
7328 rm -f conftest.
$ac_objext
7329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7330 (eval $ac_compile) 2>&5
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); } &&
7334 { ac_try
='test -s conftest.$ac_objext'
7335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); }; }; then
7340 ac_header_compiler
=yes
7342 echo "$as_me: failed program was:" >&5
7343 cat conftest.
$ac_ext >&5
7344 ac_header_compiler
=no
7346 rm -f conftest.
$ac_objext conftest.
$ac_ext
7347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7348 echo "${ECHO_T}$ac_header_compiler" >&6
7350 # Is the header present?
7351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7353 cat >conftest.
$ac_ext <<_ACEOF
7354 #line $LINENO "configure"
7355 #include "confdefs.h"
7356 #include <$ac_header>
7358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7359 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7361 egrep -v '^ *\+' conftest.er1
>conftest.err
7363 cat conftest.err
>&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } >/dev
/null
; then
7366 if test -s conftest.err
; then
7367 ac_cpp_err
=$ac_c_preproc_warn_flag
7374 if test -z "$ac_cpp_err"; then
7375 ac_header_preproc
=yes
7377 echo "$as_me: failed program was:" >&5
7378 cat conftest.
$ac_ext >&5
7379 ac_header_preproc
=no
7381 rm -f conftest.err conftest.
$ac_ext
7382 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7383 echo "${ECHO_T}$ac_header_preproc" >&6
7385 # So? What about this header?
7386 case $ac_header_compiler:$ac_header_preproc in
7388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7396 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7400 echo "$as_me:$LINENO: checking for $ac_header" >&5
7401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7405 eval "$as_ac_Header=$ac_header_preproc"
7407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7412 cat >>confdefs.h
<<_ACEOF
7413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7421 for ac_func
in getpagesize
7423 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7424 echo "$as_me:$LINENO: checking for $ac_func" >&5
7425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7426 if eval "test \"\${$as_ac_var+set}\" = set"; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7429 cat >conftest.
$ac_ext <<_ACEOF
7430 #line $LINENO "configure"
7431 #include "confdefs.h"
7432 /* System header to define __stub macros and hopefully few prototypes,
7433 which can conflict with char $ac_func (); below. */
7435 /* Override any gcc2 internal prototype to avoid an error. */
7439 /* We use char because int might match the return type of a gcc2
7440 builtin and then its argument prototype would still apply. */
7444 #ifdef F77_DUMMY_MAIN
7448 int F77_DUMMY_MAIN() { return 1; }
7453 /* The GNU C library defines this for functions which it implements
7454 to always fail with ENOSYS. Some functions are actually named
7455 something starting with __ and the normal name is an alias. */
7456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7466 rm -f conftest.
$ac_objext conftest
$ac_exeext
7467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7468 (eval $ac_link) 2>&5
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); } &&
7472 { ac_try
='test -s conftest$ac_exeext'
7473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); }; }; then
7478 eval "$as_ac_var=yes"
7480 echo "$as_me: failed program was:" >&5
7481 cat conftest.
$ac_ext >&5
7482 eval "$as_ac_var=no"
7484 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7487 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7488 if test `eval echo '${'$as_ac_var'}'` = yes; then
7489 cat >>confdefs.h
<<_ACEOF
7490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7496 echo "$as_me:$LINENO: checking for working mmap" >&5
7497 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7498 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7501 if test "$cross_compiling" = yes; then
7502 ac_cv_func_mmap_fixed_mapped
=no
7504 cat >conftest.
$ac_ext <<_ACEOF
7505 #line $LINENO "configure"
7506 #include "confdefs.h"
7507 $ac_includes_default
7508 /* Thanks to Mike Haertel and Jim Avera for this test.
7509 Here is a matrix of mmap possibilities:
7510 mmap private not fixed
7511 mmap private fixed at somewhere currently unmapped
7512 mmap private fixed at somewhere already mapped
7513 mmap shared not fixed
7514 mmap shared fixed at somewhere currently unmapped
7515 mmap shared fixed at somewhere already mapped
7516 For private mappings, we should verify that changes cannot be read()
7517 back from the file, nor mmap's back from the file at a different
7518 address. (There have been systems where private was not correctly
7519 implemented like the infamous i386 svr4.0, and systems where the
7520 VM page cache was not coherent with the file system buffer cache
7521 like early versions of FreeBSD and possibly contemporary NetBSD.)
7522 For shared mappings, we should conversely verify that changes get
7523 propagated back to all the places they're supposed to be.
7525 Grep wants private fixed already mapped.
7526 The main things grep needs to know about mmap are:
7527 * does it exist and is it safe to write into the mmap'd area
7528 * how to use it (BSD variants) */
7531 #include <sys/mman.h>
7533 #if !STDC_HEADERS && !HAVE_STDLIB_H
7537 /* This mess was copied from the GNU getpagesize.h. */
7538 #if !HAVE_GETPAGESIZE
7539 /* Assume that all systems that can run configure have sys/param.h. */
7540 # if !HAVE_SYS_PARAM_H
7541 # define HAVE_SYS_PARAM_H 1
7544 # ifdef _SC_PAGESIZE
7545 # define getpagesize() sysconf(_SC_PAGESIZE)
7546 # else /* no _SC_PAGESIZE */
7547 # if HAVE_SYS_PARAM_H
7548 # include <sys/param.h>
7549 # ifdef EXEC_PAGESIZE
7550 # define getpagesize() EXEC_PAGESIZE
7551 # else /* no EXEC_PAGESIZE */
7553 # define getpagesize() NBPG * CLSIZE
7556 # endif /* no CLSIZE */
7557 # else /* no NBPG */
7559 # define getpagesize() NBPC
7560 # else /* no NBPC */
7562 # define getpagesize() PAGESIZE
7563 # endif /* PAGESIZE */
7564 # endif /* no NBPC */
7565 # endif /* no NBPG */
7566 # endif /* no EXEC_PAGESIZE */
7567 # else /* no HAVE_SYS_PARAM_H */
7568 # define getpagesize() 8192 /* punt totally */
7569 # endif /* no HAVE_SYS_PARAM_H */
7570 # endif /* no _SC_PAGESIZE */
7572 #endif /* no HAVE_GETPAGESIZE */
7577 char *data, *data2, *data3;
7581 pagesize = getpagesize ();
7583 /* First, make a file with some known garbage in it. */
7584 data = (char *) malloc (pagesize);
7587 for (i = 0; i < pagesize; ++i)
7588 *(data + i) = rand ();
7590 fd = creat ("conftest.mmap", 0600);
7593 if (write (fd, data, pagesize) != pagesize)
7597 /* Next, try to mmap the file at a fixed address which already has
7598 something else allocated at it. If we can, also make sure that
7599 we see the same garbage. */
7600 fd = open ("conftest.mmap", O_RDWR);
7603 data2 = (char *) malloc (2 * pagesize);
7606 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7607 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7608 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7610 for (i = 0; i < pagesize; ++i)
7611 if (*(data + i) != *(data2 + i))
7614 /* Finally, make sure that changes to the mapped area do not
7615 percolate back to the file as seen by read(). (This is a bug on
7616 some variants of i386 svr4.0.) */
7617 for (i = 0; i < pagesize; ++i)
7618 *(data2 + i) = *(data2 + i) + 1;
7619 data3 = (char *) malloc (pagesize);
7622 if (read (fd, data3, pagesize) != pagesize)
7624 for (i = 0; i < pagesize; ++i)
7625 if (*(data + i) != *(data3 + i))
7631 rm -f conftest
$ac_exeext
7632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7633 (eval $ac_link) 2>&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; }; then
7642 ac_cv_func_mmap_fixed_mapped
=yes
7644 echo "$as_me: program exited with status $ac_status" >&5
7645 echo "$as_me: failed program was:" >&5
7646 cat conftest.
$ac_ext >&5
7648 ac_cv_func_mmap_fixed_mapped
=no
7650 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7653 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7654 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7655 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7657 cat >>confdefs.h
<<\_ACEOF
7665 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7666 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7667 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 cat >conftest.
$ac_ext <<_ACEOF
7671 #line $LINENO "configure"
7672 #include "confdefs.h"
7674 #include <features.h>
7675 #ifdef __GNU_LIBRARY__
7676 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7683 egrep "Lucky GNU user" >/dev
/null
2>&1; then
7684 ac_cv_gnu_library_2_1
=yes
7686 ac_cv_gnu_library_2_1
=no
7693 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7694 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7696 GLIBC21
="$ac_cv_gnu_library_2_1"
7710 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7711 stdlib.h string.h unistd.h sys
/param.h
7713 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7715 echo "$as_me:$LINENO: checking for $ac_header" >&5
7716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7723 # Is the header compilable?
7724 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7726 cat >conftest.
$ac_ext <<_ACEOF
7727 #line $LINENO "configure"
7728 #include "confdefs.h"
7729 $ac_includes_default
7730 #include <$ac_header>
7732 rm -f conftest.
$ac_objext
7733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7734 (eval $ac_compile) 2>&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); } &&
7738 { ac_try
='test -s conftest.$ac_objext'
7739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); }; }; then
7744 ac_header_compiler
=yes
7746 echo "$as_me: failed program was:" >&5
7747 cat conftest.
$ac_ext >&5
7748 ac_header_compiler
=no
7750 rm -f conftest.
$ac_objext conftest.
$ac_ext
7751 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7752 echo "${ECHO_T}$ac_header_compiler" >&6
7754 # Is the header present?
7755 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7757 cat >conftest.
$ac_ext <<_ACEOF
7758 #line $LINENO "configure"
7759 #include "confdefs.h"
7760 #include <$ac_header>
7762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7763 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7765 egrep -v '^ *\+' conftest.er1
>conftest.err
7767 cat conftest.err
>&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); } >/dev
/null
; then
7770 if test -s conftest.err
; then
7771 ac_cpp_err
=$ac_c_preproc_warn_flag
7778 if test -z "$ac_cpp_err"; then
7779 ac_header_preproc
=yes
7781 echo "$as_me: failed program was:" >&5
7782 cat conftest.
$ac_ext >&5
7783 ac_header_preproc
=no
7785 rm -f conftest.err conftest.
$ac_ext
7786 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7787 echo "${ECHO_T}$ac_header_preproc" >&6
7789 # So? What about this header?
7790 case $ac_header_compiler:$ac_header_preproc in
7792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7800 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7804 echo "$as_me:$LINENO: checking for $ac_header" >&5
7805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7809 eval "$as_ac_Header=$ac_header_preproc"
7811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7816 cat >>confdefs.h
<<_ACEOF
7817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7845 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
7846 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
7847 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
7849 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7850 echo "$as_me:$LINENO: checking for $ac_func" >&5
7851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7852 if eval "test \"\${$as_ac_var+set}\" = set"; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 cat >conftest.
$ac_ext <<_ACEOF
7856 #line $LINENO "configure"
7857 #include "confdefs.h"
7858 /* System header to define __stub macros and hopefully few prototypes,
7859 which can conflict with char $ac_func (); below. */
7861 /* Override any gcc2 internal prototype to avoid an error. */
7865 /* We use char because int might match the return type of a gcc2
7866 builtin and then its argument prototype would still apply. */
7870 #ifdef F77_DUMMY_MAIN
7874 int F77_DUMMY_MAIN() { return 1; }
7879 /* The GNU C library defines this for functions which it implements
7880 to always fail with ENOSYS. Some functions are actually named
7881 something starting with __ and the normal name is an alias. */
7882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7892 rm -f conftest.
$ac_objext conftest
$ac_exeext
7893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7894 (eval $ac_link) 2>&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } &&
7898 { ac_try
='test -s conftest$ac_exeext'
7899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); }; }; then
7904 eval "$as_ac_var=yes"
7906 echo "$as_me: failed program was:" >&5
7907 cat conftest.
$ac_ext >&5
7908 eval "$as_ac_var=no"
7910 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7913 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7914 if test `eval echo '${'$as_ac_var'}'` = yes; then
7915 cat >>confdefs.h
<<_ACEOF
7916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7926 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7927 if test "${with_libiconv_prefix+set}" = set; then
7928 withval
="$with_libiconv_prefix"
7930 for dir
in `echo "$withval" | tr : ' '`; do
7931 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
7932 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
7937 echo "$as_me:$LINENO: checking for iconv" >&5
7938 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7939 if test "${am_cv_func_iconv+set}" = set; then
7940 echo $ECHO_N "(cached) $ECHO_C" >&6
7943 am_cv_func_iconv
="no, consider installing GNU libiconv"
7945 cat >conftest.
$ac_ext <<_ACEOF
7946 #line $LINENO "configure"
7947 #include "confdefs.h"
7950 #ifdef F77_DUMMY_MAIN
7954 int F77_DUMMY_MAIN() { return 1; }
7959 iconv_t cd = iconv_open("","");
7960 iconv(cd,NULL,NULL,NULL,NULL);
7966 rm -f conftest.
$ac_objext conftest
$ac_exeext
7967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7968 (eval $ac_link) 2>&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); } &&
7972 { ac_try
='test -s conftest$ac_exeext'
7973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; }; then
7978 am_cv_func_iconv
=yes
7980 echo "$as_me: failed program was:" >&5
7981 cat conftest.
$ac_ext >&5
7983 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7984 if test "$am_cv_func_iconv" != yes; then
7985 am_save_LIBS
="$LIBS"
7986 LIBS
="$LIBS -liconv"
7987 cat >conftest.
$ac_ext <<_ACEOF
7988 #line $LINENO "configure"
7989 #include "confdefs.h"
7992 #ifdef F77_DUMMY_MAIN
7996 int F77_DUMMY_MAIN() { return 1; }
8001 iconv_t cd = iconv_open("","");
8002 iconv(cd,NULL,NULL,NULL,NULL);
8008 rm -f conftest.
$ac_objext conftest
$ac_exeext
8009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8010 (eval $ac_link) 2>&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } &&
8014 { ac_try
='test -s conftest$ac_exeext'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8021 am_cv_func_iconv
=yes
8023 echo "$as_me: failed program was:" >&5
8024 cat conftest.
$ac_ext >&5
8026 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8027 LIBS
="$am_save_LIBS"
8031 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8032 echo "${ECHO_T}$am_cv_func_iconv" >&6
8033 if test "$am_cv_func_iconv" = yes; then
8035 cat >>confdefs.h
<<\_ACEOF
8036 #define HAVE_ICONV 1
8039 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8040 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8041 if test "${am_cv_proto_iconv+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8045 cat >conftest.
$ac_ext <<_ACEOF
8046 #line $LINENO "configure"
8047 #include "confdefs.h"
8055 #if defined(__STDC__) || defined(__cplusplus)
8056 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8061 #ifdef F77_DUMMY_MAIN
8065 int F77_DUMMY_MAIN() { return 1; }
8075 rm -f conftest.
$ac_objext
8076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8077 (eval $ac_compile) 2>&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } &&
8081 { ac_try
='test -s conftest.$ac_objext'
8082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); }; }; then
8087 am_cv_proto_iconv_arg1
=""
8089 echo "$as_me: failed program was:" >&5
8090 cat conftest.
$ac_ext >&5
8091 am_cv_proto_iconv_arg1
="const"
8093 rm -f conftest.
$ac_objext conftest.
$ac_ext
8094 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);"
8097 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8098 echo "$as_me:$LINENO: result: ${ac_t:-
8099 }$am_cv_proto_iconv" >&5
8100 echo "${ECHO_T}${ac_t:-
8101 }$am_cv_proto_iconv" >&6
8103 cat >>confdefs.h
<<_ACEOF
8104 #define ICONV_CONST $am_cv_proto_iconv_arg1
8109 if test "$am_cv_lib_iconv" = yes; then
8115 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8116 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8117 if test "${am_cv_langinfo_codeset+set}" = set; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8120 cat >conftest.
$ac_ext <<_ACEOF
8121 #line $LINENO "configure"
8122 #include "confdefs.h"
8123 #include <langinfo.h>
8124 #ifdef F77_DUMMY_MAIN
8128 int F77_DUMMY_MAIN() { return 1; }
8133 char* cs = nl_langinfo(CODESET);
8138 rm -f conftest.
$ac_objext conftest
$ac_exeext
8139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8140 (eval $ac_link) 2>&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); } &&
8144 { ac_try
='test -s conftest$ac_exeext'
8145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; }; then
8150 am_cv_langinfo_codeset
=yes
8152 echo "$as_me: failed program was:" >&5
8153 cat conftest.
$ac_ext >&5
8154 am_cv_langinfo_codeset
=no
8156 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8159 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
8160 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
8161 if test $am_cv_langinfo_codeset = yes; then
8163 cat >>confdefs.h
<<\_ACEOF
8164 #define HAVE_LANGINFO_CODESET 1
8169 if test $ac_cv_header_locale_h = yes; then
8170 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8171 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8172 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8175 cat >conftest.
$ac_ext <<_ACEOF
8176 #line $LINENO "configure"
8177 #include "confdefs.h"
8179 #ifdef F77_DUMMY_MAIN
8183 int F77_DUMMY_MAIN() { return 1; }
8193 rm -f conftest.
$ac_objext conftest
$ac_exeext
8194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8195 (eval $ac_link) 2>&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } &&
8199 { ac_try
='test -s conftest$ac_exeext'
8200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); }; }; then
8205 am_cv_val_LC_MESSAGES
=yes
8207 echo "$as_me: failed program was:" >&5
8208 cat conftest.
$ac_ext >&5
8209 am_cv_val_LC_MESSAGES
=no
8211 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8213 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8214 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8215 if test $am_cv_val_LC_MESSAGES = yes; then
8217 cat >>confdefs.h
<<\_ACEOF
8218 #define HAVE_LC_MESSAGES 1
8223 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8224 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8225 # Check whether --enable-nls or --disable-nls was given.
8226 if test "${enable_nls+set}" = set; then
8227 enableval
="$enable_nls"
8232 echo "$as_me:$LINENO: result: $USE_NLS" >&5
8233 echo "${ECHO_T}$USE_NLS" >&6
8236 BUILD_INCLUDED_LIBINTL
=no
8237 USE_INCLUDED_LIBINTL
=no
8240 if test "$USE_NLS" = "yes"; then
8242 cat >>confdefs.h
<<\_ACEOF
8243 #define ENABLE_NLS 1
8246 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8247 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8249 # Check whether --with-included-gettext or --without-included-gettext was given.
8250 if test "${with_included_gettext+set}" = set; then
8251 withval
="$with_included_gettext"
8252 nls_cv_force_use_gnu_gettext
=$withval
8254 nls_cv_force_use_gnu_gettext
=no
8256 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8257 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8259 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
8260 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8266 if test "${ac_cv_header_libintl_h+set}" = set; then
8267 echo "$as_me:$LINENO: checking for libintl.h" >&5
8268 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8269 if test "${ac_cv_header_libintl_h+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8272 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8273 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8275 # Is the header compilable?
8276 echo "$as_me:$LINENO: checking libintl.h usability" >&5
8277 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
8278 cat >conftest.
$ac_ext <<_ACEOF
8279 #line $LINENO "configure"
8280 #include "confdefs.h"
8281 $ac_includes_default
8282 #include <libintl.h>
8284 rm -f conftest.
$ac_objext
8285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8286 (eval $ac_compile) 2>&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); } &&
8290 { ac_try
='test -s conftest.$ac_objext'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; }; then
8296 ac_header_compiler
=yes
8298 echo "$as_me: failed program was:" >&5
8299 cat conftest.
$ac_ext >&5
8300 ac_header_compiler
=no
8302 rm -f conftest.
$ac_objext conftest.
$ac_ext
8303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8304 echo "${ECHO_T}$ac_header_compiler" >&6
8306 # Is the header present?
8307 echo "$as_me:$LINENO: checking libintl.h presence" >&5
8308 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
8309 cat >conftest.
$ac_ext <<_ACEOF
8310 #line $LINENO "configure"
8311 #include "confdefs.h"
8312 #include <libintl.h>
8314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8315 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8317 egrep -v '^ *\+' conftest.er1
>conftest.err
8319 cat conftest.err
>&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); } >/dev
/null
; then
8322 if test -s conftest.err
; then
8323 ac_cpp_err
=$ac_c_preproc_warn_flag
8330 if test -z "$ac_cpp_err"; then
8331 ac_header_preproc
=yes
8333 echo "$as_me: failed program was:" >&5
8334 cat conftest.
$ac_ext >&5
8335 ac_header_preproc
=no
8337 rm -f conftest.err conftest.
$ac_ext
8338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8339 echo "${ECHO_T}$ac_header_preproc" >&6
8341 # So? What about this header?
8342 case $ac_header_compiler:$ac_header_preproc in
8344 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8345 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8346 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8347 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
8349 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled." >&5
8350 echo "$as_me: WARNING: libintl.h: present but cannot be compiled." >&2;}
8351 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
8352 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
8353 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8354 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
8356 echo "$as_me:$LINENO: checking for libintl.h" >&5
8357 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8358 if test "${ac_cv_header_libintl_h+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8361 ac_cv_header_libintl_h
=$ac_header_preproc
8363 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8364 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8367 if test $ac_cv_header_libintl_h = yes; then
8368 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
8369 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
8370 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
8371 echo $ECHO_N "(cached) $ECHO_C" >&6
8373 cat >conftest.
$ac_ext <<_ACEOF
8374 #line $LINENO "configure"
8375 #include "confdefs.h"
8376 #include <libintl.h>
8377 extern int _nl_msg_cat_cntr;
8378 #ifdef F77_DUMMY_MAIN
8382 int F77_DUMMY_MAIN() { return 1; }
8387 bindtextdomain ("", "");
8388 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr
8393 rm -f conftest.
$ac_objext conftest
$ac_exeext
8394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8395 (eval $ac_link) 2>&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } &&
8399 { ac_try
='test -s conftest$ac_exeext'
8400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; }; then
8405 gt_cv_func_gnugettext2_libc
=yes
8407 echo "$as_me: failed program was:" >&5
8408 cat conftest.
$ac_ext >&5
8409 gt_cv_func_gnugettext2_libc
=no
8411 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8413 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
8414 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
8416 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
8417 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
8418 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
8419 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8422 gt_save_LIBS
="$LIBS"
8423 LIBS
="$LIBS -lintl $LIBICONV"
8424 cat >conftest.
$ac_ext <<_ACEOF
8425 #line $LINENO "configure"
8426 #include "confdefs.h"
8427 #include <libintl.h>
8428 extern int _nl_msg_cat_cntr;
8429 #ifdef F77_DUMMY_MAIN
8433 int F77_DUMMY_MAIN() { return 1; }
8438 bindtextdomain ("", "");
8439 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr
8444 rm -f conftest.
$ac_objext conftest
$ac_exeext
8445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8446 (eval $ac_link) 2>&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } &&
8450 { ac_try
='test -s conftest$ac_exeext'
8451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); }; }; then
8456 gt_cv_func_gnugettext2_libintl
=yes
8458 echo "$as_me: failed program was:" >&5
8459 cat conftest.
$ac_ext >&5
8460 gt_cv_func_gnugettext2_libintl
=no
8462 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8463 LIBS
="$gt_save_LIBS"
8465 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
8466 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
8469 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
8470 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
8471 && test "$PACKAGE" != gettext; }; then
8473 cat >>confdefs.h
<<\_ACEOF
8474 #define HAVE_GETTEXT 1
8478 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
8479 INTLLIBS
="-lintl $LIBICONV"
8482 gt_save_LIBS
="$LIBS"
8483 LIBS
="$LIBS $INTLLIBS"
8485 for ac_func
in dcgettext
8487 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8488 echo "$as_me:$LINENO: checking for $ac_func" >&5
8489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8490 if eval "test \"\${$as_ac_var+set}\" = set"; then
8491 echo $ECHO_N "(cached) $ECHO_C" >&6
8493 cat >conftest.
$ac_ext <<_ACEOF
8494 #line $LINENO "configure"
8495 #include "confdefs.h"
8496 /* System header to define __stub macros and hopefully few prototypes,
8497 which can conflict with char $ac_func (); below. */
8499 /* Override any gcc2 internal prototype to avoid an error. */
8503 /* We use char because int might match the return type of a gcc2
8504 builtin and then its argument prototype would still apply. */
8508 #ifdef F77_DUMMY_MAIN
8512 int F77_DUMMY_MAIN() { return 1; }
8517 /* The GNU C library defines this for functions which it implements
8518 to always fail with ENOSYS. Some functions are actually named
8519 something starting with __ and the normal name is an alias. */
8520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8530 rm -f conftest.
$ac_objext conftest
$ac_exeext
8531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8532 (eval $ac_link) 2>&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } &&
8536 { ac_try
='test -s conftest$ac_exeext'
8537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; }; then
8542 eval "$as_ac_var=yes"
8544 echo "$as_me: failed program was:" >&5
8545 cat conftest.
$ac_ext >&5
8546 eval "$as_ac_var=no"
8548 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8551 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8552 if test `eval echo '${'$as_ac_var'}'` = yes; then
8553 cat >>confdefs.h
<<_ACEOF
8554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8560 LIBS
="$gt_save_LIBS"
8562 # Extract the first word of "msgfmt", so it can be a program name with args.
8563 set dummy msgfmt
; ac_word
=$2
8564 echo "$as_me:$LINENO: checking for $ac_word" >&5
8565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8566 if test "${ac_cv_path_MSGFMT+set}" = set; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8571 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8574 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8575 for ac_dir
in $PATH; do
8576 test -z "$ac_dir" && ac_dir
=.
8577 if test -f $ac_dir/$ac_word; then
8578 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8579 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8585 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8589 MSGFMT
="$ac_cv_path_MSGFMT"
8590 if test "$MSGFMT" != ":"; then
8591 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8592 echo "${ECHO_T}$MSGFMT" >&6
8594 echo "$as_me:$LINENO: result: no" >&5
8595 echo "${ECHO_T}no" >&6
8598 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8599 set dummy gmsgfmt
; ac_word
=$2
8600 echo "$as_me:$LINENO: checking for $ac_word" >&5
8601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8602 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8603 echo $ECHO_N "(cached) $ECHO_C" >&6
8607 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8610 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8614 test -z "$as_dir" && as_dir
=.
8615 for ac_exec_ext
in '' $ac_executable_extensions; do
8616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8617 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8624 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8628 GMSGFMT
=$ac_cv_path_GMSGFMT
8630 if test -n "$GMSGFMT"; then
8631 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8632 echo "${ECHO_T}$GMSGFMT" >&6
8634 echo "$as_me:$LINENO: result: no" >&5
8635 echo "${ECHO_T}no" >&6
8639 # Extract the first word of "xgettext", so it can be a program name with args.
8640 set dummy xgettext
; ac_word
=$2
8641 echo "$as_me:$LINENO: checking for $ac_word" >&5
8642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8643 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8648 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8651 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8652 for ac_dir
in $PATH; do
8653 test -z "$ac_dir" && ac_dir
=.
8654 if test -f $ac_dir/$ac_word; then
8655 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8656 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8662 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8666 XGETTEXT
="$ac_cv_path_XGETTEXT"
8667 if test "$XGETTEXT" != ":"; then
8668 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8669 echo "${ECHO_T}$XGETTEXT" >&6
8671 echo "$as_me:$LINENO: result: no" >&5
8672 echo "${ECHO_T}no" >&6
8683 if test "$CATOBJEXT" = "NONE"; then
8684 nls_cv_use_gnu_gettext
=yes
8688 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8689 INTLOBJS
="\$(GETTOBJS)"
8690 # Extract the first word of "msgfmt", so it can be a program name with args.
8691 set dummy msgfmt
; ac_word
=$2
8692 echo "$as_me:$LINENO: checking for $ac_word" >&5
8693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8694 if test "${ac_cv_path_MSGFMT+set}" = set; then
8695 echo $ECHO_N "(cached) $ECHO_C" >&6
8699 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8702 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8703 for ac_dir
in $PATH; do
8704 test -z "$ac_dir" && ac_dir
=.
8705 if test -f $ac_dir/$ac_word; then
8706 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8707 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8713 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8717 MSGFMT
="$ac_cv_path_MSGFMT"
8718 if test "$MSGFMT" != ":"; then
8719 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8720 echo "${ECHO_T}$MSGFMT" >&6
8722 echo "$as_me:$LINENO: result: no" >&5
8723 echo "${ECHO_T}no" >&6
8726 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8727 set dummy gmsgfmt
; ac_word
=$2
8728 echo "$as_me:$LINENO: checking for $ac_word" >&5
8729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8730 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
8735 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8738 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8742 test -z "$as_dir" && as_dir
=.
8743 for ac_exec_ext
in '' $ac_executable_extensions; do
8744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8745 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8752 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8756 GMSGFMT
=$ac_cv_path_GMSGFMT
8758 if test -n "$GMSGFMT"; then
8759 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8760 echo "${ECHO_T}$GMSGFMT" >&6
8762 echo "$as_me:$LINENO: result: no" >&5
8763 echo "${ECHO_T}no" >&6
8766 # Extract the first word of "xgettext", so it can be a program name with args.
8767 set dummy xgettext
; ac_word
=$2
8768 echo "$as_me:$LINENO: checking for $ac_word" >&5
8769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8770 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
8775 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8778 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8779 for ac_dir
in $PATH; do
8780 test -z "$ac_dir" && ac_dir
=.
8781 if test -f $ac_dir/$ac_word; then
8782 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8783 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8789 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8793 XGETTEXT
="$ac_cv_path_XGETTEXT"
8794 if test "$XGETTEXT" != ":"; then
8795 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8796 echo "${ECHO_T}$XGETTEXT" >&6
8798 echo "$as_me:$LINENO: result: no" >&5
8799 echo "${ECHO_T}no" >&6
8803 BUILD_INCLUDED_LIBINTL
=yes
8804 USE_INCLUDED_LIBINTL
=yes
8806 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
8807 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8810 if test "$GMSGFMT" != ":"; then
8811 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
8814 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
8815 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
8820 if test "$XGETTEXT" != ":"; then
8821 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
8824 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8825 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8832 ac_config_commands
="$ac_config_commands default-1"
8836 if test "$PACKAGE" = gettext; then
8837 BUILD_INCLUDED_LIBINTL
=yes
8840 for ac_prog
in bison
8842 # Extract the first word of "$ac_prog", so it can be a program name with args.
8843 set dummy
$ac_prog; ac_word
=$2
8844 echo "$as_me:$LINENO: checking for $ac_word" >&5
8845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8846 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8847 echo $ECHO_N "(cached) $ECHO_C" >&6
8849 if test -n "$INTLBISON"; then
8850 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
8852 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8856 test -z "$as_dir" && as_dir
=.
8857 for ac_exec_ext
in '' $ac_executable_extensions; do
8858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8859 ac_cv_prog_INTLBISON
="$ac_prog"
8860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8868 INTLBISON
=$ac_cv_prog_INTLBISON
8869 if test -n "$INTLBISON"; then
8870 echo "$as_me:$LINENO: result: $INTLBISON" >&5
8871 echo "${ECHO_T}$INTLBISON" >&6
8873 echo "$as_me:$LINENO: result: no" >&5
8874 echo "${ECHO_T}no" >&6
8877 test -n "$INTLBISON" && break
8880 if test -z "$INTLBISON"; then
8883 echo "$as_me:$LINENO: checking version of bison" >&5
8884 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8885 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8886 case $ac_prog_version in
8887 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
8888 1.2[6-9]* | 1.
[3-9][0-9]* | [2-9].
*)
8889 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
8890 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
8892 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8893 echo "${ECHO_T}$ac_prog_version" >&6
8895 if test $ac_verc_fail = yes; then
8899 for lang
in $ALL_LINGUAS; do
8900 GMOFILES
="$GMOFILES $lang.gmo"
8901 POFILES
="$POFILES $lang.po"
8915 nls_cv_header_libgt
=
8927 if test "x$CATOBJEXT" != "x"; then
8928 if test "x$ALL_LINGUAS" = "x"; then
8931 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8932 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8934 for presentlang
in $ALL_LINGUAS; do
8936 for desiredlang
in ${LINGUAS-$ALL_LINGUAS}; do
8937 # Use the presentlang catalog if desiredlang is
8938 # a. equal to presentlang, or
8939 # b. a variant of presentlang (because in this case,
8940 # presentlang can be used as a fallback for messages
8941 # which are not translated in the desiredlang catalog).
8942 case "$desiredlang" in
8943 "$presentlang"*) useit
=yes;;
8946 if test $useit = yes; then
8947 NEW_LINGUAS
="$NEW_LINGUAS $presentlang"
8950 LINGUAS
=$NEW_LINGUAS
8951 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8952 echo "${ECHO_T}$LINGUAS" >&6
8955 if test -n "$LINGUAS"; then
8956 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8961 if test -n "$ac_aux_dir"; then
8962 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8964 if test -z "$MKINSTALLDIRS"; then
8965 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8969 INTL_LIBTOOL_SUFFIX_PREFIX
=
8973 # This is necessary so that .o files in LIBOBJS are also built via
8974 # the ANSI2KNR-filtering rules.
8975 LIBOBJS
=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
8978 ac_config_files
="$ac_config_files Makefile config/Makefile intl/Makefile po/Makefile.in lib/Makefile src/Makefile doc/Makefile m4/Makefile"
8979 cat >confcache
<<\_ACEOF
8980 # This file is a shell script that caches the results of configure
8981 # tests run on this system so they can be shared between configure
8982 # scripts and configure runs, see configure's option --config-cache.
8983 # It is not useful on other systems. If it contains results you don't
8984 # want to keep, you may remove or edit it.
8986 # config.status only pays attention to the cache file if you give it
8987 # the --recheck option to rerun configure.
8989 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8990 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8995 # The following way of writing the cache mishandles newlines in values,
8996 # but we know of no workaround that is simple, portable, and efficient.
8997 # So, don't put newlines in cache variables' values.
8998 # Ultrix sh set writes to stderr and can't be redirected directly,
8999 # and sets the high bit in the cache file unless we assign to the vars.
9002 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9004 # `set' does not quote correctly, so add quotes (double-quote
9005 # substitution turns \\\\ into \\, and sed turns \\ into \).
9008 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9011 # `set' quotes correctly as required by POSIX, so do not add quotes.
9013 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9020 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9022 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9024 if cmp -s $cache_file confcache
; then :; else
9025 if test -w $cache_file; then
9026 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9027 cat confcache
>$cache_file
9029 echo "not updating unwritable cache $cache_file"
9034 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9035 # Let make expand exec_prefix.
9036 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9038 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9039 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9040 # trailing colons and then remove the whole line if VPATH becomes empty
9041 # (actually we leave an empty line to preserve line numbers).
9042 if test "x$srcdir" = x.
; then
9043 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
9044 s/:*\$(srcdir):*/:/;
9045 s/:*\${srcdir}:*/:/;
9047 s/^\([^=]*=[ ]*\):*/\1/;
9053 DEFS
=-DHAVE_CONFIG_H
9055 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9056 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9057 Usually this means the macro was only invoked conditionally." >&5
9058 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9059 Usually this means the macro was only invoked conditionally." >&2;}
9060 { (exit 1); exit 1; }; }
9063 : ${CONFIG_STATUS=./config.status}
9064 ac_clean_files_save
=$ac_clean_files
9065 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9066 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9067 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9068 cat >$CONFIG_STATUS <<_ACEOF
9070 # Generated by $as_me.
9071 # Run this file to recreate the current configuration.
9072 # Compiler output produced by configure, useful for debugging
9073 # configure, is in config.log if it exists.
9076 SHELL=\${CONFIG_SHELL-$SHELL}
9079 cat >>$CONFIG_STATUS <<\_ACEOF
9081 ## --------------------- ##
9082 ## M4sh Initialization. ##
9083 ## --------------------- ##
9085 # Be Bourne compatible
9086 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
9089 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
9094 # Support unset when possible.
9095 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
9101 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
9102 { $as_unset LANG
|| test "${LANG+set}" != set; } ||
9103 { LANG
=C
; export LANG
; }
9104 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
9105 { $as_unset LC_ALL
|| test "${LC_ALL+set}" != set; } ||
9106 { LC_ALL
=C
; export LC_ALL
; }
9107 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
9108 { $as_unset LC_TIME
|| test "${LC_TIME+set}" != set; } ||
9109 { LC_TIME
=C
; export LC_TIME
; }
9110 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
9111 { $as_unset LC_CTYPE
|| test "${LC_CTYPE+set}" != set; } ||
9112 { LC_CTYPE
=C
; export LC_CTYPE
; }
9113 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
9114 { $as_unset LANGUAGE
|| test "${LANGUAGE+set}" != set; } ||
9115 { LANGUAGE
=C
; export LANGUAGE
; }
9116 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
9117 { $as_unset LC_COLLATE
|| test "${LC_COLLATE+set}" != set; } ||
9118 { LC_COLLATE
=C
; export LC_COLLATE
; }
9119 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
9120 { $as_unset LC_NUMERIC
|| test "${LC_NUMERIC+set}" != set; } ||
9121 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
9122 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
9123 { $as_unset LC_MESSAGES
|| test "${LC_MESSAGES+set}" != set; } ||
9124 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
9127 # Name of the executable.
9128 as_me
=`(basename "$0") 2>/dev/null ||
9129 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9130 X"$0" : 'X\(//\)$' \| \
9131 X"$0" : 'X\(/\)$' \| \
9132 . : '\(.\)' 2>/dev/null ||
9134 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9135 /^X\/\(\/\/\)$/{ s//\1/; q; }
9136 /^X\/\(\/\).*/{ s//\1/; q; }
9139 # PATH needs CR, and LINENO needs CR and PATH.
9140 # Avoid depending upon Character Ranges.
9141 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9142 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9143 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9144 as_cr_digits
='0123456789'
9145 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9147 # The user is always right.
9148 if test "${PATH_SEPARATOR+set}" != set; then
9149 echo "#! $SHELL" >conftest.sh
9150 echo "exit 0" >>conftest.sh
9151 chmod +x conftest.sh
9152 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
9163 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
9164 test "x$as_lineno_1" != "x$as_lineno_2" &&
9165 test "x$as_lineno_3" = "x$as_lineno_2" || {
9166 # Find who we are. Look in the path if we contain no path at all
9169 *[\\/]* ) as_myself
=$0 ;;
9170 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9174 test -z "$as_dir" && as_dir
=.
9175 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
9180 # We did not find ourselves, most probably we were run as `sh COMMAND'
9181 # in which case we are not to be found in the path.
9182 if test "x$as_myself" = x
; then
9185 if test ! -f "$as_myself"; then
9186 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9187 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9188 { (exit 1); exit 1; }; }
9190 case $CONFIG_SHELL in
9192 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9193 for as_dir
in /bin
:/usr
/bin
:$PATH
9196 test -z "$as_dir" && as_dir
=.
9197 for as_base
in sh bash ksh sh5
; do
9200 if ("$as_dir/$as_base" -c '
9203 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9204 test "x$as_lineno_1" != "x$as_lineno_2" &&
9205 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
9206 CONFIG_SHELL
=$as_dir/$as_base
9208 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9216 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9217 # uniformly replaced by the line number. The first 'sed' inserts a
9218 # line-number line before each line; the second 'sed' does the real
9219 # work. The second script uses 'N' to pair each line-number line
9220 # with the numbered line, and appends trailing '-' during
9221 # substitution so that $LINENO is not a special case at line end.
9222 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9223 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9224 sed '=' <$as_myself |
9229 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9232 s,^['$as_cr_digits']*\n,,
9234 chmod +x
$as_me.lineno
||
9235 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9236 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9237 { (exit 1); exit 1; }; }
9239 # Don't try to exec as it changes $[0], causing all sort of problems
9240 # (the dirname of $[0] is not the place where we might find the
9241 # original and so on. Autoconf is especially sensible to this).
9243 # Exit status is that of the last command.
9248 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9249 *c
*,-n*) ECHO_N
= ECHO_C
='
9251 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
9252 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
9255 if expr a
: '\(a\)' >/dev
/null
2>&1; then
9261 rm -f conf$$ conf$$.exe conf$$.
file
9263 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9264 # We could just check for DJGPP; but this test a) works b) is more generic
9265 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9266 if test -f conf$$.exe
; then
9267 # Don't use ln at all; we don't have any links
9272 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9277 rm -f conf$$ conf$$.exe conf$$.
file
9279 as_executable_p
="test -f"
9281 # Sed expression to map a string onto a valid CPP name.
9282 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9284 # Sed expression to map a string onto a valid variable name.
9285 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9289 # We need space, tab and new line, in precisely that order.
9295 $as_unset CDPATH
|| test "${CDPATH+set}" != set || { CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
9299 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9300 # report actual input values of CONFIG_FILES etc. instead of their
9301 # values after options handling. Logging --version etc. is OK.
9305 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9306 ## Running $as_me. ##
9311 This file was extended by GNU Bison $as_me 1.30j, which was
9312 generated by GNU Autoconf 2.52g. Invocation command line was
9314 CONFIG_FILES = $CONFIG_FILES
9315 CONFIG_HEADERS = $CONFIG_HEADERS
9316 CONFIG_LINKS = $CONFIG_LINKS
9317 CONFIG_COMMANDS = $CONFIG_COMMANDS
9321 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9325 # Files that config.status was made for.
9326 if test -n "$ac_config_files"; then
9327 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9330 if test -n "$ac_config_headers"; then
9331 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9334 if test -n "$ac_config_links"; then
9335 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9338 if test -n "$ac_config_commands"; then
9339 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9342 cat >>$CONFIG_STATUS <<\_ACEOF
9345 \`$as_me' instantiates files from templates according to the
9346 current configuration.
9348 Usage: $0 [OPTIONS] [FILE]...
9350 -h, --help print this help, then exit
9351 -V, --version print version number, then exit
9352 -d, --debug don't remove temporary files
9353 --recheck update $as_me by reconfiguring in the same conditions
9354 --file=FILE[:TEMPLATE]
9355 instantiate the configuration file FILE
9356 --header=FILE[:TEMPLATE]
9357 instantiate the configuration header FILE
9359 Configuration files:
9362 Configuration headers:
9365 Configuration commands:
9368 Report bugs to <bug-autoconf@gnu.org>."
9371 cat >>$CONFIG_STATUS <<_ACEOF
9373 GNU Bison config.status 1.30j
9374 configured by $0, generated by GNU Autoconf 2.52g,
9375 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9377 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9378 Free Software Foundation, Inc.
9379 This config.status script is free software; the Free Software Foundation
9380 gives unlimited permission to copy, distribute and modify it."
9385 cat >>$CONFIG_STATUS <<\_ACEOF
9386 # If no file are specified by the user, then we need to provide default
9387 # value. By we need to know if files were specified by the user.
9393 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
9394 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
9396 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
9400 *) # This is not an option, so the user has probably given explicit
9402 ac_need_defaults
=false
;;
9406 # Handling of the options.
9408 cat >>$CONFIG_STATUS <<_ACEOF
9409 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9410 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9411 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9413 cat >>$CONFIG_STATUS <<\_ACEOF
9414 --version | --vers* | -V )
9415 echo "$ac_cs_version"; exit 0 ;;
9417 # Conflict between --help and --header
9418 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9419 Try \`$0 --help' for more information." >&5
9420 echo "$as_me: error: ambiguous option: $1
9421 Try \`$0 --help' for more information." >&2;}
9422 { (exit 1); exit 1; }; };;
9423 --help | --hel | -h )
9424 echo "$ac_cs_usage"; exit 0 ;;
9425 --debug | --d* | -d )
9427 --file | --fil | --fi | --f )
9429 CONFIG_FILES
="$CONFIG_FILES $1"
9430 ac_need_defaults
=false
;;
9431 --header | --heade | --head | --hea )
9433 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
9434 ac_need_defaults
=false
;;
9437 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9438 Try \`$0 --help' for more information." >&5
9439 echo "$as_me: error: unrecognized option: $1
9440 Try \`$0 --help' for more information." >&2;}
9441 { (exit 1); exit 1; }; } ;;
9443 *) ac_config_targets
="$ac_config_targets $1" ;;
9451 cat >>$CONFIG_STATUS <<_ACEOF
9453 # INIT-COMMANDS section.
9456 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9463 cat >>$CONFIG_STATUS <<\_ACEOF
9464 for ac_config_target
in $ac_config_targets
9466 case "$ac_config_target" in
9467 # Handling of arguments.
9468 "tests/bison" ) CONFIG_FILES
="$CONFIG_FILES tests/bison" ;;
9469 "tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
9470 "tests/atlocal" ) CONFIG_FILES
="$CONFIG_FILES tests/atlocal" ;;
9471 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9472 "config/Makefile" ) CONFIG_FILES
="$CONFIG_FILES config/Makefile" ;;
9473 "intl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
9474 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
9475 "lib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
9476 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
9477 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
9478 "m4/Makefile" ) CONFIG_FILES
="$CONFIG_FILES m4/Makefile" ;;
9479 "tests/atconfig" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS tests/atconfig" ;;
9480 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
9481 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
9482 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.hin" ;;
9483 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9484 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9485 { (exit 1); exit 1; }; };;
9489 # If the user did not use the arguments to specify the items to instantiate,
9490 # then the envvar interface is used. Set only those that are not.
9491 # We use the long form for the default assignment because of an extremely
9492 # bizarre bug on SunOS 4.1.3.
9493 if $ac_need_defaults; then
9494 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9495 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9496 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9499 # Create a temporary directory, and hook for its removal unless debugging.
9502 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9503 trap '{ (exit 1); exit 1; }' 1 2 13 15
9506 # Create a (secure) tmp directory for tmp files.
9509 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9510 test -n "$tmp" && test -d "$tmp"
9513 tmp
=$TMPDIR/cs$$
-$RANDOM
9514 (umask 077 && mkdir $tmp)
9517 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9518 { (exit 1); exit 1; }
9523 cat >>$CONFIG_STATUS <<_ACEOF
9526 # CONFIG_FILES section.
9529 # No need to generate the scripts if there are no CONFIG_FILES.
9530 # This happens for instance when ./config.status config.h
9531 if test -n "\$CONFIG_FILES"; then
9532 # Protect against being on the right side of a sed subst in config.status.
9533 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9534 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9535 s,@SHELL@,$SHELL,;t t
9536 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9537 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9538 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9539 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9540 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9541 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9542 s,@exec_prefix@,$exec_prefix,;t t
9543 s,@prefix@,$prefix,;t t
9544 s,@program_transform_name@,$program_transform_name,;t t
9545 s,@bindir@,$bindir,;t t
9546 s,@sbindir@,$sbindir,;t t
9547 s,@libexecdir@,$libexecdir,;t t
9548 s,@datadir@,$datadir,;t t
9549 s,@sysconfdir@,$sysconfdir,;t t
9550 s,@sharedstatedir@,$sharedstatedir,;t t
9551 s,@localstatedir@,$localstatedir,;t t
9552 s,@libdir@,$libdir,;t t
9553 s,@includedir@,$includedir,;t t
9554 s,@oldincludedir@,$oldincludedir,;t t
9555 s,@infodir@,$infodir,;t t
9556 s,@mandir@,$mandir,;t t
9557 s,@build_alias@,$build_alias,;t t
9558 s,@host_alias@,$host_alias,;t t
9559 s,@target_alias@,$target_alias,;t t
9561 s,@ECHO_C@,$ECHO_C,;t t
9562 s,@ECHO_N@,$ECHO_N,;t t
9563 s,@ECHO_T@,$ECHO_T,;t t
9565 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9566 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9567 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9568 s,@PACKAGE@,$PACKAGE,;t t
9569 s,@VERSION@,$VERSION,;t t
9570 s,@ACLOCAL@,$ACLOCAL,;t t
9571 s,@AUTOCONF@,$AUTOCONF,;t t
9572 s,@AUTOMAKE@,$AUTOMAKE,;t t
9573 s,@AUTOHEADER@,$AUTOHEADER,;t t
9574 s,@MAKEINFO@,$MAKEINFO,;t t
9575 s,@AMTAR@,$AMTAR,;t t
9576 s,@install_sh@,$install_sh,;t t
9577 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9579 s,@SET_MAKE@,$SET_MAKE,;t t
9580 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9581 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9582 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9583 s,@DEPDIR@,$DEPDIR,;t t
9586 s,@CFLAGS@,$CFLAGS,;t t
9587 s,@LDFLAGS@,$LDFLAGS,;t t
9588 s,@CPPFLAGS@,$CPPFLAGS,;t t
9589 s,@ac_ct_CC@,$ac_ct_CC,;t t
9590 s,@EXEEXT@,$EXEEXT,;t t
9591 s,@OBJEXT@,$OBJEXT,;t t
9592 s,@am__include@,$am__include,;t t
9593 s,@am__quote@,$am__quote,;t t
9594 s,@CCDEPMODE@,$CCDEPMODE,;t t
9596 s,@RANLIB@,$RANLIB,;t t
9597 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9598 s,@AUTOM4TE@,$AUTOM4TE,;t t
9599 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
9601 s,@ANSI2KNR@,$ANSI2KNR,;t t
9602 s,@ALLOCA@,$ALLOCA,;t t
9603 s,@LIBOBJS@,$LIBOBJS,;t t
9604 s,@build@,$build,;t t
9605 s,@build_cpu@,$build_cpu,;t t
9606 s,@build_vendor@,$build_vendor,;t t
9607 s,@build_os@,$build_os,;t t
9609 s,@host_cpu@,$host_cpu,;t t
9610 s,@host_vendor@,$host_vendor,;t t
9611 s,@host_os@,$host_os,;t t
9612 s,@GLIBC21@,$GLIBC21,;t t
9613 s,@LIBICONV@,$LIBICONV,;t t
9614 s,@USE_NLS@,$USE_NLS,;t t
9615 s,@MSGFMT@,$MSGFMT,;t t
9616 s,@GMSGFMT@,$GMSGFMT,;t t
9617 s,@XGETTEXT@,$XGETTEXT,;t t
9618 s,@INTLBISON@,$INTLBISON,;t t
9619 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
9620 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9621 s,@CATALOGS@,$CATALOGS,;t t
9622 s,@CATOBJEXT@,$CATOBJEXT,;t t
9623 s,@GMOFILES@,$GMOFILES,;t t
9624 s,@INTLLIBS@,$INTLLIBS,;t t
9625 s,@INTLOBJS@,$INTLOBJS,;t t
9626 s,@POFILES@,$POFILES,;t t
9627 s,@POSUB@,$POSUB,;t t
9628 s,@DATADIRNAME@,$DATADIRNAME,;t t
9629 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9630 s,@GENCAT@,$GENCAT,;t t
9631 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9632 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
9637 cat >>$CONFIG_STATUS <<\_ACEOF
9638 # Split the substitutions into bite-sized pieces for seds with
9639 # small command number limits, like on Digital OSF/1 and HP-UX.
9641 ac_sed_frag
=1 # Number of current file.
9642 ac_beg
=1 # First line for current file.
9643 ac_end
=$ac_max_sed_lines # Line after last line for current file.
9646 while $ac_more_lines; do
9647 if test $ac_beg -gt 1; then
9648 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9650 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9652 if test ! -s $tmp/subs.frag
; then
9655 # The purpose of the label and of the branching condition is to
9656 # speed up the sed processing (if there are no `@' at all, there
9657 # is no need to browse any of the substitutions).
9658 # These are the two extra sed commands mentioned above.
9660 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs
-$ac_sed_frag.
sed
9661 if test -z "$ac_sed_cmds"; then
9662 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
9664 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9666 ac_sed_frag
=`expr $ac_sed_frag + 1`
9668 ac_end
=`expr $ac_end + $ac_max_sed_lines`
9671 if test -z "$ac_sed_cmds"; then
9674 fi # test -n "$CONFIG_FILES"
9677 cat >>$CONFIG_STATUS <<\_ACEOF
9678 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
9679 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9681 - | *:- | *:-:* ) # input from stdin
9683 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9684 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9685 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9686 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9687 * ) ac_file_in
=$ac_file.
in ;;
9690 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9691 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9692 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9693 X"$ac_file" : 'X\(//\)[^/]' \| \
9694 X"$ac_file" : 'X\(//\)$' \| \
9695 X"$ac_file" : 'X\(/\)' \| \
9696 . : '\(.\)' 2>/dev/null ||
9698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9699 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9700 /^X\(\/\/\)$/{ s//\1/; q; }
9701 /^X\(\/\).*/{ s//\1/; q; }
9704 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9708 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9709 case $as_mkdir_dir in
9710 # Skip DOS drivespec
9711 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9713 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9714 test -d "$as_incr_dir" ||
9715 mkdir "$as_incr_dir" ||
9716 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9717 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9718 { (exit 1); exit 1; }; }
9725 if test "$ac_dir" != .
; then
9726 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9727 # A "../" for each directory in $ac_dir_suffix.
9728 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9730 ac_dir_suffix
= ac_top_builddir
=
9734 .
) # No --srcdir option. We are building in place.
9736 if test -z "$ac_top_builddir"; then
9739 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9741 [\\/]* | ?
:[\\/]* ) # Absolute path.
9742 ac_srcdir
=$srcdir$ac_dir_suffix;
9743 ac_top_srcdir
=$srcdir ;;
9745 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9746 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9748 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9750 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
9751 ac_abs_top_builddir
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9752 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9753 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9757 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9758 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
9761 if test x
"$ac_file" != x
-; then
9762 { echo "$as_me:$LINENO: creating $ac_file" >&5
9763 echo "$as_me: creating $ac_file" >&6;}
9766 # Let's still pretend it is `configure' which instantiates (i.e., don't
9767 # use $as_me), people would be surprised to read:
9768 # /* config.h. Generated by config.status. */
9769 if test x
"$ac_file" = x
-; then
9772 configure_input
="$ac_file. "
9774 configure_input
=$configure_input"Generated from `echo $ac_file_in |
9775 sed 's,.*/,,'` by configure."
9777 # First look for the input files in the build tree, otherwise in the
9779 ac_file_inputs
=`IFS=:
9780 for f in $ac_file_in; do
9782 -) echo $tmp/stdin ;;
9784 # Absolute (can't be DOS-style, as IFS=:)
9785 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9786 echo "$as_me: error: cannot find input file: $f" >&2;}
9787 { (exit 1); exit 1; }; }
9790 if test -f "$f"; then
9793 elif test -f "$srcdir/$f"; then
9798 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9799 echo "$as_me: error: cannot find input file: $f" >&2;}
9800 { (exit 1); exit 1; }; }
9803 done` || { (exit 1); exit 1; }
9805 cat >>$CONFIG_STATUS <<_ACEOF
9809 cat >>$CONFIG_STATUS <<\_ACEOF
9811 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
9812 s
,@configure_input@
,$configure_input,;t t
9813 s
,@srcdir@
,$ac_srcdir,;t t
9814 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
9815 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9816 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
9817 s
,@builddir@
,$ac_builddir,;t t
9818 s
,@abs_builddir@
,$ac_abs_builddir,;t t
9819 s
,@top_builddir@
,$ac_top_builddir,;t t
9820 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
9821 s
,@INSTALL@
,$ac_INSTALL,;t t
9822 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9824 if test x"$ac_file" != x-; then
9825 mv $tmp/out $ac_file
9831 # Run the commands associated with the file.
9833 tests/bison ) chmod +x tests/bison ;;
9837 cat >>$CONFIG_STATUS <<\_ACEOF
9840 # CONFIG_HEADER section.
9843 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9844 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9846 # ac_d sets the value in "#define NAME VALUE" lines.
9847 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9848 ac_dB
='[ ].*$,\1#\2'
9851 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9852 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9853 ac_uB
='$,\1#\2define\3'
9857 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9858 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9860 - | *:- | *:-:* ) # input from stdin
9862 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9863 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9864 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9865 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9866 * ) ac_file_in
=$ac_file.
in ;;
9869 test x
"$ac_file" != x
- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9870 echo "$as_me: creating $ac_file" >&6;}
9872 # First look for the input files in the build tree, otherwise in the
9874 ac_file_inputs
=`IFS=:
9875 for f in $ac_file_in; do
9877 -) echo $tmp/stdin ;;
9879 # Absolute (can't be DOS-style, as IFS=:)
9880 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9881 echo "$as_me: error: cannot find input file: $f" >&2;}
9882 { (exit 1); exit 1; }; }
9885 if test -f "$f"; then
9888 elif test -f "$srcdir/$f"; then
9893 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9894 echo "$as_me: error: cannot find input file: $f" >&2;}
9895 { (exit 1); exit 1; }; }
9898 done` || { (exit 1); exit 1; }
9899 # Remove the trailing spaces.
9900 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9904 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9905 # `conftest.undefs', that substitutes the proper values into
9906 # config.h.in to produce config.h. The first handles `#define'
9907 # templates, and the second `#undef' templates.
9908 # And first: Protect against being on the right side of a sed subst in
9909 # config.status. Protect against being in an unquoted here document
9911 rm -f conftest.defines conftest.undefs
9912 # Using a here document instead of a string reduces the quoting nightmare.
9913 # Putting comments in sed scripts is not portable.
9915 # `end' is used to avoid that the second main sed command (meant for
9916 # 0-ary CPP macros) applies to n-ary macro definitions.
9917 # See the Autoconf documentation for `clear'.
9918 cat >confdef2sed.
sed <<\_ACEOF
9923 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9925 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9928 # If some macros were called several times there might be several times
9929 # the same #defines, which is useless. Nevertheless, we may not want to
9930 # sort them, since we want the *last* AC-DEFINE to be honored.
9931 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9932 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9933 rm -f confdef2sed.sed
9935 # This sed command replaces #undef with comments. This is necessary, for
9936 # example, in the case of _POSIX_SOURCE, which is predefined and required
9937 # on some systems where configure will not decide to define it.
9938 cat >>conftest.undefs <<\_ACEOF
9939 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9942 # Break up conftest.defines because some shells have a limit on the size
9943 # of here documents, and old seds have small limits too (100 cmds).
9944 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9945 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9946 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9947 echo ' :' >>$CONFIG_STATUS
9949 while grep . conftest.defines >/dev/null
9951 # Write a limited-size here document to $tmp/defines.sed.
9952 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9953 # Speed up: don't consider the non `#define' lines.
9954 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9955 # Work around the forget-to-reset-the-flag bug.
9956 echo 't clr' >>$CONFIG_STATUS
9957 echo ': clr' >>$CONFIG_STATUS
9958 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9960 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9964 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9965 rm -f conftest.defines
9966 mv conftest.
tail conftest.defines
9968 rm -f conftest.defines
9969 echo ' fi # egrep' >>$CONFIG_STATUS
9970 echo >>$CONFIG_STATUS
9972 # Break up conftest.undefs because some shells have a limit on the size
9973 # of here documents, and old seds have small limits too (100 cmds).
9974 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9976 while grep . conftest.undefs
>/dev
/null
9978 # Write a limited-size here document to $tmp/undefs.sed.
9979 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9980 # Speed up: don't consider the non
`#undef'
9981 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9982 # Work around the forget-to-reset-the-flag bug.
9983 echo 't clr' >>$CONFIG_STATUS
9984 echo ': clr' >>$CONFIG_STATUS
9985 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9987 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9991 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9992 rm -f conftest.undefs
9993 mv conftest.tail conftest.undefs
9995 rm -f conftest.undefs
9997 cat >>$CONFIG_STATUS <<\_ACEOF
9998 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9999 # use $as_me), people would be surprised to read:
10000 # /* config.h. Generated by config.status. */
10001 if test x
"$ac_file" = x
-; then
10002 echo "/* Generated by configure. */" >$tmp/config.h
10004 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10006 cat $tmp/in >>$tmp/config.h
10008 if test x
"$ac_file" != x
-; then
10009 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
10010 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10011 echo "$as_me: $ac_file is unchanged" >&6;}
10013 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
10014 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10015 X"$ac_file" : 'X\(//\)[^/]' \| \
10016 X"$ac_file" : 'X\(//\)$' \| \
10017 X"$ac_file" : 'X\(/\)' \| \
10018 . : '\(.\)' 2>/dev/null ||
10020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10021 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10022 /^X\(\/\/\)$/{ s//\1/; q; }
10023 /^X\(\/\).*/{ s//\1/; q; }
10025 { case "$ac_dir" in
10026 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
10030 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10031 case $as_mkdir_dir in
10032 # Skip DOS drivespec
10033 ?
:) as_incr_dir
=$as_mkdir_dir ;;
10035 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
10036 test -d "$as_incr_dir" ||
10037 mkdir "$as_incr_dir" ||
10038 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10039 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10040 { (exit 1); exit 1; }; }
10046 mv $tmp/config.h
$ac_file
10050 rm -f $tmp/config.h
10052 # Run the commands associated with the file.
10054 config.h
) # update the timestamp
10055 echo 'timestamp for config.h:config.hin' >"./stamp-h1"
10060 cat >>$CONFIG_STATUS <<\_ACEOF
10063 # CONFIG_COMMANDS section.
10065 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
10066 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
10067 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10068 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
10069 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10070 X"$ac_dest" : 'X\(//\)[^/]' \| \
10071 X"$ac_dest" : 'X\(//\)$' \| \
10072 X"$ac_dest" : 'X\(/\)' \| \
10073 . : '\(.\)' 2>/dev/null ||
10075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10076 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10077 /^X\(\/\/\)$/{ s//\1/; q; }
10078 /^X\(\/\).*/{ s//\1/; q; }
10082 if test "$ac_dir" != .
; then
10083 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10084 # A "../" for each directory in $ac_dir_suffix.
10085 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10087 ac_dir_suffix
= ac_top_builddir
=
10091 .
) # No --srcdir option. We are building in place.
10093 if test -z "$ac_top_builddir"; then
10096 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
10098 [\\/]* | ?
:[\\/]* ) # Absolute path.
10099 ac_srcdir
=$srcdir$ac_dir_suffix;
10100 ac_top_srcdir
=$srcdir ;;
10101 *) # Relative path.
10102 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
10103 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
10105 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10107 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
10108 ac_abs_top_builddir
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10109 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10110 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10113 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10114 echo "$as_me: executing $ac_dest commands" >&6;}
10116 tests
/atconfig
) cat >tests
/atconfig
<<ATEOF
10117 # Configurable variable values for building test suites.
10119 # Copyright 2000, 2001 Free Software Foundation, Inc.
10121 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
10123 abs_builddir='$ac_abs_builddir'
10124 at_srcdir='$ac_srcdir'
10125 abs_srcdir='$ac_abs_srcdir'
10126 at_top_srcdir='$ac_top_srcdir'
10127 abs_top_srcdir='$ac_abs_top_srcdir'
10128 at_top_builddir='$ac_top_builddir'
10129 abs_top_builddir='$ac_abs_top_builddir'
10131 AUTOTEST_PATH='tests'
10133 SHELL=\${CONFIG_SHELL-'$SHELL'}
10136 depfiles
) test x
"$AMDEP_TRUE" != x
"" || for mf
in $CONFIG_FILES; do
10137 # Strip MF so we end up with the name of the file.
10138 mf
=`echo "$mf" | sed -e 's/:.*$//'`
10139 if (head -1 $mf | fgrep
'generated by automake') > /dev
/null
2>&1; then
10140 dirpart
=`(dirname "$mf") 2>/dev/null ||
10141 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10142 X"$mf" : 'X\(//\)[^/]' \| \
10143 X"$mf" : 'X\(//\)$' \| \
10144 X"$mf" : 'X\(/\)' \| \
10145 . : '\(.\)' 2>/dev/null ||
10147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10148 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10149 /^X\(\/\/\)$/{ s//\1/; q; }
10150 /^X\(\/\).*/{ s//\1/; q; }
10155 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null
|| continue
10156 # Extract the definition of DEP_FILES from the Makefile without
10158 DEPDIR
=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10159 test -z "$DEPDIR" && continue
10160 # When using ansi2knr, U may be empty or an underscore; expand it
10161 U
=`sed -n -e '/^U = / s///p' < "$mf"`
10162 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10163 # We invoke sed twice because it is the simplest approach to
10164 # changing $(DEPDIR) to its actual value in the expansion.
10165 for file in `sed -n -e '
10166 /^DEP_FILES = .*\\\\$/ {
10175 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10176 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10177 # Make sure the directory exists.
10178 test -f "$dirpart/$file" && continue
10179 fdir
=`(dirname "$file") 2>/dev/null ||
10180 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10181 X"$file" : 'X\(//\)[^/]' \| \
10182 X"$file" : 'X\(//\)$' \| \
10183 X"$file" : 'X\(/\)' \| \
10184 . : '\(.\)' 2>/dev/null ||
10186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10187 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10188 /^X\(\/\/\)$/{ s//\1/; q; }
10189 /^X\(\/\).*/{ s//\1/; q; }
10191 { case $dirpart/$fdir in
10192 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
10195 as_dummy
=$dirpart/$fdir
10196 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10197 case $as_mkdir_dir in
10198 # Skip DOS drivespec
10199 ?
:) as_incr_dir
=$as_mkdir_dir ;;
10201 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
10202 test -d "$as_incr_dir" ||
10203 mkdir "$as_incr_dir" ||
10204 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
10205 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
10206 { (exit 1); exit 1; }; }
10211 # echo "creating $dirpart/$file"
10212 echo '# dummy' > "$dirpart/$file"
10216 default
-1 ) for ac_file
in $CONFIG_FILES; do
10217 # Support "outfile[:infile[:infile...]]"
10219 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10221 # PO directories have a Makefile.in generated from Makefile.in.in.
10222 case "$ac_file" in */Makefile.
in)
10223 # Adjust a relative srcdir.
10224 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10225 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
10226 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10227 # In autoconf-2.13 it is called $ac_given_srcdir.
10228 # In autoconf-2.50 it is called $srcdir.
10229 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
10230 case "$ac_given_srcdir" in
10231 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
10232 /*) top_srcdir
="$ac_given_srcdir" ;;
10233 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
10235 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10236 rm -f "$ac_dir/POTFILES"
10237 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10238 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
10239 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10240 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10249 cat >>$CONFIG_STATUS <<\_ACEOF
10251 { (exit 0); exit 0; }
10253 chmod +x
$CONFIG_STATUS
10254 ac_clean_files
=$ac_clean_files_save
10257 # configure is writing to config.log, and then calls config.status.
10258 # config.status does its own redirection, appending to config.log.
10259 # Unfortunately, on DOS this fails, as config.log is still kept open
10260 # by configure, so config.status won't be able to write to it; its
10261 # output is simply discarded. So we exec the FD to /dev/null,
10262 # effectively closing config.log, so it can be properly (re)opened and
10263 # appended to by config.status. When coming back to configure, we
10264 # need to make the FD available again.
10265 if test "$no_create" != yes; then
10268 $SHELL $CONFIG_STATUS || ac_cs_success
=false
10270 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10271 # would make configure fail if this is the last instruction.
10272 $ac_cs_success || { (exit 1); exit 1; }