2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.52e for GNU Bison 1.30.
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
18 ## --------------------- ##
19 ## M4sh Initialization. ##
20 ## --------------------- ##
22 # Be Bourne compatible
23 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
26 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
30 # Name of the executable.
31 as_me
=`(basename "$0") 2>/dev/null ||
32 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33 X"$0" : 'X\(//\)$' \| \
34 X"$0" : 'X\(/\)$' \| \
35 . : '\(.\)' 2>/dev/null ||
37 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
38 /^X\/\(\/\/\)$/{ s//\1/; q; }
39 /^X\/\(\/\).*/{ s//\1/; q; }
42 # Rewrite early, but we need PATH_SEPARATOR.
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! $SHELL" >conftest.sh
46 echo "exit 0" >>conftest.sh
48 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
59 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
60 test "x$as_lineno_1" != "x$as_lineno_2" &&
61 test "x$as_lineno_3" = "x$as_lineno_2"
63 if eval "$as_command"; then
66 # Find who we are. Look in the path if we contain no path at all
69 *[\\/]* ) as_myself
=$0 ;;
70 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
74 test -z "$as_dir" && as_dir
=.
75 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x
; then
85 if test ! -f "$as_myself"; then
86 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
87 { (exit 1); exit 1; }; }
91 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
92 for as_dir
in /bin
:/usr
/bin
:$PATH
95 test -z "$as_dir" && as_dir
=.
96 for as_base
in sh bash ksh sh5
; do
99 if ("$as_dir/$as_base" -c "$as_command") 2>/dev
/null
; then
100 CONFIG_SHELL
=$as_dir/$as_base
102 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
109 if test ! -f "$as_me.lineno" ||
110 test x
`ls -1dt "$as_me.lineno" "$as_myself" 2>/dev/null | sed 1q` \
111 != x
"$as_me.lineno"; then
112 # Be sure to write the pattern so that it doesn't replace itself:
113 # it must not match itself.
115 /[$]LINENO/ { printf "%d:", NR }
118 sed '/[$]LINENO/s/^\([0-9][0-9]*\):\(.*\)[$]LINENO/\2\1/' \
120 chmod +x
$as_me.lineno
123 # Don't try to exec as it changes $[0], causing all sort of problems
124 # (the dirname of $[0] is not the place where we might find the
125 # original and so on. Autoconf is especially sensible to this).
127 # Exit status is that of the last command.
131 # Avoid depending upon Character Ranges.
132 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
133 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
134 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
135 as_cr_digits
='0123456789'
136 as_cr_alnum
=$as_cr_Letters$as_cr_digits
138 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
139 *c
*,-n*) ECHO_N
= ECHO_C
='
141 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
142 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
145 if expr a
: '\(a\)' >/dev
/null
2>&1; then
151 rm -f conf$$ conf$$.exe conf$$.
file
153 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
154 # We could just check for DJGPP; but this test a) works b) is more generic
155 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
156 if test -f conf$$.exe
; then
157 # Don't use ln at all; we don't have any links
162 elif ln conf$$.
file conf$$
2>/dev
/null
; then
167 rm -f conf$$ conf$$.exe conf$$.
file
169 as_executable_p
="test -f"
171 # Sed expression to map a string onto a valid CPP name.
172 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
174 # Sed expression to map a string onto a valid variable name.
175 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
177 # Support unset when possible.
178 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
185 $as_unset LANG
|| test "${LANG+set}" != set || { LANG
=C
; export LANG
; }
186 $as_unset LC_ALL
|| test "${LC_ALL+set}" != set || { LC_ALL
=C
; export LC_ALL
; }
187 $as_unset LC_TIME
|| test "${LC_TIME+set}" != set || { LC_TIME
=C
; export LC_TIME
; }
188 $as_unset LC_CTYPE
|| test "${LC_CTYPE+set}" != set || { LC_CTYPE
=C
; export LC_CTYPE
; }
189 $as_unset LANGUAGE
|| test "${LANGUAGE+set}" != set || { LANGUAGE
=C
; export LANGUAGE
; }
190 $as_unset LC_COLLATE
|| test "${LC_COLLATE+set}" != set || { LC_COLLATE
=C
; export LC_COLLATE
; }
191 $as_unset LC_NUMERIC
|| test "${LC_NUMERIC+set}" != set || { LC_NUMERIC
=C
; export LC_NUMERIC
; }
192 $as_unset LC_MESSAGES
|| test "${LC_MESSAGES+set}" != set || { LC_MESSAGES
=C
; export LC_MESSAGES
; }
195 # We need space, tab and new line, in precisely that order.
201 $as_unset CDPATH
|| test "${CDPATH+set}" != set || { CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
204 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
205 # so uname gets run too.
206 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
213 ac_default_prefix
=/usr
/local
218 SHELL
=${CONFIG_SHELL-/bin/sh}
220 # Maximum number of lines to put in a shell here document.
221 # This variable seems obsolete. It should probably be removed, and
222 # only ac_max_sed_lines should be used.
223 : ${ac_max_here_lines=38}
225 # Factoring default headers for most tests.
226 ac_includes_default
="\
229 # include <sys/types.h>
232 # include <sys/stat.h>
243 # if !STDC_HEADERS && HAVE_MEMORY_H
249 # include <strings.h>
252 # include <inttypes.h>
262 # Initialize some variables set by options.
264 ac_init_version
=false
265 # The variables have the same names as the options, with
266 # dashes changed to underlines.
274 program_transform_name
=s
,x
,x
,
282 # Installation directory options.
283 # These are left unexpanded so users can "make install exec_prefix=/foo"
284 # and all the variables that are supposed to be based on exec_prefix
285 # by default will actually change.
286 # Use braces instead of parens because sh, perl, etc. also accept them.
287 bindir
='${exec_prefix}/bin'
288 sbindir
='${exec_prefix}/sbin'
289 libexecdir
='${exec_prefix}/libexec'
290 datadir
='${prefix}/share'
291 sysconfdir
='${prefix}/etc'
292 sharedstatedir
='${prefix}/com'
293 localstatedir
='${prefix}/var'
294 libdir
='${exec_prefix}/lib'
295 includedir
='${prefix}/include'
296 oldincludedir
='/usr/include'
297 infodir
='${prefix}/info'
298 mandir
='${prefix}/man'
300 # Identity of this package.
301 PACKAGE_NAME
='GNU Bison'
302 PACKAGE_TARNAME
='bison'
303 PACKAGE_VERSION
='1.30'
304 PACKAGE_STRING
='GNU Bison 1.30'
305 PACKAGE_BUGREPORT
='bug-bison@gnu.org'
310 # If the previous option needs an argument, assign it.
311 if test -n "$ac_prev"; then
312 eval "$ac_prev=\$ac_option"
317 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
319 # Accept the important Cygnus configure options, so we can diagnose typos.
323 -bindir | --bindir | --bindi | --bind | --bin | --bi)
325 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
328 -build | --build | --buil | --bui | --bu)
329 ac_prev
=build_alias
;;
330 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
331 build_alias
=$ac_optarg ;;
333 -cache-file | --cache-file | --cache-fil | --cache-fi \
334 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
335 ac_prev
=cache_file
;;
336 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
337 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
338 cache_file
=$ac_optarg ;;
341 cache_file
=config.cache
;;
343 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
345 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
347 datadir
=$ac_optarg ;;
349 -disable-* | --disable-*)
350 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
351 # Reject names that are not valid shell variable names.
352 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
353 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
354 { (exit 1); exit 1; }; }
355 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
356 eval "enable_$ac_feature=no" ;;
358 -enable-* | --enable-*)
359 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
360 # Reject names that are not valid shell variable names.
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
366 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
369 eval "enable_$ac_feature='$ac_optarg'" ;;
371 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
372 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
373 | --exec | --exe | --ex)
374 ac_prev
=exec_prefix
;;
375 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
376 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
377 | --exec=* | --exe=* | --ex=*)
378 exec_prefix
=$ac_optarg ;;
380 -gas | --gas | --ga | --g)
381 # Obsolete; use --with-gas.
384 -help | --help | --hel | --he | -h)
386 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
387 ac_init_help
=recursive
;;
388 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
389 ac_init_help
=short
;;
391 -host | --host | --hos | --ho)
392 ac_prev
=host_alias
;;
393 -host=* | --host=* | --hos=* | --ho=*)
394 host_alias
=$ac_optarg ;;
396 -includedir | --includedir | --includedi | --included | --include \
397 | --includ | --inclu | --incl | --inc)
398 ac_prev
=includedir
;;
399 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
400 | --includ=* | --inclu=* | --incl=* | --inc=*)
401 includedir
=$ac_optarg ;;
403 -infodir | --infodir | --infodi | --infod | --info | --inf)
405 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
406 infodir
=$ac_optarg ;;
408 -libdir | --libdir | --libdi | --libd)
410 -libdir=* | --libdir=* | --libdi=* | --libd=*)
413 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
414 | --libexe | --libex | --libe)
415 ac_prev
=libexecdir
;;
416 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
417 | --libexe=* | --libex=* | --libe=*)
418 libexecdir
=$ac_optarg ;;
420 -localstatedir | --localstatedir | --localstatedi | --localstated \
421 | --localstate | --localstat | --localsta | --localst \
422 | --locals | --local | --loca | --loc | --lo)
423 ac_prev
=localstatedir
;;
424 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
425 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
426 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
427 localstatedir
=$ac_optarg ;;
429 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
431 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
435 # Obsolete; use --without-fp.
438 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
442 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
443 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
446 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
447 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
448 | --oldin | --oldi | --old | --ol | --o)
449 ac_prev
=oldincludedir
;;
450 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
451 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
452 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
453 oldincludedir
=$ac_optarg ;;
455 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
457 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
460 -program-prefix | --program-prefix | --program-prefi | --program-pref \
461 | --program-pre | --program-pr | --program-p)
462 ac_prev
=program_prefix
;;
463 -program-prefix=* | --program-prefix=* | --program-prefi=* \
464 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
465 program_prefix
=$ac_optarg ;;
467 -program-suffix | --program-suffix | --program-suffi | --program-suff \
468 | --program-suf | --program-su | --program-s)
469 ac_prev
=program_suffix
;;
470 -program-suffix=* | --program-suffix=* | --program-suffi=* \
471 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
472 program_suffix
=$ac_optarg ;;
474 -program-transform-name | --program-transform-name \
475 | --program-transform-nam | --program-transform-na \
476 | --program-transform-n | --program-transform- \
477 | --program-transform | --program-transfor \
478 | --program-transfo | --program-transf \
479 | --program-trans | --program-tran \
480 | --progr-tra | --program-tr | --program-t)
481 ac_prev
=program_transform_name
;;
482 -program-transform-name=* | --program-transform-name=* \
483 | --program-transform-nam=* | --program-transform-na=* \
484 | --program-transform-n=* | --program-transform-=* \
485 | --program-transform=* | --program-transfor=* \
486 | --program-transfo=* | --program-transf=* \
487 | --program-trans=* | --program-tran=* \
488 | --progr-tra=* | --program-tr=* | --program-t=*)
489 program_transform_name
=$ac_optarg ;;
491 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
492 | -silent | --silent | --silen | --sile | --sil)
495 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
497 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
499 sbindir
=$ac_optarg ;;
501 -sharedstatedir | --sharedstatedir | --sharedstatedi \
502 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
503 | --sharedst | --shareds | --shared | --share | --shar \
505 ac_prev
=sharedstatedir
;;
506 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
507 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
508 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
510 sharedstatedir
=$ac_optarg ;;
512 -site | --site | --sit)
514 -site=* | --site=* | --sit=*)
517 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
519 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
522 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
523 | --syscon | --sysco | --sysc | --sys | --sy)
524 ac_prev
=sysconfdir
;;
525 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
526 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
527 sysconfdir
=$ac_optarg ;;
529 -target | --target | --targe | --targ | --tar | --ta | --t)
530 ac_prev
=target_alias
;;
531 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
532 target_alias
=$ac_optarg ;;
534 -v | -verbose | --verbose | --verbos | --verbo | --verb)
537 -version | --version | --versio | --versi | --vers | -V)
541 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
542 # Reject names that are not valid shell variable names.
543 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
544 { echo "$as_me: error: invalid package name: $ac_package" >&2
545 { (exit 1); exit 1; }; }
546 ac_package
=`echo $ac_package| sed 's/-/_/g'`
548 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
551 eval "with_$ac_package='$ac_optarg'" ;;
553 -without-* | --without-*)
554 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
557 { echo "$as_me: error: invalid package name: $ac_package" >&2
558 { (exit 1); exit 1; }; }
559 ac_package
=`echo $ac_package | sed 's/-/_/g'`
560 eval "with_$ac_package=no" ;;
563 # Obsolete; use --with-x.
566 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
567 | --x-incl | --x-inc | --x-in | --x-i)
568 ac_prev
=x_includes
;;
569 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
570 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
571 x_includes
=$ac_optarg ;;
573 -x-libraries | --x-libraries | --x-librarie | --x-librari \
574 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
575 ac_prev
=x_libraries
;;
576 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
577 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
578 x_libraries
=$ac_optarg ;;
580 -*) { echo "$as_me: error: unrecognized option: $ac_option
581 Try \`$0 --help' for more information." >&2
582 { (exit 1); exit 1; }; }
586 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
589 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
590 { (exit 1); exit 1; }; }
591 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
592 eval "$ac_envvar='$ac_optarg'"
596 # FIXME: should be removed in autoconf 3.0.
597 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
598 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
599 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
600 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
606 if test -n "$ac_prev"; then
607 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
608 { echo "$as_me: error: missing argument to $ac_option" >&2
609 { (exit 1); exit 1; }; }
612 # Be sure to have absolute paths.
613 for ac_var
in exec_prefix prefix
615 eval ac_val
=$
`echo $ac_var`
617 [\\/$
]* | ?
:[\\/]* | NONE
| '' ) ;;
618 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
619 { (exit 1); exit 1; }; };;
623 # Be sure to have absolute paths.
624 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
625 localstatedir libdir includedir oldincludedir infodir mandir
627 eval ac_val
=$
`echo $ac_var`
629 [\\/$
]* | ?
:[\\/]* ) ;;
630 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
631 { (exit 1); exit 1; }; };;
635 # There might be people who depend on the old broken behavior: `$host'
636 # used to hold the argument of --host etc.
641 # FIXME: should be removed in autoconf 3.0.
642 if test "x$host_alias" != x
; then
643 if test "x$build_alias" = x
; then
644 cross_compiling
=maybe
645 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
646 If a cross compiler is detected then cross compile mode will be used." >&2
647 elif test "x$build_alias" != "x$host_alias"; then
653 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
655 test "$silent" = yes && exec 6>/dev
/null
657 # Find the source files, if location was not specified.
658 if test -z "$srcdir"; then
659 ac_srcdir_defaulted
=yes
660 # Try the directory containing this script, then its parent.
661 ac_confdir
=`(dirname "$0") 2>/dev/null ||
662 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
663 X"$0" : 'X\(//\)[^/]' \| \
664 X"$0" : 'X\(//\)$' \| \
665 X"$0" : 'X\(/\)' \| \
666 . : '\(.\)' 2>/dev/null ||
668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
669 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
670 /^X\(\/\/\)$/{ s//\1/; q; }
671 /^X\(\/\).*/{ s//\1/; q; }
674 if test ! -r $srcdir/$ac_unique_file; then
678 ac_srcdir_defaulted
=no
680 if test ! -r $srcdir/$ac_unique_file; then
681 if test "$ac_srcdir_defaulted" = yes; then
682 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
683 { (exit 1); exit 1; }; }
685 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
686 { (exit 1); exit 1; }; }
689 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
690 ac_env_build_alias_set
=${build_alias+set}
691 ac_env_build_alias_value
=$build_alias
692 ac_cv_env_build_alias_set
=${build_alias+set}
693 ac_cv_env_build_alias_value
=$build_alias
694 ac_env_host_alias_set
=${host_alias+set}
695 ac_env_host_alias_value
=$host_alias
696 ac_cv_env_host_alias_set
=${host_alias+set}
697 ac_cv_env_host_alias_value
=$host_alias
698 ac_env_target_alias_set
=${target_alias+set}
699 ac_env_target_alias_value
=$target_alias
700 ac_cv_env_target_alias_set
=${target_alias+set}
701 ac_cv_env_target_alias_value
=$target_alias
702 ac_env_CC_set
=${CC+set}
704 ac_cv_env_CC_set
=${CC+set}
705 ac_cv_env_CC_value
=$CC
706 ac_env_CFLAGS_set
=${CFLAGS+set}
707 ac_env_CFLAGS_value
=$CFLAGS
708 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
709 ac_cv_env_CFLAGS_value
=$CFLAGS
710 ac_env_LDFLAGS_set
=${LDFLAGS+set}
711 ac_env_LDFLAGS_value
=$LDFLAGS
712 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
713 ac_cv_env_LDFLAGS_value
=$LDFLAGS
714 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
715 ac_env_CPPFLAGS_value
=$CPPFLAGS
716 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
717 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
718 ac_env_CPP_set
=${CPP+set}
719 ac_env_CPP_value
=$CPP
720 ac_cv_env_CPP_set
=${CPP+set}
721 ac_cv_env_CPP_value
=$CPP
724 # Report the --help message.
726 if test "$ac_init_help" = "long"; then
727 # Omit some internal or obsolete options to make the list less imposing.
728 # This message is too long to be a string in the A/UX 3.1 sh.
730 \`configure' configures GNU Bison 1.30 to adapt to many kinds of systems.
732 Usage: $0 [OPTION]... [VAR=VALUE]...
734 To assign environment variables (e.g., CC, CFLAGS...), specify them as
735 VAR=VALUE. See below for descriptions of some of the useful variables.
737 Defaults for the options are specified in brackets.
740 -h, --help display this help and exit
741 --help=short display options specific to this package
742 --help=recursive display the short help of all the included packages
743 -V, --version display version information and exit
744 -q, --quiet, --silent do not print \`checking...' messages
745 --cache-file=FILE cache test results in FILE [disabled]
746 -C, --config-cache alias for \`--cache-file=config.cache'
747 -n, --no-create do not create output files
748 --srcdir=DIR find the sources in DIR [configure dir or \`..']
753 Installation directories:
754 --prefix=PREFIX install architecture-independent files in PREFIX
756 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
759 By default, \`make install' will install all the files in
760 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
761 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
762 for instance \`--prefix=\$HOME'.
764 For better control, use the options below.
766 Fine tuning of the installation directories:
767 --bindir=DIR user executables [EPREFIX/bin]
768 --sbindir=DIR system admin executables [EPREFIX/sbin]
769 --libexecdir=DIR program executables [EPREFIX/libexec]
770 --datadir=DIR read-only architecture-independent data [PREFIX/share]
771 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
772 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
773 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
774 --libdir=DIR object code libraries [EPREFIX/lib]
775 --includedir=DIR C header files [PREFIX/include]
776 --oldincludedir=DIR C header files for non-gcc [/usr/include]
777 --infodir=DIR info documentation [PREFIX/info]
778 --mandir=DIR man documentation [PREFIX/man]
784 --program-prefix=PREFIX prepend PREFIX to installed program names
785 --program-suffix=SUFFIX append SUFFIX to installed program names
786 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
789 --build=BUILD configure
for building on BUILD
[guessed
]
790 --host=HOST build programs to run on HOST
[BUILD
]
794 if test -n "$ac_init_help"; then
795 case $ac_init_help in
796 short
| recursive
) echo "Configuration of GNU Bison 1.30:";;
801 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
802 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
803 --disable-dependency-tracking Speeds up one
-time builds
804 --enable-dependency-tracking Do not reject slow dependency extractors
805 --enable-gcc-warnings turn on lots of GCC warnings
(not recommended
)
806 --disable-nls do not use Native Language Support
809 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
810 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
811 --with-dmalloc use dmalloc
, as
in
812 http
://www.dmalloc.com
/dmalloc.
tar.gz
813 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
814 --with-included-gettext use the GNU
gettext library included here
816 Some influential environment variables
:
817 CC C compiler
command
818 CFLAGS C compiler flags
819 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
820 nonstandard directory
<lib dir
>
821 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
822 headers
in a nonstandard directory
<include dir
>
825 Use these variables to override the choices made by
`configure' or to help
826 it to find libraries and programs with nonstandard names/locations.
828 Report bugs to <bug-bison@gnu.org>.
832 if test "$ac_init_help" = "recursive"; then
833 # If there are subdirs, report their specific --help.
835 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
836 test -d $ac_dir || continue
839 if test "$ac_dir" != .; then
840 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
841 # A "../" for each directory in $ac_dir_suffix.
842 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
844 ac_dir_suffix= ac_top_builddir=
848 .) # No --srcdir option. We are building in place.
850 if test -z "$ac_top_builddir"; then
853 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
855 [\\/]* | ?:[\\/]* ) # Absolute path.
856 ac_srcdir=$srcdir$ac_dir_suffix;
857 ac_top_srcdir=$srcdir ;;
859 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
860 ac_top_srcdir=$ac_top_builddir$srcdir ;;
862 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
864 ac_buildpath=`cd "$ac_dir" && cd $ac_builddir && pwd`
865 ac_top_buildpath=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
866 ac_srcpath=`cd "$ac_dir" && cd $ac_srcdir && pwd`
867 ac_top_srcpath=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
870 # Check for guested configure; otherwise get Cygnus style configure.
871 if test -f $ac_srcdir/configure.gnu; then
873 $SHELL $ac_srcdir/configure.gnu --help=recursive
874 elif test -f $ac_srcdir/configure; then
876 $SHELL $ac_srcdir/configure --help=recursive
877 elif test -f $ac_srcdir/configure.ac ||
878 test -f $ac_srcdir/configure.in; then
882 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
888 test -n "$ac_init_help" && exit 0
889 if $ac_init_version; then
891 GNU Bison configure 1.30
892 generated by GNU Autoconf 2.52e
894 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
895 Free Software Foundation, Inc.
896 This configure script is free software; the Free Software Foundation
897 gives unlimited permission to copy, distribute and modify it.
903 This file contains any messages produced by compilers while
904 running configure, to aid debugging if configure makes a mistake.
906 It was created by GNU Bison $as_me 1.30, which was
907 generated by GNU Autoconf 2.52e. Invocation command line was
918 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
919 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
920 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
921 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
922 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
924 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
925 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
927 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
928 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
929 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
930 hostinfo = `(hostinfo
) 2>/dev
/null
|| echo unknown
`
931 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
932 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
933 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
941 test -z "$as_dir" && as_dir=.
955 # Keep a trace of the command line.
956 # Strip out --no-create and --no-recursion so they do not pile up.
957 # Also quote any args containing shell meta-characters.
963 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
964 | --no-cr | --no-c) ;;
965 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
966 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
967 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
968 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
969 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
971 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
974 # Get rid of the leading space.
977 # When interrupted or exit'd, cleanup temporary files, and complete
978 # config.log. We remove comments because anyway the quotes in there
979 # would cause problems or look ugly.
980 # WARNING: Be sure not to use single quotes in there, as some shells,
981 # such as our DU 5.0 friend, will then `close
' the trap.
983 # Save into config.log some information that might help in debugging.
987 ## ---------------- ##
988 ## Cache variables. ##
989 ## ---------------- ##
992 # The following way of writing the cache mishandles newlines in values,
995 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
998 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
999 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1003 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1008 if test -s confdefs.h
; then
1015 sed "/^$/d" confdefs.h
1018 test "$ac_signal" != 0 &&
1019 echo "$as_me: caught signal $ac_signal"
1020 echo "$as_me: exit $exit_status"
1022 rm -rf conftest
* confdefs
* core core.
* *.core conf$$
* $ac_clean_files &&
1025 for ac_signal in 1 2 13 15; do
1026 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1030 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1031 rm -rf conftest* confdefs.h
1032 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1035 # Let the site file select an alternate cache file if it wants to.
1036 # Prefer explicitly selected file to automatically selected ones.
1037 if test -z "$CONFIG_SITE"; then
1038 if test "x$prefix" != xNONE; then
1039 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1041 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1044 for ac_site_file in $CONFIG_SITE; do
1045 if test -r "$ac_site_file"; then
1046 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1047 echo "$as_me: loading site script $ac_site_file" >&6;}
1048 sed 's
/^
/| /' "$ac_site_file" >&5
1053 if test -r "$cache_file"; then
1054 # Some versions of bash will fail to source /dev/null (special
1055 # files actually), so we avoid doing that.
1056 if test -f "$cache_file"; then
1057 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1058 echo "$as_me: loading cache $cache_file" >&6;}
1060 [\\/]* | ?:[\\/]* ) . $cache_file;;
1061 *) . ./$cache_file;;
1065 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1066 echo "$as_me: creating cache $cache_file" >&6;}
1070 # Check that the precious variables saved in the cache have kept the same
1072 ac_cache_corrupted=false
1073 for ac_var in `(set) 2>&1 |
1074 sed -n 's
/^ac_env_\
([a
-zA-Z_0-9]*\
)_set
=.
*/\
1/p
'`; do
1075 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1076 eval ac_new_set=\$ac_env_${ac_var}_set
1077 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1078 eval ac_new_val="\$ac_env_${ac_var}_value"
1079 case $ac_old_set,$ac_new_set in
1081 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1082 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1083 ac_cache_corrupted=: ;;
1085 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1086 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1087 ac_cache_corrupted=: ;;
1090 if test "x$ac_old_val" != "x$ac_new_val"; then
1091 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1092 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1093 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1094 echo "$as_me: former value: $ac_old_val" >&2;}
1095 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1096 echo "$as_me: current value: $ac_new_val" >&2;}
1097 ac_cache_corrupted=:
1100 # Pass precious variables to config.status. It doesn't matter if
1101 # we pass some twice (in addition to the command line arguments).
1102 if test "$ac_new_set" = set; then
1104 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1105 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1106 ac_configure_args="$ac_configure_args '$ac_arg'"
1108 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1113 if $ac_cache_corrupted; then
1114 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1115 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1116 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1117 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1118 { (exit 1); exit 1; }; }
1122 ac_cpp='$CPP $CPPFLAGS'
1123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1124 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1128 for ac_dir in config $srcdir/config; do
1129 if test -f $ac_dir/install-sh; then
1131 ac_install_sh="$ac_aux_dir/install-sh -c"
1133 elif test -f $ac_dir/install.sh; then
1135 ac_install_sh="$ac_aux_dir/install.sh -c"
1137 elif test -f $ac_dir/shtool; then
1139 ac_install_sh="$ac_aux_dir/shtool install -c"
1143 if test -z "$ac_aux_dir"; then
1144 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1145 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1146 { (exit 1); exit 1; }; }
1148 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1149 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1150 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1152 # Find a good install program. We prefer a C program (faster),
1153 # so one script is as good as another. But avoid the broken or
1154 # incompatible versions:
1155 # SysV /etc/install, /usr/sbin/install
1156 # SunOS /usr/etc/install
1157 # IRIX /sbin/install
1159 # AmigaOS /C/install, which installs bootblocks on floppy discs
1160 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1161 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1162 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1163 # ./install, which can be erroneously created by make from ./install.sh.
1164 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
1165 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1166 if test -z "$INSTALL"; then
1167 if test "${ac_cv_path_install+set}" = set; then
1168 echo $ECHO_N "(cached) $ECHO_C" >&6
1170 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1174 test -z "$as_dir" && as_dir
=.
1175 # Account for people who put trailing slashes in PATH elements.
1177 .
/ | .
// | /cC
/* | \
1178 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
1181 # OSF1 and SCO ODT 3.0 have their own names for install.
1182 # Don't use installbsd from OSF since it installs stuff as root
1184 for ac_prog
in ginstall scoinst
install; do
1185 for ac_exec_ext
in '' $ac_executable_extensions; do
1186 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1187 if test $ac_prog = install &&
1188 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1189 # AIX install. It has an incompatible calling convention.
1191 elif test $ac_prog = install &&
1192 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1193 # program-specific install script used by HP pwplus--don't use.
1196 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1207 if test "${ac_cv_path_install+set}" = set; then
1208 INSTALL
=$ac_cv_path_install
1210 # As a last resort, use the slow shell script. We don't cache a
1211 # path for INSTALL within a source directory, because that will
1212 # break other packages using the cache if that directory is
1213 # removed, or if the path is relative.
1214 INSTALL
=$ac_install_sh
1217 echo "$as_me:$LINENO: result: $INSTALL" >&5
1218 echo "${ECHO_T}$INSTALL" >&6
1220 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1221 # It thinks the first close brace ends the variable substitution.
1222 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1224 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1226 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1228 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1229 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1232 echo timestamp
> conftest.
file
1233 # Do `set' in a subshell so we don't clobber the current shell's
1234 # arguments. Must try -L first in case configure is actually a
1235 # symlink; some systems play weird games with the mod time of symlinks
1236 # (eg FreeBSD returns the mod time of the symlink's containing
1239 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1240 if test "$*" = "X"; then
1242 set X
`ls -t $srcdir/configure conftest.file`
1245 if test "$*" != "X $srcdir/configure conftest.file" \
1246 && test "$*" != "X conftest.file $srcdir/configure"; then
1248 # If neither matched, then we have a broken ls. This can happen
1249 # if, for instance, CONFIG_SHELL is bash and it inherits a
1250 # broken ls alias from the environment. This has actually
1251 # happened. Such a system could not be considered "sane".
1252 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1253 alias in your environment" >&5
1254 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1255 alias in your environment" >&2;}
1256 { (exit 1); exit 1; }; }
1259 test "$2" = conftest.
file
1265 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1266 Check your system clock" >&5
1267 echo "$as_me: error: newly created file is older than distributed files!
1268 Check your system clock" >&2;}
1269 { (exit 1); exit 1; }; }
1271 echo "$as_me:$LINENO: result: yes" >&5
1272 echo "${ECHO_T}yes" >&6
1273 test "$program_prefix" != NONE
&&
1274 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1275 # Use a double $ so make ignores it.
1276 test "$program_suffix" != NONE
&&
1277 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1278 # Double any \ or $. echo might interpret backslashes.
1279 # By default was `s,x,x', remove it if useless.
1280 cat <<\_ACEOF
>conftest.
sed
1281 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1283 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1286 # expand $ac_aux_dir to an absolute path
1287 am_aux_dir
=`cd $ac_aux_dir && pwd`
1289 test x
"${MISSING+set}" = xset
|| MISSING
="\${SHELL} $am_aux_dir/missing"
1290 # Use eval to expand $SHELL
1291 if eval "$MISSING --run true"; then
1292 am_missing_run
="$MISSING --run "
1296 { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1297 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1300 for ac_prog
in gawk mawk nawk
awk
1302 # Extract the first word of "$ac_prog", so it can be a program name with args.
1303 set dummy
$ac_prog; ac_word
=$2
1304 echo "$as_me:$LINENO: checking for $ac_word" >&5
1305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1306 if test "${ac_cv_prog_AWK+set}" = set; then
1307 echo $ECHO_N "(cached) $ECHO_C" >&6
1309 if test -n "$AWK"; then
1310 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1312 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1316 test -z "$as_dir" && as_dir
=.
1317 for ac_exec_ext
in '' $ac_executable_extensions; do
1318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1319 ac_cv_prog_AWK
="$ac_prog"
1320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1329 if test -n "$AWK"; then
1330 echo "$as_me:$LINENO: result: $AWK" >&5
1331 echo "${ECHO_T}$AWK" >&6
1333 echo "$as_me:$LINENO: result: no" >&5
1334 echo "${ECHO_T}no" >&6
1337 test -n "$AWK" && break
1340 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1341 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1342 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
1343 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1344 echo $ECHO_N "(cached) $ECHO_C" >&6
1346 cat >conftest.
make <<\_ACEOF
1348 @
echo 'ac_maketemp="${MAKE}"'
1350 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1351 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1352 if test -n "$ac_maketemp"; then
1353 eval ac_cv_prog_make_
${ac_make}_set
=yes
1355 eval ac_cv_prog_make_
${ac_make}_set
=no
1359 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1360 echo "$as_me:$LINENO: result: yes" >&5
1361 echo "${ECHO_T}yes" >&6
1364 echo "$as_me:$LINENO: result: no" >&5
1365 echo "${ECHO_T}no" >&6
1366 SET_MAKE
="MAKE=${MAKE-make}"
1369 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1370 if test "${enable_dependency_tracking+set}" = set; then
1371 enableval
="$enable_dependency_tracking"
1374 if test "x$enable_dependency_tracking" != xno
; then
1375 am_depcomp
="$ac_aux_dir/depcomp"
1379 if test "x$enable_dependency_tracking" != xno; then
1387 rm -f .deps
2>/dev
/null
1388 mkdir .deps
2>/dev
/null
1389 if test -d .deps
; then
1392 # MS-DOS does not allow filenames that begin with a dot.
1395 rmdir .deps
2>/dev
/null
1397 # test to see if srcdir already configured
1398 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1399 test -f $srcdir/config.status
; then
1400 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1401 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1402 { (exit 1); exit 1; }; }
1405 # Define the identity of the package.
1409 cat >>confdefs.h
<<_ACEOF
1410 #define PACKAGE "$PACKAGE"
1413 cat >>confdefs.h
<<_ACEOF
1414 #define VERSION "$VERSION"
1417 # Some tools Automake needs.
1419 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal"}
1421 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1423 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake"}
1425 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1427 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1429 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1431 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1433 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1435 # We need awk for the "check" target. The system "awk" is bad on
1438 # Add the stamp file to the list of files AC keeps track of,
1439 # along with our hook.
1440 ac_config_headers
="$ac_config_headers config.h:config.hin"
1442 # Initialize the test suite.
1443 ac_config_commands
="$ac_config_commands tests/package.m4"
1445 ac_config_commands
="$ac_config_commands tests/atconfig"
1447 if test -f $srcdir/tests
/atlocal.
in; then
1448 ac_config_files
="$ac_config_files tests/atlocal"
1452 ac_config_files
="$ac_config_files tests/bison"
1454 # Needed by tests/atlocal.in.
1456 # Checks for programs.
1458 ac_cpp
='$CPP $CPPFLAGS'
1459 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1460 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1461 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1462 if test -n "$ac_tool_prefix"; then
1463 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1464 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1465 echo "$as_me:$LINENO: checking for $ac_word" >&5
1466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1467 if test "${ac_cv_prog_CC+set}" = set; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1470 if test -n "$CC"; then
1471 ac_cv_prog_CC
="$CC" # Let the user override the test.
1473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1477 test -z "$as_dir" && as_dir
=.
1478 for ac_exec_ext
in '' $ac_executable_extensions; do
1479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1480 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1490 if test -n "$CC"; then
1491 echo "$as_me:$LINENO: result: $CC" >&5
1492 echo "${ECHO_T}$CC" >&6
1494 echo "$as_me:$LINENO: result: no" >&5
1495 echo "${ECHO_T}no" >&6
1499 if test -z "$ac_cv_prog_CC"; then
1501 # Extract the first word of "gcc", so it can be a program name with args.
1502 set dummy gcc
; ac_word
=$2
1503 echo "$as_me:$LINENO: checking for $ac_word" >&5
1504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1505 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1508 if test -n "$ac_ct_CC"; then
1509 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1515 test -z "$as_dir" && as_dir
=.
1516 for ac_exec_ext
in '' $ac_executable_extensions; do
1517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1518 ac_cv_prog_ac_ct_CC
="gcc"
1519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1527 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1528 if test -n "$ac_ct_CC"; then
1529 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1530 echo "${ECHO_T}$ac_ct_CC" >&6
1532 echo "$as_me:$LINENO: result: no" >&5
1533 echo "${ECHO_T}no" >&6
1541 if test -z "$CC"; then
1542 if test -n "$ac_tool_prefix"; then
1543 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1544 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1545 echo "$as_me:$LINENO: checking for $ac_word" >&5
1546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1547 if test "${ac_cv_prog_CC+set}" = set; then
1548 echo $ECHO_N "(cached) $ECHO_C" >&6
1550 if test -n "$CC"; then
1551 ac_cv_prog_CC
="$CC" # Let the user override the test.
1553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1557 test -z "$as_dir" && as_dir
=.
1558 for ac_exec_ext
in '' $ac_executable_extensions; do
1559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1560 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1570 if test -n "$CC"; then
1571 echo "$as_me:$LINENO: result: $CC" >&5
1572 echo "${ECHO_T}$CC" >&6
1574 echo "$as_me:$LINENO: result: no" >&5
1575 echo "${ECHO_T}no" >&6
1579 if test -z "$ac_cv_prog_CC"; then
1581 # Extract the first word of "cc", so it can be a program name with args.
1582 set dummy cc
; ac_word
=$2
1583 echo "$as_me:$LINENO: checking for $ac_word" >&5
1584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1586 echo $ECHO_N "(cached) $ECHO_C" >&6
1588 if test -n "$ac_ct_CC"; then
1589 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1595 test -z "$as_dir" && as_dir
=.
1596 for ac_exec_ext
in '' $ac_executable_extensions; do
1597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1598 ac_cv_prog_ac_ct_CC
="cc"
1599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1608 if test -n "$ac_ct_CC"; then
1609 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1610 echo "${ECHO_T}$ac_ct_CC" >&6
1612 echo "$as_me:$LINENO: result: no" >&5
1613 echo "${ECHO_T}no" >&6
1622 if test -z "$CC"; then
1623 # Extract the first word of "cc", so it can be a program name with args.
1624 set dummy cc
; ac_word
=$2
1625 echo "$as_me:$LINENO: checking for $ac_word" >&5
1626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1627 if test "${ac_cv_prog_CC+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 if test -n "$CC"; then
1631 ac_cv_prog_CC
="$CC" # Let the user override the test.
1634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1638 test -z "$as_dir" && as_dir
=.
1639 for ac_exec_ext
in '' $ac_executable_extensions; do
1640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1641 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1642 ac_prog_rejected
=yes
1646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652 if test $ac_prog_rejected = yes; then
1653 # We found a bogon in the path, so make sure we never use it.
1654 set dummy
$ac_cv_prog_CC
1656 if test $# != 0; then
1657 # We chose a different compiler from the bogus one.
1658 # However, it has the same basename, so the bogon will be chosen
1659 # first if we set CC to just the basename; use the full file name.
1661 set dummy
"$as_dir/$ac_word" ${1+"$@"}
1669 if test -n "$CC"; then
1670 echo "$as_me:$LINENO: result: $CC" >&5
1671 echo "${ECHO_T}$CC" >&6
1673 echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1678 if test -z "$CC"; then
1679 if test -n "$ac_tool_prefix"; then
1682 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1683 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1684 echo "$as_me:$LINENO: checking for $ac_word" >&5
1685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1686 if test "${ac_cv_prog_CC+set}" = set; then
1687 echo $ECHO_N "(cached) $ECHO_C" >&6
1689 if test -n "$CC"; then
1690 ac_cv_prog_CC
="$CC" # Let the user override the test.
1692 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1696 test -z "$as_dir" && as_dir
=.
1697 for ac_exec_ext
in '' $ac_executable_extensions; do
1698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1699 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709 if test -n "$CC"; then
1710 echo "$as_me:$LINENO: result: $CC" >&5
1711 echo "${ECHO_T}$CC" >&6
1713 echo "$as_me:$LINENO: result: no" >&5
1714 echo "${ECHO_T}no" >&6
1717 test -n "$CC" && break
1720 if test -z "$CC"; then
1724 # Extract the first word of "$ac_prog", so it can be a program name with args.
1725 set dummy
$ac_prog; ac_word
=$2
1726 echo "$as_me:$LINENO: checking for $ac_word" >&5
1727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1728 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1729 echo $ECHO_N "(cached) $ECHO_C" >&6
1731 if test -n "$ac_ct_CC"; then
1732 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1738 test -z "$as_dir" && as_dir
=.
1739 for ac_exec_ext
in '' $ac_executable_extensions; do
1740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1741 ac_cv_prog_ac_ct_CC
="$ac_prog"
1742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1750 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1751 if test -n "$ac_ct_CC"; then
1752 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1753 echo "${ECHO_T}$ac_ct_CC" >&6
1755 echo "$as_me:$LINENO: result: no" >&5
1756 echo "${ECHO_T}no" >&6
1759 test -n "$ac_ct_CC" && break
1767 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
1768 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1769 { (exit 1); exit 1; }; }
1771 # Provide some information about the compiler.
1772 echo "$as_me:$LINENO:" \
1773 "checking for C compiler version" >&5
1774 ac_compiler
=`set X $ac_compile; echo $2`
1775 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1776 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1779 (exit $ac_status); }
1780 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1781 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1784 (exit $ac_status); }
1785 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1786 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1789 (exit $ac_status); }
1791 cat >conftest.
$ac_ext <<_ACEOF
1792 #line $LINENO "configure"
1793 #include "confdefs.h"
1795 #ifdef F77_DUMMY_MAIN
1799 int F77_DUMMY_MAIN() { return 1; }
1809 ac_clean_files_save
=$ac_clean_files
1810 ac_clean_files
="$ac_clean_files a.out a.exe"
1811 # Try to create an executable without -o first, disregard a.out.
1812 # It will help us diagnose broken compilers, and finding out an intuition
1814 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1815 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1816 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1817 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1818 (eval $ac_link_default) 2>&5
1820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1821 (exit $ac_status); }; then
1822 # Find the output, starting from the most likely. This scheme is
1823 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1825 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1826 ls a.out conftest 2>/dev/null;
1827 ls a.* conftest.* 2>/dev/null`; do
1829 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
) ;;
1830 a.out
) # We found the default executable, but exeext='' is most
1833 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1834 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1841 echo "$as_me: failed program was:" >&5
1842 cat conftest.
$ac_ext >&5
1843 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1844 echo "$as_me: error: C compiler cannot create executables" >&2;}
1845 { (exit 77); exit 77; }; }
1848 ac_exeext
=$ac_cv_exeext
1849 echo "$as_me:$LINENO: result: $ac_file" >&5
1850 echo "${ECHO_T}$ac_file" >&6
1852 # Check the compiler produces executables we can run. If not, either
1853 # the compiler is broken, or we cross compile.
1854 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1855 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1856 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1857 # If not cross compiling, check that we can run a simple program.
1858 if test "$cross_compiling" != yes; then
1859 if { ac_try
='./$ac_file'
1860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1864 (exit $ac_status); }; }; then
1867 if test "$cross_compiling" = maybe
; then
1870 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1871 If you meant to cross compile, use \`--host'." >&5
1872 echo "$as_me: error: cannot run C compiled programs.
1873 If you meant to cross compile, use \`--host'." >&2;}
1874 { (exit 1); exit 1; }; }
1878 echo "$as_me:$LINENO: result: yes" >&5
1879 echo "${ECHO_T}yes" >&6
1881 rm -f a.out a.exe conftest
$ac_cv_exeext
1882 ac_clean_files
=$ac_clean_files_save
1883 # Check the compiler produces executables we can run. If not, either
1884 # the compiler is broken, or we cross compile.
1885 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1886 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1887 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1888 echo "${ECHO_T}$cross_compiling" >&6
1890 echo "$as_me:$LINENO: checking for executable suffix" >&5
1891 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1893 (eval $ac_link) 2>&5
1895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1896 (exit $ac_status); }; then
1897 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1898 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1899 # work properly (i.e., refer to `conftest.exe'), while it won't with
1901 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1903 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1904 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1911 { { echo "$as_me:$LINENO: error: cannot compute EXEEXT: cannot compile and link" >&5
1912 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1913 { (exit 1); exit 1; }; }
1916 rm -f conftest
$ac_cv_exeext
1917 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1918 echo "${ECHO_T}$ac_cv_exeext" >&6
1920 rm -f conftest.
$ac_ext
1921 EXEEXT
=$ac_cv_exeext
1923 echo "$as_me:$LINENO: checking for object suffix" >&5
1924 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1925 if test "${ac_cv_objext+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 cat >conftest.
$ac_ext <<_ACEOF
1929 #line $LINENO "configure"
1930 #include "confdefs.h"
1932 #ifdef F77_DUMMY_MAIN
1936 int F77_DUMMY_MAIN() { return 1; }
1946 rm -f conftest.o conftest.obj
1947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1948 (eval $ac_compile) 2>&5
1950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951 (exit $ac_status); }; then
1952 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1954 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1955 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1960 echo "$as_me: failed program was:" >&5
1961 cat conftest.
$ac_ext >&5
1962 { { echo "$as_me:$LINENO: error: cannot compute OBJEXT: cannot compile" >&5
1963 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1964 { (exit 1); exit 1; }; }
1967 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1969 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1970 echo "${ECHO_T}$ac_cv_objext" >&6
1971 OBJEXT
=$ac_cv_objext
1973 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1974 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1975 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 cat >conftest.
$ac_ext <<_ACEOF
1979 #line $LINENO "configure"
1980 #include "confdefs.h"
1982 #ifdef F77_DUMMY_MAIN
1986 int F77_DUMMY_MAIN() { return 1; }
1999 rm -f conftest.
$ac_objext
2000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2001 (eval $ac_compile) 2>&5
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); } &&
2005 { ac_try
='test -s conftest.$ac_objext'
2006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }; }; then
2013 echo "$as_me: failed program was:" >&5
2014 cat conftest.
$ac_ext >&5
2017 rm -f conftest.
$ac_objext conftest.
$ac_ext
2018 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2021 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2022 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2023 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2024 ac_test_CFLAGS
=${CFLAGS+set}
2025 ac_save_CFLAGS
=$CFLAGS
2027 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2028 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2029 if test "${ac_cv_prog_cc_g+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 cat >conftest.
$ac_ext <<_ACEOF
2033 #line $LINENO "configure"
2034 #include "confdefs.h"
2036 #ifdef F77_DUMMY_MAIN
2040 int F77_DUMMY_MAIN() { return 1; }
2050 rm -f conftest.
$ac_objext
2051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2052 (eval $ac_compile) 2>&5
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); } &&
2056 { ac_try
='test -s conftest.$ac_objext'
2057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); }; }; then
2064 echo "$as_me: failed program was:" >&5
2065 cat conftest.
$ac_ext >&5
2068 rm -f conftest.
$ac_objext conftest.
$ac_ext
2070 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2071 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2072 if test "$ac_test_CFLAGS" = set; then
2073 CFLAGS
=$ac_save_CFLAGS
2074 elif test $ac_cv_prog_cc_g = yes; then
2075 if test "$GCC" = yes; then
2081 if test "$GCC" = yes; then
2087 # Some people use a C++ compiler to compile C. Since we use `exit',
2088 # in C++ we need to declare it. In case someone uses the same compiler
2089 # for both compiling C and C++ we need to have the C++ compiler decide
2090 # the declaration of exit, since it's the most demanding environment.
2091 cat >conftest.
$ac_ext <<_ACEOF
2096 rm -f conftest.
$ac_objext
2097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2098 (eval $ac_compile) 2>&5
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); } &&
2102 { ac_try
='test -s conftest.$ac_objext'
2103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }; }; then
2108 for ac_declaration
in \
2110 '#include <stdlib.h>' \
2111 'extern "C" void std::exit (int) throw (); using std::exit;' \
2112 'extern "C" void std::exit (int); using std::exit;' \
2113 'extern "C" void exit (int) throw ();' \
2114 'extern "C" void exit (int);' \
2117 cat >conftest.
$ac_ext <<_ACEOF
2118 #line $LINENO "configure"
2119 #include "confdefs.h"
2122 #ifdef F77_DUMMY_MAIN
2126 int F77_DUMMY_MAIN() { return 1; }
2136 rm -f conftest.
$ac_objext
2137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2138 (eval $ac_compile) 2>&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); } &&
2142 { ac_try
='test -s conftest.$ac_objext'
2143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }; }; then
2150 echo "$as_me: failed program was:" >&5
2151 cat conftest.
$ac_ext >&5
2154 rm -f conftest.
$ac_objext conftest.
$ac_ext
2155 cat >conftest.
$ac_ext <<_ACEOF
2156 #line $LINENO "configure"
2157 #include "confdefs.h"
2159 #ifdef F77_DUMMY_MAIN
2163 int F77_DUMMY_MAIN() { return 1; }
2173 rm -f conftest.
$ac_objext
2174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2175 (eval $ac_compile) 2>&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); } &&
2179 { ac_try
='test -s conftest.$ac_objext'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; }; then
2187 echo "$as_me: failed program was:" >&5
2188 cat conftest.
$ac_ext >&5
2190 rm -f conftest.
$ac_objext conftest.
$ac_ext
2193 if test -n "$ac_declaration"; then
2194 echo '#ifdef __cplusplus' >>confdefs.h
2195 echo $ac_declaration >>confdefs.h
2196 echo '#endif' >>confdefs.h
2200 echo "$as_me: failed program was:" >&5
2201 cat conftest.
$ac_ext >&5
2203 rm -f conftest.
$ac_objext conftest.
$ac_ext
2205 ac_cpp
='$CPP $CPPFLAGS'
2206 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2207 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2208 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2209 ac_config_commands
="$ac_config_commands depfiles"
2211 am_make
=${MAKE-make}
2212 cat > confinc
<< 'END'
2216 # If we don't find an include directive, just comment out the code.
2217 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2218 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2222 # First try GNU make style include.
2223 echo "include confinc" > confmf
2224 # We grep out `Entering directory' and `Leaving directory'
2225 # messages which can occur if `w' ends up in MAKEFLAGS.
2226 # In particular we don't look at `^make:' because GNU make might
2227 # be invoked under some other name (usually "gmake"), in which
2228 # case it prints its new name instead of `make'.
2229 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2234 # Now try BSD make style include.
2235 if test "$am__include" = "#"; then
2236 echo '.include "confinc"' > confmf
2237 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2238 am__include
=.include
2244 echo "$as_me:$LINENO: result: $_am_result" >&5
2245 echo "${ECHO_T}$_am_result" >&6
2246 rm -f confinc confmf
2248 depcc
="$CC" am_compiler_list
=
2250 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2251 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2252 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2253 echo $ECHO_N "(cached) $ECHO_C" >&6
2255 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2256 # We make a subdir and do the tests there. Otherwise we can end up
2257 # making bogus files that we don't know about and never remove. For
2258 # instance it was reported that on HP-UX the gcc test will end up
2259 # making a dummy file named `D' -- because `-MD' means `put the output
2262 # Copy depcomp to subdir because otherwise we won't find it if we're
2263 # using a relative directory.
2264 cp "$am_depcomp" conftest.dir
2267 am_cv_CC_dependencies_compiler_type
=none
2268 if test "$am_compiler_list" = ""; then
2269 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2271 for depmode
in $am_compiler_list; do
2272 # We need to recreate these files for each test, as the compiler may
2273 # overwrite some of them when testing with obscure command lines.
2274 # This happens at least with the AIX C compiler.
2275 echo '#include "conftest.h"' > conftest.c
2276 echo 'int i;' > conftest.h
2277 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2281 # after this tag, mechanisms are not by side-effect, so they'll
2282 # only be used when explicitly requested
2283 if test "x$enable_dependency_tracking" = xyes
; then
2291 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2292 # mode. It turns out that the SunPro C++ compiler does not properly
2293 # handle `-M -o', and we need to detect this.
2294 if depmode
=$depmode \
2295 source=conftest.c object
=conftest.o \
2296 depfile
=conftest.Po tmpdepfile
=conftest.TPo \
2297 $SHELL .
/depcomp
$depcc -c conftest.c
-o conftest.o
>/dev
/null
2>&1 &&
2298 grep conftest.h conftest.Po
> /dev
/null
2>&1 &&
2299 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2300 am_cv_CC_dependencies_compiler_type
=$depmode
2308 am_cv_CC_dependencies_compiler_type
=none
2312 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2313 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2314 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
2317 ac_cpp
='$CPP $CPPFLAGS'
2318 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2321 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2322 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2323 # On Suns, sometimes $CPP names a directory.
2324 if test -n "$CPP" && test -d "$CPP"; then
2327 if test -z "$CPP"; then
2328 if test "${ac_cv_prog_CPP+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 # Double quotes because CPP needs to be expanded
2332 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2335 for ac_c_preproc_warn_flag
in '' yes
2337 # Use a header file that comes with gcc, so configuring glibc
2338 # with a fresh cross-compiler works.
2339 # On the NeXT, cc -E runs the code through the compiler's parser,
2340 # not just through cpp. "Syntax error" is here to catch this case.
2341 cat >conftest.
$ac_ext <<_ACEOF
2342 #line $LINENO "configure"
2343 #include "confdefs.h"
2347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2348 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2350 egrep -v '^ *\+' conftest.er1
>conftest.err
2352 cat conftest.err
>&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } >/dev
/null
; then
2355 if test -s conftest.err
; then
2356 ac_cpp_err
=$ac_c_preproc_warn_flag
2363 if test -z "$ac_cpp_err"; then
2366 echo "$as_me: failed program was:" >&5
2367 cat conftest.
$ac_ext >&5
2368 # Broken: fails on valid input.
2371 rm -f conftest.err conftest.
$ac_ext
2373 # OK, works on sane cases. Now check whether non-existent headers
2374 # can be detected and how.
2375 cat >conftest.
$ac_ext <<_ACEOF
2376 #line $LINENO "configure"
2377 #include "confdefs.h"
2378 #include <ac_nonexistent.h>
2380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2381 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2383 egrep -v '^ *\+' conftest.er1
>conftest.err
2385 cat conftest.err
>&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } >/dev
/null
; then
2388 if test -s conftest.err
; then
2389 ac_cpp_err
=$ac_c_preproc_warn_flag
2396 if test -z "$ac_cpp_err"; then
2397 # Broken: success on invalid input.
2400 echo "$as_me: failed program was:" >&5
2401 cat conftest.
$ac_ext >&5
2402 # Passes both tests.
2406 rm -f conftest.err conftest.
$ac_ext
2409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2410 rm -f conftest.err conftest.
$ac_ext
2411 if $ac_preproc_ok; then
2423 echo "$as_me:$LINENO: result: $CPP" >&5
2424 echo "${ECHO_T}$CPP" >&6
2426 for ac_c_preproc_warn_flag
in '' yes
2428 # Use a header file that comes with gcc, so configuring glibc
2429 # with a fresh cross-compiler works.
2430 # On the NeXT, cc -E runs the code through the compiler's parser,
2431 # not just through cpp. "Syntax error" is here to catch this case.
2432 cat >conftest.
$ac_ext <<_ACEOF
2433 #line $LINENO "configure"
2434 #include "confdefs.h"
2438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2439 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2441 egrep -v '^ *\+' conftest.er1
>conftest.err
2443 cat conftest.err
>&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); } >/dev
/null
; then
2446 if test -s conftest.err
; then
2447 ac_cpp_err
=$ac_c_preproc_warn_flag
2454 if test -z "$ac_cpp_err"; then
2457 echo "$as_me: failed program was:" >&5
2458 cat conftest.
$ac_ext >&5
2459 # Broken: fails on valid input.
2462 rm -f conftest.err conftest.
$ac_ext
2464 # OK, works on sane cases. Now check whether non-existent headers
2465 # can be detected and how.
2466 cat >conftest.
$ac_ext <<_ACEOF
2467 #line $LINENO "configure"
2468 #include "confdefs.h"
2469 #include <ac_nonexistent.h>
2471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2472 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2474 egrep -v '^ *\+' conftest.er1
>conftest.err
2476 cat conftest.err
>&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); } >/dev
/null
; then
2479 if test -s conftest.err
; then
2480 ac_cpp_err
=$ac_c_preproc_warn_flag
2487 if test -z "$ac_cpp_err"; then
2488 # Broken: success on invalid input.
2491 echo "$as_me: failed program was:" >&5
2492 cat conftest.
$ac_ext >&5
2493 # Passes both tests.
2497 rm -f conftest.err conftest.
$ac_ext
2500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2501 rm -f conftest.err conftest.
$ac_ext
2502 if $ac_preproc_ok; then
2505 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2506 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2507 { (exit 1); exit 1; }; }
2511 ac_cpp
='$CPP $CPPFLAGS'
2512 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2513 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2514 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2516 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2517 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2518 if test "${ac_cv_header_stdc+set}" = set; then
2519 echo $ECHO_N "(cached) $ECHO_C" >&6
2521 cat >conftest.
$ac_ext <<_ACEOF
2522 #line $LINENO "configure"
2523 #include "confdefs.h"
2530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2531 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2533 egrep -v '^ *\+' conftest.er1
>conftest.err
2535 cat conftest.err
>&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); } >/dev
/null
; then
2538 if test -s conftest.err
; then
2539 ac_cpp_err
=$ac_c_preproc_warn_flag
2546 if test -z "$ac_cpp_err"; then
2547 ac_cv_header_stdc
=yes
2549 echo "$as_me: failed program was:" >&5
2550 cat conftest.
$ac_ext >&5
2551 ac_cv_header_stdc
=no
2553 rm -f conftest.err conftest.
$ac_ext
2555 if test $ac_cv_header_stdc = yes; then
2556 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2557 cat >conftest.
$ac_ext <<_ACEOF
2558 #line $LINENO "configure"
2559 #include "confdefs.h"
2563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2564 egrep "memchr" >/dev
/null
2>&1; then
2567 ac_cv_header_stdc
=no
2573 if test $ac_cv_header_stdc = yes; then
2574 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2575 cat >conftest.
$ac_ext <<_ACEOF
2576 #line $LINENO "configure"
2577 #include "confdefs.h"
2581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2582 egrep "free" >/dev
/null
2>&1; then
2585 ac_cv_header_stdc
=no
2591 if test $ac_cv_header_stdc = yes; then
2592 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2593 if test "$cross_compiling" = yes; then
2596 cat >conftest.
$ac_ext <<_ACEOF
2597 #line $LINENO "configure"
2598 #include "confdefs.h"
2600 #if ((' ' & 0x0FF) == 0x020)
2601 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2602 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2604 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2605 || ('j' <= (c) && (c) <= 'r') \
2606 || ('s' <= (c) && (c) <= 'z'))
2607 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2610 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2615 for (i = 0; i < 256; i++)
2616 if (XOR (islower (i), ISLOWER (i))
2617 || toupper (i) != TOUPPER (i))
2622 rm -f conftest
$ac_exeext
2623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2624 (eval $ac_link) 2>&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; }; then
2635 echo "$as_me: program exited with status $ac_status" >&5
2636 echo "$as_me: failed program was:" >&5
2637 cat conftest.
$ac_ext >&5
2639 ac_cv_header_stdc
=no
2641 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2645 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2646 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2647 if test $ac_cv_header_stdc = yes; then
2649 cat >>confdefs.h
<<\_ACEOF
2650 #define STDC_HEADERS 1
2655 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2657 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2658 inttypes.h stdint.h unistd.h
2660 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2661 echo "$as_me:$LINENO: checking for $ac_header" >&5
2662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2666 cat >conftest.
$ac_ext <<_ACEOF
2667 #line $LINENO "configure"
2668 #include "confdefs.h"
2669 $ac_includes_default
2671 #include <$ac_header>
2673 rm -f conftest.
$ac_objext
2674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2675 (eval $ac_compile) 2>&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); } &&
2679 { ac_try
='test -s conftest.$ac_objext'
2680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; }; then
2685 eval "$as_ac_Header=yes"
2687 echo "$as_me: failed program was:" >&5
2688 cat conftest.
$ac_ext >&5
2689 eval "$as_ac_Header=no"
2691 rm -f conftest.
$ac_objext conftest.
$ac_ext
2693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2696 cat >>confdefs.h
<<_ACEOF
2697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2704 if test "${ac_cv_header_minix_config_h+set}" = set; then
2705 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2706 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2707 if test "${ac_cv_header_minix_config_h+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2711 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2713 # Is the header compilable?
2714 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2715 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2716 cat >conftest.
$ac_ext <<_ACEOF
2717 #line $LINENO "configure"
2718 #include "confdefs.h"
2719 $ac_includes_default
2720 #include <minix/config.h>
2722 rm -f conftest.
$ac_objext
2723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2724 (eval $ac_compile) 2>&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); } &&
2728 { ac_try
='test -s conftest.$ac_objext'
2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; }; then
2734 ac_header_compiler
=yes
2736 echo "$as_me: failed program was:" >&5
2737 cat conftest.
$ac_ext >&5
2738 ac_header_compiler
=no
2740 rm -f conftest.
$ac_objext conftest.
$ac_ext
2741 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2742 echo "${ECHO_T}$ac_header_compiler" >&6
2744 # Is the header present?
2745 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2746 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2747 cat >conftest.
$ac_ext <<_ACEOF
2748 #line $LINENO "configure"
2749 #include "confdefs.h"
2750 #include <minix/config.h>
2752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2753 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2755 egrep -v '^ *\+' conftest.er1
>conftest.err
2757 cat conftest.err
>&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } >/dev
/null
; then
2760 if test -s conftest.err
; then
2761 ac_cpp_err
=$ac_c_preproc_warn_flag
2768 if test -z "$ac_cpp_err"; then
2769 ac_header_preproc
=yes
2771 echo "$as_me: failed program was:" >&5
2772 cat conftest.
$ac_ext >&5
2773 ac_header_preproc
=no
2775 rm -f conftest.err conftest.
$ac_ext
2776 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2777 echo "${ECHO_T}$ac_header_preproc" >&6
2779 # So? What about this header?
2780 case $ac_header_compiler:$ac_header_preproc in
2782 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
2783 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2784 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2785 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2787 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled." >&5
2788 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled." >&2;}
2789 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
2790 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
2791 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2792 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2794 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2795 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2796 if test "${ac_cv_header_minix_config_h+set}" = set; then
2797 echo $ECHO_N "(cached) $ECHO_C" >&6
2799 ac_cv_header_minix_config_h
=$ac_header_preproc
2801 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2802 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2805 if test $ac_cv_header_minix_config_h = yes; then
2811 if test "$MINIX" = yes; then
2813 cat >>confdefs.h
<<\_ACEOF
2814 #define _POSIX_SOURCE 1
2817 cat >>confdefs.h
<<\_ACEOF
2818 #define _POSIX_1_SOURCE 2
2821 cat >>confdefs.h
<<\_ACEOF
2827 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2828 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2829 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 ac_check_lib_save_LIBS
=$LIBS
2833 LIBS
="-lcposix $LIBS"
2834 cat >conftest.
$ac_ext <<_ACEOF
2835 #line $LINENO "configure"
2836 #include "confdefs.h"
2838 /* Override any gcc2 internal prototype to avoid an error. */
2842 /* We use char because int might match the return type of a gcc2
2843 builtin and then its argument prototype would still apply. */
2845 #ifdef F77_DUMMY_MAIN
2849 int F77_DUMMY_MAIN() { return 1; }
2859 rm -f conftest.
$ac_objext conftest
$ac_exeext
2860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2861 (eval $ac_link) 2>&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); } &&
2865 { ac_try
='test -s conftest$ac_exeext'
2866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; }; then
2871 ac_cv_lib_cposix_strerror
=yes
2873 echo "$as_me: failed program was:" >&5
2874 cat conftest.
$ac_ext >&5
2875 ac_cv_lib_cposix_strerror
=no
2877 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2878 LIBS
=$ac_check_lib_save_LIBS
2880 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2881 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2882 if test $ac_cv_lib_cposix_strerror = yes; then
2883 LIBS
="$LIBS -lcposix"
2886 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2887 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2888 if test "${am_cv_prog_cc_stdc+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 am_cv_prog_cc_stdc
=no
2893 # Don't try gcc -ansi; that turns off useful extensions and
2894 # breaks some systems' header files.
2895 # AIX -qlanglvl=ansi
2896 # Ultrix and OSF/1 -std1
2897 # HP-UX 10.20 and later -Ae
2898 # HP-UX older versions -Aa -D_HPUX_SOURCE
2899 # SVR4 -Xc -D__EXTENSIONS__
2900 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2902 CC
="$ac_save_CC $ac_arg"
2903 cat >conftest.
$ac_ext <<_ACEOF
2904 #line $LINENO "configure"
2905 #include "confdefs.h"
2908 #include <sys/types.h>
2909 #include <sys/stat.h>
2910 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2911 struct buf { int x; };
2912 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2913 static char *e (p, i)
2919 static char *f (char * (*g) (char **, int), char **p, ...)
2924 s = g (p, va_arg (v,int));
2928 int test (int i, double x);
2929 struct s1 {int (*f) (int a);};
2930 struct s2 {int (*f) (double a);};
2931 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2935 #ifdef F77_DUMMY_MAIN
2939 int F77_DUMMY_MAIN() { return 1; }
2945 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2951 rm -f conftest.
$ac_objext
2952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2953 (eval $ac_compile) 2>&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } &&
2957 { ac_try
='test -s conftest.$ac_objext'
2958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; }; then
2963 am_cv_prog_cc_stdc
="$ac_arg"; break
2965 echo "$as_me: failed program was:" >&5
2966 cat conftest.
$ac_ext >&5
2968 rm -f conftest.
$ac_objext conftest.
$ac_ext
2974 if test -z "$am_cv_prog_cc_stdc"; then
2975 echo "$as_me:$LINENO: result: none needed" >&5
2976 echo "${ECHO_T}none needed" >&6
2978 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2979 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2981 case "x$am_cv_prog_cc_stdc" in
2983 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
2986 if test -n "$ac_tool_prefix"; then
2987 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2988 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2989 echo "$as_me:$LINENO: checking for $ac_word" >&5
2990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2991 if test "${ac_cv_prog_RANLIB+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2994 if test -n "$RANLIB"; then
2995 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3001 test -z "$as_dir" && as_dir
=.
3002 for ac_exec_ext
in '' $ac_executable_extensions; do
3003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 RANLIB
=$ac_cv_prog_RANLIB
3014 if test -n "$RANLIB"; then
3015 echo "$as_me:$LINENO: result: $RANLIB" >&5
3016 echo "${ECHO_T}$RANLIB" >&6
3018 echo "$as_me:$LINENO: result: no" >&5
3019 echo "${ECHO_T}no" >&6
3023 if test -z "$ac_cv_prog_RANLIB"; then
3024 ac_ct_RANLIB
=$RANLIB
3025 # Extract the first word of "ranlib", so it can be a program name with args.
3026 set dummy ranlib
; ac_word
=$2
3027 echo "$as_me:$LINENO: checking for $ac_word" >&5
3028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3029 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 if test -n "$ac_ct_RANLIB"; then
3033 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3035 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3039 test -z "$as_dir" && as_dir
=.
3040 for ac_exec_ext
in '' $ac_executable_extensions; do
3041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3052 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3053 if test -n "$ac_ct_RANLIB"; then
3054 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3055 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3057 echo "$as_me:$LINENO: result: no" >&5
3058 echo "${ECHO_T}no" >&6
3061 RANLIB
=$ac_ct_RANLIB
3063 RANLIB
="$ac_cv_prog_RANLIB"
3066 AUTOM4TE
=${AUTOM4TE-"${am_missing_run}autom4te"}
3068 # Check whether --enable-gcc-warnings or --disable-gcc-warnings was given.
3069 if test "${enable_gcc_warnings+set}" = set; then
3070 enableval
="$enable_gcc_warnings"
3071 case "${enableval}" in
3073 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for gcc-warnings option" >&5
3074 echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;}
3075 { (exit 1); exit 1; }; } ;;
3080 if test "${enableval}" = yes; then
3081 echo "$as_me:$LINENO: checking whether compiler accepts -Wall" >&5
3082 echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6
3084 ac_save_CFLAGS
="$CFLAGS"
3085 CFLAGS
="$CFLAGS -Wall"
3086 cat >conftest.
$ac_ext <<_ACEOF
3087 #line $LINENO "configure"
3088 #include "confdefs.h"
3090 #ifdef F77_DUMMY_MAIN
3094 int F77_DUMMY_MAIN() { return 1; }
3104 rm -f conftest.
$ac_objext
3105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3106 (eval $ac_compile) 2>&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } &&
3110 { ac_try
='test -s conftest.$ac_objext'
3111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; }; then
3116 WARNING_CFLAGS
="$WARNING_CFLAGS -Wall"
3117 echo "$as_me:$LINENO: result: yes" >&5
3118 echo "${ECHO_T}yes" >&6
3120 echo "$as_me: failed program was:" >&5
3121 cat conftest.
$ac_ext >&5
3122 echo "$as_me:$LINENO: result: no" >&5
3123 echo "${ECHO_T}no" >&6
3125 rm -f conftest.
$ac_objext conftest.
$ac_ext
3126 CFLAGS
="$ac_save_CFLAGS"
3127 echo "$as_me:$LINENO: checking whether compiler accepts -W" >&5
3128 echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6
3130 ac_save_CFLAGS
="$CFLAGS"
3132 cat >conftest.
$ac_ext <<_ACEOF
3133 #line $LINENO "configure"
3134 #include "confdefs.h"
3136 #ifdef F77_DUMMY_MAIN
3140 int F77_DUMMY_MAIN() { return 1; }
3150 rm -f conftest.
$ac_objext
3151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3152 (eval $ac_compile) 2>&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); } &&
3156 { ac_try
='test -s conftest.$ac_objext'
3157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; }; then
3162 WARNING_CFLAGS
="$WARNING_CFLAGS -W"
3163 echo "$as_me:$LINENO: result: yes" >&5
3164 echo "${ECHO_T}yes" >&6
3166 echo "$as_me: failed program was:" >&5
3167 cat conftest.
$ac_ext >&5
3168 echo "$as_me:$LINENO: result: no" >&5
3169 echo "${ECHO_T}no" >&6
3171 rm -f conftest.
$ac_objext conftest.
$ac_ext
3172 CFLAGS
="$ac_save_CFLAGS"
3173 echo "$as_me:$LINENO: checking whether compiler accepts -Wbad-function-cast" >&5
3174 echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6
3176 ac_save_CFLAGS
="$CFLAGS"
3177 CFLAGS
="$CFLAGS -Wbad-function-cast"
3178 cat >conftest.
$ac_ext <<_ACEOF
3179 #line $LINENO "configure"
3180 #include "confdefs.h"
3182 #ifdef F77_DUMMY_MAIN
3186 int F77_DUMMY_MAIN() { return 1; }
3196 rm -f conftest.
$ac_objext
3197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3198 (eval $ac_compile) 2>&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); } &&
3202 { ac_try
='test -s conftest.$ac_objext'
3203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; }; then
3208 WARNING_CFLAGS
="$WARNING_CFLAGS -Wbad-function-cast"
3209 echo "$as_me:$LINENO: result: yes" >&5
3210 echo "${ECHO_T}yes" >&6
3212 echo "$as_me: failed program was:" >&5
3213 cat conftest.
$ac_ext >&5
3214 echo "$as_me:$LINENO: result: no" >&5
3215 echo "${ECHO_T}no" >&6
3217 rm -f conftest.
$ac_objext conftest.
$ac_ext
3218 CFLAGS
="$ac_save_CFLAGS"
3219 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-align" >&5
3220 echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6
3222 ac_save_CFLAGS
="$CFLAGS"
3223 CFLAGS
="$CFLAGS -Wcast-align"
3224 cat >conftest.
$ac_ext <<_ACEOF
3225 #line $LINENO "configure"
3226 #include "confdefs.h"
3228 #ifdef F77_DUMMY_MAIN
3232 int F77_DUMMY_MAIN() { return 1; }
3242 rm -f conftest.
$ac_objext
3243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3244 (eval $ac_compile) 2>&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } &&
3248 { ac_try
='test -s conftest.$ac_objext'
3249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; }; then
3254 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-align"
3255 echo "$as_me:$LINENO: result: yes" >&5
3256 echo "${ECHO_T}yes" >&6
3258 echo "$as_me: failed program was:" >&5
3259 cat conftest.
$ac_ext >&5
3260 echo "$as_me:$LINENO: result: no" >&5
3261 echo "${ECHO_T}no" >&6
3263 rm -f conftest.
$ac_objext conftest.
$ac_ext
3264 CFLAGS
="$ac_save_CFLAGS"
3265 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-qual" >&5
3266 echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6
3268 ac_save_CFLAGS
="$CFLAGS"
3269 CFLAGS
="$CFLAGS -Wcast-qual"
3270 cat >conftest.
$ac_ext <<_ACEOF
3271 #line $LINENO "configure"
3272 #include "confdefs.h"
3274 #ifdef F77_DUMMY_MAIN
3278 int F77_DUMMY_MAIN() { return 1; }
3288 rm -f conftest.
$ac_objext
3289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3290 (eval $ac_compile) 2>&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } &&
3294 { ac_try
='test -s conftest.$ac_objext'
3295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); }; }; then
3300 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-qual"
3301 echo "$as_me:$LINENO: result: yes" >&5
3302 echo "${ECHO_T}yes" >&6
3304 echo "$as_me: failed program was:" >&5
3305 cat conftest.
$ac_ext >&5
3306 echo "$as_me:$LINENO: result: no" >&5
3307 echo "${ECHO_T}no" >&6
3309 rm -f conftest.
$ac_objext conftest.
$ac_ext
3310 CFLAGS
="$ac_save_CFLAGS"
3311 echo "$as_me:$LINENO: checking whether compiler accepts -Wformat" >&5
3312 echo $ECHO_N "checking whether compiler accepts -Wformat... $ECHO_C" >&6
3314 ac_save_CFLAGS
="$CFLAGS"
3315 CFLAGS
="$CFLAGS -Wformat"
3316 cat >conftest.
$ac_ext <<_ACEOF
3317 #line $LINENO "configure"
3318 #include "confdefs.h"
3320 #ifdef F77_DUMMY_MAIN
3324 int F77_DUMMY_MAIN() { return 1; }
3334 rm -f conftest.
$ac_objext
3335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3336 (eval $ac_compile) 2>&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } &&
3340 { ac_try
='test -s conftest.$ac_objext'
3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; }; then
3346 WARNING_CFLAGS
="$WARNING_CFLAGS -Wformat"
3347 echo "$as_me:$LINENO: result: yes" >&5
3348 echo "${ECHO_T}yes" >&6
3350 echo "$as_me: failed program was:" >&5
3351 cat conftest.
$ac_ext >&5
3352 echo "$as_me:$LINENO: result: no" >&5
3353 echo "${ECHO_T}no" >&6
3355 rm -f conftest.
$ac_objext conftest.
$ac_ext
3356 CFLAGS
="$ac_save_CFLAGS"
3357 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-declarations" >&5
3358 echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6
3360 ac_save_CFLAGS
="$CFLAGS"
3361 CFLAGS
="$CFLAGS -Wmissing-declarations"
3362 cat >conftest.
$ac_ext <<_ACEOF
3363 #line $LINENO "configure"
3364 #include "confdefs.h"
3366 #ifdef F77_DUMMY_MAIN
3370 int F77_DUMMY_MAIN() { return 1; }
3380 rm -f conftest.
$ac_objext
3381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3382 (eval $ac_compile) 2>&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } &&
3386 { ac_try
='test -s conftest.$ac_objext'
3387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; }; then
3392 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-declarations"
3393 echo "$as_me:$LINENO: result: yes" >&5
3394 echo "${ECHO_T}yes" >&6
3396 echo "$as_me: failed program was:" >&5
3397 cat conftest.
$ac_ext >&5
3398 echo "$as_me:$LINENO: result: no" >&5
3399 echo "${ECHO_T}no" >&6
3401 rm -f conftest.
$ac_objext conftest.
$ac_ext
3402 CFLAGS
="$ac_save_CFLAGS"
3403 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-prototypes" >&5
3404 echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6
3406 ac_save_CFLAGS
="$CFLAGS"
3407 CFLAGS
="$CFLAGS -Wmissing-prototypes"
3408 cat >conftest.
$ac_ext <<_ACEOF
3409 #line $LINENO "configure"
3410 #include "confdefs.h"
3412 #ifdef F77_DUMMY_MAIN
3416 int F77_DUMMY_MAIN() { return 1; }
3426 rm -f conftest.
$ac_objext
3427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3428 (eval $ac_compile) 2>&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } &&
3432 { ac_try
='test -s conftest.$ac_objext'
3433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; }; then
3438 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-prototypes"
3439 echo "$as_me:$LINENO: result: yes" >&5
3440 echo "${ECHO_T}yes" >&6
3442 echo "$as_me: failed program was:" >&5
3443 cat conftest.
$ac_ext >&5
3444 echo "$as_me:$LINENO: result: no" >&5
3445 echo "${ECHO_T}no" >&6
3447 rm -f conftest.
$ac_objext conftest.
$ac_ext
3448 CFLAGS
="$ac_save_CFLAGS"
3449 echo "$as_me:$LINENO: checking whether compiler accepts -Wnested-externs" >&5
3450 echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6
3452 ac_save_CFLAGS
="$CFLAGS"
3453 CFLAGS
="$CFLAGS -Wnested-externs"
3454 cat >conftest.
$ac_ext <<_ACEOF
3455 #line $LINENO "configure"
3456 #include "confdefs.h"
3458 #ifdef F77_DUMMY_MAIN
3462 int F77_DUMMY_MAIN() { return 1; }
3472 rm -f conftest.
$ac_objext
3473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3474 (eval $ac_compile) 2>&5
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); } &&
3478 { ac_try
='test -s conftest.$ac_objext'
3479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); }; }; then
3484 WARNING_CFLAGS
="$WARNING_CFLAGS -Wnested-externs"
3485 echo "$as_me:$LINENO: result: yes" >&5
3486 echo "${ECHO_T}yes" >&6
3488 echo "$as_me: failed program was:" >&5
3489 cat conftest.
$ac_ext >&5
3490 echo "$as_me:$LINENO: result: no" >&5
3491 echo "${ECHO_T}no" >&6
3493 rm -f conftest.
$ac_objext conftest.
$ac_ext
3494 CFLAGS
="$ac_save_CFLAGS"
3495 echo "$as_me:$LINENO: checking whether compiler accepts -Wshadow" >&5
3496 echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6
3498 ac_save_CFLAGS
="$CFLAGS"
3499 CFLAGS
="$CFLAGS -Wshadow"
3500 cat >conftest.
$ac_ext <<_ACEOF
3501 #line $LINENO "configure"
3502 #include "confdefs.h"
3504 #ifdef F77_DUMMY_MAIN
3508 int F77_DUMMY_MAIN() { return 1; }
3518 rm -f conftest.
$ac_objext
3519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3520 (eval $ac_compile) 2>&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } &&
3524 { ac_try
='test -s conftest.$ac_objext'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3530 WARNING_CFLAGS
="$WARNING_CFLAGS -Wshadow"
3531 echo "$as_me:$LINENO: result: yes" >&5
3532 echo "${ECHO_T}yes" >&6
3534 echo "$as_me: failed program was:" >&5
3535 cat conftest.
$ac_ext >&5
3536 echo "$as_me:$LINENO: result: no" >&5
3537 echo "${ECHO_T}no" >&6
3539 rm -f conftest.
$ac_objext conftest.
$ac_ext
3540 CFLAGS
="$ac_save_CFLAGS"
3541 echo "$as_me:$LINENO: checking whether compiler accepts -Wstrict-prototypes" >&5
3542 echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6
3544 ac_save_CFLAGS
="$CFLAGS"
3545 CFLAGS
="$CFLAGS -Wstrict-prototypes"
3546 cat >conftest.
$ac_ext <<_ACEOF
3547 #line $LINENO "configure"
3548 #include "confdefs.h"
3550 #ifdef F77_DUMMY_MAIN
3554 int F77_DUMMY_MAIN() { return 1; }
3564 rm -f conftest.
$ac_objext
3565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566 (eval $ac_compile) 2>&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } &&
3570 { ac_try
='test -s conftest.$ac_objext'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; }; then
3576 WARNING_CFLAGS
="$WARNING_CFLAGS -Wstrict-prototypes"
3577 echo "$as_me:$LINENO: result: yes" >&5
3578 echo "${ECHO_T}yes" >&6
3580 echo "$as_me: failed program was:" >&5
3581 cat conftest.
$ac_ext >&5
3582 echo "$as_me:$LINENO: result: no" >&5
3583 echo "${ECHO_T}no" >&6
3585 rm -f conftest.
$ac_objext conftest.
$ac_ext
3586 CFLAGS
="$ac_save_CFLAGS"
3587 echo "$as_me:$LINENO: checking whether compiler accepts -Wwrite-strings" >&5
3588 echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6
3590 ac_save_CFLAGS
="$CFLAGS"
3591 CFLAGS
="$CFLAGS -Wwrite-strings"
3592 cat >conftest.
$ac_ext <<_ACEOF
3593 #line $LINENO "configure"
3594 #include "confdefs.h"
3596 #ifdef F77_DUMMY_MAIN
3600 int F77_DUMMY_MAIN() { return 1; }
3610 rm -f conftest.
$ac_objext
3611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3612 (eval $ac_compile) 2>&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } &&
3616 { ac_try
='test -s conftest.$ac_objext'
3617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }; }; then
3622 WARNING_CFLAGS
="$WARNING_CFLAGS -Wwrite-strings"
3623 echo "$as_me:$LINENO: result: yes" >&5
3624 echo "${ECHO_T}yes" >&6
3626 echo "$as_me: failed program was:" >&5
3627 cat conftest.
$ac_ext >&5
3628 echo "$as_me:$LINENO: result: no" >&5
3629 echo "${ECHO_T}no" >&6
3631 rm -f conftest.
$ac_objext conftest.
$ac_ext
3632 CFLAGS
="$ac_save_CFLAGS"
3633 CFLAGS
="$CFLAGS $WARNING_CFLAGS"
3636 # Checks for libraries.
3638 cat >>confdefs.h
<<\_ACEOF
3639 #define _GNU_SOURCE 1
3642 # Checks for header files.
3643 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3644 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3645 if test "${ac_cv_header_stdc+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 cat >conftest.
$ac_ext <<_ACEOF
3649 #line $LINENO "configure"
3650 #include "confdefs.h"
3657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3658 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3660 egrep -v '^ *\+' conftest.er1
>conftest.err
3662 cat conftest.err
>&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } >/dev
/null
; then
3665 if test -s conftest.err
; then
3666 ac_cpp_err
=$ac_c_preproc_warn_flag
3673 if test -z "$ac_cpp_err"; then
3674 ac_cv_header_stdc
=yes
3676 echo "$as_me: failed program was:" >&5
3677 cat conftest.
$ac_ext >&5
3678 ac_cv_header_stdc
=no
3680 rm -f conftest.err conftest.
$ac_ext
3682 if test $ac_cv_header_stdc = yes; then
3683 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3684 cat >conftest.
$ac_ext <<_ACEOF
3685 #line $LINENO "configure"
3686 #include "confdefs.h"
3690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3691 egrep "memchr" >/dev
/null
2>&1; then
3694 ac_cv_header_stdc
=no
3700 if test $ac_cv_header_stdc = yes; then
3701 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3702 cat >conftest.
$ac_ext <<_ACEOF
3703 #line $LINENO "configure"
3704 #include "confdefs.h"
3708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3709 egrep "free" >/dev
/null
2>&1; then
3712 ac_cv_header_stdc
=no
3718 if test $ac_cv_header_stdc = yes; then
3719 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3720 if test "$cross_compiling" = yes; then
3723 cat >conftest.
$ac_ext <<_ACEOF
3724 #line $LINENO "configure"
3725 #include "confdefs.h"
3727 #if ((' ' & 0x0FF) == 0x020)
3728 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3729 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3731 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3732 || ('j' <= (c) && (c) <= 'r') \
3733 || ('s' <= (c) && (c) <= 'z'))
3734 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3737 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3742 for (i = 0; i < 256; i++)
3743 if (XOR (islower (i), ISLOWER (i))
3744 || toupper (i) != TOUPPER (i))
3749 rm -f conftest
$ac_exeext
3750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3751 (eval $ac_link) 2>&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; }; then
3762 echo "$as_me: program exited with status $ac_status" >&5
3763 echo "$as_me: failed program was:" >&5
3764 cat conftest.
$ac_ext >&5
3766 ac_cv_header_stdc
=no
3768 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3772 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3773 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3774 if test $ac_cv_header_stdc = yes; then
3776 cat >>confdefs.h
<<\_ACEOF
3777 #define STDC_HEADERS 1
3782 for ac_header
in ctype.h locale.h memory.h stdlib.h string.h unistd.h
3784 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3786 echo "$as_me:$LINENO: checking for $ac_header" >&5
3787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3794 # Is the header compilable?
3795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3797 cat >conftest.
$ac_ext <<_ACEOF
3798 #line $LINENO "configure"
3799 #include "confdefs.h"
3800 $ac_includes_default
3801 #include <$ac_header>
3803 rm -f conftest.
$ac_objext
3804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3805 (eval $ac_compile) 2>&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } &&
3809 { ac_try
='test -s conftest.$ac_objext'
3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; }; then
3815 ac_header_compiler
=yes
3817 echo "$as_me: failed program was:" >&5
3818 cat conftest.
$ac_ext >&5
3819 ac_header_compiler
=no
3821 rm -f conftest.
$ac_objext conftest.
$ac_ext
3822 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3823 echo "${ECHO_T}$ac_header_compiler" >&6
3825 # Is the header present?
3826 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3828 cat >conftest.
$ac_ext <<_ACEOF
3829 #line $LINENO "configure"
3830 #include "confdefs.h"
3831 #include <$ac_header>
3833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3834 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3836 egrep -v '^ *\+' conftest.er1
>conftest.err
3838 cat conftest.err
>&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } >/dev
/null
; then
3841 if test -s conftest.err
; then
3842 ac_cpp_err
=$ac_c_preproc_warn_flag
3849 if test -z "$ac_cpp_err"; then
3850 ac_header_preproc
=yes
3852 echo "$as_me: failed program was:" >&5
3853 cat conftest.
$ac_ext >&5
3854 ac_header_preproc
=no
3856 rm -f conftest.err conftest.
$ac_ext
3857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3858 echo "${ECHO_T}$ac_header_preproc" >&6
3860 # So? What about this header?
3861 case $ac_header_compiler:$ac_header_preproc in
3863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3868 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
3869 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
3870 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3871 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3875 echo "$as_me:$LINENO: checking for $ac_header" >&5
3876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 eval "$as_ac_Header=$ac_header_preproc"
3882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3887 cat >>confdefs.h
<<_ACEOF
3888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3895 # Checks for typedefs.
3897 # Checks for structures.
3899 # Checks for compiler characteristics.
3900 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3901 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3902 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 ac_cv_prog_cc_stdc
=no
3907 cat >conftest.
$ac_ext <<_ACEOF
3908 #line $LINENO "configure"
3909 #include "confdefs.h"
3912 #include <sys/types.h>
3913 #include <sys/stat.h>
3914 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3915 struct buf { int x; };
3916 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3917 static char *e (p, i)
3923 static char *f (char * (*g) (char **, int), char **p, ...)
3928 s = g (p, va_arg (v,int));
3932 int test (int i, double x);
3933 struct s1 {int (*f) (int a);};
3934 struct s2 {int (*f) (double a);};
3935 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3938 #ifdef F77_DUMMY_MAIN
3942 int F77_DUMMY_MAIN() { return 1; }
3947 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3952 # Don't try gcc -ansi; that turns off useful extensions and
3953 # breaks some systems' header files.
3954 # AIX -qlanglvl=ansi
3955 # Ultrix and OSF/1 -std1
3956 # HP-UX 10.20 and later -Ae
3957 # HP-UX older versions -Aa -D_HPUX_SOURCE
3958 # SVR4 -Xc -D__EXTENSIONS__
3959 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3961 CC
="$ac_save_CC $ac_arg"
3962 rm -f conftest.
$ac_objext
3963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3964 (eval $ac_compile) 2>&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); } &&
3968 { ac_try
='test -s conftest.$ac_objext'
3969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; }; then
3974 ac_cv_prog_cc_stdc
=$ac_arg
3977 echo "$as_me: failed program was:" >&5
3978 cat conftest.
$ac_ext >&5
3980 rm -f conftest.
$ac_objext
3982 rm -f conftest.
$ac_ext conftest.
$ac_objext
3987 case "x$ac_cv_prog_cc_stdc" in
3989 echo "$as_me:$LINENO: result: none needed" >&5
3990 echo "${ECHO_T}none needed" >&6 ;;
3992 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3993 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3994 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3997 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3998 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3999 if test "${ac_cv_c_const+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 cat >conftest.
$ac_ext <<_ACEOF
4003 #line $LINENO "configure"
4004 #include "confdefs.h"
4006 #ifdef F77_DUMMY_MAIN
4010 int F77_DUMMY_MAIN() { return 1; }
4015 /* FIXME: Include the comments suggested by Paul. */
4017 /* Ultrix mips cc rejects this. */
4018 typedef int charset[2];
4020 /* SunOS 4.1.1 cc rejects this. */
4021 char const *const *ccp;
4023 /* NEC SVR4.0.2 mips cc rejects this. */
4024 struct point {int x, y;};
4025 static struct point const zero = {0,0};
4026 /* AIX XL C 1.02.0.0 rejects this.
4027 It does not let you subtract one const X* pointer from another in
4028 an arm of an if-expression whose if-part is not a constant
4030 const char *g = "string";
4031 ccp = &g + (g ? g-g : 0);
4032 /* HPUX 7.0 cc rejects these. */
4035 ccp = (char const *const *) p;
4036 { /* SCO 3.2v4 cc rejects this. */
4038 char const *s = 0 ? (char *) 0 : (char const *) 0;
4042 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4044 const int *foo = &x[0];
4047 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4048 typedef const int *iptr;
4052 { /* AIX XL C 1.02.0.0 rejects this saying
4053 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4054 struct s { int j; const int *ap[3]; };
4055 struct s *b; b->j = 5;
4057 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4066 rm -f conftest.
$ac_objext
4067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4068 (eval $ac_compile) 2>&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } &&
4072 { ac_try
='test -s conftest.$ac_objext'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4080 echo "$as_me: failed program was:" >&5
4081 cat conftest.
$ac_ext >&5
4084 rm -f conftest.
$ac_objext conftest.
$ac_ext
4086 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4087 echo "${ECHO_T}$ac_cv_c_const" >&6
4088 if test $ac_cv_c_const = no
; then
4090 cat >>confdefs.h
<<\_ACEOF
4096 echo "$as_me:$LINENO: checking for inline" >&5
4097 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4098 if test "${ac_cv_c_inline+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 for ac_kw
in inline __inline__ __inline
; do
4103 cat >conftest.
$ac_ext <<_ACEOF
4104 #line $LINENO "configure"
4105 #include "confdefs.h"
4107 static $ac_kw int static_foo () {return 0; }
4108 $ac_kw int foo () {return 0; }
4112 rm -f conftest.
$ac_objext
4113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4114 (eval $ac_compile) 2>&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } &&
4118 { ac_try
='test -s conftest.$ac_objext'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; }; then
4124 ac_cv_c_inline
=$ac_kw; break
4126 echo "$as_me: failed program was:" >&5
4127 cat conftest.
$ac_ext >&5
4129 rm -f conftest.
$ac_objext conftest.
$ac_ext
4133 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4134 echo "${ECHO_T}$ac_cv_c_inline" >&6
4135 case $ac_cv_c_inline in
4138 cat >>confdefs.h
<<\_ACEOF
4142 *) cat >>confdefs.h
<<_ACEOF
4143 #define inline $ac_cv_c_inline
4148 echo "$as_me:$LINENO: checking for function prototypes" >&5
4149 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4150 if test "$am_cv_prog_cc_stdc" != no
; then
4151 echo "$as_me:$LINENO: result: yes" >&5
4152 echo "${ECHO_T}yes" >&6
4154 cat >>confdefs.h
<<\_ACEOF
4155 #define PROTOTYPES 1
4160 echo "$as_me:$LINENO: result: no" >&5
4161 echo "${ECHO_T}no" >&6
4162 U
=_ ANSI2KNR
=.
/ansi2knr
4164 # Ensure some checks needed by ansi2knr itself.
4165 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4166 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4167 if test "${ac_cv_header_stdc+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 cat >conftest.
$ac_ext <<_ACEOF
4171 #line $LINENO "configure"
4172 #include "confdefs.h"
4179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4180 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4182 egrep -v '^ *\+' conftest.er1
>conftest.err
4184 cat conftest.err
>&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } >/dev
/null
; then
4187 if test -s conftest.err
; then
4188 ac_cpp_err
=$ac_c_preproc_warn_flag
4195 if test -z "$ac_cpp_err"; then
4196 ac_cv_header_stdc
=yes
4198 echo "$as_me: failed program was:" >&5
4199 cat conftest.
$ac_ext >&5
4200 ac_cv_header_stdc
=no
4202 rm -f conftest.err conftest.
$ac_ext
4204 if test $ac_cv_header_stdc = yes; then
4205 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4206 cat >conftest.
$ac_ext <<_ACEOF
4207 #line $LINENO "configure"
4208 #include "confdefs.h"
4212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4213 egrep "memchr" >/dev
/null
2>&1; then
4216 ac_cv_header_stdc
=no
4222 if test $ac_cv_header_stdc = yes; then
4223 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4224 cat >conftest.
$ac_ext <<_ACEOF
4225 #line $LINENO "configure"
4226 #include "confdefs.h"
4230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4231 egrep "free" >/dev
/null
2>&1; then
4234 ac_cv_header_stdc
=no
4240 if test $ac_cv_header_stdc = yes; then
4241 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4242 if test "$cross_compiling" = yes; then
4245 cat >conftest.
$ac_ext <<_ACEOF
4246 #line $LINENO "configure"
4247 #include "confdefs.h"
4249 #if ((' ' & 0x0FF) == 0x020)
4250 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4251 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4253 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4254 || ('j' <= (c) && (c) <= 'r') \
4255 || ('s' <= (c) && (c) <= 'z'))
4256 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4259 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4264 for (i = 0; i < 256; i++)
4265 if (XOR (islower (i), ISLOWER (i))
4266 || toupper (i) != TOUPPER (i))
4271 rm -f conftest
$ac_exeext
4272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4273 (eval $ac_link) 2>&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; }; then
4284 echo "$as_me: program exited with status $ac_status" >&5
4285 echo "$as_me: failed program was:" >&5
4286 cat conftest.
$ac_ext >&5
4288 ac_cv_header_stdc
=no
4290 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4294 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4295 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4296 if test $ac_cv_header_stdc = yes; then
4298 cat >>confdefs.h
<<\_ACEOF
4299 #define STDC_HEADERS 1
4304 for ac_header
in string.h
4306 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4308 echo "$as_me:$LINENO: checking for $ac_header" >&5
4309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4316 # Is the header compilable?
4317 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4319 cat >conftest.
$ac_ext <<_ACEOF
4320 #line $LINENO "configure"
4321 #include "confdefs.h"
4322 $ac_includes_default
4323 #include <$ac_header>
4325 rm -f conftest.
$ac_objext
4326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4327 (eval $ac_compile) 2>&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } &&
4331 { ac_try
='test -s conftest.$ac_objext'
4332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; }; then
4337 ac_header_compiler
=yes
4339 echo "$as_me: failed program was:" >&5
4340 cat conftest.
$ac_ext >&5
4341 ac_header_compiler
=no
4343 rm -f conftest.
$ac_objext conftest.
$ac_ext
4344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4345 echo "${ECHO_T}$ac_header_compiler" >&6
4347 # Is the header present?
4348 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4350 cat >conftest.
$ac_ext <<_ACEOF
4351 #line $LINENO "configure"
4352 #include "confdefs.h"
4353 #include <$ac_header>
4355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4356 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4358 egrep -v '^ *\+' conftest.er1
>conftest.err
4360 cat conftest.err
>&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } >/dev
/null
; then
4363 if test -s conftest.err
; then
4364 ac_cpp_err
=$ac_c_preproc_warn_flag
4371 if test -z "$ac_cpp_err"; then
4372 ac_header_preproc
=yes
4374 echo "$as_me: failed program was:" >&5
4375 cat conftest.
$ac_ext >&5
4376 ac_header_preproc
=no
4378 rm -f conftest.err conftest.
$ac_ext
4379 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4380 echo "${ECHO_T}$ac_header_preproc" >&6
4382 # So? What about this header?
4383 case $ac_header_compiler:$ac_header_preproc in
4385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
4391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
4392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4397 echo "$as_me:$LINENO: checking for $ac_header" >&5
4398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 eval "$as_ac_Header=$ac_header_preproc"
4404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4409 cat >>confdefs.h
<<_ACEOF
4410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4417 # Checks for library functions.
4418 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4419 # for constant arguments. Useless!
4420 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4421 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4422 if test "${ac_cv_working_alloca_h+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 cat >conftest.
$ac_ext <<_ACEOF
4426 #line $LINENO "configure"
4427 #include "confdefs.h"
4429 #ifdef F77_DUMMY_MAIN
4433 int F77_DUMMY_MAIN() { return 1; }
4438 char *p = (char *) alloca (2 * sizeof (int));
4443 rm -f conftest.
$ac_objext conftest
$ac_exeext
4444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4445 (eval $ac_link) 2>&5
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); } &&
4449 { ac_try
='test -s conftest$ac_exeext'
4450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); }; }; then
4455 ac_cv_working_alloca_h
=yes
4457 echo "$as_me: failed program was:" >&5
4458 cat conftest.
$ac_ext >&5
4459 ac_cv_working_alloca_h
=no
4461 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4463 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4464 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4465 if test $ac_cv_working_alloca_h = yes; then
4467 cat >>confdefs.h
<<\_ACEOF
4468 #define HAVE_ALLOCA_H 1
4473 echo "$as_me:$LINENO: checking for alloca" >&5
4474 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4475 if test "${ac_cv_func_alloca_works+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 cat >conftest.
$ac_ext <<_ACEOF
4479 #line $LINENO "configure"
4480 #include "confdefs.h"
4482 # define alloca __builtin_alloca
4485 # include <malloc.h>
4486 # define alloca _alloca
4489 # include <alloca.h>
4494 # ifndef alloca /* predefined by HP cc +Olibcalls */
4502 #ifdef F77_DUMMY_MAIN
4506 int F77_DUMMY_MAIN() { return 1; }
4511 char *p = (char *) alloca (1);
4516 rm -f conftest.
$ac_objext conftest
$ac_exeext
4517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4518 (eval $ac_link) 2>&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } &&
4522 { ac_try
='test -s conftest$ac_exeext'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; }; then
4528 ac_cv_func_alloca_works
=yes
4530 echo "$as_me: failed program was:" >&5
4531 cat conftest.
$ac_ext >&5
4532 ac_cv_func_alloca_works
=no
4534 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4536 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4537 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4539 if test $ac_cv_func_alloca_works = yes; then
4541 cat >>confdefs.h
<<\_ACEOF
4542 #define HAVE_ALLOCA 1
4546 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4547 # that cause trouble. Some versions do not even contain alloca or
4548 # contain a buggy version. If you still want to use their alloca,
4549 # use ar to extract alloca.o from them instead of compiling alloca.c.
4551 ALLOCA
=alloca.
$ac_objext
4553 cat >>confdefs.h
<<\_ACEOF
4557 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4558 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4559 if test "${ac_cv_os_cray+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 cat >conftest.
$ac_ext <<_ACEOF
4563 #line $LINENO "configure"
4564 #include "confdefs.h"
4565 #if defined(CRAY) && ! defined(CRAY2)
4572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4573 egrep "webecray" >/dev
/null
2>&1; then
4581 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4582 echo "${ECHO_T}$ac_cv_os_cray" >&6
4583 if test $ac_cv_os_cray = yes; then
4584 for ac_func
in _getb67 GETB67 getb67
; do
4585 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4586 echo "$as_me:$LINENO: checking for $ac_func" >&5
4587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4588 if eval "test \"\${$as_ac_var+set}\" = set"; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4591 cat >conftest.
$ac_ext <<_ACEOF
4592 #line $LINENO "configure"
4593 #include "confdefs.h"
4594 /* System header to define __stub macros and hopefully few prototypes,
4595 which can conflict with char $ac_func (); below. */
4597 /* Override any gcc2 internal prototype to avoid an error. */
4601 /* We use char because int might match the return type of a gcc2
4602 builtin and then its argument prototype would still apply. */
4606 #ifdef F77_DUMMY_MAIN
4610 int F77_DUMMY_MAIN() { return 1; }
4615 /* The GNU C library defines this for functions which it implements
4616 to always fail with ENOSYS. Some functions are actually named
4617 something starting with __ and the normal name is an alias. */
4618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4628 rm -f conftest.
$ac_objext conftest
$ac_exeext
4629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4630 (eval $ac_link) 2>&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); } &&
4634 { ac_try
='test -s conftest$ac_exeext'
4635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; }; then
4640 eval "$as_ac_var=yes"
4642 echo "$as_me: failed program was:" >&5
4643 cat conftest.
$ac_ext >&5
4644 eval "$as_ac_var=no"
4646 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4650 if test `eval echo '${'$as_ac_var'}'` = yes; then
4652 cat >>confdefs.h
<<_ACEOF
4653 #define CRAY_STACKSEG_END $ac_func
4662 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4663 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4664 if test "${ac_cv_c_stack_direction+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 if test "$cross_compiling" = yes; then
4668 ac_cv_c_stack_direction
=0
4670 cat >conftest.
$ac_ext <<_ACEOF
4671 #line $LINENO "configure"
4672 #include "confdefs.h"
4674 find_stack_direction ()
4676 static char *addr = 0;
4681 return find_stack_direction ();
4684 return (&dummy > addr) ? 1 : -1;
4690 exit (find_stack_direction () < 0);
4693 rm -f conftest
$ac_exeext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4695 (eval $ac_link) 2>&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; }; then
4704 ac_cv_c_stack_direction
=1
4706 echo "$as_me: program exited with status $ac_status" >&5
4707 echo "$as_me: failed program was:" >&5
4708 cat conftest.
$ac_ext >&5
4710 ac_cv_c_stack_direction
=-1
4712 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4715 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4716 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4718 cat >>confdefs.h
<<_ACEOF
4719 #define STACK_DIRECTION $ac_cv_c_stack_direction
4724 for ac_func
in mkstemp setlocale
4726 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4727 echo "$as_me:$LINENO: checking for $ac_func" >&5
4728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4729 if eval "test \"\${$as_ac_var+set}\" = set"; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4732 cat >conftest.
$ac_ext <<_ACEOF
4733 #line $LINENO "configure"
4734 #include "confdefs.h"
4735 /* System header to define __stub macros and hopefully few prototypes,
4736 which can conflict with char $ac_func (); below. */
4738 /* Override any gcc2 internal prototype to avoid an error. */
4742 /* We use char because int might match the return type of a gcc2
4743 builtin and then its argument prototype would still apply. */
4747 #ifdef F77_DUMMY_MAIN
4751 int F77_DUMMY_MAIN() { return 1; }
4756 /* The GNU C library defines this for functions which it implements
4757 to always fail with ENOSYS. Some functions are actually named
4758 something starting with __ and the normal name is an alias. */
4759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4769 rm -f conftest.
$ac_objext conftest
$ac_exeext
4770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4771 (eval $ac_link) 2>&5
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); } &&
4775 { ac_try
='test -s conftest$ac_exeext'
4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; }; then
4781 eval "$as_ac_var=yes"
4783 echo "$as_me: failed program was:" >&5
4784 cat conftest.
$ac_ext >&5
4785 eval "$as_ac_var=no"
4787 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4790 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4791 if test `eval echo '${'$as_ac_var'}'` = yes; then
4792 cat >>confdefs.h
<<_ACEOF
4793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4799 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
4800 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
4801 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 cat >conftest.
$ac_ext <<_ACEOF
4805 #line $LINENO "configure"
4806 #include "confdefs.h"
4807 $ac_includes_default
4808 #ifdef F77_DUMMY_MAIN
4812 int F77_DUMMY_MAIN() { return 1; }
4818 char *p = (char *) stpcpy;
4825 rm -f conftest.
$ac_objext
4826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4827 (eval $ac_compile) 2>&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
4831 { ac_try
='test -s conftest.$ac_objext'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; }; then
4837 ac_cv_have_decl_stpcpy
=yes
4839 echo "$as_me: failed program was:" >&5
4840 cat conftest.
$ac_ext >&5
4841 ac_cv_have_decl_stpcpy
=no
4843 rm -f conftest.
$ac_objext conftest.
$ac_ext
4845 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
4846 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
4847 if test $ac_cv_have_decl_stpcpy = yes; then
4849 cat >>confdefs.h
<<_ACEOF
4850 #define HAVE_DECL_STPCPY 1
4854 cat >>confdefs.h
<<_ACEOF
4855 #define HAVE_DECL_STPCPY 0
4859 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
4860 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
4861 if test "${ac_cv_have_decl_strndup+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 cat >conftest.
$ac_ext <<_ACEOF
4865 #line $LINENO "configure"
4866 #include "confdefs.h"
4867 $ac_includes_default
4868 #ifdef F77_DUMMY_MAIN
4872 int F77_DUMMY_MAIN() { return 1; }
4878 char *p = (char *) strndup;
4885 rm -f conftest.
$ac_objext
4886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4887 (eval $ac_compile) 2>&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } &&
4891 { ac_try
='test -s conftest.$ac_objext'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; }; then
4897 ac_cv_have_decl_strndup
=yes
4899 echo "$as_me: failed program was:" >&5
4900 cat conftest.
$ac_ext >&5
4901 ac_cv_have_decl_strndup
=no
4903 rm -f conftest.
$ac_objext conftest.
$ac_ext
4905 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
4906 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
4907 if test $ac_cv_have_decl_strndup = yes; then
4909 cat >>confdefs.h
<<_ACEOF
4910 #define HAVE_DECL_STRNDUP 1
4914 cat >>confdefs.h
<<_ACEOF
4915 #define HAVE_DECL_STRNDUP 0
4919 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
4920 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
4921 if test "${ac_cv_have_decl_strnlen+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 cat >conftest.
$ac_ext <<_ACEOF
4925 #line $LINENO "configure"
4926 #include "confdefs.h"
4927 $ac_includes_default
4928 #ifdef F77_DUMMY_MAIN
4932 int F77_DUMMY_MAIN() { return 1; }
4938 char *p = (char *) strnlen;
4945 rm -f conftest.
$ac_objext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947 (eval $ac_compile) 2>&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); } &&
4951 { ac_try
='test -s conftest.$ac_objext'
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; }; then
4957 ac_cv_have_decl_strnlen
=yes
4959 echo "$as_me: failed program was:" >&5
4960 cat conftest.
$ac_ext >&5
4961 ac_cv_have_decl_strnlen
=no
4963 rm -f conftest.
$ac_objext conftest.
$ac_ext
4965 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
4966 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
4967 if test $ac_cv_have_decl_strnlen = yes; then
4969 cat >>confdefs.h
<<_ACEOF
4970 #define HAVE_DECL_STRNLEN 1
4974 cat >>confdefs.h
<<_ACEOF
4975 #define HAVE_DECL_STRNLEN 0
4979 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
4980 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
4981 if test "${ac_cv_have_decl_memchr+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4984 cat >conftest.
$ac_ext <<_ACEOF
4985 #line $LINENO "configure"
4986 #include "confdefs.h"
4987 $ac_includes_default
4988 #ifdef F77_DUMMY_MAIN
4992 int F77_DUMMY_MAIN() { return 1; }
4998 char *p = (char *) memchr;
5005 rm -f conftest.
$ac_objext
5006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5007 (eval $ac_compile) 2>&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try
='test -s conftest.$ac_objext'
5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); }; }; then
5017 ac_cv_have_decl_memchr
=yes
5019 echo "$as_me: failed program was:" >&5
5020 cat conftest.
$ac_ext >&5
5021 ac_cv_have_decl_memchr
=no
5023 rm -f conftest.
$ac_objext conftest.
$ac_ext
5025 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
5026 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
5027 if test $ac_cv_have_decl_memchr = yes; then
5029 cat >>confdefs.h
<<_ACEOF
5030 #define HAVE_DECL_MEMCHR 1
5034 cat >>confdefs.h
<<_ACEOF
5035 #define HAVE_DECL_MEMCHR 0
5040 for ac_func
in stpcpy strndup strnlen strspn memchr
5042 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5043 echo "$as_me:$LINENO: checking for $ac_func" >&5
5044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5045 if eval "test \"\${$as_ac_var+set}\" = set"; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 cat >conftest.
$ac_ext <<_ACEOF
5049 #line $LINENO "configure"
5050 #include "confdefs.h"
5051 /* System header to define __stub macros and hopefully few prototypes,
5052 which can conflict with char $ac_func (); below. */
5054 /* Override any gcc2 internal prototype to avoid an error. */
5058 /* We use char because int might match the return type of a gcc2
5059 builtin and then its argument prototype would still apply. */
5063 #ifdef F77_DUMMY_MAIN
5067 int F77_DUMMY_MAIN() { return 1; }
5072 /* The GNU C library defines this for functions which it implements
5073 to always fail with ENOSYS. Some functions are actually named
5074 something starting with __ and the normal name is an alias. */
5075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5085 rm -f conftest.
$ac_objext conftest
$ac_exeext
5086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5087 (eval $ac_link) 2>&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); } &&
5091 { ac_try
='test -s conftest$ac_exeext'
5092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; }; then
5097 eval "$as_ac_var=yes"
5099 echo "$as_me: failed program was:" >&5
5100 cat conftest.
$ac_ext >&5
5101 eval "$as_ac_var=no"
5103 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5106 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5107 if test `eval echo '${'$as_ac_var'}'` = yes; then
5108 cat >>confdefs.h
<<_ACEOF
5109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5113 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
5117 cat >>confdefs.h
<<\_ACEOF
5118 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
5121 echo "$as_me:$LINENO: checking for working malloc" >&5
5122 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
5123 if test "${jm_cv_func_working_malloc+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 if test "$cross_compiling" = yes; then
5127 jm_cv_func_working_malloc
=no
5129 cat >conftest.
$ac_ext <<_ACEOF
5130 #line $LINENO "configure"
5131 #include "confdefs.h"
5137 exit (malloc (0) ? 0 : 1);
5141 rm -f conftest
$ac_exeext
5142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5143 (eval $ac_link) 2>&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); }; }; then
5152 jm_cv_func_working_malloc
=yes
5154 echo "$as_me: program exited with status $ac_status" >&5
5155 echo "$as_me: failed program was:" >&5
5156 cat conftest.
$ac_ext >&5
5158 jm_cv_func_working_malloc
=no
5160 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5164 echo "$as_me:$LINENO: result: $jm_cv_func_working_malloc" >&5
5165 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
5166 if test $jm_cv_func_working_malloc = no
; then
5167 LIBOBJS
="$LIBOBJS malloc.$ac_objext"
5169 cat >>confdefs.h
<<\_ACEOF
5170 #define malloc rpl_malloc
5175 cat >>confdefs.h
<<\_ACEOF
5176 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
5179 echo "$as_me:$LINENO: checking for working realloc" >&5
5180 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
5181 if test "${jm_cv_func_working_realloc+set}" = set; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 if test "$cross_compiling" = yes; then
5185 jm_cv_func_working_realloc
=no
5187 cat >conftest.
$ac_ext <<_ACEOF
5188 #line $LINENO "configure"
5189 #include "confdefs.h"
5195 exit (realloc (0, 0) ? 0 : 1);
5199 rm -f conftest
$ac_exeext
5200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5201 (eval $ac_link) 2>&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; }; then
5210 jm_cv_func_working_realloc
=yes
5212 echo "$as_me: program exited with status $ac_status" >&5
5213 echo "$as_me: failed program was:" >&5
5214 cat conftest.
$ac_ext >&5
5216 jm_cv_func_working_realloc
=no
5218 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5222 echo "$as_me:$LINENO: result: $jm_cv_func_working_realloc" >&5
5223 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
5224 if test $jm_cv_func_working_realloc = no
; then
5225 LIBOBJS
="$LIBOBJS realloc.$ac_objext"
5227 cat >>confdefs.h
<<\_ACEOF
5228 #define realloc rpl_realloc
5233 for ac_func
in isascii iswprint mbsinit
5235 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5236 echo "$as_me:$LINENO: checking for $ac_func" >&5
5237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5238 if eval "test \"\${$as_ac_var+set}\" = set"; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 cat >conftest.
$ac_ext <<_ACEOF
5242 #line $LINENO "configure"
5243 #include "confdefs.h"
5244 /* System header to define __stub macros and hopefully few prototypes,
5245 which can conflict with char $ac_func (); below. */
5247 /* Override any gcc2 internal prototype to avoid an error. */
5251 /* We use char because int might match the return type of a gcc2
5252 builtin and then its argument prototype would still apply. */
5256 #ifdef F77_DUMMY_MAIN
5260 int F77_DUMMY_MAIN() { return 1; }
5265 /* The GNU C library defines this for functions which it implements
5266 to always fail with ENOSYS. Some functions are actually named
5267 something starting with __ and the normal name is an alias. */
5268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5278 rm -f conftest.
$ac_objext conftest
$ac_exeext
5279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5280 (eval $ac_link) 2>&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); } &&
5284 { ac_try
='test -s conftest$ac_exeext'
5285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; }; then
5290 eval "$as_ac_var=yes"
5292 echo "$as_me: failed program was:" >&5
5293 cat conftest.
$ac_ext >&5
5294 eval "$as_ac_var=no"
5296 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5299 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5300 if test `eval echo '${'$as_ac_var'}'` = yes; then
5301 cat >>confdefs.h
<<_ACEOF
5302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5308 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
5309 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
5310 if test "${jm_cv_func_mbrtowc+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 cat >conftest.
$ac_ext <<_ACEOF
5314 #line $LINENO "configure"
5315 #include "confdefs.h"
5317 #ifdef F77_DUMMY_MAIN
5321 int F77_DUMMY_MAIN() { return 1; }
5326 mbstate_t state; return ! (sizeof state && mbrtowc);
5331 rm -f conftest.
$ac_objext conftest
$ac_exeext
5332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5333 (eval $ac_link) 2>&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } &&
5337 { ac_try
='test -s conftest$ac_exeext'
5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; }; then
5343 jm_cv_func_mbrtowc
=yes
5345 echo "$as_me: failed program was:" >&5
5346 cat conftest.
$ac_ext >&5
5347 jm_cv_func_mbrtowc
=no
5349 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5351 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
5352 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
5353 if test $jm_cv_func_mbrtowc = yes; then
5355 cat >>confdefs.h
<<\_ACEOF
5356 #define HAVE_MBRTOWC 1
5361 for ac_header
in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
5363 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5365 echo "$as_me:$LINENO: checking for $ac_header" >&5
5366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5373 # Is the header compilable?
5374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5376 cat >conftest.
$ac_ext <<_ACEOF
5377 #line $LINENO "configure"
5378 #include "confdefs.h"
5379 $ac_includes_default
5380 #include <$ac_header>
5382 rm -f conftest.
$ac_objext
5383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5384 (eval $ac_compile) 2>&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); } &&
5388 { ac_try
='test -s conftest.$ac_objext'
5389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; }; then
5394 ac_header_compiler
=yes
5396 echo "$as_me: failed program was:" >&5
5397 cat conftest.
$ac_ext >&5
5398 ac_header_compiler
=no
5400 rm -f conftest.
$ac_objext conftest.
$ac_ext
5401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5402 echo "${ECHO_T}$ac_header_compiler" >&6
5404 # Is the header present?
5405 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5407 cat >conftest.
$ac_ext <<_ACEOF
5408 #line $LINENO "configure"
5409 #include "confdefs.h"
5410 #include <$ac_header>
5412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5413 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5415 egrep -v '^ *\+' conftest.er1
>conftest.err
5417 cat conftest.err
>&5
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); } >/dev
/null
; then
5420 if test -s conftest.err
; then
5421 ac_cpp_err
=$ac_c_preproc_warn_flag
5428 if test -z "$ac_cpp_err"; then
5429 ac_header_preproc
=yes
5431 echo "$as_me: failed program was:" >&5
5432 cat conftest.
$ac_ext >&5
5433 ac_header_preproc
=no
5435 rm -f conftest.err conftest.
$ac_ext
5436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5437 echo "${ECHO_T}$ac_header_preproc" >&6
5439 # So? What about this header?
5440 case $ac_header_compiler:$ac_header_preproc in
5442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5454 echo "$as_me:$LINENO: checking for $ac_header" >&5
5455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5457 echo $ECHO_N "(cached) $ECHO_C" >&6
5459 eval "$as_ac_Header=$ac_header_preproc"
5461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5466 cat >>confdefs.h
<<_ACEOF
5467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5474 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5475 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5476 if test "${ac_cv_header_stdc+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 cat >conftest.
$ac_ext <<_ACEOF
5480 #line $LINENO "configure"
5481 #include "confdefs.h"
5488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5489 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5491 egrep -v '^ *\+' conftest.er1
>conftest.err
5493 cat conftest.err
>&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } >/dev
/null
; then
5496 if test -s conftest.err
; then
5497 ac_cpp_err
=$ac_c_preproc_warn_flag
5504 if test -z "$ac_cpp_err"; then
5505 ac_cv_header_stdc
=yes
5507 echo "$as_me: failed program was:" >&5
5508 cat conftest.
$ac_ext >&5
5509 ac_cv_header_stdc
=no
5511 rm -f conftest.err conftest.
$ac_ext
5513 if test $ac_cv_header_stdc = yes; then
5514 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5515 cat >conftest.
$ac_ext <<_ACEOF
5516 #line $LINENO "configure"
5517 #include "confdefs.h"
5521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5522 egrep "memchr" >/dev
/null
2>&1; then
5525 ac_cv_header_stdc
=no
5531 if test $ac_cv_header_stdc = yes; then
5532 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5533 cat >conftest.
$ac_ext <<_ACEOF
5534 #line $LINENO "configure"
5535 #include "confdefs.h"
5539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5540 egrep "free" >/dev
/null
2>&1; then
5543 ac_cv_header_stdc
=no
5549 if test $ac_cv_header_stdc = yes; then
5550 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5551 if test "$cross_compiling" = yes; then
5554 cat >conftest.
$ac_ext <<_ACEOF
5555 #line $LINENO "configure"
5556 #include "confdefs.h"
5558 #if ((' ' & 0x0FF) == 0x020)
5559 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5560 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5562 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5563 || ('j' <= (c) && (c) <= 'r') \
5564 || ('s' <= (c) && (c) <= 'z'))
5565 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5568 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5573 for (i = 0; i < 256; i++)
5574 if (XOR (islower (i), ISLOWER (i))
5575 || toupper (i) != TOUPPER (i))
5580 rm -f conftest
$ac_exeext
5581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5582 (eval $ac_link) 2>&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); }; }; then
5593 echo "$as_me: program exited with status $ac_status" >&5
5594 echo "$as_me: failed program was:" >&5
5595 cat conftest.
$ac_ext >&5
5597 ac_cv_header_stdc
=no
5599 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5603 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5604 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5605 if test $ac_cv_header_stdc = yes; then
5607 cat >>confdefs.h
<<\_ACEOF
5608 #define STDC_HEADERS 1
5613 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
5614 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
5615 if test "${ac_cv_c_backslash_a+set}" = set; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
5618 cat >conftest.
$ac_ext <<_ACEOF
5619 #line $LINENO "configure"
5620 #include "confdefs.h"
5622 #ifdef F77_DUMMY_MAIN
5626 int F77_DUMMY_MAIN() { return 1; }
5635 char buf['\a' == 'a' ? -1 : 1];
5637 return buf[0] != "\a"[0];
5643 rm -f conftest.
$ac_objext
5644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5645 (eval $ac_compile) 2>&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); } &&
5649 { ac_try
='test -s conftest.$ac_objext'
5650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; }; then
5655 ac_cv_c_backslash_a
=yes
5657 echo "$as_me: failed program was:" >&5
5658 cat conftest.
$ac_ext >&5
5659 ac_cv_c_backslash_a
=no
5661 rm -f conftest.
$ac_objext conftest.
$ac_ext
5663 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
5664 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
5665 if test $ac_cv_c_backslash_a = yes; then
5667 cat >>confdefs.h
<<\_ACEOF
5668 #define HAVE_C_BACKSLASH_A 1
5673 for ac_header
in stdlib.h
5675 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5677 echo "$as_me:$LINENO: checking for $ac_header" >&5
5678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5683 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5685 # Is the header compilable?
5686 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5687 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5688 cat >conftest.
$ac_ext <<_ACEOF
5689 #line $LINENO "configure"
5690 #include "confdefs.h"
5691 $ac_includes_default
5692 #include <$ac_header>
5694 rm -f conftest.
$ac_objext
5695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5696 (eval $ac_compile) 2>&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); } &&
5700 { ac_try
='test -s conftest.$ac_objext'
5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; }; then
5706 ac_header_compiler
=yes
5708 echo "$as_me: failed program was:" >&5
5709 cat conftest.
$ac_ext >&5
5710 ac_header_compiler
=no
5712 rm -f conftest.
$ac_objext conftest.
$ac_ext
5713 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5714 echo "${ECHO_T}$ac_header_compiler" >&6
5716 # Is the header present?
5717 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5719 cat >conftest.
$ac_ext <<_ACEOF
5720 #line $LINENO "configure"
5721 #include "confdefs.h"
5722 #include <$ac_header>
5724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5725 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5727 egrep -v '^ *\+' conftest.er1
>conftest.err
5729 cat conftest.err
>&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } >/dev
/null
; then
5732 if test -s conftest.err
; then
5733 ac_cpp_err
=$ac_c_preproc_warn_flag
5740 if test -z "$ac_cpp_err"; then
5741 ac_header_preproc
=yes
5743 echo "$as_me: failed program was:" >&5
5744 cat conftest.
$ac_ext >&5
5745 ac_header_preproc
=no
5747 rm -f conftest.err conftest.
$ac_ext
5748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5749 echo "${ECHO_T}$ac_header_preproc" >&6
5751 # So? What about this header?
5752 case $ac_header_compiler:$ac_header_preproc in
5754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5757 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5762 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5766 echo "$as_me:$LINENO: checking for $ac_header" >&5
5767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 eval "$as_ac_Header=$ac_header_preproc"
5773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5778 cat >>confdefs.h
<<_ACEOF
5779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5786 echo "$as_me:$LINENO: checking for mbstate_t" >&5
5787 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
5788 if test "${ac_cv_type_mbstate_t+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 cat >conftest.
$ac_ext <<_ACEOF
5792 #line $LINENO "configure"
5793 #include "confdefs.h"
5796 # include <stdlib.h>
5799 #ifdef F77_DUMMY_MAIN
5803 int F77_DUMMY_MAIN() { return 1; }
5808 mbstate_t x; return sizeof x;
5813 rm -f conftest.
$ac_objext
5814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5815 (eval $ac_compile) 2>&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); } &&
5819 { ac_try
='test -s conftest.$ac_objext'
5820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }; }; then
5825 ac_cv_type_mbstate_t
=yes
5827 echo "$as_me: failed program was:" >&5
5828 cat conftest.
$ac_ext >&5
5829 ac_cv_type_mbstate_t
=no
5831 rm -f conftest.
$ac_objext conftest.
$ac_ext
5833 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
5834 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
5835 if test $ac_cv_type_mbstate_t = no
; then
5837 cat >>confdefs.h
<<\_ACEOF
5838 #define mbstate_t int
5843 echo "$as_me:$LINENO: checking for function prototypes" >&5
5844 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5845 if test "$am_cv_prog_cc_stdc" != no
; then
5846 echo "$as_me:$LINENO: result: yes" >&5
5847 echo "${ECHO_T}yes" >&6
5849 cat >>confdefs.h
<<\_ACEOF
5850 #define PROTOTYPES 1
5855 echo "$as_me:$LINENO: result: no" >&5
5856 echo "${ECHO_T}no" >&6
5857 U
=_ ANSI2KNR
=.
/ansi2knr
5859 # Ensure some checks needed by ansi2knr itself.
5860 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5861 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5862 if test "${ac_cv_header_stdc+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
5865 cat >conftest.
$ac_ext <<_ACEOF
5866 #line $LINENO "configure"
5867 #include "confdefs.h"
5874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5875 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5877 egrep -v '^ *\+' conftest.er1
>conftest.err
5879 cat conftest.err
>&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } >/dev
/null
; then
5882 if test -s conftest.err
; then
5883 ac_cpp_err
=$ac_c_preproc_warn_flag
5890 if test -z "$ac_cpp_err"; then
5891 ac_cv_header_stdc
=yes
5893 echo "$as_me: failed program was:" >&5
5894 cat conftest.
$ac_ext >&5
5895 ac_cv_header_stdc
=no
5897 rm -f conftest.err conftest.
$ac_ext
5899 if test $ac_cv_header_stdc = yes; then
5900 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5901 cat >conftest.
$ac_ext <<_ACEOF
5902 #line $LINENO "configure"
5903 #include "confdefs.h"
5907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5908 egrep "memchr" >/dev
/null
2>&1; then
5911 ac_cv_header_stdc
=no
5917 if test $ac_cv_header_stdc = yes; then
5918 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5919 cat >conftest.
$ac_ext <<_ACEOF
5920 #line $LINENO "configure"
5921 #include "confdefs.h"
5925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5926 egrep "free" >/dev
/null
2>&1; then
5929 ac_cv_header_stdc
=no
5935 if test $ac_cv_header_stdc = yes; then
5936 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5937 if test "$cross_compiling" = yes; then
5940 cat >conftest.
$ac_ext <<_ACEOF
5941 #line $LINENO "configure"
5942 #include "confdefs.h"
5944 #if ((' ' & 0x0FF) == 0x020)
5945 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5946 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5948 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5949 || ('j' <= (c) && (c) <= 'r') \
5950 || ('s' <= (c) && (c) <= 'z'))
5951 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5954 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5959 for (i = 0; i < 256; i++)
5960 if (XOR (islower (i), ISLOWER (i))
5961 || toupper (i) != TOUPPER (i))
5966 rm -f conftest
$ac_exeext
5967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5968 (eval $ac_link) 2>&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); }; }; then
5979 echo "$as_me: program exited with status $ac_status" >&5
5980 echo "$as_me: failed program was:" >&5
5981 cat conftest.
$ac_ext >&5
5983 ac_cv_header_stdc
=no
5985 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5989 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5990 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5991 if test $ac_cv_header_stdc = yes; then
5993 cat >>confdefs.h
<<\_ACEOF
5994 #define STDC_HEADERS 1
5999 for ac_header
in string.h
6001 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6003 echo "$as_me:$LINENO: checking for $ac_header" >&5
6004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6011 # Is the header compilable?
6012 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6014 cat >conftest.
$ac_ext <<_ACEOF
6015 #line $LINENO "configure"
6016 #include "confdefs.h"
6017 $ac_includes_default
6018 #include <$ac_header>
6020 rm -f conftest.
$ac_objext
6021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6022 (eval $ac_compile) 2>&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } &&
6026 { ac_try
='test -s conftest.$ac_objext'
6027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; }; then
6032 ac_header_compiler
=yes
6034 echo "$as_me: failed program was:" >&5
6035 cat conftest.
$ac_ext >&5
6036 ac_header_compiler
=no
6038 rm -f conftest.
$ac_objext conftest.
$ac_ext
6039 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6040 echo "${ECHO_T}$ac_header_compiler" >&6
6042 # Is the header present?
6043 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6045 cat >conftest.
$ac_ext <<_ACEOF
6046 #line $LINENO "configure"
6047 #include "confdefs.h"
6048 #include <$ac_header>
6050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6051 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6053 egrep -v '^ *\+' conftest.er1
>conftest.err
6055 cat conftest.err
>&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } >/dev
/null
; then
6058 if test -s conftest.err
; then
6059 ac_cpp_err
=$ac_c_preproc_warn_flag
6066 if test -z "$ac_cpp_err"; then
6067 ac_header_preproc
=yes
6069 echo "$as_me: failed program was:" >&5
6070 cat conftest.
$ac_ext >&5
6071 ac_header_preproc
=no
6073 rm -f conftest.err conftest.
$ac_ext
6074 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6075 echo "${ECHO_T}$ac_header_preproc" >&6
6077 # So? What about this header?
6078 case $ac_header_compiler:$ac_header_preproc in
6080 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6081 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6088 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6092 echo "$as_me:$LINENO: checking for $ac_header" >&5
6093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 eval "$as_ac_Header=$ac_header_preproc"
6099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6104 cat >>confdefs.h
<<_ACEOF
6105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6112 for ac_func
in strerror vprintf doprnt
6114 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6115 echo "$as_me:$LINENO: checking for $ac_func" >&5
6116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6117 if eval "test \"\${$as_ac_var+set}\" = set"; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 cat >conftest.
$ac_ext <<_ACEOF
6121 #line $LINENO "configure"
6122 #include "confdefs.h"
6123 /* System header to define __stub macros and hopefully few prototypes,
6124 which can conflict with char $ac_func (); below. */
6126 /* Override any gcc2 internal prototype to avoid an error. */
6130 /* We use char because int might match the return type of a gcc2
6131 builtin and then its argument prototype would still apply. */
6135 #ifdef F77_DUMMY_MAIN
6139 int F77_DUMMY_MAIN() { return 1; }
6144 /* The GNU C library defines this for functions which it implements
6145 to always fail with ENOSYS. Some functions are actually named
6146 something starting with __ and the normal name is an alias. */
6147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6157 rm -f conftest.
$ac_objext conftest
$ac_exeext
6158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6159 (eval $ac_link) 2>&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } &&
6163 { ac_try
='test -s conftest$ac_exeext'
6164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; }; then
6169 eval "$as_ac_var=yes"
6171 echo "$as_me: failed program was:" >&5
6172 cat conftest.
$ac_ext >&5
6173 eval "$as_ac_var=no"
6175 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6178 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6179 if test `eval echo '${'$as_ac_var'}'` = yes; then
6180 cat >>confdefs.h
<<_ACEOF
6181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6187 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
6188 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
6189 if test "${ac_cv_have_decl_strerror+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
6192 cat >conftest.
$ac_ext <<_ACEOF
6193 #line $LINENO "configure"
6194 #include "confdefs.h"
6195 $ac_includes_default
6196 #ifdef F77_DUMMY_MAIN
6200 int F77_DUMMY_MAIN() { return 1; }
6206 char *p = (char *) strerror;
6213 rm -f conftest.
$ac_objext
6214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6215 (eval $ac_compile) 2>&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } &&
6219 { ac_try
='test -s conftest.$ac_objext'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; }; then
6225 ac_cv_have_decl_strerror
=yes
6227 echo "$as_me: failed program was:" >&5
6228 cat conftest.
$ac_ext >&5
6229 ac_cv_have_decl_strerror
=no
6231 rm -f conftest.
$ac_objext conftest.
$ac_ext
6233 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
6234 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
6235 if test $ac_cv_have_decl_strerror = yes; then
6237 cat >>confdefs.h
<<_ACEOF
6238 #define HAVE_DECL_STRERROR 1
6242 cat >>confdefs.h
<<_ACEOF
6243 #define HAVE_DECL_STRERROR 0
6248 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
6249 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
6250 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 cat >conftest.
$ac_ext <<_ACEOF
6254 #line $LINENO "configure"
6255 #include "confdefs.h"
6256 $ac_includes_default
6257 #ifdef F77_DUMMY_MAIN
6261 int F77_DUMMY_MAIN() { return 1; }
6267 char *p = (char *) strerror_r;
6274 rm -f conftest.
$ac_objext
6275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6276 (eval $ac_compile) 2>&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } &&
6280 { ac_try
='test -s conftest.$ac_objext'
6281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; }; then
6286 ac_cv_have_decl_strerror_r
=yes
6288 echo "$as_me: failed program was:" >&5
6289 cat conftest.
$ac_ext >&5
6290 ac_cv_have_decl_strerror_r
=no
6292 rm -f conftest.
$ac_objext conftest.
$ac_ext
6294 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
6295 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
6296 if test $ac_cv_have_decl_strerror_r = yes; then
6298 cat >>confdefs.h
<<_ACEOF
6299 #define HAVE_DECL_STRERROR_R 1
6303 cat >>confdefs.h
<<_ACEOF
6304 #define HAVE_DECL_STRERROR_R 0
6309 for ac_func
in strerror_r
6311 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6312 echo "$as_me:$LINENO: checking for $ac_func" >&5
6313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6314 if eval "test \"\${$as_ac_var+set}\" = set"; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 cat >conftest.
$ac_ext <<_ACEOF
6318 #line $LINENO "configure"
6319 #include "confdefs.h"
6320 /* System header to define __stub macros and hopefully few prototypes,
6321 which can conflict with char $ac_func (); below. */
6323 /* Override any gcc2 internal prototype to avoid an error. */
6327 /* We use char because int might match the return type of a gcc2
6328 builtin and then its argument prototype would still apply. */
6332 #ifdef F77_DUMMY_MAIN
6336 int F77_DUMMY_MAIN() { return 1; }
6341 /* The GNU C library defines this for functions which it implements
6342 to always fail with ENOSYS. Some functions are actually named
6343 something starting with __ and the normal name is an alias. */
6344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6354 rm -f conftest.
$ac_objext conftest
$ac_exeext
6355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6356 (eval $ac_link) 2>&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } &&
6360 { ac_try
='test -s conftest$ac_exeext'
6361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); }; }; then
6366 eval "$as_ac_var=yes"
6368 echo "$as_me: failed program was:" >&5
6369 cat conftest.
$ac_ext >&5
6370 eval "$as_ac_var=no"
6372 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6375 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6376 if test `eval echo '${'$as_ac_var'}'` = yes; then
6377 cat >>confdefs.h
<<_ACEOF
6378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6384 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
6385 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
6386 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 ac_cv_func_strerror_r_char_p
=no
6391 if test $ac_cv_have_decl_strerror_r = yes; then
6392 cat >conftest.
$ac_ext <<_ACEOF
6393 #line $LINENO "configure"
6394 #include "confdefs.h"
6395 $ac_includes_default
6396 #ifdef F77_DUMMY_MAIN
6400 int F77_DUMMY_MAIN() { return 1; }
6407 char x = *strerror_r (0, buf, sizeof buf);
6408 char *p = strerror_r (0, buf, sizeof buf);
6414 rm -f conftest.
$ac_objext
6415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6416 (eval $ac_compile) 2>&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
6420 { ac_try
='test -s conftest.$ac_objext'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; }; then
6426 ac_cv_func_strerror_r_char_p
=yes
6428 echo "$as_me: failed program was:" >&5
6429 cat conftest.
$ac_ext >&5
6431 rm -f conftest.
$ac_objext conftest.
$ac_ext
6433 # strerror_r is not declared. Choose between
6434 # systems that have relatively inaccessible declarations for the
6435 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
6436 # former has a strerror_r that returns char*, while the latter
6437 # has a strerror_r that returns `int'.
6438 # This test should segfault on the DEC system.
6439 if test "$cross_compiling" = yes; then
6442 cat >conftest.
$ac_ext <<_ACEOF
6443 #line $LINENO "configure"
6444 #include "confdefs.h"
6445 $ac_includes_default
6446 extern char *strerror_r ();
6447 #ifdef F77_DUMMY_MAIN
6451 int F77_DUMMY_MAIN() { return 1; }
6457 char x = *strerror_r (0, buf, sizeof buf);
6458 exit (!isalpha (x));
6463 rm -f conftest
$ac_exeext
6464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6465 (eval $ac_link) 2>&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }; }; then
6474 ac_cv_func_strerror_r_char_p
=yes
6476 echo "$as_me: program exited with status $ac_status" >&5
6477 echo "$as_me: failed program was:" >&5
6478 cat conftest.
$ac_ext >&5
6480 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6485 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
6486 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
6487 if test $ac_cv_func_strerror_r_char_p = yes; then
6489 cat >>confdefs.h
<<\_ACEOF
6490 #define STRERROR_R_CHAR_P 1
6495 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6496 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6497 if test "${ac_cv_header_stdc+set}" = set; then
6498 echo $ECHO_N "(cached) $ECHO_C" >&6
6500 cat >conftest.
$ac_ext <<_ACEOF
6501 #line $LINENO "configure"
6502 #include "confdefs.h"
6509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6510 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6512 egrep -v '^ *\+' conftest.er1
>conftest.err
6514 cat conftest.err
>&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); } >/dev
/null
; then
6517 if test -s conftest.err
; then
6518 ac_cpp_err
=$ac_c_preproc_warn_flag
6525 if test -z "$ac_cpp_err"; then
6526 ac_cv_header_stdc
=yes
6528 echo "$as_me: failed program was:" >&5
6529 cat conftest.
$ac_ext >&5
6530 ac_cv_header_stdc
=no
6532 rm -f conftest.err conftest.
$ac_ext
6534 if test $ac_cv_header_stdc = yes; then
6535 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6536 cat >conftest.
$ac_ext <<_ACEOF
6537 #line $LINENO "configure"
6538 #include "confdefs.h"
6542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6543 egrep "memchr" >/dev
/null
2>&1; then
6546 ac_cv_header_stdc
=no
6552 if test $ac_cv_header_stdc = yes; then
6553 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6554 cat >conftest.
$ac_ext <<_ACEOF
6555 #line $LINENO "configure"
6556 #include "confdefs.h"
6560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6561 egrep "free" >/dev
/null
2>&1; then
6564 ac_cv_header_stdc
=no
6570 if test $ac_cv_header_stdc = yes; then
6571 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6572 if test "$cross_compiling" = yes; then
6575 cat >conftest.
$ac_ext <<_ACEOF
6576 #line $LINENO "configure"
6577 #include "confdefs.h"
6579 #if ((' ' & 0x0FF) == 0x020)
6580 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6581 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6583 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6584 || ('j' <= (c) && (c) <= 'r') \
6585 || ('s' <= (c) && (c) <= 'z'))
6586 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6589 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6594 for (i = 0; i < 256; i++)
6595 if (XOR (islower (i), ISLOWER (i))
6596 || toupper (i) != TOUPPER (i))
6601 rm -f conftest
$ac_exeext
6602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6603 (eval $ac_link) 2>&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; }; then
6614 echo "$as_me: program exited with status $ac_status" >&5
6615 echo "$as_me: failed program was:" >&5
6616 cat conftest.
$ac_ext >&5
6618 ac_cv_header_stdc
=no
6620 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6624 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6625 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6626 if test $ac_cv_header_stdc = yes; then
6628 cat >>confdefs.h
<<\_ACEOF
6629 #define STDC_HEADERS 1
6634 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
6635 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
6637 # Check whether --with-dmalloc or --without-dmalloc was given.
6638 if test "${with_dmalloc+set}" = set; then
6639 withval
="$with_dmalloc"
6640 if test "$withval" = yes; then
6641 echo "$as_me:$LINENO: result: yes" >&5
6642 echo "${ECHO_T}yes" >&6
6644 cat >>confdefs.h
<<\_ACEOF
6645 #define WITH_DMALLOC 1
6648 LIBS
="$LIBS -ldmalloc"
6649 LDFLAGS
="$LDFLAGS -g"
6651 echo "$as_me:$LINENO: result: no" >&5
6652 echo "${ECHO_T}no" >&6
6655 echo "$as_me:$LINENO: result: no" >&5
6656 echo "${ECHO_T}no" >&6
6659 ALL_LINGUAS
="de es et fr ja nl tr ru"
6660 # Make sure we can run config.sub.
6661 $ac_config_sub sun4
>/dev
/null
2>&1 ||
6662 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6663 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6664 { (exit 1); exit 1; }; }
6666 echo "$as_me:$LINENO: checking build system type" >&5
6667 echo $ECHO_N "checking build system type... $ECHO_C" >&6
6668 if test "${ac_cv_build+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6671 ac_cv_build_alias
=$build_alias
6672 test -z "$ac_cv_build_alias" &&
6673 ac_cv_build_alias
=`$ac_config_guess`
6674 test -z "$ac_cv_build_alias" &&
6675 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6676 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6677 { (exit 1); exit 1; }; }
6678 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
6679 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed." >&5
6680 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
6681 { (exit 1); exit 1; }; }
6684 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6685 echo "${ECHO_T}$ac_cv_build" >&6
6687 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6688 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6689 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6691 echo "$as_me:$LINENO: checking host system type" >&5
6692 echo $ECHO_N "checking host system type... $ECHO_C" >&6
6693 if test "${ac_cv_host+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 ac_cv_host_alias
=$host_alias
6697 test -z "$ac_cv_host_alias" &&
6698 ac_cv_host_alias
=$ac_cv_build_alias
6699 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
6700 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6701 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6702 { (exit 1); exit 1; }; }
6705 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6706 echo "${ECHO_T}$ac_cv_host" >&6
6708 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6709 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6710 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6712 echo "$as_me:$LINENO: checking for off_t" >&5
6713 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6714 if test "${ac_cv_type_off_t+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 cat >conftest.
$ac_ext <<_ACEOF
6718 #line $LINENO "configure"
6719 #include "confdefs.h"
6720 $ac_includes_default
6721 #ifdef F77_DUMMY_MAIN
6725 int F77_DUMMY_MAIN() { return 1; }
6738 rm -f conftest.
$ac_objext
6739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6740 (eval $ac_compile) 2>&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } &&
6744 { ac_try
='test -s conftest.$ac_objext'
6745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); }; }; then
6750 ac_cv_type_off_t
=yes
6752 echo "$as_me: failed program was:" >&5
6753 cat conftest.
$ac_ext >&5
6756 rm -f conftest.
$ac_objext conftest.
$ac_ext
6758 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6759 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6760 if test $ac_cv_type_off_t = yes; then
6764 cat >>confdefs.h
<<_ACEOF
6770 echo "$as_me:$LINENO: checking for size_t" >&5
6771 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6772 if test "${ac_cv_type_size_t+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6775 cat >conftest.
$ac_ext <<_ACEOF
6776 #line $LINENO "configure"
6777 #include "confdefs.h"
6778 $ac_includes_default
6779 #ifdef F77_DUMMY_MAIN
6783 int F77_DUMMY_MAIN() { return 1; }
6790 if (sizeof (size_t))
6796 rm -f conftest.
$ac_objext
6797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6798 (eval $ac_compile) 2>&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } &&
6802 { ac_try
='test -s conftest.$ac_objext'
6803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); }; }; then
6808 ac_cv_type_size_t
=yes
6810 echo "$as_me: failed program was:" >&5
6811 cat conftest.
$ac_ext >&5
6812 ac_cv_type_size_t
=no
6814 rm -f conftest.
$ac_objext conftest.
$ac_ext
6816 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6817 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6818 if test $ac_cv_type_size_t = yes; then
6822 cat >>confdefs.h
<<_ACEOF
6823 #define size_t unsigned
6828 for ac_header
in stdlib.h unistd.h
6830 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6832 echo "$as_me:$LINENO: checking for $ac_header" >&5
6833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6840 # Is the header compilable?
6841 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6843 cat >conftest.
$ac_ext <<_ACEOF
6844 #line $LINENO "configure"
6845 #include "confdefs.h"
6846 $ac_includes_default
6847 #include <$ac_header>
6849 rm -f conftest.
$ac_objext
6850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6851 (eval $ac_compile) 2>&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); } &&
6855 { ac_try
='test -s conftest.$ac_objext'
6856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); }; }; then
6861 ac_header_compiler
=yes
6863 echo "$as_me: failed program was:" >&5
6864 cat conftest.
$ac_ext >&5
6865 ac_header_compiler
=no
6867 rm -f conftest.
$ac_objext conftest.
$ac_ext
6868 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6869 echo "${ECHO_T}$ac_header_compiler" >&6
6871 # Is the header present?
6872 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6874 cat >conftest.
$ac_ext <<_ACEOF
6875 #line $LINENO "configure"
6876 #include "confdefs.h"
6877 #include <$ac_header>
6879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6880 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6882 egrep -v '^ *\+' conftest.er1
>conftest.err
6884 cat conftest.err
>&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); } >/dev
/null
; then
6887 if test -s conftest.err
; then
6888 ac_cpp_err
=$ac_c_preproc_warn_flag
6895 if test -z "$ac_cpp_err"; then
6896 ac_header_preproc
=yes
6898 echo "$as_me: failed program was:" >&5
6899 cat conftest.
$ac_ext >&5
6900 ac_header_preproc
=no
6902 rm -f conftest.err conftest.
$ac_ext
6903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6904 echo "${ECHO_T}$ac_header_preproc" >&6
6906 # So? What about this header?
6907 case $ac_header_compiler:$ac_header_preproc in
6909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6921 echo "$as_me:$LINENO: checking for $ac_header" >&5
6922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6926 eval "$as_ac_Header=$ac_header_preproc"
6928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6933 cat >>confdefs.h
<<_ACEOF
6934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6941 for ac_func
in getpagesize
6943 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6944 echo "$as_me:$LINENO: checking for $ac_func" >&5
6945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6946 if eval "test \"\${$as_ac_var+set}\" = set"; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 cat >conftest.
$ac_ext <<_ACEOF
6950 #line $LINENO "configure"
6951 #include "confdefs.h"
6952 /* System header to define __stub macros and hopefully few prototypes,
6953 which can conflict with char $ac_func (); below. */
6955 /* Override any gcc2 internal prototype to avoid an error. */
6959 /* We use char because int might match the return type of a gcc2
6960 builtin and then its argument prototype would still apply. */
6964 #ifdef F77_DUMMY_MAIN
6968 int F77_DUMMY_MAIN() { return 1; }
6973 /* The GNU C library defines this for functions which it implements
6974 to always fail with ENOSYS. Some functions are actually named
6975 something starting with __ and the normal name is an alias. */
6976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6986 rm -f conftest.
$ac_objext conftest
$ac_exeext
6987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6988 (eval $ac_link) 2>&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } &&
6992 { ac_try
='test -s conftest$ac_exeext'
6993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; }; then
6998 eval "$as_ac_var=yes"
7000 echo "$as_me: failed program was:" >&5
7001 cat conftest.
$ac_ext >&5
7002 eval "$as_ac_var=no"
7004 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7007 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7008 if test `eval echo '${'$as_ac_var'}'` = yes; then
7009 cat >>confdefs.h
<<_ACEOF
7010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7016 echo "$as_me:$LINENO: checking for working mmap" >&5
7017 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7018 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7019 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 if test "$cross_compiling" = yes; then
7022 ac_cv_func_mmap_fixed_mapped
=no
7024 cat >conftest.
$ac_ext <<_ACEOF
7025 #line $LINENO "configure"
7026 #include "confdefs.h"
7027 $ac_includes_default
7028 /* Thanks to Mike Haertel and Jim Avera for this test.
7029 Here is a matrix of mmap possibilities:
7030 mmap private not fixed
7031 mmap private fixed at somewhere currently unmapped
7032 mmap private fixed at somewhere already mapped
7033 mmap shared not fixed
7034 mmap shared fixed at somewhere currently unmapped
7035 mmap shared fixed at somewhere already mapped
7036 For private mappings, we should verify that changes cannot be read()
7037 back from the file, nor mmap's back from the file at a different
7038 address. (There have been systems where private was not correctly
7039 implemented like the infamous i386 svr4.0, and systems where the
7040 VM page cache was not coherent with the file system buffer cache
7041 like early versions of FreeBSD and possibly contemporary NetBSD.)
7042 For shared mappings, we should conversely verify that changes get
7043 propogated back to all the places they're supposed to be.
7045 Grep wants private fixed already mapped.
7046 The main things grep needs to know about mmap are:
7047 * does it exist and is it safe to write into the mmap'd area
7048 * how to use it (BSD variants) */
7051 #include <sys/mman.h>
7053 #if !STDC_HEADERS && !HAVE_STDLIB_H
7057 /* This mess was copied from the GNU getpagesize.h. */
7058 #if !HAVE_GETPAGESIZE
7059 /* Assume that all systems that can run configure have sys/param.h. */
7060 # if !HAVE_SYS_PARAM_H
7061 # define HAVE_SYS_PARAM_H 1
7064 # ifdef _SC_PAGESIZE
7065 # define getpagesize() sysconf(_SC_PAGESIZE)
7066 # else /* no _SC_PAGESIZE */
7067 # if HAVE_SYS_PARAM_H
7068 # include <sys/param.h>
7069 # ifdef EXEC_PAGESIZE
7070 # define getpagesize() EXEC_PAGESIZE
7071 # else /* no EXEC_PAGESIZE */
7073 # define getpagesize() NBPG * CLSIZE
7076 # endif /* no CLSIZE */
7077 # else /* no NBPG */
7079 # define getpagesize() NBPC
7080 # else /* no NBPC */
7082 # define getpagesize() PAGESIZE
7083 # endif /* PAGESIZE */
7084 # endif /* no NBPC */
7085 # endif /* no NBPG */
7086 # endif /* no EXEC_PAGESIZE */
7087 # else /* no HAVE_SYS_PARAM_H */
7088 # define getpagesize() 8192 /* punt totally */
7089 # endif /* no HAVE_SYS_PARAM_H */
7090 # endif /* no _SC_PAGESIZE */
7092 #endif /* no HAVE_GETPAGESIZE */
7097 char *data, *data2, *data3;
7101 pagesize = getpagesize ();
7103 /* First, make a file with some known garbage in it. */
7104 data = (char *) malloc (pagesize);
7107 for (i = 0; i < pagesize; ++i)
7108 *(data + i) = rand ();
7110 fd = creat ("conftest.mmap", 0600);
7113 if (write (fd, data, pagesize) != pagesize)
7117 /* Next, try to mmap the file at a fixed address which already has
7118 something else allocated at it. If we can, also make sure that
7119 we see the same garbage. */
7120 fd = open ("conftest.mmap", O_RDWR);
7123 data2 = (char *) malloc (2 * pagesize);
7126 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7127 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7128 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7130 for (i = 0; i < pagesize; ++i)
7131 if (*(data + i) != *(data2 + i))
7134 /* Finally, make sure that changes to the mapped area do not
7135 percolate back to the file as seen by read(). (This is a bug on
7136 some variants of i386 svr4.0.) */
7137 for (i = 0; i < pagesize; ++i)
7138 *(data2 + i) = *(data2 + i) + 1;
7139 data3 = (char *) malloc (pagesize);
7142 if (read (fd, data3, pagesize) != pagesize)
7144 for (i = 0; i < pagesize; ++i)
7145 if (*(data + i) != *(data3 + i))
7151 rm -f conftest
$ac_exeext
7152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7153 (eval $ac_link) 2>&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); }; }; then
7162 ac_cv_func_mmap_fixed_mapped
=yes
7164 echo "$as_me: program exited with status $ac_status" >&5
7165 echo "$as_me: failed program was:" >&5
7166 cat conftest.
$ac_ext >&5
7168 ac_cv_func_mmap_fixed_mapped
=no
7170 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7173 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7174 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7175 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7177 cat >>confdefs.h
<<\_ACEOF
7184 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7185 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7186 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7189 cat >conftest.
$ac_ext <<_ACEOF
7190 #line $LINENO "configure"
7191 #include "confdefs.h"
7193 #include <features.h>
7194 #ifdef __GNU_LIBRARY__
7195 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7202 egrep "Lucky GNU user" >/dev
/null
2>&1; then
7203 ac_cv_gnu_library_2_1
=yes
7205 ac_cv_gnu_library_2_1
=no
7210 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7211 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7213 GLIBC21
="$ac_cv_gnu_library_2_1"
7215 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7216 stdlib.h string.h unistd.h sys
/param.h
7218 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7220 echo "$as_me:$LINENO: checking for $ac_header" >&5
7221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7228 # Is the header compilable?
7229 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7231 cat >conftest.
$ac_ext <<_ACEOF
7232 #line $LINENO "configure"
7233 #include "confdefs.h"
7234 $ac_includes_default
7235 #include <$ac_header>
7237 rm -f conftest.
$ac_objext
7238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7239 (eval $ac_compile) 2>&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); } &&
7243 { ac_try
='test -s conftest.$ac_objext'
7244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); }; }; then
7249 ac_header_compiler
=yes
7251 echo "$as_me: failed program was:" >&5
7252 cat conftest.
$ac_ext >&5
7253 ac_header_compiler
=no
7255 rm -f conftest.
$ac_objext conftest.
$ac_ext
7256 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7257 echo "${ECHO_T}$ac_header_compiler" >&6
7259 # Is the header present?
7260 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7261 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7262 cat >conftest.
$ac_ext <<_ACEOF
7263 #line $LINENO "configure"
7264 #include "confdefs.h"
7265 #include <$ac_header>
7267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7268 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7270 egrep -v '^ *\+' conftest.er1
>conftest.err
7272 cat conftest.err
>&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } >/dev
/null
; then
7275 if test -s conftest.err
; then
7276 ac_cpp_err
=$ac_c_preproc_warn_flag
7283 if test -z "$ac_cpp_err"; then
7284 ac_header_preproc
=yes
7286 echo "$as_me: failed program was:" >&5
7287 cat conftest.
$ac_ext >&5
7288 ac_header_preproc
=no
7290 rm -f conftest.err conftest.
$ac_ext
7291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7292 echo "${ECHO_T}$ac_header_preproc" >&6
7294 # So? What about this header?
7295 case $ac_header_compiler:$ac_header_preproc in
7297 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7298 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7305 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7309 echo "$as_me:$LINENO: checking for $ac_header" >&5
7310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 eval "$as_ac_Header=$ac_header_preproc"
7316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7321 cat >>confdefs.h
<<_ACEOF
7322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7329 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
7330 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
7331 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
7333 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7334 echo "$as_me:$LINENO: checking for $ac_func" >&5
7335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7336 if eval "test \"\${$as_ac_var+set}\" = set"; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 cat >conftest.
$ac_ext <<_ACEOF
7340 #line $LINENO "configure"
7341 #include "confdefs.h"
7342 /* System header to define __stub macros and hopefully few prototypes,
7343 which can conflict with char $ac_func (); below. */
7345 /* Override any gcc2 internal prototype to avoid an error. */
7349 /* We use char because int might match the return type of a gcc2
7350 builtin and then its argument prototype would still apply. */
7354 #ifdef F77_DUMMY_MAIN
7358 int F77_DUMMY_MAIN() { return 1; }
7363 /* The GNU C library defines this for functions which it implements
7364 to always fail with ENOSYS. Some functions are actually named
7365 something starting with __ and the normal name is an alias. */
7366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7376 rm -f conftest.
$ac_objext conftest
$ac_exeext
7377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7378 (eval $ac_link) 2>&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } &&
7382 { ac_try
='test -s conftest$ac_exeext'
7383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); }; }; then
7388 eval "$as_ac_var=yes"
7390 echo "$as_me: failed program was:" >&5
7391 cat conftest.
$ac_ext >&5
7392 eval "$as_ac_var=no"
7394 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7397 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7398 if test `eval echo '${'$as_ac_var'}'` = yes; then
7399 cat >>confdefs.h
<<_ACEOF
7400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7406 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7407 if test "${with_libiconv_prefix+set}" = set; then
7408 withval
="$with_libiconv_prefix"
7410 for dir
in `echo "$withval" | tr : ' '`; do
7411 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
7412 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
7417 echo "$as_me:$LINENO: checking for iconv" >&5
7418 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7419 if test "${am_cv_func_iconv+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 am_cv_func_iconv
="no, consider installing GNU libiconv"
7425 cat >conftest.
$ac_ext <<_ACEOF
7426 #line $LINENO "configure"
7427 #include "confdefs.h"
7430 #ifdef F77_DUMMY_MAIN
7434 int F77_DUMMY_MAIN() { return 1; }
7439 iconv_t cd = iconv_open("","");
7440 iconv(cd,NULL,NULL,NULL,NULL);
7446 rm -f conftest.
$ac_objext conftest
$ac_exeext
7447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7448 (eval $ac_link) 2>&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } &&
7452 { ac_try
='test -s conftest$ac_exeext'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; }; then
7458 am_cv_func_iconv
=yes
7460 echo "$as_me: failed program was:" >&5
7461 cat conftest.
$ac_ext >&5
7463 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7464 if test "$am_cv_func_iconv" != yes; then
7465 am_save_LIBS
="$LIBS"
7466 LIBS
="$LIBS -liconv"
7467 cat >conftest.
$ac_ext <<_ACEOF
7468 #line $LINENO "configure"
7469 #include "confdefs.h"
7472 #ifdef F77_DUMMY_MAIN
7476 int F77_DUMMY_MAIN() { return 1; }
7481 iconv_t cd = iconv_open("","");
7482 iconv(cd,NULL,NULL,NULL,NULL);
7488 rm -f conftest.
$ac_objext conftest
$ac_exeext
7489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7490 (eval $ac_link) 2>&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); } &&
7494 { ac_try
='test -s conftest$ac_exeext'
7495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); }; }; then
7501 am_cv_func_iconv
=yes
7503 echo "$as_me: failed program was:" >&5
7504 cat conftest.
$ac_ext >&5
7506 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7507 LIBS
="$am_save_LIBS"
7511 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7512 echo "${ECHO_T}$am_cv_func_iconv" >&6
7513 if test "$am_cv_func_iconv" = yes; then
7515 cat >>confdefs.h
<<\_ACEOF
7516 #define HAVE_ICONV 1
7519 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7520 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7521 if test "${am_cv_proto_iconv+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7525 cat >conftest.
$ac_ext <<_ACEOF
7526 #line $LINENO "configure"
7527 #include "confdefs.h"
7535 #if defined(__STDC__) || defined(__cplusplus)
7536 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7541 #ifdef F77_DUMMY_MAIN
7545 int F77_DUMMY_MAIN() { return 1; }
7555 rm -f conftest.
$ac_objext
7556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7557 (eval $ac_compile) 2>&5
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); } &&
7561 { ac_try
='test -s conftest.$ac_objext'
7562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); }; }; then
7567 am_cv_proto_iconv_arg1
=""
7569 echo "$as_me: failed program was:" >&5
7570 cat conftest.
$ac_ext >&5
7571 am_cv_proto_iconv_arg1
="const"
7573 rm -f conftest.
$ac_objext conftest.
$ac_ext
7574 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);"
7577 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7578 echo "$as_me:$LINENO: result: ${ac_t:-
7579 }$am_cv_proto_iconv" >&5
7580 echo "${ECHO_T}${ac_t:-
7581 }$am_cv_proto_iconv" >&6
7583 cat >>confdefs.h
<<_ACEOF
7584 #define ICONV_CONST $am_cv_proto_iconv_arg1
7589 if test "$am_cv_lib_iconv" = yes; then
7593 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7594 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7595 if test "${am_cv_langinfo_codeset+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7598 cat >conftest.
$ac_ext <<_ACEOF
7599 #line $LINENO "configure"
7600 #include "confdefs.h"
7601 #include <langinfo.h>
7602 #ifdef F77_DUMMY_MAIN
7606 int F77_DUMMY_MAIN() { return 1; }
7611 char* cs = nl_langinfo(CODESET);
7616 rm -f conftest.
$ac_objext conftest
$ac_exeext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618 (eval $ac_link) 2>&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } &&
7622 { ac_try
='test -s conftest$ac_exeext'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7628 am_cv_langinfo_codeset
=yes
7630 echo "$as_me: failed program was:" >&5
7631 cat conftest.
$ac_ext >&5
7632 am_cv_langinfo_codeset
=no
7634 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7637 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7638 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7639 if test $am_cv_langinfo_codeset = yes; then
7641 cat >>confdefs.h
<<\_ACEOF
7642 #define HAVE_LANGINFO_CODESET 1
7647 if test $ac_cv_header_locale_h = yes; then
7648 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7649 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7650 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7653 cat >conftest.
$ac_ext <<_ACEOF
7654 #line $LINENO "configure"
7655 #include "confdefs.h"
7657 #ifdef F77_DUMMY_MAIN
7661 int F77_DUMMY_MAIN() { return 1; }
7671 rm -f conftest.
$ac_objext conftest
$ac_exeext
7672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7673 (eval $ac_link) 2>&5
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } &&
7677 { ac_try
='test -s conftest$ac_exeext'
7678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); }; }; then
7683 am_cv_val_LC_MESSAGES
=yes
7685 echo "$as_me: failed program was:" >&5
7686 cat conftest.
$ac_ext >&5
7687 am_cv_val_LC_MESSAGES
=no
7689 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7691 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7692 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7693 if test $am_cv_val_LC_MESSAGES = yes; then
7695 cat >>confdefs.h
<<\_ACEOF
7696 #define HAVE_LC_MESSAGES 1
7701 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7702 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7703 # Check whether --enable-nls or --disable-nls was given.
7704 if test "${enable_nls+set}" = set; then
7705 enableval
="$enable_nls"
7710 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7711 echo "${ECHO_T}$USE_NLS" >&6
7713 BUILD_INCLUDED_LIBINTL
=no
7714 USE_INCLUDED_LIBINTL
=no
7717 if test "$USE_NLS" = "yes"; then
7719 cat >>confdefs.h
<<\_ACEOF
7720 #define ENABLE_NLS 1
7723 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7724 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7726 # Check whether --with-included-gettext or --without-included-gettext was given.
7727 if test "${with_included_gettext+set}" = set; then
7728 withval
="$with_included_gettext"
7729 nls_cv_force_use_gnu_gettext
=$withval
7731 nls_cv_force_use_gnu_gettext
=no
7733 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7734 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7736 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7737 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7740 if test "${ac_cv_header_libintl_h+set}" = set; then
7741 echo "$as_me:$LINENO: checking for libintl.h" >&5
7742 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7743 if test "${ac_cv_header_libintl_h+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7746 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7747 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7749 # Is the header compilable?
7750 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7751 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7752 cat >conftest.
$ac_ext <<_ACEOF
7753 #line $LINENO "configure"
7754 #include "confdefs.h"
7755 $ac_includes_default
7756 #include <libintl.h>
7758 rm -f conftest.
$ac_objext
7759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7760 (eval $ac_compile) 2>&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } &&
7764 { ac_try
='test -s conftest.$ac_objext'
7765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; }; then
7770 ac_header_compiler
=yes
7772 echo "$as_me: failed program was:" >&5
7773 cat conftest.
$ac_ext >&5
7774 ac_header_compiler
=no
7776 rm -f conftest.
$ac_objext conftest.
$ac_ext
7777 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7778 echo "${ECHO_T}$ac_header_compiler" >&6
7780 # Is the header present?
7781 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7782 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7783 cat >conftest.
$ac_ext <<_ACEOF
7784 #line $LINENO "configure"
7785 #include "confdefs.h"
7786 #include <libintl.h>
7788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7789 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7791 egrep -v '^ *\+' conftest.er1
>conftest.err
7793 cat conftest.err
>&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); } >/dev
/null
; then
7796 if test -s conftest.err
; then
7797 ac_cpp_err
=$ac_c_preproc_warn_flag
7804 if test -z "$ac_cpp_err"; then
7805 ac_header_preproc
=yes
7807 echo "$as_me: failed program was:" >&5
7808 cat conftest.
$ac_ext >&5
7809 ac_header_preproc
=no
7811 rm -f conftest.err conftest.
$ac_ext
7812 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7813 echo "${ECHO_T}$ac_header_preproc" >&6
7815 # So? What about this header?
7816 case $ac_header_compiler:$ac_header_preproc in
7818 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7819 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7820 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7821 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7823 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled." >&5
7824 echo "$as_me: WARNING: libintl.h: present but cannot be compiled." >&2;}
7825 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7826 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7827 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7828 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7830 echo "$as_me:$LINENO: checking for libintl.h" >&5
7831 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7832 if test "${ac_cv_header_libintl_h+set}" = set; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 ac_cv_header_libintl_h
=$ac_header_preproc
7837 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7838 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7841 if test $ac_cv_header_libintl_h = yes; then
7842 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
7843 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
7844 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7847 cat >conftest.
$ac_ext <<_ACEOF
7848 #line $LINENO "configure"
7849 #include "confdefs.h"
7850 #include <libintl.h>
7851 extern int _nl_msg_cat_cntr;
7852 #ifdef F77_DUMMY_MAIN
7856 int F77_DUMMY_MAIN() { return 1; }
7861 bindtextdomain ("", "");
7862 return (int) gettext ("") + _nl_msg_cat_cntr
7867 rm -f conftest.
$ac_objext conftest
$ac_exeext
7868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7869 (eval $ac_link) 2>&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } &&
7873 { ac_try
='test -s conftest$ac_exeext'
7874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); }; }; then
7879 gt_cv_func_gnugettext1_libc
=yes
7881 echo "$as_me: failed program was:" >&5
7882 cat conftest.
$ac_ext >&5
7883 gt_cv_func_gnugettext1_libc
=no
7885 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7887 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
7888 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
7890 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
7891 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7892 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
7893 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7894 echo $ECHO_N "(cached) $ECHO_C" >&6
7896 gt_save_LIBS
="$LIBS"
7897 LIBS
="$LIBS -lintl $LIBICONV"
7898 cat >conftest.
$ac_ext <<_ACEOF
7899 #line $LINENO "configure"
7900 #include "confdefs.h"
7901 #include <libintl.h>
7902 extern int _nl_msg_cat_cntr;
7903 #ifdef F77_DUMMY_MAIN
7907 int F77_DUMMY_MAIN() { return 1; }
7912 bindtextdomain ("", "");
7913 return (int) gettext ("") + _nl_msg_cat_cntr
7918 rm -f conftest.
$ac_objext conftest
$ac_exeext
7919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7920 (eval $ac_link) 2>&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); } &&
7924 { ac_try
='test -s conftest$ac_exeext'
7925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; }; then
7930 gt_cv_func_gnugettext1_libintl
=yes
7932 echo "$as_me: failed program was:" >&5
7933 cat conftest.
$ac_ext >&5
7934 gt_cv_func_gnugettext1_libintl
=no
7936 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7937 LIBS
="$gt_save_LIBS"
7939 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7940 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
7943 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7944 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7945 && test "$PACKAGE" != gettext; }; then
7947 cat >>confdefs.h
<<\_ACEOF
7948 #define HAVE_GETTEXT 1
7951 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7952 INTLLIBS
="-lintl $LIBICONV"
7955 gt_save_LIBS
="$LIBS"
7956 LIBS
="$LIBS $INTLLIBS"
7958 for ac_func
in dcgettext
7960 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7961 echo "$as_me:$LINENO: checking for $ac_func" >&5
7962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7963 if eval "test \"\${$as_ac_var+set}\" = set"; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7966 cat >conftest.
$ac_ext <<_ACEOF
7967 #line $LINENO "configure"
7968 #include "confdefs.h"
7969 /* System header to define __stub macros and hopefully few prototypes,
7970 which can conflict with char $ac_func (); below. */
7972 /* Override any gcc2 internal prototype to avoid an error. */
7976 /* We use char because int might match the return type of a gcc2
7977 builtin and then its argument prototype would still apply. */
7981 #ifdef F77_DUMMY_MAIN
7985 int F77_DUMMY_MAIN() { return 1; }
7990 /* The GNU C library defines this for functions which it implements
7991 to always fail with ENOSYS. Some functions are actually named
7992 something starting with __ and the normal name is an alias. */
7993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8003 rm -f conftest.
$ac_objext conftest
$ac_exeext
8004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8005 (eval $ac_link) 2>&5
8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 (exit $ac_status); } &&
8009 { ac_try
='test -s conftest$ac_exeext'
8010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); }; }; then
8015 eval "$as_ac_var=yes"
8017 echo "$as_me: failed program was:" >&5
8018 cat conftest.
$ac_ext >&5
8019 eval "$as_ac_var=no"
8021 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8024 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8025 if test `eval echo '${'$as_ac_var'}'` = yes; then
8026 cat >>confdefs.h
<<_ACEOF
8027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8033 LIBS
="$gt_save_LIBS"
8035 # Extract the first word of "msgfmt", so it can be a program name with args.
8036 set dummy msgfmt
; ac_word
=$2
8037 echo "$as_me:$LINENO: checking for $ac_word" >&5
8038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8039 if test "${ac_cv_path_MSGFMT+set}" = set; then
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
8044 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8047 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8048 for ac_dir
in $PATH; do
8049 test -z "$ac_dir" && ac_dir
=.
8050 if test -f $ac_dir/$ac_word; then
8051 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8052 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8058 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8062 MSGFMT
="$ac_cv_path_MSGFMT"
8063 if test "$MSGFMT" != ":"; then
8064 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8065 echo "${ECHO_T}$MSGFMT" >&6
8067 echo "$as_me:$LINENO: result: no" >&5
8068 echo "${ECHO_T}no" >&6
8071 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8072 set dummy gmsgfmt
; ac_word
=$2
8073 echo "$as_me:$LINENO: checking for $ac_word" >&5
8074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8075 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8076 echo $ECHO_N "(cached) $ECHO_C" >&6
8080 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8083 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8087 test -z "$as_dir" && as_dir
=.
8088 for ac_exec_ext
in '' $ac_executable_extensions; do
8089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8090 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8097 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8101 GMSGFMT
=$ac_cv_path_GMSGFMT
8103 if test -n "$GMSGFMT"; then
8104 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8105 echo "${ECHO_T}$GMSGFMT" >&6
8107 echo "$as_me:$LINENO: result: no" >&5
8108 echo "${ECHO_T}no" >&6
8111 # Extract the first word of "xgettext", so it can be a program name with args.
8112 set dummy xgettext
; ac_word
=$2
8113 echo "$as_me:$LINENO: checking for $ac_word" >&5
8114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8115 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8120 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8123 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8124 for ac_dir
in $PATH; do
8125 test -z "$ac_dir" && ac_dir
=.
8126 if test -f $ac_dir/$ac_word; then
8127 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8128 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8134 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8138 XGETTEXT
="$ac_cv_path_XGETTEXT"
8139 if test "$XGETTEXT" != ":"; then
8140 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8141 echo "${ECHO_T}$XGETTEXT" >&6
8143 echo "$as_me:$LINENO: result: no" >&5
8144 echo "${ECHO_T}no" >&6
8152 if test "$CATOBJEXT" = "NONE"; then
8153 nls_cv_use_gnu_gettext
=yes
8157 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8158 INTLOBJS
="\$(GETTOBJS)"
8159 # Extract the first word of "msgfmt", so it can be a program name with args.
8160 set dummy msgfmt
; ac_word
=$2
8161 echo "$as_me:$LINENO: checking for $ac_word" >&5
8162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8163 if test "${ac_cv_path_MSGFMT+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8168 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8171 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8172 for ac_dir
in $PATH; do
8173 test -z "$ac_dir" && ac_dir
=.
8174 if test -f $ac_dir/$ac_word; then
8175 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8176 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8182 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8186 MSGFMT
="$ac_cv_path_MSGFMT"
8187 if test "$MSGFMT" != ":"; then
8188 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8189 echo "${ECHO_T}$MSGFMT" >&6
8191 echo "$as_me:$LINENO: result: no" >&5
8192 echo "${ECHO_T}no" >&6
8195 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8196 set dummy gmsgfmt
; ac_word
=$2
8197 echo "$as_me:$LINENO: checking for $ac_word" >&5
8198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8199 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8204 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8207 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8211 test -z "$as_dir" && as_dir
=.
8212 for ac_exec_ext
in '' $ac_executable_extensions; do
8213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8214 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8221 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8225 GMSGFMT
=$ac_cv_path_GMSGFMT
8227 if test -n "$GMSGFMT"; then
8228 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8229 echo "${ECHO_T}$GMSGFMT" >&6
8231 echo "$as_me:$LINENO: result: no" >&5
8232 echo "${ECHO_T}no" >&6
8235 # Extract the first word of "xgettext", so it can be a program name with args.
8236 set dummy xgettext
; ac_word
=$2
8237 echo "$as_me:$LINENO: checking for $ac_word" >&5
8238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8239 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8240 echo $ECHO_N "(cached) $ECHO_C" >&6
8244 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8247 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8248 for ac_dir
in $PATH; do
8249 test -z "$ac_dir" && ac_dir
=.
8250 if test -f $ac_dir/$ac_word; then
8251 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8252 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8258 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8262 XGETTEXT
="$ac_cv_path_XGETTEXT"
8263 if test "$XGETTEXT" != ":"; then
8264 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8265 echo "${ECHO_T}$XGETTEXT" >&6
8267 echo "$as_me:$LINENO: result: no" >&5
8268 echo "${ECHO_T}no" >&6
8271 BUILD_INCLUDED_LIBINTL
=yes
8272 USE_INCLUDED_LIBINTL
=yes
8274 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
8275 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8278 if test "$GMSGFMT" != ":"; then
8279 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
8282 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
8283 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
8288 if test "$XGETTEXT" != ":"; then
8289 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
8292 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8293 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8300 ac_config_commands
="$ac_config_commands default-1"
8302 if test "$PACKAGE" = gettext; then
8303 BUILD_INCLUDED_LIBINTL
=yes
8306 for ac_prog
in bison
8308 # Extract the first word of "$ac_prog", so it can be a program name with args.
8309 set dummy
$ac_prog; ac_word
=$2
8310 echo "$as_me:$LINENO: checking for $ac_word" >&5
8311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8312 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8315 if test -n "$INTLBISON"; then
8316 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
8318 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8322 test -z "$as_dir" && as_dir
=.
8323 for ac_exec_ext
in '' $ac_executable_extensions; do
8324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8325 ac_cv_prog_INTLBISON
="$ac_prog"
8326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8334 INTLBISON
=$ac_cv_prog_INTLBISON
8335 if test -n "$INTLBISON"; then
8336 echo "$as_me:$LINENO: result: $INTLBISON" >&5
8337 echo "${ECHO_T}$INTLBISON" >&6
8339 echo "$as_me:$LINENO: result: no" >&5
8340 echo "${ECHO_T}no" >&6
8343 test -n "$INTLBISON" && break
8346 if test -z "$INTLBISON"; then
8349 echo "$as_me:$LINENO: checking version of bison" >&5
8350 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8351 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8352 case $ac_prog_version in
8353 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
8354 1.2[6-9]* | 1.
[3-9][0-9]* | [2-9].
*)
8355 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
8356 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
8358 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8359 echo "${ECHO_T}$ac_prog_version" >&6
8361 if test $ac_verc_fail = yes; then
8365 for lang
in $ALL_LINGUAS; do
8366 GMOFILES
="$GMOFILES $lang.gmo"
8367 POFILES
="$POFILES $lang.po"
8371 nls_cv_header_libgt
=
8379 if test "x$CATOBJEXT" != "x"; then
8380 if test "x$ALL_LINGUAS" = "x"; then
8383 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8384 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8386 for presentlang
in $ALL_LINGUAS; do
8388 for desiredlang
in ${LINGUAS-$ALL_LINGUAS}; do
8389 # Use the presentlang catalog if desiredlang is
8390 # a. equal to presentlang, or
8391 # b. a variant of presentlang (because in this case,
8392 # presentlang can be used as a fallback for messages
8393 # which are not translated in the desiredlang catalog).
8394 case "$desiredlang" in
8395 "$presentlang"*) useit
=yes;;
8398 if test $useit = yes; then
8399 NEW_LINGUAS
="$NEW_LINGUAS $presentlang"
8402 LINGUAS
=$NEW_LINGUAS
8403 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8404 echo "${ECHO_T}$LINGUAS" >&6
8407 if test -n "$LINGUAS"; then
8408 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8413 if test -n "$ac_aux_dir"; then
8414 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8416 if test -z "$MKINSTALLDIRS"; then
8417 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8420 INTL_LIBTOOL_SUFFIX_PREFIX
=
8422 # This is necessary so that .o files in LIBOBJS are also built via
8423 # the ANSI2KNR-filtering rules.
8424 LIBOBJS
=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
8426 ac_config_files
="$ac_config_files Makefile config/Makefile intl/Makefile po/Makefile.in lib/Makefile src/Makefile doc/Makefile m4/Makefile tests/Makefile"
8427 cat >confcache
<<\_ACEOF
8428 # This file is a shell script that caches the results of configure
8429 # tests run on this system so they can be shared between configure
8430 # scripts and configure runs, see configure's option --config-cache.
8431 # It is not useful on other systems. If it contains results you don't
8432 # want to keep, you may remove or edit it.
8434 # config.status only pays attention to the cache file if you give it
8435 # the --recheck option to rerun configure.
8437 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8438 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8443 # The following way of writing the cache mishandles newlines in values,
8444 # but we know of no workaround that is simple, portable, and efficient.
8445 # So, don't put newlines in cache variables' values.
8446 # Ultrix sh set writes to stderr and can't be redirected directly,
8447 # and sets the high bit in the cache file unless we assign to the vars.
8450 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8452 # `set' does not quote correctly, so add quotes (double-quote
8453 # substitution turns \\\\ into \\, and sed turns \\ into \).
8456 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8459 # `set' quotes correctly as required by POSIX, so do not add quotes.
8461 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8468 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8470 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8472 if cmp -s $cache_file confcache
; then :; else
8473 if test -w $cache_file; then
8474 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8475 cat confcache
>$cache_file
8477 echo "not updating unwritable cache $cache_file"
8482 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8483 # Let make expand exec_prefix.
8484 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8486 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8487 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8488 # trailing colons and then remove the whole line if VPATH becomes empty
8489 # (actually we leave an empty line to preserve line numbers).
8490 if test "x$srcdir" = x.
; then
8491 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8492 s/:*\$(srcdir):*/:/;
8493 s/:*\${srcdir}:*/:/;
8495 s/^\([^=]*=[ ]*\):*/\1/;
8501 DEFS
=-DHAVE_CONFIG_H
8503 : ${CONFIG_STATUS=./config.status}
8504 ac_clean_files_save
=$ac_clean_files
8505 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8506 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8507 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8508 cat >$CONFIG_STATUS <<_ACEOF
8510 # Generated by $as_me.
8511 # Run this file to recreate the current configuration.
8512 # Compiler output produced by configure, useful for debugging
8513 # configure, is in config.log if it exists.
8516 SHELL=\${CONFIG_SHELL-$SHELL}
8519 cat >>$CONFIG_STATUS <<\_ACEOF
8521 ## --------------------- ##
8522 ## M4sh Initialization. ##
8523 ## --------------------- ##
8525 # Be Bourne compatible
8526 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8529 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8533 # Name of the executable.
8534 as_me
=`(basename "$0") 2>/dev/null ||
8535 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8536 X"$0" : 'X\(//\)$' \| \
8537 X"$0" : 'X\(/\)$' \| \
8538 . : '\(.\)' 2>/dev/null ||
8540 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8541 /^X\/\(\/\/\)$/{ s//\1/; q; }
8542 /^X\/\(\/\).*/{ s//\1/; q; }
8545 # Rewrite early, but we need PATH_SEPARATOR.
8546 # The user is always right.
8547 if test "${PATH_SEPARATOR+set}" != set; then
8548 echo "#! $SHELL" >conftest.sh
8549 echo "exit 0" >>conftest.sh
8550 chmod +x conftest.sh
8551 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
8562 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8563 test "x$as_lineno_1" != "x$as_lineno_2" &&
8564 test "x$as_lineno_3" = "x$as_lineno_2"
8566 if eval "$as_command"; then
8569 # Find who we are. Look in the path if we contain no path at all
8572 *[\\/]* ) as_myself
=$0 ;;
8573 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8577 test -z "$as_dir" && as_dir
=.
8578 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8583 # We did not find ourselves, most probably we were run as `sh COMMAND'
8584 # in which case we are not to be found in the path.
8585 if test "x$as_myself" = x
; then
8588 if test ! -f "$as_myself"; then
8589 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8590 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8591 { (exit 1); exit 1; }; }
8593 case $CONFIG_SHELL in
8595 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8596 for as_dir
in /bin
:/usr
/bin
:$PATH
8599 test -z "$as_dir" && as_dir
=.
8600 for as_base
in sh bash ksh sh5
; do
8603 if ("$as_dir/$as_base" -c "$as_command") 2>/dev
/null
; then
8604 CONFIG_SHELL
=$as_dir/$as_base
8606 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8613 if test ! -f "$as_me.lineno" ||
8614 test x
`ls -1dt "$as_me.lineno" "$as_myself" 2>/dev/null | sed 1q` \
8615 != x
"$as_me.lineno"; then
8616 # Be sure to write the pattern so that it doesn't replace itself:
8617 # it must not match itself.
8619 /[$]LINENO/ { printf "%d:", NR }
8622 sed '/[$]LINENO/s/^\([0-9][0-9]*\):\(.*\)[$]LINENO/\2\1/' \
8624 chmod +x
$as_me.lineno
8627 # Don't try to exec as it changes $[0], causing all sort of problems
8628 # (the dirname of $[0] is not the place where we might find the
8629 # original and so on. Autoconf is especially sensible to this).
8631 # Exit status is that of the last command.
8635 # Avoid depending upon Character Ranges.
8636 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8637 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8638 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8639 as_cr_digits
='0123456789'
8640 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8642 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8643 *c
*,-n*) ECHO_N
= ECHO_C
='
8645 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
8646 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
8649 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8655 rm -f conf$$ conf$$.exe conf$$.
file
8657 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8658 # We could just check for DJGPP; but this test a) works b) is more generic
8659 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8660 if test -f conf$$.exe
; then
8661 # Don't use ln at all; we don't have any links
8666 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8671 rm -f conf$$ conf$$.exe conf$$.
file
8673 as_executable_p
="test -f"
8675 # Sed expression to map a string onto a valid CPP name.
8676 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8678 # Sed expression to map a string onto a valid variable name.
8679 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8681 # Support unset when possible.
8682 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
8689 $as_unset LANG
|| test "${LANG+set}" != set || { LANG
=C
; export LANG
; }
8690 $as_unset LC_ALL
|| test "${LC_ALL+set}" != set || { LC_ALL
=C
; export LC_ALL
; }
8691 $as_unset LC_TIME
|| test "${LC_TIME+set}" != set || { LC_TIME
=C
; export LC_TIME
; }
8692 $as_unset LC_CTYPE
|| test "${LC_CTYPE+set}" != set || { LC_CTYPE
=C
; export LC_CTYPE
; }
8693 $as_unset LANGUAGE
|| test "${LANGUAGE+set}" != set || { LANGUAGE
=C
; export LANGUAGE
; }
8694 $as_unset LC_COLLATE
|| test "${LC_COLLATE+set}" != set || { LC_COLLATE
=C
; export LC_COLLATE
; }
8695 $as_unset LC_NUMERIC
|| test "${LC_NUMERIC+set}" != set || { LC_NUMERIC
=C
; export LC_NUMERIC
; }
8696 $as_unset LC_MESSAGES
|| test "${LC_MESSAGES+set}" != set || { LC_MESSAGES
=C
; export LC_MESSAGES
; }
8699 # We need space, tab and new line, in precisely that order.
8705 $as_unset CDPATH
|| test "${CDPATH+set}" != set || { CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
8709 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8710 # report actual input values of CONFIG_FILES etc. instead of their
8711 # values after options handling. Logging --version etc. is OK.
8715 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8716 ## Running $as_me. ##
8721 This file was extended by GNU Bison $as_me 1.30, which was
8722 generated by GNU Autoconf 2.52e. Invocation command line was
8724 CONFIG_FILES = $CONFIG_FILES
8725 CONFIG_HEADERS = $CONFIG_HEADERS
8726 CONFIG_LINKS = $CONFIG_LINKS
8727 CONFIG_COMMANDS = $CONFIG_COMMANDS
8731 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8735 # Files that config.status was made for.
8736 if test -n "$ac_config_files"; then
8737 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8740 if test -n "$ac_config_headers"; then
8741 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8744 if test -n "$ac_config_links"; then
8745 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8748 if test -n "$ac_config_commands"; then
8749 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8752 cat >>$CONFIG_STATUS <<\_ACEOF
8755 \`$as_me' instantiates files from templates according to the
8756 current configuration.
8758 Usage: $0 [OPTIONS] [FILE]...
8760 -h, --help print this help, then exit
8761 -V, --version print version number, then exit
8762 -d, --debug don't remove temporary files
8763 --recheck update $as_me by reconfiguring in the same conditions
8764 --file=FILE[:TEMPLATE]
8765 instantiate the configuration file FILE
8766 --header=FILE[:TEMPLATE]
8767 instantiate the configuration header FILE
8769 Configuration files:
8772 Configuration headers:
8775 Configuration commands:
8778 Report bugs to <bug-autoconf@gnu.org>."
8781 cat >>$CONFIG_STATUS <<_ACEOF
8783 GNU Bison config.status 1.30
8784 configured by $0, generated by GNU Autoconf 2.52e,
8785 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8787 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8788 Free Software Foundation, Inc.
8789 This config.status script is free software; the Free Software Foundation
8790 gives unlimited permission to copy, distribute and modify it."
8795 cat >>$CONFIG_STATUS <<\_ACEOF
8796 # If no file are specified by the user, then we need to provide default
8797 # value. By we need to know if files were specified by the user.
8803 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
8804 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
8806 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
8810 *) # This is not an option, so the user has probably given explicit
8812 ac_need_defaults
=false
;;
8816 # Handling of the options.
8818 cat >>$CONFIG_STATUS <<_ACEOF
8819 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8820 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8821 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8823 cat >>$CONFIG_STATUS <<\_ACEOF
8824 --version | --vers* | -V )
8825 echo "$ac_cs_version"; exit 0 ;;
8827 # Conflict between --help and --header
8828 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8829 Try \`$0 --help' for more information." >&5
8830 echo "$as_me: error: ambiguous option: $1
8831 Try \`$0 --help' for more information." >&2;}
8832 { (exit 1); exit 1; }; };;
8833 --help | --hel | -h )
8834 echo "$ac_cs_usage"; exit 0 ;;
8835 --debug | --d* | -d )
8837 --file | --fil | --fi | --f )
8839 CONFIG_FILES
="$CONFIG_FILES $1"
8840 ac_need_defaults
=false
;;
8841 --header | --heade | --head | --hea )
8843 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
8844 ac_need_defaults
=false
;;
8847 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8848 Try \`$0 --help' for more information." >&5
8849 echo "$as_me: error: unrecognized option: $1
8850 Try \`$0 --help' for more information." >&2;}
8851 { (exit 1); exit 1; }; } ;;
8853 *) ac_config_targets
="$ac_config_targets $1" ;;
8861 cat >>$CONFIG_STATUS <<_ACEOF
8863 # INIT-COMMANDS section.
8866 PACKAGE_NAME='$PACKAGE_NAME'
8867 PACKAGE_TARNAME='$PACKAGE_TARNAME'
8868 PACKAGE_VERSION='$PACKAGE_VERSION'
8869 PACKAGE_STRING='$PACKAGE_STRING'
8870 PACKAGE_BUGREPORT='$PACKAGE_BUGREPORT'
8872 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8876 cat >>$CONFIG_STATUS <<\_ACEOF
8877 for ac_config_target
in $ac_config_targets
8879 case "$ac_config_target" in
8880 # Handling of arguments.
8881 "tests/atlocal" ) CONFIG_FILES
="$CONFIG_FILES tests/atlocal" ;;
8882 "tests/bison" ) CONFIG_FILES
="$CONFIG_FILES tests/bison" ;;
8883 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8884 "config/Makefile" ) CONFIG_FILES
="$CONFIG_FILES config/Makefile" ;;
8885 "intl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
8886 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
8887 "lib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
8888 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
8889 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
8890 "m4/Makefile" ) CONFIG_FILES
="$CONFIG_FILES m4/Makefile" ;;
8891 "tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
8892 "tests/package.m4" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS tests/package.m4" ;;
8893 "tests/atconfig" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS tests/atconfig" ;;
8894 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
8895 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
8896 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.hin" ;;
8897 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8898 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8899 { (exit 1); exit 1; }; };;
8903 # If the user did not use the arguments to specify the items to instantiate,
8904 # then the envvar interface is used. Set only those that are not.
8905 # We use the long form for the default assignment because of an extremely
8906 # bizarre bug on SunOS 4.1.3.
8907 if $ac_need_defaults; then
8908 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8909 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8910 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8913 # Create a temporary directory, and hook for its removal unless debugging.
8916 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8917 trap '{ (exit 1); exit 1; }' 1 2 13 15
8920 # Create a (secure) tmp directory for tmp files.
8923 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
8924 test -n "$tmp" && test -d "$tmp"
8927 tmp
=$TMPDIR/cs$$
-$RANDOM
8928 (umask 077 && mkdir $tmp)
8931 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8932 { (exit 1); exit 1; }
8937 cat >>$CONFIG_STATUS <<_ACEOF
8940 # CONFIG_FILES section.
8943 # No need to generate the scripts if there are no CONFIG_FILES.
8944 # This happens for instance when ./config.status config.h
8945 if test -n "\$CONFIG_FILES"; then
8946 # Protect against being on the right side of a sed subst in config.status.
8947 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8948 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8949 s,@SHELL@,$SHELL,;t t
8950 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8951 s,@exec_prefix@,$exec_prefix,;t t
8952 s,@prefix@,$prefix,;t t
8953 s,@program_transform_name@,$program_transform_name,;t t
8954 s,@bindir@,$bindir,;t t
8955 s,@sbindir@,$sbindir,;t t
8956 s,@libexecdir@,$libexecdir,;t t
8957 s,@datadir@,$datadir,;t t
8958 s,@sysconfdir@,$sysconfdir,;t t
8959 s,@sharedstatedir@,$sharedstatedir,;t t
8960 s,@localstatedir@,$localstatedir,;t t
8961 s,@libdir@,$libdir,;t t
8962 s,@includedir@,$includedir,;t t
8963 s,@oldincludedir@,$oldincludedir,;t t
8964 s,@infodir@,$infodir,;t t
8965 s,@mandir@,$mandir,;t t
8966 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8967 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8968 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8969 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8970 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8971 s,@build_alias@,$build_alias,;t t
8972 s,@host_alias@,$host_alias,;t t
8973 s,@target_alias@,$target_alias,;t t
8975 s,@ECHO_C@,$ECHO_C,;t t
8976 s,@ECHO_N@,$ECHO_N,;t t
8977 s,@ECHO_T@,$ECHO_T,;t t
8979 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8980 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8981 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8982 s,@PACKAGE@,$PACKAGE,;t t
8983 s,@VERSION@,$VERSION,;t t
8984 s,@ACLOCAL@,$ACLOCAL,;t t
8985 s,@AUTOCONF@,$AUTOCONF,;t t
8986 s,@AUTOMAKE@,$AUTOMAKE,;t t
8987 s,@AUTOHEADER@,$AUTOHEADER,;t t
8988 s,@MAKEINFO@,$MAKEINFO,;t t
8989 s,@AMTAR@,$AMTAR,;t t
8990 s,@install_sh@,$install_sh,;t t
8991 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8993 s,@SET_MAKE@,$SET_MAKE,;t t
8994 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8995 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8996 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8997 s,@DEPDIR@,$DEPDIR,;t t
9000 s,@CFLAGS@,$CFLAGS,;t t
9001 s,@LDFLAGS@,$LDFLAGS,;t t
9002 s,@CPPFLAGS@,$CPPFLAGS,;t t
9003 s,@ac_ct_CC@,$ac_ct_CC,;t t
9004 s,@EXEEXT@,$EXEEXT,;t t
9005 s,@OBJEXT@,$OBJEXT,;t t
9006 s,@am__include@,$am__include,;t t
9007 s,@am__quote@,$am__quote,;t t
9008 s,@CCDEPMODE@,$CCDEPMODE,;t t
9010 s,@RANLIB@,$RANLIB,;t t
9011 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9012 s,@AUTOM4TE@,$AUTOM4TE,;t t
9013 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
9015 s,@ANSI2KNR@,$ANSI2KNR,;t t
9016 s,@ALLOCA@,$ALLOCA,;t t
9017 s,@LIBOBJS@,$LIBOBJS,;t t
9018 s,@build@,$build,;t t
9019 s,@build_cpu@,$build_cpu,;t t
9020 s,@build_vendor@,$build_vendor,;t t
9021 s,@build_os@,$build_os,;t t
9023 s,@host_cpu@,$host_cpu,;t t
9024 s,@host_vendor@,$host_vendor,;t t
9025 s,@host_os@,$host_os,;t t
9026 s,@GLIBC21@,$GLIBC21,;t t
9027 s,@LIBICONV@,$LIBICONV,;t t
9028 s,@USE_NLS@,$USE_NLS,;t t
9029 s,@MSGFMT@,$MSGFMT,;t t
9030 s,@GMSGFMT@,$GMSGFMT,;t t
9031 s,@XGETTEXT@,$XGETTEXT,;t t
9032 s,@INTLBISON@,$INTLBISON,;t t
9033 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
9034 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9035 s,@CATALOGS@,$CATALOGS,;t t
9036 s,@CATOBJEXT@,$CATOBJEXT,;t t
9037 s,@GMOFILES@,$GMOFILES,;t t
9038 s,@INTLLIBS@,$INTLLIBS,;t t
9039 s,@INTLOBJS@,$INTLOBJS,;t t
9040 s,@POFILES@,$POFILES,;t t
9041 s,@POSUB@,$POSUB,;t t
9042 s,@DATADIRNAME@,$DATADIRNAME,;t t
9043 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9044 s,@GENCAT@,$GENCAT,;t t
9045 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9046 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
9051 cat >>$CONFIG_STATUS <<\_ACEOF
9052 # Split the substitutions into bite-sized pieces for seds with
9053 # small command number limits, like on Digital OSF/1 and HP-UX.
9055 ac_sed_frag
=1 # Number of current file.
9056 ac_beg
=1 # First line for current file.
9057 ac_end
=$ac_max_sed_lines # Line after last line for current file.
9060 while $ac_more_lines; do
9061 if test $ac_beg -gt 1; then
9062 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9064 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9066 if test ! -s $tmp/subs.frag
; then
9069 # The purpose of the label and of the branching condition is to
9070 # speed up the sed processing (if there are no `@' at all, there
9071 # is no need to browse any of the substitutions).
9072 # These are the two extra sed commands mentioned above.
9074 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs
-$ac_sed_frag.
sed
9075 if test -z "$ac_sed_cmds"; then
9076 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
9078 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9080 ac_sed_frag
=`expr $ac_sed_frag + 1`
9082 ac_end
=`expr $ac_end + $ac_max_sed_lines`
9085 if test -z "$ac_sed_cmds"; then
9088 fi # test -n "$CONFIG_FILES"
9091 cat >>$CONFIG_STATUS <<\_ACEOF
9092 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
9093 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9095 - | *:- | *:-:* ) # input from stdin
9097 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9098 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9099 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9100 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9101 * ) ac_file_in
=$ac_file.
in ;;
9104 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9105 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9106 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9107 X"$ac_file" : 'X\(//\)[^/]' \| \
9108 X"$ac_file" : 'X\(//\)$' \| \
9109 X"$ac_file" : 'X\(/\)' \| \
9110 . : '\(.\)' 2>/dev/null ||
9112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9113 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9114 /^X\(\/\/\)$/{ s//\1/; q; }
9115 /^X\(\/\).*/{ s//\1/; q; }
9118 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9122 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9123 case $as_mkdir_dir in
9124 # Skip DOS drivespec
9125 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9127 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9128 test -d "$as_incr_dir" ||
9129 mkdir "$as_incr_dir" ||
9130 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9131 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9132 { (exit 1); exit 1; }; }
9139 if test "$ac_dir" != .
; then
9140 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9141 # A "../" for each directory in $ac_dir_suffix.
9142 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9144 ac_dir_suffix
= ac_top_builddir
=
9148 .
) # No --srcdir option. We are building in place.
9150 if test -z "$ac_top_builddir"; then
9153 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9155 [\\/]* | ?
:[\\/]* ) # Absolute path.
9156 ac_srcdir
=$srcdir$ac_dir_suffix;
9157 ac_top_srcdir
=$srcdir ;;
9159 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9160 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9162 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9164 ac_buildpath
=`cd "$ac_dir" && cd $ac_builddir && pwd`
9165 ac_top_buildpath
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9166 ac_srcpath
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9167 ac_top_srcpath
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9170 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9171 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
9174 if test x
"$ac_file" != x
-; then
9175 { echo "$as_me:$LINENO: creating $ac_file" >&5
9176 echo "$as_me: creating $ac_file" >&6;}
9179 # Let's still pretend it is `configure' which instantiates (i.e., don't
9180 # use $as_me), people would be surprised to read:
9181 # /* config.h. Generated by config.status. */
9182 if test x
"$ac_file" = x
-; then
9185 configure_input
="$ac_file. "
9187 configure_input
=$configure_input"Generated from `echo $ac_file_in |
9188 sed 's,.*/,,'` by configure."
9190 # First look for the input files in the build tree, otherwise in the
9192 ac_file_inputs
=`IFS=:
9193 for f in $ac_file_in; do
9195 -) echo $tmp/stdin ;;
9197 # Absolute (can't be DOS-style, as IFS=:)
9198 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9199 echo "$as_me: error: cannot find input file: $f" >&2;}
9200 { (exit 1); exit 1; }; }
9203 if test -f "$f"; then
9206 elif test -f "$srcdir/$f"; then
9211 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9212 echo "$as_me: error: cannot find input file: $f" >&2;}
9213 { (exit 1); exit 1; }; }
9216 done` || { (exit 1); exit 1; }
9218 cat >>$CONFIG_STATUS <<_ACEOF
9222 cat >>$CONFIG_STATUS <<\_ACEOF
9224 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
9225 s
,@configure_input@
,$configure_input,;t t
9226 s
,@srcdir@
,$ac_srcdir,;t t
9227 s
,@srcpath@
,$ac_srcpath,;t t
9228 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9229 s
,@top_srcpath@
,$ac_top_srcpath,;t t
9230 s
,@builddir@
,$ac_builddir,;t t
9231 s
,@buildpath@
,$ac_buildpath,;t t
9232 s
,@top_builddir@
,$ac_top_builddir,;t t
9233 s
,@top_buildpath@
,$ac_top_buildpath,;t t
9234 s
,@INSTALL@
,$ac_INSTALL,;t t
9235 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9237 if test x"$ac_file" != x-; then
9238 mv $tmp/out $ac_file
9244 # Run the commands associated with the file.
9246 tests/bison ) chmod +x tests/bison ;;
9250 cat >>$CONFIG_STATUS <<\_ACEOF
9253 # CONFIG_HEADER section.
9256 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9257 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9259 # ac_d sets the value in "#define NAME VALUE" lines.
9260 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9261 ac_dB
='[ ].*$,\1#\2'
9264 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9265 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9266 ac_uB
='$,\1#\2define\3'
9270 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9271 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9273 - | *:- | *:-:* ) # input from stdin
9275 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9276 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9277 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9278 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9279 * ) ac_file_in
=$ac_file.
in ;;
9282 test x
"$ac_file" != x
- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9283 echo "$as_me: creating $ac_file" >&6;}
9285 # First look for the input files in the build tree, otherwise in the
9287 ac_file_inputs
=`IFS=:
9288 for f in $ac_file_in; do
9290 -) echo $tmp/stdin ;;
9292 # Absolute (can't be DOS-style, as IFS=:)
9293 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9294 echo "$as_me: error: cannot find input file: $f" >&2;}
9295 { (exit 1); exit 1; }; }
9298 if test -f "$f"; then
9301 elif test -f "$srcdir/$f"; then
9306 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9307 echo "$as_me: error: cannot find input file: $f" >&2;}
9308 { (exit 1); exit 1; }; }
9311 done` || { (exit 1); exit 1; }
9312 # Remove the trailing spaces.
9313 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9317 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9318 # `conftest.undefs', that substitutes the proper values into
9319 # config.h.in to produce config.h. The first handles `#define'
9320 # templates, and the second `#undef' templates.
9321 # And first: Protect against being on the right side of a sed subst in
9322 # config.status. Protect against being in an unquoted here document
9324 rm -f conftest.defines conftest.undefs
9325 # Using a here document instead of a string reduces the quoting nightmare.
9326 # Putting comments in sed scripts is not portable.
9328 # `end' is used to avoid that the second main sed command (meant for
9329 # 0-ary CPP macros) applies to n-ary macro definitions.
9330 # See the Autoconf documentation for `clear'.
9331 cat >confdef2sed.
sed <<\_ACEOF
9336 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9338 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9341 # If some macros were called several times there might be several times
9342 # the same #defines, which is useless. Nevertheless, we may not want to
9343 # sort them, since we want the *last* AC-DEFINE to be honored.
9344 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9345 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9346 rm -f confdef2sed.sed
9348 # This sed command replaces #undef with comments. This is necessary, for
9349 # example, in the case of _POSIX_SOURCE, which is predefined and required
9350 # on some systems where configure will not decide to define it.
9351 cat >>conftest.undefs <<\_ACEOF
9352 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9355 # Break up conftest.defines because some shells have a limit on the size
9356 # of here documents, and old seds have small limits too (100 cmds).
9357 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9358 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9359 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9360 echo ' :' >>$CONFIG_STATUS
9362 while grep . conftest.defines >/dev/null
9364 # Write a limited-size here document to $tmp/defines.sed.
9365 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9366 # Speed up: don't consider the non `#define' lines.
9367 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9368 # Work around the forget-to-reset-the-flag bug.
9369 echo 't clr' >>$CONFIG_STATUS
9370 echo ': clr' >>$CONFIG_STATUS
9371 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9373 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9377 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9378 rm -f conftest.defines
9379 mv conftest.
tail conftest.defines
9381 rm -f conftest.defines
9382 echo ' fi # egrep' >>$CONFIG_STATUS
9383 echo >>$CONFIG_STATUS
9385 # Break up conftest.undefs because some shells have a limit on the size
9386 # of here documents, and old seds have small limits too (100 cmds).
9387 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9389 while grep . conftest.undefs
>/dev
/null
9391 # Write a limited-size here document to $tmp/undefs.sed.
9392 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9393 # Speed up: don't consider the non
`#undef'
9394 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9395 # Work around the forget-to-reset-the-flag bug.
9396 echo 't clr' >>$CONFIG_STATUS
9397 echo ': clr' >>$CONFIG_STATUS
9398 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9400 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9404 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9405 rm -f conftest.undefs
9406 mv conftest.tail conftest.undefs
9408 rm -f conftest.undefs
9410 cat >>$CONFIG_STATUS <<\_ACEOF
9411 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9412 # use $as_me), people would be surprised to read:
9413 # /* config.h. Generated by config.status. */
9414 if test x
"$ac_file" = x
-; then
9415 echo "/* Generated by configure. */" >$tmp/config.h
9417 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9419 cat $tmp/in >>$tmp/config.h
9421 if test x
"$ac_file" != x
-; then
9422 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
9423 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9424 echo "$as_me: $ac_file is unchanged" >&6;}
9426 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9427 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9428 X"$ac_file" : 'X\(//\)[^/]' \| \
9429 X"$ac_file" : 'X\(//\)$' \| \
9430 X"$ac_file" : 'X\(/\)' \| \
9431 . : '\(.\)' 2>/dev/null ||
9433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9434 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9435 /^X\(\/\/\)$/{ s//\1/; q; }
9436 /^X\(\/\).*/{ s//\1/; q; }
9439 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9443 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9444 case $as_mkdir_dir in
9445 # Skip DOS drivespec
9446 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9448 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9449 test -d "$as_incr_dir" ||
9450 mkdir "$as_incr_dir" ||
9451 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9452 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9453 { (exit 1); exit 1; }; }
9459 mv $tmp/config.h
$ac_file
9465 # Run the commands associated with the file.
9467 config.h
) # update the timestamp
9468 echo 'timestamp for config.h:config.hin' >"./stamp-h1"
9473 cat >>$CONFIG_STATUS <<\_ACEOF
9476 # CONFIG_COMMANDS section.
9478 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9479 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9480 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9481 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
9482 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9483 X"$ac_dest" : 'X\(//\)[^/]' \| \
9484 X"$ac_dest" : 'X\(//\)$' \| \
9485 X"$ac_dest" : 'X\(/\)' \| \
9486 . : '\(.\)' 2>/dev/null ||
9488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9489 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9490 /^X\(\/\/\)$/{ s//\1/; q; }
9491 /^X\(\/\).*/{ s//\1/; q; }
9495 if test "$ac_dir" != .
; then
9496 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9497 # A "../" for each directory in $ac_dir_suffix.
9498 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9500 ac_dir_suffix
= ac_top_builddir
=
9504 .
) # No --srcdir option. We are building in place.
9506 if test -z "$ac_top_builddir"; then
9509 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9511 [\\/]* | ?
:[\\/]* ) # Absolute path.
9512 ac_srcdir
=$srcdir$ac_dir_suffix;
9513 ac_top_srcdir
=$srcdir ;;
9515 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9516 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9518 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9520 ac_buildpath
=`cd "$ac_dir" && cd $ac_builddir && pwd`
9521 ac_top_buildpath
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9522 ac_srcpath
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9523 ac_top_srcpath
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9525 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9526 echo "$as_me: executing $ac_dest commands" >&6;}
9528 tests
/package.
m4 ) cat >tests
/package.
m4 <<ATEOF
9529 # Signature of the current package.
9530 m4_define([PACKAGE_NAME], [$PACKAGE_NAME])
9531 m4_define([PACKAGE_TARNAME], [$PACKAGE_TARNAME])
9532 m4_define([PACKAGE_VERSION], [$PACKAGE_VERSION])
9533 m4_define([PACKAGE_STRING], [$PACKAGE_STRING])
9534 m4_define([PACKAGE_BUGREPORT], [$PACKAGE_BUGREPORT])
9537 tests
/atconfig
) cat >tests
/atconfig
<<ATEOF
9538 # Configurable variable values for building test suites.
9540 # Copyright 2000, 2001 Free Software Foundation, Inc.
9543 buildpath='$ac_buildpath'
9545 srcpath='$ac_srcpath'
9546 top_srcdir='$ac_top_srcdir'
9547 top_srcpath='$ac_top_srcpath'
9548 top_builddir='$ac_top_builddir'
9549 top_buildpath='$ac_top_buildpath'
9551 AUTOTEST_PATH='tests'
9553 SHELL=\${CONFIG_SHELL-'$SHELL'}
9556 depfiles
) test x
"$AMDEP_TRUE" != x
"" || for mf
in $CONFIG_FILES; do
9558 Makefile
) dirpart
=.
;;
9559 */Makefile
) dirpart
=`(dirname "$mf") 2>/dev/null ||
9560 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9561 X"$mf" : 'X\(//\)[^/]' \| \
9562 X"$mf" : 'X\(//\)$' \| \
9563 X"$mf" : 'X\(/\)' \| \
9564 . : '\(.\)' 2>/dev/null ||
9566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9567 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9568 /^X\(\/\/\)$/{ s//\1/; q; }
9569 /^X\(\/\).*/{ s//\1/; q; }
9573 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null
|| continue
9574 # Extract the definition of DEP_FILES from the Makefile without
9576 DEPDIR
=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9577 test -z "$DEPDIR" && continue
9578 # When using ansi2knr, U may be empty or an underscore; expand it
9579 U
=`sed -n -e '/^U = / s///p' < "$mf"`
9580 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9581 # We invoke sed twice because it is the simplest approach to
9582 # changing $(DEPDIR) to its actual value in the expansion.
9583 for file in `sed -n -e '
9584 /^DEP_FILES = .*\\\\$/ {
9593 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9594 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9595 # Make sure the directory exists.
9596 test -f "$dirpart/$file" && continue
9597 fdir
=`(dirname "$file") 2>/dev/null ||
9598 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9599 X"$file" : 'X\(//\)[^/]' \| \
9600 X"$file" : 'X\(//\)$' \| \
9601 X"$file" : 'X\(/\)' \| \
9602 . : '\(.\)' 2>/dev/null ||
9604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9605 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9606 /^X\(\/\/\)$/{ s//\1/; q; }
9607 /^X\(\/\).*/{ s//\1/; q; }
9609 { case $dirpart/$fdir in
9610 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9613 as_dummy
=$dirpart/$fdir
9614 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9615 case $as_mkdir_dir in
9616 # Skip DOS drivespec
9617 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9619 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9620 test -d "$as_incr_dir" ||
9621 mkdir "$as_incr_dir" ||
9622 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
9623 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
9624 { (exit 1); exit 1; }; }
9629 # echo "creating $dirpart/$file"
9630 echo '# dummy' > "$dirpart/$file"
9634 default
-1 ) for ac_file
in $CONFIG_FILES; do
9635 # Support "outfile[:infile[:infile...]]"
9637 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9639 # PO directories have a Makefile.in generated from Makefile.in.in.
9640 case "$ac_file" in */Makefile.
in)
9641 # Adjust a relative srcdir.
9642 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9643 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
9644 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9645 # In autoconf-2.13 it is called $ac_given_srcdir.
9646 # In autoconf-2.50 it is called $srcdir.
9647 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
9648 case "$ac_given_srcdir" in
9649 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
9650 /*) top_srcdir
="$ac_given_srcdir" ;;
9651 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9653 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9654 rm -f "$ac_dir/POTFILES"
9655 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9656 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9657 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9658 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9667 cat >>$CONFIG_STATUS <<\_ACEOF
9669 { (exit 0); exit 0; }
9671 chmod +x
$CONFIG_STATUS
9672 ac_clean_files
=$ac_clean_files_save
9674 # configure is writing to config.log, and then calls config.status.
9675 # config.status does its own redirection, appending to config.log.
9676 # Unfortunately, on DOS this fails, as config.log is still kept open
9677 # by configure, so config.status won't be able to write to it; its
9678 # output is simply discarded. So we exec the FD to /dev/null,
9679 # effectively closing config.log, so it can be properly (re)opened and
9680 # appended to by config.status. When coming back to configure, we
9681 # need to make the FD available again.
9682 if test "$no_create" != yes; then
9685 $SHELL $CONFIG_STATUS || ac_cs_success
=false
9687 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9688 # would make configure fail if this is the last instruction.
9689 $ac_cs_success || { (exit 1); exit 1; }