2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.52e for GNU Bison 1.29e.
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 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
20 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 # Name of the executable.
25 as_me
=`echo "$0" |sed 's,\(.*[\\/]\+\)\?\([^\\/]\+\)[\\/]*,\2,'`
27 # Rewrite early, but we need PATH_SEPARATOR.
28 # The user is always right.
29 if test "${PATH_SEPARATOR+set}" != set; then
30 echo "#! $SHELL" >conftest.sh
31 echo "exit 0" >>conftest.sh
33 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
44 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev
/null
`
45 test "x$as_lineno_1" != "x$as_lineno_2" &&
46 test "x$as_lineno_3" = "x$as_lineno_2"
48 if eval "$as_command"; then
51 # Find who we are. Look in the path if we contain no path at all
54 *[\\/]* ) as_myself=$0 ;;
55 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
59 test -z "$as_dir" && as_dir=.
60 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
65 # We did not find ourselves, most probably we were run as `sh COMMAND
'
66 # in which case we are not to be found in the path.
67 if test "x$as_myself" = x; then
70 if test ! -f "$as_myself"; then
71 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
72 { (exit 1); exit 1; }; }
76 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in /bin:/usr/bin:$PATH
80 test -z "$as_dir" && as_dir=.
81 for as_base in sh bash ksh sh5; do
84 if ("$as_dir/$as_base" -c "$as_command") 2>/dev/null; then
85 CONFIG_SHELL=$as_dir/$as_base
87 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
94 if test ! -f "$as_me.lineno" ||
95 test x`ls -1dt "$as_me.lineno" "$as_myself" 2>/dev/null | sed 1q` \
96 != x"$as_me.lineno"; then
97 # Be sure to write the pattern so that it doesn't replace itself
:
98 # it must not match itself.
100 /[$]LINENO/ { printf "%d:", NR }
103 sed '/[$]LINENO/s/^\([0-9][0-9]*\):\(.*\)[$]LINENO/\2\1/' \
105 chmod +x
$as_me.lineno
108 # Don't try to exec as it changes $[0], causing all sort of problems
109 # (the dirname of $[0] is not the place where we might find the
110 # original and so on. Autoconf is especially sensible to this).
112 # Exit status is that of the last command.
116 # Avoid depending upon Character Ranges.
117 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
118 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
119 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
120 as_cr_digits
='0123456789'
121 as_cr_alnum
=$as_cr_Letters$as_cr_digits
123 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
124 *c
*,-n*) ECHO_N
= ECHO_C
='
126 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
127 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
130 if expr a
: '\(a\)' >/dev
/null
2>&1; then
136 rm -f conf$$ conf$$.exe conf$$.
file
138 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
139 # We could just check for DJGPP; but this test a) works b) is more generic
140 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
141 if test -f conf$$.exe
; then
142 # Don't use ln at all; we don't have any links
147 elif ln conf$$.
file conf$$
2>/dev
/null
; then
152 rm -f conf$$ conf$$.exe conf$$.
file
154 as_executable_p
="test -f"
156 # Sed expression to map a string onto a valid CPP name.
157 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
159 # Sed expression to map a string onto a valid variable name.
160 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
162 # Support unset when possible.
163 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
170 $as_unset LANG
|| test "${LANG+set}" != set || { LANG
=C
; export LANG
; }
171 $as_unset LC_ALL
|| test "${LC_ALL+set}" != set || { LC_ALL
=C
; export LC_ALL
; }
172 $as_unset LC_TIME
|| test "${LC_TIME+set}" != set || { LC_TIME
=C
; export LC_TIME
; }
173 $as_unset LC_CTYPE
|| test "${LC_CTYPE+set}" != set || { LC_CTYPE
=C
; export LC_CTYPE
; }
174 $as_unset LANGUAGE
|| test "${LANGUAGE+set}" != set || { LANGUAGE
=C
; export LANGUAGE
; }
175 $as_unset LC_COLLATE
|| test "${LC_COLLATE+set}" != set || { LC_COLLATE
=C
; export LC_COLLATE
; }
176 $as_unset LC_NUMERIC
|| test "${LC_NUMERIC+set}" != set || { LC_NUMERIC
=C
; export LC_NUMERIC
; }
177 $as_unset LC_MESSAGES
|| test "${LC_MESSAGES+set}" != set || { LC_MESSAGES
=C
; export LC_MESSAGES
; }
180 # We need space, tab and new line, in precisely that order.
186 $as_unset CDPATH
|| test "${CDPATH+set}" != set || { CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
189 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
190 # so uname gets run too.
191 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
198 ac_default_prefix
=/usr
/local
203 SHELL
=${CONFIG_SHELL-/bin/sh}
205 # Maximum number of lines to put in a shell here document.
206 # This variable seems obsolete. It should probably be removed, and
207 # only ac_max_sed_lines should be used.
208 : ${ac_max_here_lines=38}
210 # Factoring default headers for most tests.
211 ac_includes_default
="\
214 # include <sys/types.h>
217 # include <sys/stat.h>
228 # if !STDC_HEADERS && HAVE_MEMORY_H
234 # include <strings.h>
237 # include <inttypes.h>
247 # Initialize some variables set by options.
249 ac_init_version
=false
250 # The variables have the same names as the options, with
251 # dashes changed to underlines.
259 program_transform_name
=s
,x
,x
,
267 # Installation directory options.
268 # These are left unexpanded so users can "make install exec_prefix=/foo"
269 # and all the variables that are supposed to be based on exec_prefix
270 # by default will actually change.
271 # Use braces instead of parens because sh, perl, etc. also accept them.
272 bindir
='${exec_prefix}/bin'
273 sbindir
='${exec_prefix}/sbin'
274 libexecdir
='${exec_prefix}/libexec'
275 datadir
='${prefix}/share'
276 sysconfdir
='${prefix}/etc'
277 sharedstatedir
='${prefix}/com'
278 localstatedir
='${prefix}/var'
279 libdir
='${exec_prefix}/lib'
280 includedir
='${prefix}/include'
281 oldincludedir
='/usr/include'
282 infodir
='${prefix}/info'
283 mandir
='${prefix}/man'
285 # Identity of this package.
286 PACKAGE_NAME
='GNU Bison'
287 PACKAGE_TARNAME
='bison'
288 PACKAGE_VERSION
='1.29e'
289 PACKAGE_STRING
='GNU Bison 1.29e'
290 PACKAGE_BUGREPORT
='bug-bison@gnu.org'
295 # If the previous option needs an argument, assign it.
296 if test -n "$ac_prev"; then
297 eval "$ac_prev=\$ac_option"
302 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
304 # Accept the important Cygnus configure options, so we can diagnose typos.
308 -bindir | --bindir | --bindi | --bind | --bin | --bi)
310 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
313 -build | --build | --buil | --bui | --bu)
314 ac_prev
=build_alias
;;
315 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
316 build_alias
=$ac_optarg ;;
318 -cache-file | --cache-file | --cache-fil | --cache-fi \
319 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
320 ac_prev
=cache_file
;;
321 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
322 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
323 cache_file
=$ac_optarg ;;
326 cache_file
=config.cache
;;
328 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
330 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
332 datadir
=$ac_optarg ;;
334 -disable-* | --disable-*)
335 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
336 # Reject names that are not valid shell variable names.
337 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
338 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
339 { (exit 1); exit 1; }; }
340 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
341 eval "enable_$ac_feature=no" ;;
343 -enable-* | --enable-*)
344 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
345 # Reject names that are not valid shell variable names.
346 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
347 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
348 { (exit 1); exit 1; }; }
349 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
351 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
354 eval "enable_$ac_feature='$ac_optarg'" ;;
356 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
357 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
358 | --exec | --exe | --ex)
359 ac_prev
=exec_prefix
;;
360 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
361 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
362 | --exec=* | --exe=* | --ex=*)
363 exec_prefix
=$ac_optarg ;;
365 -gas | --gas | --ga | --g)
366 # Obsolete; use --with-gas.
369 -help | --help | --hel | --he | -h)
371 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
372 ac_init_help
=recursive
;;
373 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
374 ac_init_help
=short
;;
376 -host | --host | --hos | --ho)
377 ac_prev
=host_alias
;;
378 -host=* | --host=* | --hos=* | --ho=*)
379 host_alias
=$ac_optarg ;;
381 -includedir | --includedir | --includedi | --included | --include \
382 | --includ | --inclu | --incl | --inc)
383 ac_prev
=includedir
;;
384 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
385 | --includ=* | --inclu=* | --incl=* | --inc=*)
386 includedir
=$ac_optarg ;;
388 -infodir | --infodir | --infodi | --infod | --info | --inf)
390 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
391 infodir
=$ac_optarg ;;
393 -libdir | --libdir | --libdi | --libd)
395 -libdir=* | --libdir=* | --libdi=* | --libd=*)
398 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
399 | --libexe | --libex | --libe)
400 ac_prev
=libexecdir
;;
401 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
402 | --libexe=* | --libex=* | --libe=*)
403 libexecdir
=$ac_optarg ;;
405 -localstatedir | --localstatedir | --localstatedi | --localstated \
406 | --localstate | --localstat | --localsta | --localst \
407 | --locals | --local | --loca | --loc | --lo)
408 ac_prev
=localstatedir
;;
409 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
410 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
411 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
412 localstatedir
=$ac_optarg ;;
414 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
416 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
420 # Obsolete; use --without-fp.
423 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
427 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
428 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
431 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
432 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
433 | --oldin | --oldi | --old | --ol | --o)
434 ac_prev
=oldincludedir
;;
435 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
436 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
437 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
438 oldincludedir
=$ac_optarg ;;
440 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
442 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
445 -program-prefix | --program-prefix | --program-prefi | --program-pref \
446 | --program-pre | --program-pr | --program-p)
447 ac_prev
=program_prefix
;;
448 -program-prefix=* | --program-prefix=* | --program-prefi=* \
449 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
450 program_prefix
=$ac_optarg ;;
452 -program-suffix | --program-suffix | --program-suffi | --program-suff \
453 | --program-suf | --program-su | --program-s)
454 ac_prev
=program_suffix
;;
455 -program-suffix=* | --program-suffix=* | --program-suffi=* \
456 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
457 program_suffix
=$ac_optarg ;;
459 -program-transform-name | --program-transform-name \
460 | --program-transform-nam | --program-transform-na \
461 | --program-transform-n | --program-transform- \
462 | --program-transform | --program-transfor \
463 | --program-transfo | --program-transf \
464 | --program-trans | --program-tran \
465 | --progr-tra | --program-tr | --program-t)
466 ac_prev
=program_transform_name
;;
467 -program-transform-name=* | --program-transform-name=* \
468 | --program-transform-nam=* | --program-transform-na=* \
469 | --program-transform-n=* | --program-transform-=* \
470 | --program-transform=* | --program-transfor=* \
471 | --program-transfo=* | --program-transf=* \
472 | --program-trans=* | --program-tran=* \
473 | --progr-tra=* | --program-tr=* | --program-t=*)
474 program_transform_name
=$ac_optarg ;;
476 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
477 | -silent | --silent | --silen | --sile | --sil)
480 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
482 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
484 sbindir
=$ac_optarg ;;
486 -sharedstatedir | --sharedstatedir | --sharedstatedi \
487 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
488 | --sharedst | --shareds | --shared | --share | --shar \
490 ac_prev
=sharedstatedir
;;
491 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
492 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
493 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
495 sharedstatedir
=$ac_optarg ;;
497 -site | --site | --sit)
499 -site=* | --site=* | --sit=*)
502 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
504 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
507 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
508 | --syscon | --sysco | --sysc | --sys | --sy)
509 ac_prev
=sysconfdir
;;
510 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
511 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
512 sysconfdir
=$ac_optarg ;;
514 -target | --target | --targe | --targ | --tar | --ta | --t)
515 ac_prev
=target_alias
;;
516 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
517 target_alias
=$ac_optarg ;;
519 -v | -verbose | --verbose | --verbos | --verbo | --verb)
522 -version | --version | --versio | --versi | --vers | -V)
526 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
527 # Reject names that are not valid shell variable names.
528 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
529 { echo "$as_me: error: invalid package name: $ac_package" >&2
530 { (exit 1); exit 1; }; }
531 ac_package
=`echo $ac_package| sed 's/-/_/g'`
533 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
536 eval "with_$ac_package='$ac_optarg'" ;;
538 -without-* | --without-*)
539 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
540 # Reject names that are not valid shell variable names.
541 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
542 { echo "$as_me: error: invalid package name: $ac_package" >&2
543 { (exit 1); exit 1; }; }
544 ac_package
=`echo $ac_package | sed 's/-/_/g'`
545 eval "with_$ac_package=no" ;;
548 # Obsolete; use --with-x.
551 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
552 | --x-incl | --x-inc | --x-in | --x-i)
553 ac_prev
=x_includes
;;
554 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
555 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
556 x_includes
=$ac_optarg ;;
558 -x-libraries | --x-libraries | --x-librarie | --x-librari \
559 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
560 ac_prev
=x_libraries
;;
561 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
562 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
563 x_libraries
=$ac_optarg ;;
565 -*) { echo "$as_me: error: unrecognized option: $ac_option
566 Try \`$0 --help' for more information." >&2
567 { (exit 1); exit 1; }; }
571 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
572 # Reject names that are not valid shell variable names.
573 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
574 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
575 { (exit 1); exit 1; }; }
576 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
577 eval "$ac_envvar='$ac_optarg'"
581 # FIXME: should be removed in autoconf 3.0.
582 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
583 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
584 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
585 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
591 if test -n "$ac_prev"; then
592 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
593 { echo "$as_me: error: missing argument to $ac_option" >&2
594 { (exit 1); exit 1; }; }
597 # Be sure to have absolute paths.
598 for ac_var
in exec_prefix prefix
600 eval ac_val
=$
`echo $ac_var`
602 [\\/$
]* | ?
:[\\/]* | NONE
| '' ) ;;
603 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
604 { (exit 1); exit 1; }; };;
608 # Be sure to have absolute paths.
609 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
610 localstatedir libdir includedir oldincludedir infodir mandir
612 eval ac_val
=$
`echo $ac_var`
614 [\\/$
]* | ?
:[\\/]* ) ;;
615 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
616 { (exit 1); exit 1; }; };;
620 # There might be people who depend on the old broken behavior: `$host'
621 # used to hold the argument of --host etc.
626 # FIXME: should be removed in autoconf 3.0.
627 if test "x$host_alias" != x
; then
628 if test "x$build_alias" = x
; then
629 cross_compiling
=maybe
630 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
631 If a cross compiler is detected then cross compile mode will be used." >&2
632 elif test "x$build_alias" != "x$host_alias"; then
638 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
640 test "$silent" = yes && exec 6>/dev
/null
642 # Find the source files, if location was not specified.
643 if test -z "$srcdir"; then
644 ac_srcdir_defaulted
=yes
645 # Try the directory containing this script, then its parent.
647 ac_confdir
=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
648 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
650 if test ! -r $srcdir/$ac_unique_file; then
654 ac_srcdir_defaulted
=no
656 if test ! -r $srcdir/$ac_unique_file; then
657 if test "$ac_srcdir_defaulted" = yes; then
658 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
659 { (exit 1); exit 1; }; }
661 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
662 { (exit 1); exit 1; }; }
665 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
666 ac_env_build_alias_set
=${build_alias+set}
667 ac_env_build_alias_value
=$build_alias
668 ac_cv_env_build_alias_set
=${build_alias+set}
669 ac_cv_env_build_alias_value
=$build_alias
670 ac_env_host_alias_set
=${host_alias+set}
671 ac_env_host_alias_value
=$host_alias
672 ac_cv_env_host_alias_set
=${host_alias+set}
673 ac_cv_env_host_alias_value
=$host_alias
674 ac_env_target_alias_set
=${target_alias+set}
675 ac_env_target_alias_value
=$target_alias
676 ac_cv_env_target_alias_set
=${target_alias+set}
677 ac_cv_env_target_alias_value
=$target_alias
678 ac_env_CC_set
=${CC+set}
680 ac_cv_env_CC_set
=${CC+set}
681 ac_cv_env_CC_value
=$CC
682 ac_env_CFLAGS_set
=${CFLAGS+set}
683 ac_env_CFLAGS_value
=$CFLAGS
684 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
685 ac_cv_env_CFLAGS_value
=$CFLAGS
686 ac_env_LDFLAGS_set
=${LDFLAGS+set}
687 ac_env_LDFLAGS_value
=$LDFLAGS
688 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
689 ac_cv_env_LDFLAGS_value
=$LDFLAGS
690 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
691 ac_env_CPPFLAGS_value
=$CPPFLAGS
692 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
693 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
694 ac_env_CPP_set
=${CPP+set}
695 ac_env_CPP_value
=$CPP
696 ac_cv_env_CPP_set
=${CPP+set}
697 ac_cv_env_CPP_value
=$CPP
700 # Report the --help message.
702 if test "$ac_init_help" = "long"; then
703 # Omit some internal or obsolete options to make the list less imposing.
704 # This message is too long to be a string in the A/UX 3.1 sh.
706 \`configure' configures GNU Bison 1.29e to adapt to many kinds of systems.
708 Usage: $0 [OPTION]... [VAR=VALUE]...
710 To assign environment variables (e.g., CC, CFLAGS...), specify them as
711 VAR=VALUE. See below for descriptions of some of the useful variables.
713 Defaults for the options are specified in brackets.
716 -h, --help display this help and exit
717 --help=short display options specific to this package
718 --help=recursive display the short help of all the included packages
719 -V, --version display version information and exit
720 -q, --quiet, --silent do not print \`checking...' messages
721 --cache-file=FILE cache test results in FILE [disabled]
722 -C, --config-cache alias for \`--cache-file=config.cache'
723 -n, --no-create do not create output files
724 --srcdir=DIR find the sources in DIR [configure dir or \`..']
729 Installation directories:
730 --prefix=PREFIX install architecture-independent files in PREFIX
732 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
735 By default, \`make install' will install all the files in
736 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
737 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
738 for instance \`--prefix=\$HOME'.
740 For better control, use the options below.
742 Fine tuning of the installation directories:
743 --bindir=DIR user executables [EPREFIX/bin]
744 --sbindir=DIR system admin executables [EPREFIX/sbin]
745 --libexecdir=DIR program executables [EPREFIX/libexec]
746 --datadir=DIR read-only architecture-independent data [PREFIX/share]
747 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
748 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
749 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
750 --libdir=DIR object code libraries [EPREFIX/lib]
751 --includedir=DIR C header files [PREFIX/include]
752 --oldincludedir=DIR C header files for non-gcc [/usr/include]
753 --infodir=DIR info documentation [PREFIX/info]
754 --mandir=DIR man documentation [PREFIX/man]
760 --program-prefix=PREFIX prepend PREFIX to installed program names
761 --program-suffix=SUFFIX append SUFFIX to installed program names
762 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
765 --build=BUILD configure
for building on BUILD
[guessed
]
766 --host=HOST build programs to run on HOST
[BUILD
]
770 if test -n "$ac_init_help"; then
771 case $ac_init_help in
772 short
| recursive
) echo "Configuration of GNU Bison 1.29e:";;
777 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
778 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
779 --disable-dependency-tracking Speeds up one
-time builds
780 --enable-dependency-tracking Do not reject slow dependency extractors
781 --enable-gcc-warnings turn on lots of GCC warnings
(not recommended
)
782 --disable-nls do not use Native Language Support
785 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
786 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
787 --with-dmalloc use dmalloc
, as
in
788 http
://www.dmalloc.com
/dmalloc.
tar.gz
789 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
790 --with-included-gettext use the GNU
gettext library included here
792 Some influential environment variables
:
793 CC C compiler
command
794 CFLAGS C compiler flags
795 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
796 nonstandard directory
<lib dir
>
797 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
798 headers
in a nonstandard directory
<include dir
>
801 Use these variables to override the choices made by
`configure' or to help
802 it to find libraries and programs with nonstandard names/locations.
804 Report bugs to <bug-bison@gnu.org>.
808 if test "$ac_init_help" = "recursive"; then
809 # If there are subdirs, report their specific --help.
811 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
812 test -d $ac_dir || continue
815 if test "$ac_dir" != .; then
816 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
817 # A "../" for each directory in $ac_dir_suffix.
818 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
820 ac_dir_suffix= ac_top_builddir=
824 .) # No --srcdir option. We are building in place.
826 if test -z "$ac_top_builddir"; then
829 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
831 [\\/]* | ?:[\\/]* ) # Absolute path.
832 ac_srcdir=$srcdir$ac_dir_suffix;
833 ac_top_srcdir=$srcdir ;;
835 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
836 ac_top_srcdir=$ac_top_builddir$srcdir ;;
838 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
840 ac_buildpath=`cd "$ac_dir" && cd $ac_builddir && pwd`
841 ac_top_buildpath=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
842 ac_srcpath=`cd "$ac_dir" && cd $ac_srcdir && pwd`
843 ac_top_srcpath=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
846 # Check for guested configure; otherwise get Cygnus style configure.
847 if test -f $ac_srcdir/configure.gnu; then
849 $SHELL $ac_srcdir/configure.gnu --help=recursive
850 elif test -f $ac_srcdir/configure; then
852 $SHELL $ac_srcdir/configure --help=recursive
853 elif test -f $ac_srcdir/configure.ac ||
854 test -f $ac_srcdir/configure.in; then
858 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
864 test -n "$ac_init_help" && exit 0
865 if $ac_init_version; then
867 GNU Bison configure 1.29e
868 generated by GNU Autoconf 2.52e
870 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
871 Free Software Foundation, Inc.
872 This configure script is free software; the Free Software Foundation
873 gives unlimited permission to copy, distribute and modify it.
879 This file contains any messages produced by compilers while
880 running configure, to aid debugging if configure makes a mistake.
882 It was created by GNU Bison $as_me 1.29e, which was
883 generated by GNU Autoconf 2.52e. Invocation command line was
894 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
895 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
896 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
897 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
898 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
900 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
901 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
903 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
904 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
905 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
906 hostinfo = `(hostinfo
) 2>/dev
/null
|| echo unknown
`
907 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
908 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
909 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
917 test -z "$as_dir" && as_dir=.
931 # Keep a trace of the command line.
932 # Strip out --no-create and --no-recursion so they do not pile up.
933 # Also quote any args containing shell meta-characters.
939 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
940 | --no-cr | --no-c) ;;
941 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
942 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
943 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
944 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
945 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
947 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
950 # Get rid of the leading space.
953 # When interrupted or exit'd, cleanup temporary files, and complete
954 # config.log. We remove comments because anyway the quotes in there
955 # would cause problems or look ugly.
956 # WARNING: Be sure not to use single quotes in there, as some shells,
957 # such as our DU 5.0 friend, will then `close
' the trap.
959 # Save into config.log some information that might help in debugging.
963 ## ---------------- ##
964 ## Cache variables. ##
965 ## ---------------- ##
968 # The following way of writing the cache mishandles newlines in values,
971 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
974 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
975 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
979 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
984 if test -s confdefs.h
; then
991 sed "/^$/d" confdefs.h
994 test "$ac_signal" != 0 &&
995 echo "$as_me: caught signal $ac_signal"
996 echo "$as_me: exit $exit_status"
998 rm -rf conftest
* confdefs
* core core.
* *.core conf$$
* $ac_clean_files &&
1001 for ac_signal in 1 2 13 15; do
1002 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1006 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1007 rm -rf conftest* confdefs.h
1008 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1011 # Let the site file select an alternate cache file if it wants to.
1012 # Prefer explicitly selected file to automatically selected ones.
1013 if test -z "$CONFIG_SITE"; then
1014 if test "x$prefix" != xNONE; then
1015 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1017 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1020 for ac_site_file in $CONFIG_SITE; do
1021 if test -r "$ac_site_file"; then
1022 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1023 echo "$as_me: loading site script $ac_site_file" >&6;}
1024 sed 's
/^
/| /' "$ac_site_file" >&5
1029 if test -r "$cache_file"; then
1030 # Some versions of bash will fail to source /dev/null (special
1031 # files actually), so we avoid doing that.
1032 if test -f "$cache_file"; then
1033 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1034 echo "$as_me: loading cache $cache_file" >&6;}
1036 [\\/]* | ?:[\\/]* ) . $cache_file;;
1037 *) . ./$cache_file;;
1041 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1042 echo "$as_me: creating cache $cache_file" >&6;}
1046 # Check that the precious variables saved in the cache have kept the same
1048 ac_cache_corrupted=false
1049 for ac_var in `(set) 2>&1 |
1050 sed -n 's
/^ac_env_\
([a
-zA-Z_0-9]*\
)_set
=.
*/\
1/p
'`; do
1051 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1052 eval ac_new_set=\$ac_env_${ac_var}_set
1053 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1054 eval ac_new_val="\$ac_env_${ac_var}_value"
1055 case $ac_old_set,$ac_new_set in
1057 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1058 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1059 ac_cache_corrupted=: ;;
1061 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1062 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1063 ac_cache_corrupted=: ;;
1066 if test "x$ac_old_val" != "x$ac_new_val"; then
1067 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1068 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1069 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1070 echo "$as_me: former value: $ac_old_val" >&2;}
1071 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1072 echo "$as_me: current value: $ac_new_val" >&2;}
1073 ac_cache_corrupted=:
1076 # Pass precious variables to config.status. It doesn't matter if
1077 # we pass some twice (in addition to the command line arguments).
1078 if test "$ac_new_set" = set; then
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1082 ac_configure_args="$ac_configure_args '$ac_arg'"
1084 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1089 if $ac_cache_corrupted; then
1090 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1091 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1092 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1093 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1094 { (exit 1); exit 1; }; }
1098 ac_cpp='$CPP $CPPFLAGS'
1099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1100 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1104 for ac_dir in config $srcdir/config; do
1105 if test -f $ac_dir/install-sh; then
1107 ac_install_sh="$ac_aux_dir/install-sh -c"
1109 elif test -f $ac_dir/install.sh; then
1111 ac_install_sh="$ac_aux_dir/install.sh -c"
1113 elif test -f $ac_dir/shtool; then
1115 ac_install_sh="$ac_aux_dir/shtool install -c"
1119 if test -z "$ac_aux_dir"; then
1120 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1121 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1122 { (exit 1); exit 1; }; }
1124 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1125 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1126 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1128 # Find a good install program. We prefer a C program (faster),
1129 # so one script is as good as another. But avoid the broken or
1130 # incompatible versions:
1131 # SysV /etc/install, /usr/sbin/install
1132 # SunOS /usr/etc/install
1133 # IRIX /sbin/install
1135 # AmigaOS /C/install, which installs bootblocks on floppy discs
1136 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1137 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1138 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1139 # ./install, which can be erroneously created by make from ./install.sh.
1140 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
1141 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1142 if test -z "$INSTALL"; then
1143 if test "${ac_cv_path_install+set}" = set; then
1144 echo $ECHO_N "(cached) $ECHO_C" >&6
1146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1150 test -z "$as_dir" && as_dir
=.
1151 # Account for people who put trailing slashes in PATH elements.
1153 .
/ | .
// | /cC
/* | \
1154 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
1157 # OSF1 and SCO ODT 3.0 have their own names for install.
1158 # Don't use installbsd from OSF since it installs stuff as root
1160 for ac_prog
in ginstall scoinst
install; do
1161 for ac_exec_ext
in '' $ac_executable_extensions; do
1162 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1163 if test $ac_prog = install &&
1164 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1165 # AIX install. It has an incompatible calling convention.
1167 elif test $ac_prog = install &&
1168 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1169 # program-specific install script used by HP pwplus--don't use.
1172 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1183 if test "${ac_cv_path_install+set}" = set; then
1184 INSTALL
=$ac_cv_path_install
1186 # As a last resort, use the slow shell script. We don't cache a
1187 # path for INSTALL within a source directory, because that will
1188 # break other packages using the cache if that directory is
1189 # removed, or if the path is relative.
1190 INSTALL
=$ac_install_sh
1193 echo "$as_me:$LINENO: result: $INSTALL" >&5
1194 echo "${ECHO_T}$INSTALL" >&6
1196 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1197 # It thinks the first close brace ends the variable substitution.
1198 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1200 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1202 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1204 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1205 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1208 echo timestamp
> conftest.
file
1209 # Do `set' in a subshell so we don't clobber the current shell's
1210 # arguments. Must try -L first in case configure is actually a
1211 # symlink; some systems play weird games with the mod time of symlinks
1212 # (eg FreeBSD returns the mod time of the symlink's containing
1215 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1216 if test "$*" = "X"; then
1218 set X
`ls -t $srcdir/configure conftest.file`
1221 if test "$*" != "X $srcdir/configure conftest.file" \
1222 && test "$*" != "X conftest.file $srcdir/configure"; then
1224 # If neither matched, then we have a broken ls. This can happen
1225 # if, for instance, CONFIG_SHELL is bash and it inherits a
1226 # broken ls alias from the environment. This has actually
1227 # happened. Such a system could not be considered "sane".
1228 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1229 alias in your environment" >&5
1230 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1231 alias in your environment" >&2;}
1232 { (exit 1); exit 1; }; }
1235 test "$2" = conftest.
file
1241 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1242 Check your system clock" >&5
1243 echo "$as_me: error: newly created file is older than distributed files!
1244 Check your system clock" >&2;}
1245 { (exit 1); exit 1; }; }
1247 echo "$as_me:$LINENO: result: yes" >&5
1248 echo "${ECHO_T}yes" >&6
1249 test "$program_prefix" != NONE
&&
1250 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1251 # Use a double $ so make ignores it.
1252 test "$program_suffix" != NONE
&&
1253 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1254 # Double any \ or $. echo might interpret backslashes.
1255 # By default was `s,x,x', remove it if useless.
1256 cat <<\_ACEOF
>conftest.
sed
1257 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1259 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1262 # expand $ac_aux_dir to an absolute path
1263 am_aux_dir
=`cd $ac_aux_dir && pwd`
1265 test x
"${MISSING+set}" = xset
|| MISSING
="\${SHELL} $am_aux_dir/missing"
1266 # Use eval to expand $SHELL
1267 if eval "$MISSING --run true"; then
1268 am_missing_run
="$MISSING --run "
1272 { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1273 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1276 for ac_prog
in mawk gawk nawk
awk
1278 # Extract the first word of "$ac_prog", so it can be a program name with args.
1279 set dummy
$ac_prog; ac_word
=$2
1280 echo "$as_me:$LINENO: checking for $ac_word" >&5
1281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1282 if test "${ac_cv_prog_AWK+set}" = set; then
1283 echo $ECHO_N "(cached) $ECHO_C" >&6
1285 if test -n "$AWK"; then
1286 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1288 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1292 test -z "$as_dir" && as_dir
=.
1293 for ac_exec_ext
in '' $ac_executable_extensions; do
1294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1295 ac_cv_prog_AWK
="$ac_prog"
1296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1305 if test -n "$AWK"; then
1306 echo "$as_me:$LINENO: result: $AWK" >&5
1307 echo "${ECHO_T}$AWK" >&6
1309 echo "$as_me:$LINENO: result: no" >&5
1310 echo "${ECHO_T}no" >&6
1313 test -n "$AWK" && break
1316 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1317 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1318 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
1319 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1320 echo $ECHO_N "(cached) $ECHO_C" >&6
1322 cat >conftest.
make <<\_ACEOF
1324 @
echo 'ac_maketemp="${MAKE}"'
1326 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1327 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1328 if test -n "$ac_maketemp"; then
1329 eval ac_cv_prog_make_
${ac_make}_set
=yes
1331 eval ac_cv_prog_make_
${ac_make}_set
=no
1335 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1336 echo "$as_me:$LINENO: result: yes" >&5
1337 echo "${ECHO_T}yes" >&6
1340 echo "$as_me:$LINENO: result: no" >&5
1341 echo "${ECHO_T}no" >&6
1342 SET_MAKE
="MAKE=${MAKE-make}"
1345 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1346 if test "${enable_dependency_tracking+set}" = set; then
1347 enableval
="$enable_dependency_tracking"
1350 if test "x$enable_dependency_tracking" != xno
; then
1351 am_depcomp
="$ac_aux_dir/depcomp"
1355 if test "x$enable_dependency_tracking" != xno; then
1363 rm -f .deps
2>/dev
/null
1364 mkdir .deps
2>/dev
/null
1365 if test -d .deps
; then
1368 # MS-DOS does not allow filenames that begin with a dot.
1371 rmdir .deps
2>/dev
/null
1373 # test to see if srcdir already configured
1374 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1375 test -f $srcdir/config.status
; then
1376 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1377 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1378 { (exit 1); exit 1; }; }
1381 # Define the identity of the package.
1385 cat >>confdefs.h
<<_ACEOF
1386 #define PACKAGE "$PACKAGE"
1389 cat >>confdefs.h
<<_ACEOF
1390 #define VERSION "$VERSION"
1393 # Some tools Automake needs.
1395 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal"}
1397 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1399 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake"}
1401 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1403 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1405 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1407 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1409 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1411 # We need awk for the "check" target. The system "awk" is bad on
1414 ac_config_headers
="$ac_config_headers config.h:config.hin"
1416 # Initialize the test suite.
1417 ac_config_commands
="$ac_config_commands tests/package.m4"
1419 ac_config_commands
="$ac_config_commands tests/atconfig"
1421 if test -f $srcdir/tests
/atlocal.
in; then
1422 ac_config_files
="$ac_config_files tests/atlocal"
1426 ac_config_files
="$ac_config_files tests/bison"
1428 # Checks for programs.
1430 ac_cpp
='$CPP $CPPFLAGS'
1431 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1432 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1433 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1434 if test -n "$ac_tool_prefix"; then
1435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1436 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1437 echo "$as_me:$LINENO: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_prog_CC+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 if test -n "$CC"; then
1443 ac_cv_prog_CC
="$CC" # Let the user override the test.
1445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1449 test -z "$as_dir" && as_dir
=.
1450 for ac_exec_ext
in '' $ac_executable_extensions; do
1451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1452 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1462 if test -n "$CC"; then
1463 echo "$as_me:$LINENO: result: $CC" >&5
1464 echo "${ECHO_T}$CC" >&6
1466 echo "$as_me:$LINENO: result: no" >&5
1467 echo "${ECHO_T}no" >&6
1471 if test -z "$ac_cv_prog_CC"; then
1473 # Extract the first word of "gcc", so it can be a program name with args.
1474 set dummy gcc
; ac_word
=$2
1475 echo "$as_me:$LINENO: checking for $ac_word" >&5
1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 if test -n "$ac_ct_CC"; then
1481 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1483 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1487 test -z "$as_dir" && as_dir
=.
1488 for ac_exec_ext
in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490 ac_cv_prog_ac_ct_CC
="gcc"
1491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1500 if test -n "$ac_ct_CC"; then
1501 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1502 echo "${ECHO_T}$ac_ct_CC" >&6
1504 echo "$as_me:$LINENO: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1513 if test -z "$CC"; then
1514 if test -n "$ac_tool_prefix"; then
1515 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1516 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1517 echo "$as_me:$LINENO: checking for $ac_word" >&5
1518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519 if test "${ac_cv_prog_CC+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 if test -n "$CC"; then
1523 ac_cv_prog_CC
="$CC" # Let the user override the test.
1525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1529 test -z "$as_dir" && as_dir
=.
1530 for ac_exec_ext
in '' $ac_executable_extensions; do
1531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1542 if test -n "$CC"; then
1543 echo "$as_me:$LINENO: result: $CC" >&5
1544 echo "${ECHO_T}$CC" >&6
1546 echo "$as_me:$LINENO: result: no" >&5
1547 echo "${ECHO_T}no" >&6
1551 if test -z "$ac_cv_prog_CC"; then
1553 # Extract the first word of "cc", so it can be a program name with args.
1554 set dummy cc
; ac_word
=$2
1555 echo "$as_me:$LINENO: checking for $ac_word" >&5
1556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 if test -n "$ac_ct_CC"; then
1561 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1563 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1567 test -z "$as_dir" && as_dir
=.
1568 for ac_exec_ext
in '' $ac_executable_extensions; do
1569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570 ac_cv_prog_ac_ct_CC
="cc"
1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1579 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1580 if test -n "$ac_ct_CC"; then
1581 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1582 echo "${ECHO_T}$ac_ct_CC" >&6
1584 echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1594 if test -z "$CC"; then
1595 # Extract the first word of "cc", so it can be a program name with args.
1596 set dummy cc
; ac_word
=$2
1597 echo "$as_me:$LINENO: checking for $ac_word" >&5
1598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599 if test "${ac_cv_prog_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 if test -n "$CC"; then
1603 ac_cv_prog_CC
="$CC" # Let the user override the test.
1606 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1610 test -z "$as_dir" && as_dir
=.
1611 for ac_exec_ext
in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1614 ac_prog_rejected
=yes
1618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624 if test $ac_prog_rejected = yes; then
1625 # We found a bogon in the path, so make sure we never use it.
1626 set dummy
$ac_cv_prog_CC
1628 if test $# != 0; then
1629 # We chose a different compiler from the bogus one.
1630 # However, it has the same basename, so the bogon will be chosen
1631 # first if we set CC to just the basename; use the full file name.
1633 set dummy
"$as_dir/$ac_word" ${1+"$@"}
1641 if test -n "$CC"; then
1642 echo "$as_me:$LINENO: result: $CC" >&5
1643 echo "${ECHO_T}$CC" >&6
1645 echo "$as_me:$LINENO: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1650 if test -z "$CC"; then
1651 if test -n "$ac_tool_prefix"; then
1654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1655 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1656 echo "$as_me:$LINENO: checking for $ac_word" >&5
1657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1658 if test "${ac_cv_prog_CC+set}" = set; then
1659 echo $ECHO_N "(cached) $ECHO_C" >&6
1661 if test -n "$CC"; then
1662 ac_cv_prog_CC
="$CC" # Let the user override the test.
1664 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1668 test -z "$as_dir" && as_dir
=.
1669 for ac_exec_ext
in '' $ac_executable_extensions; do
1670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1671 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1681 if test -n "$CC"; then
1682 echo "$as_me:$LINENO: result: $CC" >&5
1683 echo "${ECHO_T}$CC" >&6
1685 echo "$as_me:$LINENO: result: no" >&5
1686 echo "${ECHO_T}no" >&6
1689 test -n "$CC" && break
1692 if test -z "$CC"; then
1696 # Extract the first word of "$ac_prog", so it can be a program name with args.
1697 set dummy
$ac_prog; ac_word
=$2
1698 echo "$as_me:$LINENO: checking for $ac_word" >&5
1699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
1703 if test -n "$ac_ct_CC"; then
1704 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1706 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1710 test -z "$as_dir" && as_dir
=.
1711 for ac_exec_ext
in '' $ac_executable_extensions; do
1712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1713 ac_cv_prog_ac_ct_CC
="$ac_prog"
1714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1723 if test -n "$ac_ct_CC"; then
1724 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1725 echo "${ECHO_T}$ac_ct_CC" >&6
1727 echo "$as_me:$LINENO: result: no" >&5
1728 echo "${ECHO_T}no" >&6
1731 test -n "$ac_ct_CC" && break
1739 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
1740 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1741 { (exit 1); exit 1; }; }
1743 # Provide some information about the compiler.
1744 echo "$as_me:$LINENO:" \
1745 "checking for C compiler version" >&5
1746 ac_compiler
=`set X $ac_compile; echo $2`
1747 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1748 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751 (exit $ac_status); }
1752 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1753 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756 (exit $ac_status); }
1757 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1758 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }
1763 cat >conftest.
$ac_ext <<_ACEOF
1764 #line $LINENO "configure"
1765 #include "confdefs.h"
1767 #ifdef F77_DUMMY_MAIN
1771 int F77_DUMMY_MAIN() { return 1; }
1781 ac_clean_files_save
=$ac_clean_files
1782 ac_clean_files
="$ac_clean_files a.out a.exe"
1783 # Try to create an executable without -o first, disregard a.out.
1784 # It will help us diagnose broken compilers, and finding out an intuition
1786 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1787 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1788 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1789 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1790 (eval $ac_link_default) 2>&5
1792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793 (exit $ac_status); }; then
1794 # Find the output, starting from the most likely. This scheme is
1795 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1797 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1798 ls a.out conftest 2>/dev/null;
1799 ls a.* conftest.* 2>/dev/null`; do
1801 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
) ;;
1802 a.out
) # We found the default executable, but exeext='' is most
1805 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1806 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1813 echo "$as_me: failed program was:" >&5
1814 cat conftest.
$ac_ext >&5
1815 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1816 echo "$as_me: error: C compiler cannot create executables" >&2;}
1817 { (exit 77); exit 77; }; }
1820 ac_exeext
=$ac_cv_exeext
1821 echo "$as_me:$LINENO: result: $ac_file" >&5
1822 echo "${ECHO_T}$ac_file" >&6
1824 # Check the compiler produces executables we can run. If not, either
1825 # the compiler is broken, or we cross compile.
1826 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1827 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1828 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1829 # If not cross compiling, check that we can run a simple program.
1830 if test "$cross_compiling" != yes; then
1831 if { ac_try
='./$ac_file'
1832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1836 (exit $ac_status); }; }; then
1839 if test "$cross_compiling" = maybe
; then
1842 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1843 If you meant to cross compile, use \`--host'." >&5
1844 echo "$as_me: error: cannot run C compiled programs.
1845 If you meant to cross compile, use \`--host'." >&2;}
1846 { (exit 1); exit 1; }; }
1850 echo "$as_me:$LINENO: result: yes" >&5
1851 echo "${ECHO_T}yes" >&6
1853 rm -f a.out a.exe conftest
$ac_cv_exeext
1854 ac_clean_files
=$ac_clean_files_save
1855 # Check the compiler produces executables we can run. If not, either
1856 # the compiler is broken, or we cross compile.
1857 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1858 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1859 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1860 echo "${ECHO_T}$cross_compiling" >&6
1862 echo "$as_me:$LINENO: checking for executable suffix" >&5
1863 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1865 (eval $ac_link) 2>&5
1867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1868 (exit $ac_status); }; then
1869 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1870 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1871 # work properly (i.e., refer to `conftest.exe'), while it won't with
1873 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1875 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1876 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1883 { { echo "$as_me:$LINENO: error: cannot compute EXEEXT: cannot compile and link" >&5
1884 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1885 { (exit 1); exit 1; }; }
1888 rm -f conftest
$ac_cv_exeext
1889 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1890 echo "${ECHO_T}$ac_cv_exeext" >&6
1892 rm -f conftest.
$ac_ext
1893 EXEEXT
=$ac_cv_exeext
1895 echo "$as_me:$LINENO: checking for object suffix" >&5
1896 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1897 if test "${ac_cv_objext+set}" = set; then
1898 echo $ECHO_N "(cached) $ECHO_C" >&6
1900 cat >conftest.
$ac_ext <<_ACEOF
1901 #line $LINENO "configure"
1902 #include "confdefs.h"
1904 #ifdef F77_DUMMY_MAIN
1908 int F77_DUMMY_MAIN() { return 1; }
1918 rm -f conftest.o conftest.obj
1919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1920 (eval $ac_compile) 2>&5
1922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923 (exit $ac_status); }; then
1924 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1926 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1927 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1932 echo "$as_me: failed program was:" >&5
1933 cat conftest.
$ac_ext >&5
1934 { { echo "$as_me:$LINENO: error: cannot compute OBJEXT: cannot compile" >&5
1935 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1936 { (exit 1); exit 1; }; }
1939 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1941 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1942 echo "${ECHO_T}$ac_cv_objext" >&6
1943 OBJEXT
=$ac_cv_objext
1945 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1946 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1947 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 cat >conftest.
$ac_ext <<_ACEOF
1951 #line $LINENO "configure"
1952 #include "confdefs.h"
1954 #ifdef F77_DUMMY_MAIN
1958 int F77_DUMMY_MAIN() { return 1; }
1971 rm -f conftest.
$ac_objext
1972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1973 (eval $ac_compile) 2>&5
1975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976 (exit $ac_status); } &&
1977 { ac_try
='test -s conftest.$ac_objext'
1978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982 (exit $ac_status); }; }; then
1985 echo "$as_me: failed program was:" >&5
1986 cat conftest.
$ac_ext >&5
1989 rm -f conftest.
$ac_objext conftest.
$ac_ext
1990 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1993 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1994 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1995 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1996 ac_test_CFLAGS
=${CFLAGS+set}
1997 ac_save_CFLAGS
=$CFLAGS
1999 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2000 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2001 if test "${ac_cv_prog_cc_g+set}" = set; then
2002 echo $ECHO_N "(cached) $ECHO_C" >&6
2004 cat >conftest.
$ac_ext <<_ACEOF
2005 #line $LINENO "configure"
2006 #include "confdefs.h"
2008 #ifdef F77_DUMMY_MAIN
2012 int F77_DUMMY_MAIN() { return 1; }
2022 rm -f conftest.
$ac_objext
2023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2024 (eval $ac_compile) 2>&5
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027 (exit $ac_status); } &&
2028 { ac_try
='test -s conftest.$ac_objext'
2029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); }; }; then
2036 echo "$as_me: failed program was:" >&5
2037 cat conftest.
$ac_ext >&5
2040 rm -f conftest.
$ac_objext conftest.
$ac_ext
2042 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2043 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2044 if test "$ac_test_CFLAGS" = set; then
2045 CFLAGS
=$ac_save_CFLAGS
2046 elif test $ac_cv_prog_cc_g = yes; then
2047 if test "$GCC" = yes; then
2053 if test "$GCC" = yes; then
2059 # Some people use a C++ compiler to compile C. Since we use `exit',
2060 # in C++ we need to declare it. In case someone uses the same compiler
2061 # for both compiling C and C++ we need to have the C++ compiler decide
2062 # the declaration of exit, since it's the most demanding environment.
2063 cat >conftest.
$ac_ext <<_ACEOF
2068 rm -f conftest.
$ac_objext
2069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2070 (eval $ac_compile) 2>&5
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); } &&
2074 { ac_try
='test -s conftest.$ac_objext'
2075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); }; }; then
2080 for ac_declaration
in \
2082 '#include <stdlib.h>' \
2083 'extern "C" void std::exit (int) throw (); using std::exit;' \
2084 'extern "C" void std::exit (int); using std::exit;' \
2085 'extern "C" void exit (int) throw ();' \
2086 'extern "C" void exit (int);' \
2089 cat >conftest.
$ac_ext <<_ACEOF
2090 #line $LINENO "configure"
2091 #include "confdefs.h"
2094 #ifdef F77_DUMMY_MAIN
2098 int F77_DUMMY_MAIN() { return 1; }
2108 rm -f conftest.
$ac_objext
2109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2110 (eval $ac_compile) 2>&5
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); } &&
2114 { ac_try
='test -s conftest.$ac_objext'
2115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; }; then
2122 echo "$as_me: failed program was:" >&5
2123 cat conftest.
$ac_ext >&5
2126 rm -f conftest.
$ac_objext conftest.
$ac_ext
2127 cat >conftest.
$ac_ext <<_ACEOF
2128 #line $LINENO "configure"
2129 #include "confdefs.h"
2131 #ifdef F77_DUMMY_MAIN
2135 int F77_DUMMY_MAIN() { return 1; }
2145 rm -f conftest.
$ac_objext
2146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2147 (eval $ac_compile) 2>&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); } &&
2151 { ac_try
='test -s conftest.$ac_objext'
2152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }; }; then
2159 echo "$as_me: failed program was:" >&5
2160 cat conftest.
$ac_ext >&5
2162 rm -f conftest.
$ac_objext conftest.
$ac_ext
2165 if test -n "$ac_declaration"; then
2166 echo '#ifdef __cplusplus' >>confdefs.h
2167 echo $ac_declaration >>confdefs.h
2168 echo '#endif' >>confdefs.h
2172 echo "$as_me: failed program was:" >&5
2173 cat conftest.
$ac_ext >&5
2175 rm -f conftest.
$ac_objext conftest.
$ac_ext
2177 ac_cpp
='$CPP $CPPFLAGS'
2178 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2179 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2180 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2182 ac_config_commands
="$ac_config_commands default-1"
2184 am_make
=${MAKE-make}
2185 cat > confinc
<< 'END'
2189 # If we don't find an include directive, just comment out the code.
2190 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2191 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2195 # First try GNU make style include.
2196 echo "include confinc" > confmf
2197 # We grep out `Entering directory' and `Leaving directory'
2198 # messages which can occur if `w' ends up in MAKEFLAGS.
2199 # In particular we don't look at `^make:' because GNU make might
2200 # be invoked under some other name (usually "gmake"), in which
2201 # case it prints its new name instead of `make'.
2202 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2207 # Now try BSD make style include.
2208 if test "$am__include" = "#"; then
2209 echo '.include "confinc"' > confmf
2210 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2211 am__include
=.include
2217 echo "$as_me:$LINENO: result: $_am_result" >&5
2218 echo "${ECHO_T}$_am_result" >&6
2219 rm -f confinc confmf
2221 depcc
="$CC" am_compiler_list
=
2223 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2224 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2225 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2226 echo $ECHO_N "(cached) $ECHO_C" >&6
2228 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2229 # We make a subdir and do the tests there. Otherwise we can end up
2230 # making bogus files that we don't know about and never remove. For
2231 # instance it was reported that on HP-UX the gcc test will end up
2232 # making a dummy file named `D' -- because `-MD' means `put the output
2235 # Copy depcomp to subdir because otherwise we won't find it if we're
2236 # using a relative directory.
2237 cp "$am_depcomp" conftest.dir
2240 am_cv_CC_dependencies_compiler_type
=none
2241 if test "$am_compiler_list" = ""; then
2242 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2244 for depmode
in $am_compiler_list; do
2245 # We need to recreate these files for each test, as the compiler may
2246 # overwrite some of them when testing with obscure command lines.
2247 # This happens at least with the AIX C compiler.
2248 echo '#include "conftest.h"' > conftest.c
2249 echo 'int i;' > conftest.h
2250 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2254 # after this tag, mechanisms are not by side-effect, so they'll
2255 # only be used when explicitly requested
2256 if test "x$enable_dependency_tracking" = xyes
; then
2264 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2265 # mode. It turns out that the SunPro C++ compiler does not properly
2266 # handle `-M -o', and we need to detect this.
2267 if depmode
=$depmode \
2268 source=conftest.c object
=conftest.o \
2269 depfile
=conftest.Po tmpdepfile
=conftest.TPo \
2270 $SHELL .
/depcomp
$depcc -c conftest.c
-o conftest.o
>/dev
/null
2>&1 &&
2271 grep conftest.h conftest.Po
> /dev
/null
2>&1 &&
2272 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2273 am_cv_CC_dependencies_compiler_type
=$depmode
2281 am_cv_CC_dependencies_compiler_type
=none
2285 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2286 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2287 CCDEPMODE
="depmode=$am_cv_CC_dependencies_compiler_type"
2290 ac_cpp
='$CPP $CPPFLAGS'
2291 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2292 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2293 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2294 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2295 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2296 # On Suns, sometimes $CPP names a directory.
2297 if test -n "$CPP" && test -d "$CPP"; then
2300 if test -z "$CPP"; then
2301 if test "${ac_cv_prog_CPP+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 # Double quotes because CPP needs to be expanded
2305 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2308 for ac_c_preproc_warn_flag
in '' yes
2310 # Use a header file that comes with gcc, so configuring glibc
2311 # with a fresh cross-compiler works.
2312 # On the NeXT, cc -E runs the code through the compiler's parser,
2313 # not just through cpp. "Syntax error" is here to catch this case.
2314 cat >conftest.
$ac_ext <<_ACEOF
2315 #line $LINENO "configure"
2316 #include "confdefs.h"
2320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2321 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2323 egrep -v '^ *\+' conftest.er1
>conftest.err
2325 cat conftest.err
>&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); } >/dev
/null
; then
2328 if test -s conftest.err
; then
2329 ac_cpp_err
=$ac_c_preproc_warn_flag
2336 if test -z "$ac_cpp_err"; then
2339 echo "$as_me: failed program was:" >&5
2340 cat conftest.
$ac_ext >&5
2341 # Broken: fails on valid input.
2344 rm -f conftest.err conftest.
$ac_ext
2346 # OK, works on sane cases. Now check whether non-existent headers
2347 # can be detected and how.
2348 cat >conftest.
$ac_ext <<_ACEOF
2349 #line $LINENO "configure"
2350 #include "confdefs.h"
2351 #include <ac_nonexistent.h>
2353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2354 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2356 egrep -v '^ *\+' conftest.er1
>conftest.err
2358 cat conftest.err
>&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); } >/dev
/null
; then
2361 if test -s conftest.err
; then
2362 ac_cpp_err
=$ac_c_preproc_warn_flag
2369 if test -z "$ac_cpp_err"; then
2370 # Broken: success on invalid input.
2373 echo "$as_me: failed program was:" >&5
2374 cat conftest.
$ac_ext >&5
2375 # Passes both tests.
2379 rm -f conftest.err conftest.
$ac_ext
2382 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2383 rm -f conftest.err conftest.
$ac_ext
2384 if $ac_preproc_ok; then
2396 echo "$as_me:$LINENO: result: $CPP" >&5
2397 echo "${ECHO_T}$CPP" >&6
2399 for ac_c_preproc_warn_flag
in '' yes
2401 # Use a header file that comes with gcc, so configuring glibc
2402 # with a fresh cross-compiler works.
2403 # On the NeXT, cc -E runs the code through the compiler's parser,
2404 # not just through cpp. "Syntax error" is here to catch this case.
2405 cat >conftest.
$ac_ext <<_ACEOF
2406 #line $LINENO "configure"
2407 #include "confdefs.h"
2411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2412 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2414 egrep -v '^ *\+' conftest.er1
>conftest.err
2416 cat conftest.err
>&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); } >/dev
/null
; then
2419 if test -s conftest.err
; then
2420 ac_cpp_err
=$ac_c_preproc_warn_flag
2427 if test -z "$ac_cpp_err"; then
2430 echo "$as_me: failed program was:" >&5
2431 cat conftest.
$ac_ext >&5
2432 # Broken: fails on valid input.
2435 rm -f conftest.err conftest.
$ac_ext
2437 # OK, works on sane cases. Now check whether non-existent headers
2438 # can be detected and how.
2439 cat >conftest.
$ac_ext <<_ACEOF
2440 #line $LINENO "configure"
2441 #include "confdefs.h"
2442 #include <ac_nonexistent.h>
2444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2445 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2447 egrep -v '^ *\+' conftest.er1
>conftest.err
2449 cat conftest.err
>&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } >/dev
/null
; then
2452 if test -s conftest.err
; then
2453 ac_cpp_err
=$ac_c_preproc_warn_flag
2460 if test -z "$ac_cpp_err"; then
2461 # Broken: success on invalid input.
2464 echo "$as_me: failed program was:" >&5
2465 cat conftest.
$ac_ext >&5
2466 # Passes both tests.
2470 rm -f conftest.err conftest.
$ac_ext
2473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2474 rm -f conftest.err conftest.
$ac_ext
2475 if $ac_preproc_ok; then
2478 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2479 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2480 { (exit 1); exit 1; }; }
2484 ac_cpp
='$CPP $CPPFLAGS'
2485 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2486 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2487 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2489 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2490 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2491 if test "${ac_cv_header_stdc+set}" = set; then
2492 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 cat >conftest.
$ac_ext <<_ACEOF
2495 #line $LINENO "configure"
2496 #include "confdefs.h"
2503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2504 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2506 egrep -v '^ *\+' conftest.er1
>conftest.err
2508 cat conftest.err
>&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); } >/dev
/null
; then
2511 if test -s conftest.err
; then
2512 ac_cpp_err
=$ac_c_preproc_warn_flag
2519 if test -z "$ac_cpp_err"; then
2520 ac_cv_header_stdc
=yes
2522 echo "$as_me: failed program was:" >&5
2523 cat conftest.
$ac_ext >&5
2524 ac_cv_header_stdc
=no
2526 rm -f conftest.err conftest.
$ac_ext
2528 if test $ac_cv_header_stdc = yes; then
2529 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2530 cat >conftest.
$ac_ext <<_ACEOF
2531 #line $LINENO "configure"
2532 #include "confdefs.h"
2536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2537 egrep "memchr" >/dev
/null
2>&1; then
2540 ac_cv_header_stdc
=no
2546 if test $ac_cv_header_stdc = yes; then
2547 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2548 cat >conftest.
$ac_ext <<_ACEOF
2549 #line $LINENO "configure"
2550 #include "confdefs.h"
2554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2555 egrep "free" >/dev
/null
2>&1; then
2558 ac_cv_header_stdc
=no
2564 if test $ac_cv_header_stdc = yes; then
2565 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2566 if test "$cross_compiling" = yes; then
2569 cat >conftest.
$ac_ext <<_ACEOF
2570 #line $LINENO "configure"
2571 #include "confdefs.h"
2573 #if ((' ' & 0x0FF) == 0x020)
2574 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2575 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2577 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2578 || ('j' <= (c) && (c) <= 'r') \
2579 || ('s' <= (c) && (c) <= 'z'))
2580 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2583 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2588 for (i = 0; i < 256; i++)
2589 if (XOR (islower (i), ISLOWER (i))
2590 || toupper (i) != TOUPPER (i))
2595 rm -f conftest
$ac_exeext
2596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2597 (eval $ac_link) 2>&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2608 echo "$as_me: program exited with status $ac_status" >&5
2609 echo "$as_me: failed program was:" >&5
2610 cat conftest.
$ac_ext >&5
2612 ac_cv_header_stdc
=no
2614 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2618 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2619 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2620 if test $ac_cv_header_stdc = yes; then
2622 cat >>confdefs.h
<<\_ACEOF
2623 #define STDC_HEADERS 1
2628 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2630 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2631 inttypes.h stdint.h unistd.h
2633 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2634 echo "$as_me:$LINENO: checking for $ac_header" >&5
2635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 cat >conftest.
$ac_ext <<_ACEOF
2640 #line $LINENO "configure"
2641 #include "confdefs.h"
2642 $ac_includes_default
2644 #include <$ac_header>
2646 rm -f conftest.
$ac_objext
2647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648 (eval $ac_compile) 2>&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } &&
2652 { ac_try
='test -s conftest.$ac_objext'
2653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; }; then
2658 eval "$as_ac_Header=yes"
2660 echo "$as_me: failed program was:" >&5
2661 cat conftest.
$ac_ext >&5
2662 eval "$as_ac_Header=no"
2664 rm -f conftest.
$ac_objext conftest.
$ac_ext
2666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2669 cat >>confdefs.h
<<_ACEOF
2670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2677 if test "${ac_cv_header_minix_config_h+set}" = set; then
2678 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2679 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2680 if test "${ac_cv_header_minix_config_h+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2684 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2686 # Is the header compilable?
2687 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2688 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2689 cat >conftest.
$ac_ext <<_ACEOF
2690 #line $LINENO "configure"
2691 #include "confdefs.h"
2692 $ac_includes_default
2693 #include <minix/config.h>
2695 rm -f conftest.
$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697 (eval $ac_compile) 2>&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
2701 { ac_try
='test -s conftest.$ac_objext'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; }; then
2707 ac_header_compiler
=yes
2709 echo "$as_me: failed program was:" >&5
2710 cat conftest.
$ac_ext >&5
2711 ac_header_compiler
=no
2713 rm -f conftest.
$ac_objext conftest.
$ac_ext
2714 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2715 echo "${ECHO_T}$ac_header_compiler" >&6
2717 # Is the header present?
2718 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2719 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2720 cat >conftest.
$ac_ext <<_ACEOF
2721 #line $LINENO "configure"
2722 #include "confdefs.h"
2723 #include <minix/config.h>
2725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2726 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2728 egrep -v '^ *\+' conftest.er1
>conftest.err
2730 cat conftest.err
>&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); } >/dev
/null
; then
2733 if test -s conftest.err
; then
2734 ac_cpp_err
=$ac_c_preproc_warn_flag
2741 if test -z "$ac_cpp_err"; then
2742 ac_header_preproc
=yes
2744 echo "$as_me: failed program was:" >&5
2745 cat conftest.
$ac_ext >&5
2746 ac_header_preproc
=no
2748 rm -f conftest.err conftest.
$ac_ext
2749 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2750 echo "${ECHO_T}$ac_header_preproc" >&6
2752 # So? What about this header?
2753 case $ac_header_compiler:$ac_header_preproc in
2755 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
2756 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2757 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2758 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2760 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled." >&5
2761 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled." >&2;}
2762 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
2763 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
2764 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2765 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2767 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2768 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2769 if test "${ac_cv_header_minix_config_h+set}" = set; then
2770 echo $ECHO_N "(cached) $ECHO_C" >&6
2772 ac_cv_header_minix_config_h
=$ac_header_preproc
2774 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2775 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2778 if test $ac_cv_header_minix_config_h = yes; then
2784 if test "$MINIX" = yes; then
2786 cat >>confdefs.h
<<\_ACEOF
2787 #define _POSIX_SOURCE 1
2790 cat >>confdefs.h
<<\_ACEOF
2791 #define _POSIX_1_SOURCE 2
2794 cat >>confdefs.h
<<\_ACEOF
2800 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2801 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2802 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2803 echo $ECHO_N "(cached) $ECHO_C" >&6
2805 ac_check_lib_save_LIBS
=$LIBS
2806 LIBS
="-lcposix $LIBS"
2807 cat >conftest.
$ac_ext <<_ACEOF
2808 #line $LINENO "configure"
2809 #include "confdefs.h"
2811 /* Override any gcc2 internal prototype to avoid an error. */
2815 /* We use char because int might match the return type of a gcc2
2816 builtin and then its argument prototype would still apply. */
2818 #ifdef F77_DUMMY_MAIN
2822 int F77_DUMMY_MAIN() { return 1; }
2832 rm -f conftest.
$ac_objext conftest
$ac_exeext
2833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2834 (eval $ac_link) 2>&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); } &&
2838 { ac_try
='test -s conftest$ac_exeext'
2839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; }; then
2844 ac_cv_lib_cposix_strerror
=yes
2846 echo "$as_me: failed program was:" >&5
2847 cat conftest.
$ac_ext >&5
2848 ac_cv_lib_cposix_strerror
=no
2850 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2851 LIBS
=$ac_check_lib_save_LIBS
2853 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2854 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2855 if test $ac_cv_lib_cposix_strerror = yes; then
2856 LIBS
="$LIBS -lcposix"
2859 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2860 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2861 if test "${am_cv_prog_cc_stdc+set}" = set; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2864 am_cv_prog_cc_stdc
=no
2866 # Don't try gcc -ansi; that turns off useful extensions and
2867 # breaks some systems' header files.
2868 # AIX -qlanglvl=ansi
2869 # Ultrix and OSF/1 -std1
2870 # HP-UX 10.20 and later -Ae
2871 # HP-UX older versions -Aa -D_HPUX_SOURCE
2872 # SVR4 -Xc -D__EXTENSIONS__
2873 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2875 CC
="$ac_save_CC $ac_arg"
2876 cat >conftest.
$ac_ext <<_ACEOF
2877 #line $LINENO "configure"
2878 #include "confdefs.h"
2881 #include <sys/types.h>
2882 #include <sys/stat.h>
2883 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2884 struct buf { int x; };
2885 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2886 static char *e (p, i)
2892 static char *f (char * (*g) (char **, int), char **p, ...)
2897 s = g (p, va_arg (v,int));
2901 int test (int i, double x);
2902 struct s1 {int (*f) (int a);};
2903 struct s2 {int (*f) (double a);};
2904 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2908 #ifdef F77_DUMMY_MAIN
2912 int F77_DUMMY_MAIN() { return 1; }
2918 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2924 rm -f conftest.
$ac_objext
2925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2926 (eval $ac_compile) 2>&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); } &&
2930 { ac_try
='test -s conftest.$ac_objext'
2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; }; then
2936 am_cv_prog_cc_stdc
="$ac_arg"; break
2938 echo "$as_me: failed program was:" >&5
2939 cat conftest.
$ac_ext >&5
2941 rm -f conftest.
$ac_objext conftest.
$ac_ext
2947 if test -z "$am_cv_prog_cc_stdc"; then
2948 echo "$as_me:$LINENO: result: none needed" >&5
2949 echo "${ECHO_T}none needed" >&6
2951 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2952 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2954 case "x$am_cv_prog_cc_stdc" in
2956 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
2959 if test -n "$ac_tool_prefix"; then
2960 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2961 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2962 echo "$as_me:$LINENO: checking for $ac_word" >&5
2963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2964 if test "${ac_cv_prog_RANLIB+set}" = set; then
2965 echo $ECHO_N "(cached) $ECHO_C" >&6
2967 if test -n "$RANLIB"; then
2968 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2974 test -z "$as_dir" && as_dir
=.
2975 for ac_exec_ext
in '' $ac_executable_extensions; do
2976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2977 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 RANLIB
=$ac_cv_prog_RANLIB
2987 if test -n "$RANLIB"; then
2988 echo "$as_me:$LINENO: result: $RANLIB" >&5
2989 echo "${ECHO_T}$RANLIB" >&6
2991 echo "$as_me:$LINENO: result: no" >&5
2992 echo "${ECHO_T}no" >&6
2996 if test -z "$ac_cv_prog_RANLIB"; then
2997 ac_ct_RANLIB
=$RANLIB
2998 # Extract the first word of "ranlib", so it can be a program name with args.
2999 set dummy ranlib
; ac_word
=$2
3000 echo "$as_me:$LINENO: checking for $ac_word" >&5
3001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3002 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 if test -n "$ac_ct_RANLIB"; then
3006 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3012 test -z "$as_dir" && as_dir
=.
3013 for ac_exec_ext
in '' $ac_executable_extensions; do
3014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3015 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3022 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3025 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3026 if test -n "$ac_ct_RANLIB"; then
3027 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3028 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3030 echo "$as_me:$LINENO: result: no" >&5
3031 echo "${ECHO_T}no" >&6
3034 RANLIB
=$ac_ct_RANLIB
3036 RANLIB
="$ac_cv_prog_RANLIB"
3039 # GNU M4 is needed to build the testsuite.
3040 for ac_prog
in gm4 gnum4
m4
3042 # Extract the first word of "$ac_prog", so it can be a program name with args.
3043 set dummy
$ac_prog; ac_word
=$2
3044 echo "$as_me:$LINENO: checking for $ac_word" >&5
3045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3046 if test "${ac_cv_path_M4+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3051 ac_cv_path_M4
="$M4" # Let the user override the test with a path.
3054 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3058 test -z "$as_dir" && as_dir
=.
3059 for ac_exec_ext
in '' $ac_executable_extensions; do
3060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3061 ac_cv_path_M4
="$as_dir/$ac_word$ac_exec_ext"
3062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3073 if test -n "$M4"; then
3074 echo "$as_me:$LINENO: result: $M4" >&5
3075 echo "${ECHO_T}$M4" >&6
3077 echo "$as_me:$LINENO: result: no" >&5
3078 echo "${ECHO_T}no" >&6
3081 test -n "$M4" && break
3083 test -n "$M4" || M4
="m4"
3085 echo "$as_me:$LINENO: checking whether m4 supports frozen files" >&5
3086 echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" >&6
3087 if test "${ac_cv_prog_gnu_m4+set}" = set; then
3088 echo $ECHO_N "(cached) $ECHO_C" >&6
3090 ac_cv_prog_gnu_m4
=no
3091 if test x
"$M4" != x
; then
3092 case `$M4 --help < /dev/null 2>&1` in
3093 *reload
-state*) ac_cv_prog_gnu_m4
=yes ;;
3097 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_m4" >&5
3098 echo "${ECHO_T}$ac_cv_prog_gnu_m4" >&6
3100 if test "$ac_cv_prog_gnu_m4" != yes; then
3101 missing_dir
=`cd $ac_aux_dir && pwd`
3102 M4
="$missing_dir/missing m4"
3105 # Check whether --enable-gcc-warnings or --disable-gcc-warnings was given.
3106 if test "${enable_gcc_warnings+set}" = set; then
3107 enableval
="$enable_gcc_warnings"
3108 case "${enableval}" in
3110 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for gcc-warnings option" >&5
3111 echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;}
3112 { (exit 1); exit 1; }; } ;;
3117 if test "${enableval}" = yes; then
3118 echo "$as_me:$LINENO: checking whether compiler accepts -Wall" >&5
3119 echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6
3121 ac_save_CFLAGS
="$CFLAGS"
3122 CFLAGS
="$CFLAGS -Wall"
3123 cat >conftest.
$ac_ext <<_ACEOF
3124 #line $LINENO "configure"
3125 #include "confdefs.h"
3127 #ifdef F77_DUMMY_MAIN
3131 int F77_DUMMY_MAIN() { return 1; }
3141 rm -f conftest.
$ac_objext
3142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3143 (eval $ac_compile) 2>&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } &&
3147 { ac_try
='test -s conftest.$ac_objext'
3148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; }; then
3153 WARNING_CFLAGS
="$WARNING_CFLAGS -Wall"
3154 echo "$as_me:$LINENO: result: yes" >&5
3155 echo "${ECHO_T}yes" >&6
3157 echo "$as_me: failed program was:" >&5
3158 cat conftest.
$ac_ext >&5
3159 echo "$as_me:$LINENO: result: no" >&5
3160 echo "${ECHO_T}no" >&6
3162 rm -f conftest.
$ac_objext conftest.
$ac_ext
3163 CFLAGS
="$ac_save_CFLAGS"
3164 echo "$as_me:$LINENO: checking whether compiler accepts -W" >&5
3165 echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6
3167 ac_save_CFLAGS
="$CFLAGS"
3169 cat >conftest.
$ac_ext <<_ACEOF
3170 #line $LINENO "configure"
3171 #include "confdefs.h"
3173 #ifdef F77_DUMMY_MAIN
3177 int F77_DUMMY_MAIN() { return 1; }
3187 rm -f conftest.
$ac_objext
3188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3189 (eval $ac_compile) 2>&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); } &&
3193 { ac_try
='test -s conftest.$ac_objext'
3194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; }; then
3199 WARNING_CFLAGS
="$WARNING_CFLAGS -W"
3200 echo "$as_me:$LINENO: result: yes" >&5
3201 echo "${ECHO_T}yes" >&6
3203 echo "$as_me: failed program was:" >&5
3204 cat conftest.
$ac_ext >&5
3205 echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6
3208 rm -f conftest.
$ac_objext conftest.
$ac_ext
3209 CFLAGS
="$ac_save_CFLAGS"
3210 echo "$as_me:$LINENO: checking whether compiler accepts -Wbad-function-cast" >&5
3211 echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6
3213 ac_save_CFLAGS
="$CFLAGS"
3214 CFLAGS
="$CFLAGS -Wbad-function-cast"
3215 cat >conftest.
$ac_ext <<_ACEOF
3216 #line $LINENO "configure"
3217 #include "confdefs.h"
3219 #ifdef F77_DUMMY_MAIN
3223 int F77_DUMMY_MAIN() { return 1; }
3233 rm -f conftest.
$ac_objext
3234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3235 (eval $ac_compile) 2>&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } &&
3239 { ac_try
='test -s conftest.$ac_objext'
3240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; }; then
3245 WARNING_CFLAGS
="$WARNING_CFLAGS -Wbad-function-cast"
3246 echo "$as_me:$LINENO: result: yes" >&5
3247 echo "${ECHO_T}yes" >&6
3249 echo "$as_me: failed program was:" >&5
3250 cat conftest.
$ac_ext >&5
3251 echo "$as_me:$LINENO: result: no" >&5
3252 echo "${ECHO_T}no" >&6
3254 rm -f conftest.
$ac_objext conftest.
$ac_ext
3255 CFLAGS
="$ac_save_CFLAGS"
3256 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-align" >&5
3257 echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6
3259 ac_save_CFLAGS
="$CFLAGS"
3260 CFLAGS
="$CFLAGS -Wcast-align"
3261 cat >conftest.
$ac_ext <<_ACEOF
3262 #line $LINENO "configure"
3263 #include "confdefs.h"
3265 #ifdef F77_DUMMY_MAIN
3269 int F77_DUMMY_MAIN() { return 1; }
3279 rm -f conftest.
$ac_objext
3280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3281 (eval $ac_compile) 2>&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } &&
3285 { ac_try
='test -s conftest.$ac_objext'
3286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }; }; then
3291 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-align"
3292 echo "$as_me:$LINENO: result: yes" >&5
3293 echo "${ECHO_T}yes" >&6
3295 echo "$as_me: failed program was:" >&5
3296 cat conftest.
$ac_ext >&5
3297 echo "$as_me:$LINENO: result: no" >&5
3298 echo "${ECHO_T}no" >&6
3300 rm -f conftest.
$ac_objext conftest.
$ac_ext
3301 CFLAGS
="$ac_save_CFLAGS"
3302 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-qual" >&5
3303 echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6
3305 ac_save_CFLAGS
="$CFLAGS"
3306 CFLAGS
="$CFLAGS -Wcast-qual"
3307 cat >conftest.
$ac_ext <<_ACEOF
3308 #line $LINENO "configure"
3309 #include "confdefs.h"
3311 #ifdef F77_DUMMY_MAIN
3315 int F77_DUMMY_MAIN() { return 1; }
3325 rm -f conftest.
$ac_objext
3326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3327 (eval $ac_compile) 2>&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } &&
3331 { ac_try
='test -s conftest.$ac_objext'
3332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }; }; then
3337 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-qual"
3338 echo "$as_me:$LINENO: result: yes" >&5
3339 echo "${ECHO_T}yes" >&6
3341 echo "$as_me: failed program was:" >&5
3342 cat conftest.
$ac_ext >&5
3343 echo "$as_me:$LINENO: result: no" >&5
3344 echo "${ECHO_T}no" >&6
3346 rm -f conftest.
$ac_objext conftest.
$ac_ext
3347 CFLAGS
="$ac_save_CFLAGS"
3348 echo "$as_me:$LINENO: checking whether compiler accepts -Wformat" >&5
3349 echo $ECHO_N "checking whether compiler accepts -Wformat... $ECHO_C" >&6
3351 ac_save_CFLAGS
="$CFLAGS"
3352 CFLAGS
="$CFLAGS -Wformat"
3353 cat >conftest.
$ac_ext <<_ACEOF
3354 #line $LINENO "configure"
3355 #include "confdefs.h"
3357 #ifdef F77_DUMMY_MAIN
3361 int F77_DUMMY_MAIN() { return 1; }
3371 rm -f conftest.
$ac_objext
3372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3373 (eval $ac_compile) 2>&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } &&
3377 { ac_try
='test -s conftest.$ac_objext'
3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; }; then
3383 WARNING_CFLAGS
="$WARNING_CFLAGS -Wformat"
3384 echo "$as_me:$LINENO: result: yes" >&5
3385 echo "${ECHO_T}yes" >&6
3387 echo "$as_me: failed program was:" >&5
3388 cat conftest.
$ac_ext >&5
3389 echo "$as_me:$LINENO: result: no" >&5
3390 echo "${ECHO_T}no" >&6
3392 rm -f conftest.
$ac_objext conftest.
$ac_ext
3393 CFLAGS
="$ac_save_CFLAGS"
3394 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-declarations" >&5
3395 echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6
3397 ac_save_CFLAGS
="$CFLAGS"
3398 CFLAGS
="$CFLAGS -Wmissing-declarations"
3399 cat >conftest.
$ac_ext <<_ACEOF
3400 #line $LINENO "configure"
3401 #include "confdefs.h"
3403 #ifdef F77_DUMMY_MAIN
3407 int F77_DUMMY_MAIN() { return 1; }
3417 rm -f conftest.
$ac_objext
3418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3419 (eval $ac_compile) 2>&5
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); } &&
3423 { ac_try
='test -s conftest.$ac_objext'
3424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); }; }; then
3429 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-declarations"
3430 echo "$as_me:$LINENO: result: yes" >&5
3431 echo "${ECHO_T}yes" >&6
3433 echo "$as_me: failed program was:" >&5
3434 cat conftest.
$ac_ext >&5
3435 echo "$as_me:$LINENO: result: no" >&5
3436 echo "${ECHO_T}no" >&6
3438 rm -f conftest.
$ac_objext conftest.
$ac_ext
3439 CFLAGS
="$ac_save_CFLAGS"
3440 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-prototypes" >&5
3441 echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6
3443 ac_save_CFLAGS
="$CFLAGS"
3444 CFLAGS
="$CFLAGS -Wmissing-prototypes"
3445 cat >conftest.
$ac_ext <<_ACEOF
3446 #line $LINENO "configure"
3447 #include "confdefs.h"
3449 #ifdef F77_DUMMY_MAIN
3453 int F77_DUMMY_MAIN() { return 1; }
3463 rm -f conftest.
$ac_objext
3464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3465 (eval $ac_compile) 2>&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } &&
3469 { ac_try
='test -s conftest.$ac_objext'
3470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; }; then
3475 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-prototypes"
3476 echo "$as_me:$LINENO: result: yes" >&5
3477 echo "${ECHO_T}yes" >&6
3479 echo "$as_me: failed program was:" >&5
3480 cat conftest.
$ac_ext >&5
3481 echo "$as_me:$LINENO: result: no" >&5
3482 echo "${ECHO_T}no" >&6
3484 rm -f conftest.
$ac_objext conftest.
$ac_ext
3485 CFLAGS
="$ac_save_CFLAGS"
3486 echo "$as_me:$LINENO: checking whether compiler accepts -Wnested-externs" >&5
3487 echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6
3489 ac_save_CFLAGS
="$CFLAGS"
3490 CFLAGS
="$CFLAGS -Wnested-externs"
3491 cat >conftest.
$ac_ext <<_ACEOF
3492 #line $LINENO "configure"
3493 #include "confdefs.h"
3495 #ifdef F77_DUMMY_MAIN
3499 int F77_DUMMY_MAIN() { return 1; }
3509 rm -f conftest.
$ac_objext
3510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3511 (eval $ac_compile) 2>&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } &&
3515 { ac_try
='test -s conftest.$ac_objext'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; }; then
3521 WARNING_CFLAGS
="$WARNING_CFLAGS -Wnested-externs"
3522 echo "$as_me:$LINENO: result: yes" >&5
3523 echo "${ECHO_T}yes" >&6
3525 echo "$as_me: failed program was:" >&5
3526 cat conftest.
$ac_ext >&5
3527 echo "$as_me:$LINENO: result: no" >&5
3528 echo "${ECHO_T}no" >&6
3530 rm -f conftest.
$ac_objext conftest.
$ac_ext
3531 CFLAGS
="$ac_save_CFLAGS"
3532 echo "$as_me:$LINENO: checking whether compiler accepts -Wshadow" >&5
3533 echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6
3535 ac_save_CFLAGS
="$CFLAGS"
3536 CFLAGS
="$CFLAGS -Wshadow"
3537 cat >conftest.
$ac_ext <<_ACEOF
3538 #line $LINENO "configure"
3539 #include "confdefs.h"
3541 #ifdef F77_DUMMY_MAIN
3545 int F77_DUMMY_MAIN() { return 1; }
3555 rm -f conftest.
$ac_objext
3556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3557 (eval $ac_compile) 2>&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); } &&
3561 { ac_try
='test -s conftest.$ac_objext'
3562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); }; }; then
3567 WARNING_CFLAGS
="$WARNING_CFLAGS -Wshadow"
3568 echo "$as_me:$LINENO: result: yes" >&5
3569 echo "${ECHO_T}yes" >&6
3571 echo "$as_me: failed program was:" >&5
3572 cat conftest.
$ac_ext >&5
3573 echo "$as_me:$LINENO: result: no" >&5
3574 echo "${ECHO_T}no" >&6
3576 rm -f conftest.
$ac_objext conftest.
$ac_ext
3577 CFLAGS
="$ac_save_CFLAGS"
3578 echo "$as_me:$LINENO: checking whether compiler accepts -Wstrict-prototypes" >&5
3579 echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6
3581 ac_save_CFLAGS
="$CFLAGS"
3582 CFLAGS
="$CFLAGS -Wstrict-prototypes"
3583 cat >conftest.
$ac_ext <<_ACEOF
3584 #line $LINENO "configure"
3585 #include "confdefs.h"
3587 #ifdef F77_DUMMY_MAIN
3591 int F77_DUMMY_MAIN() { return 1; }
3601 rm -f conftest.
$ac_objext
3602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3603 (eval $ac_compile) 2>&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } &&
3607 { ac_try
='test -s conftest.$ac_objext'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; }; then
3613 WARNING_CFLAGS
="$WARNING_CFLAGS -Wstrict-prototypes"
3614 echo "$as_me:$LINENO: result: yes" >&5
3615 echo "${ECHO_T}yes" >&6
3617 echo "$as_me: failed program was:" >&5
3618 cat conftest.
$ac_ext >&5
3619 echo "$as_me:$LINENO: result: no" >&5
3620 echo "${ECHO_T}no" >&6
3622 rm -f conftest.
$ac_objext conftest.
$ac_ext
3623 CFLAGS
="$ac_save_CFLAGS"
3624 echo "$as_me:$LINENO: checking whether compiler accepts -Wwrite-strings" >&5
3625 echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6
3627 ac_save_CFLAGS
="$CFLAGS"
3628 CFLAGS
="$CFLAGS -Wwrite-strings"
3629 cat >conftest.
$ac_ext <<_ACEOF
3630 #line $LINENO "configure"
3631 #include "confdefs.h"
3633 #ifdef F77_DUMMY_MAIN
3637 int F77_DUMMY_MAIN() { return 1; }
3647 rm -f conftest.
$ac_objext
3648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3649 (eval $ac_compile) 2>&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } &&
3653 { ac_try
='test -s conftest.$ac_objext'
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; }; then
3659 WARNING_CFLAGS
="$WARNING_CFLAGS -Wwrite-strings"
3660 echo "$as_me:$LINENO: result: yes" >&5
3661 echo "${ECHO_T}yes" >&6
3663 echo "$as_me: failed program was:" >&5
3664 cat conftest.
$ac_ext >&5
3665 echo "$as_me:$LINENO: result: no" >&5
3666 echo "${ECHO_T}no" >&6
3668 rm -f conftest.
$ac_objext conftest.
$ac_ext
3669 CFLAGS
="$ac_save_CFLAGS"
3670 CFLAGS
="$CFLAGS $WARNING_CFLAGS"
3673 # Checks for libraries.
3675 cat >>confdefs.h
<<\_ACEOF
3676 #define _GNU_SOURCE 1
3679 # Checks for header files.
3680 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3681 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3682 if test "${ac_cv_header_stdc+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 cat >conftest.
$ac_ext <<_ACEOF
3686 #line $LINENO "configure"
3687 #include "confdefs.h"
3694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3695 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3697 egrep -v '^ *\+' conftest.er1
>conftest.err
3699 cat conftest.err
>&5
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); } >/dev
/null
; then
3702 if test -s conftest.err
; then
3703 ac_cpp_err
=$ac_c_preproc_warn_flag
3710 if test -z "$ac_cpp_err"; then
3711 ac_cv_header_stdc
=yes
3713 echo "$as_me: failed program was:" >&5
3714 cat conftest.
$ac_ext >&5
3715 ac_cv_header_stdc
=no
3717 rm -f conftest.err conftest.
$ac_ext
3719 if test $ac_cv_header_stdc = yes; then
3720 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3721 cat >conftest.
$ac_ext <<_ACEOF
3722 #line $LINENO "configure"
3723 #include "confdefs.h"
3727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3728 egrep "memchr" >/dev
/null
2>&1; then
3731 ac_cv_header_stdc
=no
3737 if test $ac_cv_header_stdc = yes; then
3738 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3739 cat >conftest.
$ac_ext <<_ACEOF
3740 #line $LINENO "configure"
3741 #include "confdefs.h"
3745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3746 egrep "free" >/dev
/null
2>&1; then
3749 ac_cv_header_stdc
=no
3755 if test $ac_cv_header_stdc = yes; then
3756 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3757 if test "$cross_compiling" = yes; then
3760 cat >conftest.
$ac_ext <<_ACEOF
3761 #line $LINENO "configure"
3762 #include "confdefs.h"
3764 #if ((' ' & 0x0FF) == 0x020)
3765 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3766 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3768 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3769 || ('j' <= (c) && (c) <= 'r') \
3770 || ('s' <= (c) && (c) <= 'z'))
3771 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3774 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3779 for (i = 0; i < 256; i++)
3780 if (XOR (islower (i), ISLOWER (i))
3781 || toupper (i) != TOUPPER (i))
3786 rm -f conftest
$ac_exeext
3787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3788 (eval $ac_link) 2>&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); }; }; then
3799 echo "$as_me: program exited with status $ac_status" >&5
3800 echo "$as_me: failed program was:" >&5
3801 cat conftest.
$ac_ext >&5
3803 ac_cv_header_stdc
=no
3805 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3809 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3810 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3811 if test $ac_cv_header_stdc = yes; then
3813 cat >>confdefs.h
<<\_ACEOF
3814 #define STDC_HEADERS 1
3819 for ac_header
in ctype.h locale.h memory.h stdlib.h string.h unistd.h
3821 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3823 echo "$as_me:$LINENO: checking for $ac_header" >&5
3824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3831 # Is the header compilable?
3832 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3834 cat >conftest.
$ac_ext <<_ACEOF
3835 #line $LINENO "configure"
3836 #include "confdefs.h"
3837 $ac_includes_default
3838 #include <$ac_header>
3840 rm -f conftest.
$ac_objext
3841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3842 (eval $ac_compile) 2>&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); } &&
3846 { ac_try
='test -s conftest.$ac_objext'
3847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }; }; then
3852 ac_header_compiler
=yes
3854 echo "$as_me: failed program was:" >&5
3855 cat conftest.
$ac_ext >&5
3856 ac_header_compiler
=no
3858 rm -f conftest.
$ac_objext conftest.
$ac_ext
3859 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3860 echo "${ECHO_T}$ac_header_compiler" >&6
3862 # Is the header present?
3863 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3865 cat >conftest.
$ac_ext <<_ACEOF
3866 #line $LINENO "configure"
3867 #include "confdefs.h"
3868 #include <$ac_header>
3870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3871 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3873 egrep -v '^ *\+' conftest.er1
>conftest.err
3875 cat conftest.err
>&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); } >/dev
/null
; then
3878 if test -s conftest.err
; then
3879 ac_cpp_err
=$ac_c_preproc_warn_flag
3886 if test -z "$ac_cpp_err"; then
3887 ac_header_preproc
=yes
3889 echo "$as_me: failed program was:" >&5
3890 cat conftest.
$ac_ext >&5
3891 ac_header_preproc
=no
3893 rm -f conftest.err conftest.
$ac_ext
3894 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3895 echo "${ECHO_T}$ac_header_preproc" >&6
3897 # So? What about this header?
3898 case $ac_header_compiler:$ac_header_preproc in
3900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
3906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
3907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3912 echo "$as_me:$LINENO: checking for $ac_header" >&5
3913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 eval "$as_ac_Header=$ac_header_preproc"
3919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3924 cat >>confdefs.h
<<_ACEOF
3925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3932 # Checks for typedefs.
3934 # Checks for structures.
3936 # Checks for compiler characteristics.
3937 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3938 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3939 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 ac_cv_prog_cc_stdc
=no
3944 cat >conftest.
$ac_ext <<_ACEOF
3945 #line $LINENO "configure"
3946 #include "confdefs.h"
3949 #include <sys/types.h>
3950 #include <sys/stat.h>
3951 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3952 struct buf { int x; };
3953 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3954 static char *e (p, i)
3960 static char *f (char * (*g) (char **, int), char **p, ...)
3965 s = g (p, va_arg (v,int));
3969 int test (int i, double x);
3970 struct s1 {int (*f) (int a);};
3971 struct s2 {int (*f) (double a);};
3972 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3975 #ifdef F77_DUMMY_MAIN
3979 int F77_DUMMY_MAIN() { return 1; }
3984 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3989 # Don't try gcc -ansi; that turns off useful extensions and
3990 # breaks some systems' header files.
3991 # AIX -qlanglvl=ansi
3992 # Ultrix and OSF/1 -std1
3993 # HP-UX 10.20 and later -Ae
3994 # HP-UX older versions -Aa -D_HPUX_SOURCE
3995 # SVR4 -Xc -D__EXTENSIONS__
3996 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3998 CC
="$ac_save_CC $ac_arg"
3999 rm -f conftest.
$ac_objext
4000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4001 (eval $ac_compile) 2>&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } &&
4005 { ac_try
='test -s conftest.$ac_objext'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; }; then
4011 ac_cv_prog_cc_stdc
=$ac_arg
4014 echo "$as_me: failed program was:" >&5
4015 cat conftest.
$ac_ext >&5
4017 rm -f conftest.
$ac_objext
4019 rm -f conftest.
$ac_ext conftest.
$ac_objext
4024 case "x$ac_cv_prog_cc_stdc" in
4026 echo "$as_me:$LINENO: result: none needed" >&5
4027 echo "${ECHO_T}none needed" >&6 ;;
4029 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4030 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4031 CC
="$CC $ac_cv_prog_cc_stdc" ;;
4034 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4035 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4036 if test "${ac_cv_c_const+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4039 cat >conftest.
$ac_ext <<_ACEOF
4040 #line $LINENO "configure"
4041 #include "confdefs.h"
4043 #ifdef F77_DUMMY_MAIN
4047 int F77_DUMMY_MAIN() { return 1; }
4052 /* FIXME: Include the comments suggested by Paul. */
4054 /* Ultrix mips cc rejects this. */
4055 typedef int charset[2];
4057 /* SunOS 4.1.1 cc rejects this. */
4058 char const *const *ccp;
4060 /* NEC SVR4.0.2 mips cc rejects this. */
4061 struct point {int x, y;};
4062 static struct point const zero = {0,0};
4063 /* AIX XL C 1.02.0.0 rejects this.
4064 It does not let you subtract one const X* pointer from another in
4065 an arm of an if-expression whose if-part is not a constant
4067 const char *g = "string";
4068 ccp = &g + (g ? g-g : 0);
4069 /* HPUX 7.0 cc rejects these. */
4072 ccp = (char const *const *) p;
4073 { /* SCO 3.2v4 cc rejects this. */
4075 char const *s = 0 ? (char *) 0 : (char const *) 0;
4079 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4081 const int *foo = &x[0];
4084 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4085 typedef const int *iptr;
4089 { /* AIX XL C 1.02.0.0 rejects this saying
4090 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4091 struct s { int j; const int *ap[3]; };
4092 struct s *b; b->j = 5;
4094 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4103 rm -f conftest.
$ac_objext
4104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4105 (eval $ac_compile) 2>&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); } &&
4109 { ac_try
='test -s conftest.$ac_objext'
4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; }; then
4117 echo "$as_me: failed program was:" >&5
4118 cat conftest.
$ac_ext >&5
4121 rm -f conftest.
$ac_objext conftest.
$ac_ext
4123 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4124 echo "${ECHO_T}$ac_cv_c_const" >&6
4125 if test $ac_cv_c_const = no
; then
4127 cat >>confdefs.h
<<\_ACEOF
4133 echo "$as_me:$LINENO: checking for inline" >&5
4134 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4135 if test "${ac_cv_c_inline+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4139 for ac_kw
in inline __inline__ __inline
; do
4140 cat >conftest.
$ac_ext <<_ACEOF
4141 #line $LINENO "configure"
4142 #include "confdefs.h"
4144 static $ac_kw int static_foo () {return 0; }
4145 $ac_kw int foo () {return 0; }
4149 rm -f conftest.
$ac_objext
4150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4151 (eval $ac_compile) 2>&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } &&
4155 { ac_try
='test -s conftest.$ac_objext'
4156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; }; then
4161 ac_cv_c_inline
=$ac_kw; break
4163 echo "$as_me: failed program was:" >&5
4164 cat conftest.
$ac_ext >&5
4166 rm -f conftest.
$ac_objext conftest.
$ac_ext
4170 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4171 echo "${ECHO_T}$ac_cv_c_inline" >&6
4172 case $ac_cv_c_inline in
4175 cat >>confdefs.h
<<\_ACEOF
4179 *) cat >>confdefs.h
<<_ACEOF
4180 #define inline $ac_cv_c_inline
4185 echo "$as_me:$LINENO: checking for function prototypes" >&5
4186 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4187 if test "$am_cv_prog_cc_stdc" != no
; then
4188 echo "$as_me:$LINENO: result: yes" >&5
4189 echo "${ECHO_T}yes" >&6
4191 cat >>confdefs.h
<<\_ACEOF
4192 #define PROTOTYPES 1
4197 echo "$as_me:$LINENO: result: no" >&5
4198 echo "${ECHO_T}no" >&6
4199 U
=_ ANSI2KNR
=.
/ansi2knr
4201 # Ensure some checks needed by ansi2knr itself.
4202 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4203 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4204 if test "${ac_cv_header_stdc+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4207 cat >conftest.
$ac_ext <<_ACEOF
4208 #line $LINENO "configure"
4209 #include "confdefs.h"
4216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4217 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4219 egrep -v '^ *\+' conftest.er1
>conftest.err
4221 cat conftest.err
>&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } >/dev
/null
; then
4224 if test -s conftest.err
; then
4225 ac_cpp_err
=$ac_c_preproc_warn_flag
4232 if test -z "$ac_cpp_err"; then
4233 ac_cv_header_stdc
=yes
4235 echo "$as_me: failed program was:" >&5
4236 cat conftest.
$ac_ext >&5
4237 ac_cv_header_stdc
=no
4239 rm -f conftest.err conftest.
$ac_ext
4241 if test $ac_cv_header_stdc = yes; then
4242 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4243 cat >conftest.
$ac_ext <<_ACEOF
4244 #line $LINENO "configure"
4245 #include "confdefs.h"
4249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4250 egrep "memchr" >/dev
/null
2>&1; then
4253 ac_cv_header_stdc
=no
4259 if test $ac_cv_header_stdc = yes; then
4260 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4261 cat >conftest.
$ac_ext <<_ACEOF
4262 #line $LINENO "configure"
4263 #include "confdefs.h"
4267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4268 egrep "free" >/dev
/null
2>&1; then
4271 ac_cv_header_stdc
=no
4277 if test $ac_cv_header_stdc = yes; then
4278 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4279 if test "$cross_compiling" = yes; then
4282 cat >conftest.
$ac_ext <<_ACEOF
4283 #line $LINENO "configure"
4284 #include "confdefs.h"
4286 #if ((' ' & 0x0FF) == 0x020)
4287 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4288 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4290 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4291 || ('j' <= (c) && (c) <= 'r') \
4292 || ('s' <= (c) && (c) <= 'z'))
4293 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4296 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4301 for (i = 0; i < 256; i++)
4302 if (XOR (islower (i), ISLOWER (i))
4303 || toupper (i) != TOUPPER (i))
4308 rm -f conftest
$ac_exeext
4309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4310 (eval $ac_link) 2>&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4321 echo "$as_me: program exited with status $ac_status" >&5
4322 echo "$as_me: failed program was:" >&5
4323 cat conftest.
$ac_ext >&5
4325 ac_cv_header_stdc
=no
4327 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4331 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4332 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4333 if test $ac_cv_header_stdc = yes; then
4335 cat >>confdefs.h
<<\_ACEOF
4336 #define STDC_HEADERS 1
4341 for ac_header
in string.h
4343 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4345 echo "$as_me:$LINENO: checking for $ac_header" >&5
4346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4348 echo $ECHO_N "(cached) $ECHO_C" >&6
4350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4353 # Is the header compilable?
4354 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4356 cat >conftest.
$ac_ext <<_ACEOF
4357 #line $LINENO "configure"
4358 #include "confdefs.h"
4359 $ac_includes_default
4360 #include <$ac_header>
4362 rm -f conftest.
$ac_objext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4364 (eval $ac_compile) 2>&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } &&
4368 { ac_try
='test -s conftest.$ac_objext'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; }; then
4374 ac_header_compiler
=yes
4376 echo "$as_me: failed program was:" >&5
4377 cat conftest.
$ac_ext >&5
4378 ac_header_compiler
=no
4380 rm -f conftest.
$ac_objext conftest.
$ac_ext
4381 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4382 echo "${ECHO_T}$ac_header_compiler" >&6
4384 # Is the header present?
4385 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4386 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4387 cat >conftest.
$ac_ext <<_ACEOF
4388 #line $LINENO "configure"
4389 #include "confdefs.h"
4390 #include <$ac_header>
4392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4393 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4395 egrep -v '^ *\+' conftest.er1
>conftest.err
4397 cat conftest.err
>&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } >/dev
/null
; then
4400 if test -s conftest.err
; then
4401 ac_cpp_err
=$ac_c_preproc_warn_flag
4408 if test -z "$ac_cpp_err"; then
4409 ac_header_preproc
=yes
4411 echo "$as_me: failed program was:" >&5
4412 cat conftest.
$ac_ext >&5
4413 ac_header_preproc
=no
4415 rm -f conftest.err conftest.
$ac_ext
4416 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4417 echo "${ECHO_T}$ac_header_preproc" >&6
4419 # So? What about this header?
4420 case $ac_header_compiler:$ac_header_preproc in
4422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
4428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
4429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4430 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4434 echo "$as_me:$LINENO: checking for $ac_header" >&5
4435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 eval "$as_ac_Header=$ac_header_preproc"
4441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4446 cat >>confdefs.h
<<_ACEOF
4447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4454 # Checks for library functions.
4455 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4456 # for constant arguments. Useless!
4457 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4458 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4459 if test "${ac_cv_working_alloca_h+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 cat >conftest.
$ac_ext <<_ACEOF
4463 #line $LINENO "configure"
4464 #include "confdefs.h"
4466 #ifdef F77_DUMMY_MAIN
4470 int F77_DUMMY_MAIN() { return 1; }
4475 char *p = (char *) alloca (2 * sizeof (int));
4480 rm -f conftest.
$ac_objext conftest
$ac_exeext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4482 (eval $ac_link) 2>&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } &&
4486 { ac_try
='test -s conftest$ac_exeext'
4487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; }; then
4492 ac_cv_working_alloca_h
=yes
4494 echo "$as_me: failed program was:" >&5
4495 cat conftest.
$ac_ext >&5
4496 ac_cv_working_alloca_h
=no
4498 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4500 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4501 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4502 if test $ac_cv_working_alloca_h = yes; then
4504 cat >>confdefs.h
<<\_ACEOF
4505 #define HAVE_ALLOCA_H 1
4510 echo "$as_me:$LINENO: checking for alloca" >&5
4511 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4512 if test "${ac_cv_func_alloca_works+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 cat >conftest.
$ac_ext <<_ACEOF
4516 #line $LINENO "configure"
4517 #include "confdefs.h"
4519 # define alloca __builtin_alloca
4522 # include <malloc.h>
4523 # define alloca _alloca
4526 # include <alloca.h>
4531 # ifndef alloca /* predefined by HP cc +Olibcalls */
4539 #ifdef F77_DUMMY_MAIN
4543 int F77_DUMMY_MAIN() { return 1; }
4548 char *p = (char *) alloca (1);
4553 rm -f conftest.
$ac_objext conftest
$ac_exeext
4554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4555 (eval $ac_link) 2>&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } &&
4559 { ac_try
='test -s conftest$ac_exeext'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4565 ac_cv_func_alloca_works
=yes
4567 echo "$as_me: failed program was:" >&5
4568 cat conftest.
$ac_ext >&5
4569 ac_cv_func_alloca_works
=no
4571 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4573 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4574 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4576 if test $ac_cv_func_alloca_works = yes; then
4578 cat >>confdefs.h
<<\_ACEOF
4579 #define HAVE_ALLOCA 1
4583 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4584 # that cause trouble. Some versions do not even contain alloca or
4585 # contain a buggy version. If you still want to use their alloca,
4586 # use ar to extract alloca.o from them instead of compiling alloca.c.
4588 ALLOCA
=alloca.
$ac_objext
4590 cat >>confdefs.h
<<\_ACEOF
4594 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4595 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4596 if test "${ac_cv_os_cray+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 cat >conftest.
$ac_ext <<_ACEOF
4600 #line $LINENO "configure"
4601 #include "confdefs.h"
4602 #if defined(CRAY) && ! defined(CRAY2)
4609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4610 egrep "webecray" >/dev
/null
2>&1; then
4618 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4619 echo "${ECHO_T}$ac_cv_os_cray" >&6
4620 if test $ac_cv_os_cray = yes; then
4621 for ac_func
in _getb67 GETB67 getb67
; do
4622 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4623 echo "$as_me:$LINENO: checking for $ac_func" >&5
4624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4625 if eval "test \"\${$as_ac_var+set}\" = set"; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4628 cat >conftest.
$ac_ext <<_ACEOF
4629 #line $LINENO "configure"
4630 #include "confdefs.h"
4631 /* System header to define __stub macros and hopefully few prototypes,
4632 which can conflict with char $ac_func (); below. */
4634 /* Override any gcc2 internal prototype to avoid an error. */
4638 /* We use char because int might match the return type of a gcc2
4639 builtin and then its argument prototype would still apply. */
4643 #ifdef F77_DUMMY_MAIN
4647 int F77_DUMMY_MAIN() { return 1; }
4652 /* The GNU C library defines this for functions which it implements
4653 to always fail with ENOSYS. Some functions are actually named
4654 something starting with __ and the normal name is an alias. */
4655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4665 rm -f conftest.
$ac_objext conftest
$ac_exeext
4666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4667 (eval $ac_link) 2>&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } &&
4671 { ac_try
='test -s conftest$ac_exeext'
4672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); }; }; then
4677 eval "$as_ac_var=yes"
4679 echo "$as_me: failed program was:" >&5
4680 cat conftest.
$ac_ext >&5
4681 eval "$as_ac_var=no"
4683 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4687 if test `eval echo '${'$as_ac_var'}'` = yes; then
4689 cat >>confdefs.h
<<_ACEOF
4690 #define CRAY_STACKSEG_END $ac_func
4699 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4700 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4701 if test "${ac_cv_c_stack_direction+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 if test "$cross_compiling" = yes; then
4705 ac_cv_c_stack_direction
=0
4707 cat >conftest.
$ac_ext <<_ACEOF
4708 #line $LINENO "configure"
4709 #include "confdefs.h"
4711 find_stack_direction ()
4713 static char *addr = 0;
4718 return find_stack_direction ();
4721 return (&dummy > addr) ? 1 : -1;
4727 exit (find_stack_direction () < 0);
4730 rm -f conftest
$ac_exeext
4731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4732 (eval $ac_link) 2>&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); }; }; then
4741 ac_cv_c_stack_direction
=1
4743 echo "$as_me: program exited with status $ac_status" >&5
4744 echo "$as_me: failed program was:" >&5
4745 cat conftest.
$ac_ext >&5
4747 ac_cv_c_stack_direction
=-1
4749 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4752 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4753 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4755 cat >>confdefs.h
<<_ACEOF
4756 #define STACK_DIRECTION $ac_cv_c_stack_direction
4761 for ac_func
in mkstemp setlocale
4763 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4764 echo "$as_me:$LINENO: checking for $ac_func" >&5
4765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4766 if eval "test \"\${$as_ac_var+set}\" = set"; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 cat >conftest.
$ac_ext <<_ACEOF
4770 #line $LINENO "configure"
4771 #include "confdefs.h"
4772 /* System header to define __stub macros and hopefully few prototypes,
4773 which can conflict with char $ac_func (); below. */
4775 /* Override any gcc2 internal prototype to avoid an error. */
4779 /* We use char because int might match the return type of a gcc2
4780 builtin and then its argument prototype would still apply. */
4784 #ifdef F77_DUMMY_MAIN
4788 int F77_DUMMY_MAIN() { return 1; }
4793 /* The GNU C library defines this for functions which it implements
4794 to always fail with ENOSYS. Some functions are actually named
4795 something starting with __ and the normal name is an alias. */
4796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4806 rm -f conftest.
$ac_objext conftest
$ac_exeext
4807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4808 (eval $ac_link) 2>&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } &&
4812 { ac_try
='test -s conftest$ac_exeext'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; }; then
4818 eval "$as_ac_var=yes"
4820 echo "$as_me: failed program was:" >&5
4821 cat conftest.
$ac_ext >&5
4822 eval "$as_ac_var=no"
4824 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4828 if test `eval echo '${'$as_ac_var'}'` = yes; then
4829 cat >>confdefs.h
<<_ACEOF
4830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4836 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
4837 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
4838 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4841 cat >conftest.
$ac_ext <<_ACEOF
4842 #line $LINENO "configure"
4843 #include "confdefs.h"
4844 $ac_includes_default
4845 #ifdef F77_DUMMY_MAIN
4849 int F77_DUMMY_MAIN() { return 1; }
4855 char *p = (char *) stpcpy;
4862 rm -f conftest.
$ac_objext
4863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4864 (eval $ac_compile) 2>&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } &&
4868 { ac_try
='test -s conftest.$ac_objext'
4869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); }; }; then
4874 ac_cv_have_decl_stpcpy
=yes
4876 echo "$as_me: failed program was:" >&5
4877 cat conftest.
$ac_ext >&5
4878 ac_cv_have_decl_stpcpy
=no
4880 rm -f conftest.
$ac_objext conftest.
$ac_ext
4882 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
4883 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
4884 if test $ac_cv_have_decl_stpcpy = yes; then
4886 cat >>confdefs.h
<<_ACEOF
4887 #define HAVE_DECL_STPCPY 1
4891 cat >>confdefs.h
<<_ACEOF
4892 #define HAVE_DECL_STPCPY 0
4896 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
4897 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
4898 if test "${ac_cv_have_decl_strndup+set}" = set; then
4899 echo $ECHO_N "(cached) $ECHO_C" >&6
4901 cat >conftest.
$ac_ext <<_ACEOF
4902 #line $LINENO "configure"
4903 #include "confdefs.h"
4904 $ac_includes_default
4905 #ifdef F77_DUMMY_MAIN
4909 int F77_DUMMY_MAIN() { return 1; }
4915 char *p = (char *) strndup;
4922 rm -f conftest.
$ac_objext
4923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4924 (eval $ac_compile) 2>&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } &&
4928 { ac_try
='test -s conftest.$ac_objext'
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; }; then
4934 ac_cv_have_decl_strndup
=yes
4936 echo "$as_me: failed program was:" >&5
4937 cat conftest.
$ac_ext >&5
4938 ac_cv_have_decl_strndup
=no
4940 rm -f conftest.
$ac_objext conftest.
$ac_ext
4942 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
4943 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
4944 if test $ac_cv_have_decl_strndup = yes; then
4946 cat >>confdefs.h
<<_ACEOF
4947 #define HAVE_DECL_STRNDUP 1
4951 cat >>confdefs.h
<<_ACEOF
4952 #define HAVE_DECL_STRNDUP 0
4956 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
4957 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
4958 if test "${ac_cv_have_decl_strnlen+set}" = set; then
4959 echo $ECHO_N "(cached) $ECHO_C" >&6
4961 cat >conftest.
$ac_ext <<_ACEOF
4962 #line $LINENO "configure"
4963 #include "confdefs.h"
4964 $ac_includes_default
4965 #ifdef F77_DUMMY_MAIN
4969 int F77_DUMMY_MAIN() { return 1; }
4975 char *p = (char *) strnlen;
4982 rm -f conftest.
$ac_objext
4983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4984 (eval $ac_compile) 2>&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } &&
4988 { ac_try
='test -s conftest.$ac_objext'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; }; then
4994 ac_cv_have_decl_strnlen
=yes
4996 echo "$as_me: failed program was:" >&5
4997 cat conftest.
$ac_ext >&5
4998 ac_cv_have_decl_strnlen
=no
5000 rm -f conftest.
$ac_objext conftest.
$ac_ext
5002 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
5003 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
5004 if test $ac_cv_have_decl_strnlen = yes; then
5006 cat >>confdefs.h
<<_ACEOF
5007 #define HAVE_DECL_STRNLEN 1
5011 cat >>confdefs.h
<<_ACEOF
5012 #define HAVE_DECL_STRNLEN 0
5016 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
5017 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
5018 if test "${ac_cv_have_decl_memchr+set}" = set; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5021 cat >conftest.
$ac_ext <<_ACEOF
5022 #line $LINENO "configure"
5023 #include "confdefs.h"
5024 $ac_includes_default
5025 #ifdef F77_DUMMY_MAIN
5029 int F77_DUMMY_MAIN() { return 1; }
5035 char *p = (char *) memchr;
5042 rm -f conftest.
$ac_objext
5043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5044 (eval $ac_compile) 2>&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } &&
5048 { ac_try
='test -s conftest.$ac_objext'
5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; }; then
5054 ac_cv_have_decl_memchr
=yes
5056 echo "$as_me: failed program was:" >&5
5057 cat conftest.
$ac_ext >&5
5058 ac_cv_have_decl_memchr
=no
5060 rm -f conftest.
$ac_objext conftest.
$ac_ext
5062 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
5063 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
5064 if test $ac_cv_have_decl_memchr = yes; then
5066 cat >>confdefs.h
<<_ACEOF
5067 #define HAVE_DECL_MEMCHR 1
5071 cat >>confdefs.h
<<_ACEOF
5072 #define HAVE_DECL_MEMCHR 0
5077 for ac_func
in stpcpy strndup strnlen strspn memchr
5079 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5080 echo "$as_me:$LINENO: checking for $ac_func" >&5
5081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5082 if eval "test \"\${$as_ac_var+set}\" = set"; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 cat >conftest.
$ac_ext <<_ACEOF
5086 #line $LINENO "configure"
5087 #include "confdefs.h"
5088 /* System header to define __stub macros and hopefully few prototypes,
5089 which can conflict with char $ac_func (); below. */
5091 /* Override any gcc2 internal prototype to avoid an error. */
5095 /* We use char because int might match the return type of a gcc2
5096 builtin and then its argument prototype would still apply. */
5100 #ifdef F77_DUMMY_MAIN
5104 int F77_DUMMY_MAIN() { return 1; }
5109 /* The GNU C library defines this for functions which it implements
5110 to always fail with ENOSYS. Some functions are actually named
5111 something starting with __ and the normal name is an alias. */
5112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5122 rm -f conftest.
$ac_objext conftest
$ac_exeext
5123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5124 (eval $ac_link) 2>&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } &&
5128 { ac_try
='test -s conftest$ac_exeext'
5129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); }; }; then
5134 eval "$as_ac_var=yes"
5136 echo "$as_me: failed program was:" >&5
5137 cat conftest.
$ac_ext >&5
5138 eval "$as_ac_var=no"
5140 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5143 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5144 if test `eval echo '${'$as_ac_var'}'` = yes; then
5145 cat >>confdefs.h
<<_ACEOF
5146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5150 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
5154 cat >>confdefs.h
<<_ACEOF
5155 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
5158 echo "$as_me:$LINENO: checking for working malloc" >&5
5159 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
5160 if test "${jm_cv_func_working_malloc+set}" = set; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 if test "$cross_compiling" = yes; then
5164 jm_cv_func_working_malloc
=no
5166 cat >conftest.
$ac_ext <<_ACEOF
5167 #line $LINENO "configure"
5168 #include "confdefs.h"
5174 exit (malloc (0) ? 0 : 1);
5178 rm -f conftest
$ac_exeext
5179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5180 (eval $ac_link) 2>&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); }; }; then
5189 jm_cv_func_working_malloc
=yes
5191 echo "$as_me: program exited with status $ac_status" >&5
5192 echo "$as_me: failed program was:" >&5
5193 cat conftest.
$ac_ext >&5
5195 jm_cv_func_working_malloc
=no
5197 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5201 echo "$as_me:$LINENO: result: $jm_cv_func_working_malloc" >&5
5202 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
5203 if test $jm_cv_func_working_malloc = no
; then
5205 LIBOBJS
="$LIBOBJS malloc.$ac_objext"
5207 cat >>confdefs.h
<<_ACEOF
5208 #define malloc rpl_malloc
5213 cat >>confdefs.h
<<_ACEOF
5214 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
5217 echo "$as_me:$LINENO: checking for working realloc" >&5
5218 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
5219 if test "${jm_cv_func_working_realloc+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5222 if test "$cross_compiling" = yes; then
5223 jm_cv_func_working_realloc
=no
5225 cat >conftest.
$ac_ext <<_ACEOF
5226 #line $LINENO "configure"
5227 #include "confdefs.h"
5233 exit (realloc (0, 0) ? 0 : 1);
5237 rm -f conftest
$ac_exeext
5238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5239 (eval $ac_link) 2>&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; }; then
5248 jm_cv_func_working_realloc
=yes
5250 echo "$as_me: program exited with status $ac_status" >&5
5251 echo "$as_me: failed program was:" >&5
5252 cat conftest.
$ac_ext >&5
5254 jm_cv_func_working_realloc
=no
5256 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5260 echo "$as_me:$LINENO: result: $jm_cv_func_working_realloc" >&5
5261 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
5262 if test $jm_cv_func_working_realloc = no
; then
5264 LIBOBJS
="$LIBOBJS realloc.$ac_objext"
5266 cat >>confdefs.h
<<_ACEOF
5267 #define realloc rpl_realloc
5272 for ac_func
in isascii iswprint mbsinit
5274 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5275 echo "$as_me:$LINENO: checking for $ac_func" >&5
5276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5277 if eval "test \"\${$as_ac_var+set}\" = set"; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 cat >conftest.
$ac_ext <<_ACEOF
5281 #line $LINENO "configure"
5282 #include "confdefs.h"
5283 /* System header to define __stub macros and hopefully few prototypes,
5284 which can conflict with char $ac_func (); below. */
5286 /* Override any gcc2 internal prototype to avoid an error. */
5290 /* We use char because int might match the return type of a gcc2
5291 builtin and then its argument prototype would still apply. */
5295 #ifdef F77_DUMMY_MAIN
5299 int F77_DUMMY_MAIN() { return 1; }
5304 /* The GNU C library defines this for functions which it implements
5305 to always fail with ENOSYS. Some functions are actually named
5306 something starting with __ and the normal name is an alias. */
5307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5317 rm -f conftest.
$ac_objext conftest
$ac_exeext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5319 (eval $ac_link) 2>&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); } &&
5323 { ac_try
='test -s conftest$ac_exeext'
5324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; }; then
5329 eval "$as_ac_var=yes"
5331 echo "$as_me: failed program was:" >&5
5332 cat conftest.
$ac_ext >&5
5333 eval "$as_ac_var=no"
5335 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5338 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5339 if test `eval echo '${'$as_ac_var'}'` = yes; then
5340 cat >>confdefs.h
<<_ACEOF
5341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5347 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
5348 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
5349 if test "${jm_cv_func_mbrtowc+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 cat >conftest.
$ac_ext <<_ACEOF
5353 #line $LINENO "configure"
5354 #include "confdefs.h"
5356 #ifdef F77_DUMMY_MAIN
5360 int F77_DUMMY_MAIN() { return 1; }
5365 mbstate_t state; return ! (sizeof state && mbrtowc);
5370 rm -f conftest.
$ac_objext conftest
$ac_exeext
5371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5372 (eval $ac_link) 2>&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); } &&
5376 { ac_try
='test -s conftest$ac_exeext'
5377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); }; }; then
5382 jm_cv_func_mbrtowc
=yes
5384 echo "$as_me: failed program was:" >&5
5385 cat conftest.
$ac_ext >&5
5386 jm_cv_func_mbrtowc
=no
5388 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5390 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
5391 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
5392 if test $jm_cv_func_mbrtowc = yes; then
5394 cat >>confdefs.h
<<\_ACEOF
5395 #define HAVE_MBRTOWC 1
5400 for ac_header
in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
5402 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5404 echo "$as_me:$LINENO: checking for $ac_header" >&5
5405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5412 # Is the header compilable?
5413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5415 cat >conftest.
$ac_ext <<_ACEOF
5416 #line $LINENO "configure"
5417 #include "confdefs.h"
5418 $ac_includes_default
5419 #include <$ac_header>
5421 rm -f conftest.
$ac_objext
5422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5423 (eval $ac_compile) 2>&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } &&
5427 { ac_try
='test -s conftest.$ac_objext'
5428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); }; }; then
5433 ac_header_compiler
=yes
5435 echo "$as_me: failed program was:" >&5
5436 cat conftest.
$ac_ext >&5
5437 ac_header_compiler
=no
5439 rm -f conftest.
$ac_objext conftest.
$ac_ext
5440 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5441 echo "${ECHO_T}$ac_header_compiler" >&6
5443 # Is the header present?
5444 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5446 cat >conftest.
$ac_ext <<_ACEOF
5447 #line $LINENO "configure"
5448 #include "confdefs.h"
5449 #include <$ac_header>
5451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5452 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5454 egrep -v '^ *\+' conftest.er1
>conftest.err
5456 cat conftest.err
>&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); } >/dev
/null
; then
5459 if test -s conftest.err
; then
5460 ac_cpp_err
=$ac_c_preproc_warn_flag
5467 if test -z "$ac_cpp_err"; then
5468 ac_header_preproc
=yes
5470 echo "$as_me: failed program was:" >&5
5471 cat conftest.
$ac_ext >&5
5472 ac_header_preproc
=no
5474 rm -f conftest.err conftest.
$ac_ext
5475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5476 echo "${ECHO_T}$ac_header_preproc" >&6
5478 # So? What about this header?
5479 case $ac_header_compiler:$ac_header_preproc in
5481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5489 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5493 echo "$as_me:$LINENO: checking for $ac_header" >&5
5494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 eval "$as_ac_Header=$ac_header_preproc"
5500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5505 cat >>confdefs.h
<<_ACEOF
5506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5513 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5514 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5515 if test "${ac_cv_header_stdc+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 cat >conftest.
$ac_ext <<_ACEOF
5519 #line $LINENO "configure"
5520 #include "confdefs.h"
5527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5528 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5530 egrep -v '^ *\+' conftest.er1
>conftest.err
5532 cat conftest.err
>&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } >/dev
/null
; then
5535 if test -s conftest.err
; then
5536 ac_cpp_err
=$ac_c_preproc_warn_flag
5543 if test -z "$ac_cpp_err"; then
5544 ac_cv_header_stdc
=yes
5546 echo "$as_me: failed program was:" >&5
5547 cat conftest.
$ac_ext >&5
5548 ac_cv_header_stdc
=no
5550 rm -f conftest.err conftest.
$ac_ext
5552 if test $ac_cv_header_stdc = yes; then
5553 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5554 cat >conftest.
$ac_ext <<_ACEOF
5555 #line $LINENO "configure"
5556 #include "confdefs.h"
5560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5561 egrep "memchr" >/dev
/null
2>&1; then
5564 ac_cv_header_stdc
=no
5570 if test $ac_cv_header_stdc = yes; then
5571 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5572 cat >conftest.
$ac_ext <<_ACEOF
5573 #line $LINENO "configure"
5574 #include "confdefs.h"
5578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5579 egrep "free" >/dev
/null
2>&1; then
5582 ac_cv_header_stdc
=no
5588 if test $ac_cv_header_stdc = yes; then
5589 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5590 if test "$cross_compiling" = yes; then
5593 cat >conftest.
$ac_ext <<_ACEOF
5594 #line $LINENO "configure"
5595 #include "confdefs.h"
5597 #if ((' ' & 0x0FF) == 0x020)
5598 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5599 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5601 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5602 || ('j' <= (c) && (c) <= 'r') \
5603 || ('s' <= (c) && (c) <= 'z'))
5604 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5607 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5612 for (i = 0; i < 256; i++)
5613 if (XOR (islower (i), ISLOWER (i))
5614 || toupper (i) != TOUPPER (i))
5619 rm -f conftest
$ac_exeext
5620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5621 (eval $ac_link) 2>&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); }; }; then
5632 echo "$as_me: program exited with status $ac_status" >&5
5633 echo "$as_me: failed program was:" >&5
5634 cat conftest.
$ac_ext >&5
5636 ac_cv_header_stdc
=no
5638 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5642 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5643 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5644 if test $ac_cv_header_stdc = yes; then
5646 cat >>confdefs.h
<<\_ACEOF
5647 #define STDC_HEADERS 1
5652 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
5653 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
5654 if test "${ac_cv_c_backslash_a+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5657 cat >conftest.
$ac_ext <<_ACEOF
5658 #line $LINENO "configure"
5659 #include "confdefs.h"
5661 #ifdef F77_DUMMY_MAIN
5665 int F77_DUMMY_MAIN() { return 1; }
5674 char buf['\a' == 'a' ? -1 : 1];
5676 return buf[0] != "\a"[0];
5682 rm -f conftest.
$ac_objext
5683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5684 (eval $ac_compile) 2>&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } &&
5688 { ac_try
='test -s conftest.$ac_objext'
5689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); }; }; then
5694 ac_cv_c_backslash_a
=yes
5696 echo "$as_me: failed program was:" >&5
5697 cat conftest.
$ac_ext >&5
5698 ac_cv_c_backslash_a
=no
5700 rm -f conftest.
$ac_objext conftest.
$ac_ext
5702 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
5703 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
5704 if test $ac_cv_c_backslash_a = yes; then
5706 cat >>confdefs.h
<<\_ACEOF
5707 #define HAVE_C_BACKSLASH_A 1
5712 for ac_header
in stdlib.h
5714 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5716 echo "$as_me:$LINENO: checking for $ac_header" >&5
5717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5724 # Is the header compilable?
5725 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5726 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5727 cat >conftest.
$ac_ext <<_ACEOF
5728 #line $LINENO "configure"
5729 #include "confdefs.h"
5730 $ac_includes_default
5731 #include <$ac_header>
5733 rm -f conftest.
$ac_objext
5734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5735 (eval $ac_compile) 2>&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } &&
5739 { ac_try
='test -s conftest.$ac_objext'
5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; }; then
5745 ac_header_compiler
=yes
5747 echo "$as_me: failed program was:" >&5
5748 cat conftest.
$ac_ext >&5
5749 ac_header_compiler
=no
5751 rm -f conftest.
$ac_objext conftest.
$ac_ext
5752 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5753 echo "${ECHO_T}$ac_header_compiler" >&6
5755 # Is the header present?
5756 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5758 cat >conftest.
$ac_ext <<_ACEOF
5759 #line $LINENO "configure"
5760 #include "confdefs.h"
5761 #include <$ac_header>
5763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5764 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5766 egrep -v '^ *\+' conftest.er1
>conftest.err
5768 cat conftest.err
>&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } >/dev
/null
; then
5771 if test -s conftest.err
; then
5772 ac_cpp_err
=$ac_c_preproc_warn_flag
5779 if test -z "$ac_cpp_err"; then
5780 ac_header_preproc
=yes
5782 echo "$as_me: failed program was:" >&5
5783 cat conftest.
$ac_ext >&5
5784 ac_header_preproc
=no
5786 rm -f conftest.err conftest.
$ac_ext
5787 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5788 echo "${ECHO_T}$ac_header_preproc" >&6
5790 # So? What about this header?
5791 case $ac_header_compiler:$ac_header_preproc in
5793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5794 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5798 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5800 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5801 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5805 echo "$as_me:$LINENO: checking for $ac_header" >&5
5806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 eval "$as_ac_Header=$ac_header_preproc"
5812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5817 cat >>confdefs.h
<<_ACEOF
5818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5825 echo "$as_me:$LINENO: checking for mbstate_t" >&5
5826 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
5827 if test "${ac_cv_type_mbstate_t+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5830 cat >conftest.
$ac_ext <<_ACEOF
5831 #line $LINENO "configure"
5832 #include "confdefs.h"
5835 # include <stdlib.h>
5838 #ifdef F77_DUMMY_MAIN
5842 int F77_DUMMY_MAIN() { return 1; }
5847 mbstate_t x; return sizeof x;
5852 rm -f conftest.
$ac_objext
5853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5854 (eval $ac_compile) 2>&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); } &&
5858 { ac_try
='test -s conftest.$ac_objext'
5859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; }; then
5864 ac_cv_type_mbstate_t
=yes
5866 echo "$as_me: failed program was:" >&5
5867 cat conftest.
$ac_ext >&5
5868 ac_cv_type_mbstate_t
=no
5870 rm -f conftest.
$ac_objext conftest.
$ac_ext
5872 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
5873 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
5874 if test $ac_cv_type_mbstate_t = no
; then
5876 cat >>confdefs.h
<<\_ACEOF
5877 #define mbstate_t int
5882 echo "$as_me:$LINENO: checking for function prototypes" >&5
5883 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5884 if test "$am_cv_prog_cc_stdc" != no
; then
5885 echo "$as_me:$LINENO: result: yes" >&5
5886 echo "${ECHO_T}yes" >&6
5888 cat >>confdefs.h
<<\_ACEOF
5889 #define PROTOTYPES 1
5894 echo "$as_me:$LINENO: result: no" >&5
5895 echo "${ECHO_T}no" >&6
5896 U
=_ ANSI2KNR
=.
/ansi2knr
5898 # Ensure some checks needed by ansi2knr itself.
5899 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5900 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5901 if test "${ac_cv_header_stdc+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5904 cat >conftest.
$ac_ext <<_ACEOF
5905 #line $LINENO "configure"
5906 #include "confdefs.h"
5913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5914 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5916 egrep -v '^ *\+' conftest.er1
>conftest.err
5918 cat conftest.err
>&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); } >/dev
/null
; then
5921 if test -s conftest.err
; then
5922 ac_cpp_err
=$ac_c_preproc_warn_flag
5929 if test -z "$ac_cpp_err"; then
5930 ac_cv_header_stdc
=yes
5932 echo "$as_me: failed program was:" >&5
5933 cat conftest.
$ac_ext >&5
5934 ac_cv_header_stdc
=no
5936 rm -f conftest.err conftest.
$ac_ext
5938 if test $ac_cv_header_stdc = yes; then
5939 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5940 cat >conftest.
$ac_ext <<_ACEOF
5941 #line $LINENO "configure"
5942 #include "confdefs.h"
5946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5947 egrep "memchr" >/dev
/null
2>&1; then
5950 ac_cv_header_stdc
=no
5956 if test $ac_cv_header_stdc = yes; then
5957 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5958 cat >conftest.
$ac_ext <<_ACEOF
5959 #line $LINENO "configure"
5960 #include "confdefs.h"
5964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5965 egrep "free" >/dev
/null
2>&1; then
5968 ac_cv_header_stdc
=no
5974 if test $ac_cv_header_stdc = yes; then
5975 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5976 if test "$cross_compiling" = yes; then
5979 cat >conftest.
$ac_ext <<_ACEOF
5980 #line $LINENO "configure"
5981 #include "confdefs.h"
5983 #if ((' ' & 0x0FF) == 0x020)
5984 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5985 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5987 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5988 || ('j' <= (c) && (c) <= 'r') \
5989 || ('s' <= (c) && (c) <= 'z'))
5990 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5993 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5998 for (i = 0; i < 256; i++)
5999 if (XOR (islower (i), ISLOWER (i))
6000 || toupper (i) != TOUPPER (i))
6005 rm -f conftest
$ac_exeext
6006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6007 (eval $ac_link) 2>&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; }; then
6018 echo "$as_me: program exited with status $ac_status" >&5
6019 echo "$as_me: failed program was:" >&5
6020 cat conftest.
$ac_ext >&5
6022 ac_cv_header_stdc
=no
6024 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6028 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6029 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6030 if test $ac_cv_header_stdc = yes; then
6032 cat >>confdefs.h
<<\_ACEOF
6033 #define STDC_HEADERS 1
6038 for ac_header
in string.h
6040 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6042 echo "$as_me:$LINENO: checking for $ac_header" >&5
6043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6050 # Is the header compilable?
6051 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6053 cat >conftest.
$ac_ext <<_ACEOF
6054 #line $LINENO "configure"
6055 #include "confdefs.h"
6056 $ac_includes_default
6057 #include <$ac_header>
6059 rm -f conftest.
$ac_objext
6060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6061 (eval $ac_compile) 2>&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } &&
6065 { ac_try
='test -s conftest.$ac_objext'
6066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); }; }; then
6071 ac_header_compiler
=yes
6073 echo "$as_me: failed program was:" >&5
6074 cat conftest.
$ac_ext >&5
6075 ac_header_compiler
=no
6077 rm -f conftest.
$ac_objext conftest.
$ac_ext
6078 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6079 echo "${ECHO_T}$ac_header_compiler" >&6
6081 # Is the header present?
6082 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6084 cat >conftest.
$ac_ext <<_ACEOF
6085 #line $LINENO "configure"
6086 #include "confdefs.h"
6087 #include <$ac_header>
6089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6090 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6092 egrep -v '^ *\+' conftest.er1
>conftest.err
6094 cat conftest.err
>&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } >/dev
/null
; then
6097 if test -s conftest.err
; then
6098 ac_cpp_err
=$ac_c_preproc_warn_flag
6105 if test -z "$ac_cpp_err"; then
6106 ac_header_preproc
=yes
6108 echo "$as_me: failed program was:" >&5
6109 cat conftest.
$ac_ext >&5
6110 ac_header_preproc
=no
6112 rm -f conftest.err conftest.
$ac_ext
6113 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6114 echo "${ECHO_T}$ac_header_preproc" >&6
6116 # So? What about this header?
6117 case $ac_header_compiler:$ac_header_preproc in
6119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6131 echo "$as_me:$LINENO: checking for $ac_header" >&5
6132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 eval "$as_ac_Header=$ac_header_preproc"
6138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6143 cat >>confdefs.h
<<_ACEOF
6144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6151 for ac_func
in strerror strerror_r vprintf doprnt
6153 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6154 echo "$as_me:$LINENO: checking for $ac_func" >&5
6155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6156 if eval "test \"\${$as_ac_var+set}\" = set"; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 cat >conftest.
$ac_ext <<_ACEOF
6160 #line $LINENO "configure"
6161 #include "confdefs.h"
6162 /* System header to define __stub macros and hopefully few prototypes,
6163 which can conflict with char $ac_func (); below. */
6165 /* Override any gcc2 internal prototype to avoid an error. */
6169 /* We use char because int might match the return type of a gcc2
6170 builtin and then its argument prototype would still apply. */
6174 #ifdef F77_DUMMY_MAIN
6178 int F77_DUMMY_MAIN() { return 1; }
6183 /* The GNU C library defines this for functions which it implements
6184 to always fail with ENOSYS. Some functions are actually named
6185 something starting with __ and the normal name is an alias. */
6186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6196 rm -f conftest.
$ac_objext conftest
$ac_exeext
6197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6198 (eval $ac_link) 2>&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } &&
6202 { ac_try
='test -s conftest$ac_exeext'
6203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; }; then
6208 eval "$as_ac_var=yes"
6210 echo "$as_me: failed program was:" >&5
6211 cat conftest.
$ac_ext >&5
6212 eval "$as_ac_var=no"
6214 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6217 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6218 if test `eval echo '${'$as_ac_var'}'` = yes; then
6219 cat >>confdefs.h
<<_ACEOF
6220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6226 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6227 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6228 if test "${ac_cv_header_stdc+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 cat >conftest.
$ac_ext <<_ACEOF
6232 #line $LINENO "configure"
6233 #include "confdefs.h"
6240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6241 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6243 egrep -v '^ *\+' conftest.er1
>conftest.err
6245 cat conftest.err
>&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } >/dev
/null
; then
6248 if test -s conftest.err
; then
6249 ac_cpp_err
=$ac_c_preproc_warn_flag
6256 if test -z "$ac_cpp_err"; then
6257 ac_cv_header_stdc
=yes
6259 echo "$as_me: failed program was:" >&5
6260 cat conftest.
$ac_ext >&5
6261 ac_cv_header_stdc
=no
6263 rm -f conftest.err conftest.
$ac_ext
6265 if test $ac_cv_header_stdc = yes; then
6266 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6267 cat >conftest.
$ac_ext <<_ACEOF
6268 #line $LINENO "configure"
6269 #include "confdefs.h"
6273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6274 egrep "memchr" >/dev
/null
2>&1; then
6277 ac_cv_header_stdc
=no
6283 if test $ac_cv_header_stdc = yes; then
6284 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6285 cat >conftest.
$ac_ext <<_ACEOF
6286 #line $LINENO "configure"
6287 #include "confdefs.h"
6291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6292 egrep "free" >/dev
/null
2>&1; then
6295 ac_cv_header_stdc
=no
6301 if test $ac_cv_header_stdc = yes; then
6302 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6303 if test "$cross_compiling" = yes; then
6306 cat >conftest.
$ac_ext <<_ACEOF
6307 #line $LINENO "configure"
6308 #include "confdefs.h"
6310 #if ((' ' & 0x0FF) == 0x020)
6311 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6312 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6314 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6315 || ('j' <= (c) && (c) <= 'r') \
6316 || ('s' <= (c) && (c) <= 'z'))
6317 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6320 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6325 for (i = 0; i < 256; i++)
6326 if (XOR (islower (i), ISLOWER (i))
6327 || toupper (i) != TOUPPER (i))
6332 rm -f conftest
$ac_exeext
6333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6334 (eval $ac_link) 2>&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }; }; then
6345 echo "$as_me: program exited with status $ac_status" >&5
6346 echo "$as_me: failed program was:" >&5
6347 cat conftest.
$ac_ext >&5
6349 ac_cv_header_stdc
=no
6351 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6355 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6356 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6357 if test $ac_cv_header_stdc = yes; then
6359 cat >>confdefs.h
<<\_ACEOF
6360 #define STDC_HEADERS 1
6365 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
6366 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
6367 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 cat >conftest.
$ac_ext <<_ACEOF
6371 #line $LINENO "configure"
6372 #include "confdefs.h"
6373 $ac_includes_default
6374 #ifdef F77_DUMMY_MAIN
6378 int F77_DUMMY_MAIN() { return 1; }
6384 char *p = (char *) strerror_r;
6391 rm -f conftest.
$ac_objext
6392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6393 (eval $ac_compile) 2>&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } &&
6397 { ac_try
='test -s conftest.$ac_objext'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; }; then
6403 ac_cv_have_decl_strerror_r
=yes
6405 echo "$as_me: failed program was:" >&5
6406 cat conftest.
$ac_ext >&5
6407 ac_cv_have_decl_strerror_r
=no
6409 rm -f conftest.
$ac_objext conftest.
$ac_ext
6411 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
6412 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
6413 if test $ac_cv_have_decl_strerror_r = yes; then
6415 cat >>confdefs.h
<<_ACEOF
6416 #define HAVE_DECL_STRERROR_R 1
6420 cat >>confdefs.h
<<_ACEOF
6421 #define HAVE_DECL_STRERROR_R 0
6426 for ac_func
in strerror_r
6428 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6429 echo "$as_me:$LINENO: checking for $ac_func" >&5
6430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6431 if eval "test \"\${$as_ac_var+set}\" = set"; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 cat >conftest.
$ac_ext <<_ACEOF
6435 #line $LINENO "configure"
6436 #include "confdefs.h"
6437 /* System header to define __stub macros and hopefully few prototypes,
6438 which can conflict with char $ac_func (); below. */
6440 /* Override any gcc2 internal prototype to avoid an error. */
6444 /* We use char because int might match the return type of a gcc2
6445 builtin and then its argument prototype would still apply. */
6449 #ifdef F77_DUMMY_MAIN
6453 int F77_DUMMY_MAIN() { return 1; }
6458 /* The GNU C library defines this for functions which it implements
6459 to always fail with ENOSYS. Some functions are actually named
6460 something starting with __ and the normal name is an alias. */
6461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6471 rm -f conftest.
$ac_objext conftest
$ac_exeext
6472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6473 (eval $ac_link) 2>&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } &&
6477 { ac_try
='test -s conftest$ac_exeext'
6478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; }; then
6483 eval "$as_ac_var=yes"
6485 echo "$as_me: failed program was:" >&5
6486 cat conftest.
$ac_ext >&5
6487 eval "$as_ac_var=no"
6489 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6492 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6493 if test `eval echo '${'$as_ac_var'}'` = yes; then
6494 cat >>confdefs.h
<<_ACEOF
6495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6501 if test $ac_cv_func_strerror_r = yes; then
6503 for ac_header
in string.h
6505 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6507 echo "$as_me:$LINENO: checking for $ac_header" >&5
6508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6510 echo $ECHO_N "(cached) $ECHO_C" >&6
6512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6513 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6515 # Is the header compilable?
6516 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6518 cat >conftest.
$ac_ext <<_ACEOF
6519 #line $LINENO "configure"
6520 #include "confdefs.h"
6521 $ac_includes_default
6522 #include <$ac_header>
6524 rm -f conftest.
$ac_objext
6525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6526 (eval $ac_compile) 2>&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } &&
6530 { ac_try
='test -s conftest.$ac_objext'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; }; then
6536 ac_header_compiler
=yes
6538 echo "$as_me: failed program was:" >&5
6539 cat conftest.
$ac_ext >&5
6540 ac_header_compiler
=no
6542 rm -f conftest.
$ac_objext conftest.
$ac_ext
6543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6544 echo "${ECHO_T}$ac_header_compiler" >&6
6546 # Is the header present?
6547 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6549 cat >conftest.
$ac_ext <<_ACEOF
6550 #line $LINENO "configure"
6551 #include "confdefs.h"
6552 #include <$ac_header>
6554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6555 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6557 egrep -v '^ *\+' conftest.er1
>conftest.err
6559 cat conftest.err
>&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } >/dev
/null
; then
6562 if test -s conftest.err
; then
6563 ac_cpp_err
=$ac_c_preproc_warn_flag
6570 if test -z "$ac_cpp_err"; then
6571 ac_header_preproc
=yes
6573 echo "$as_me: failed program was:" >&5
6574 cat conftest.
$ac_ext >&5
6575 ac_header_preproc
=no
6577 rm -f conftest.err conftest.
$ac_ext
6578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6579 echo "${ECHO_T}$ac_header_preproc" >&6
6581 # So? What about this header?
6582 case $ac_header_compiler:$ac_header_preproc in
6584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6596 echo "$as_me:$LINENO: checking for $ac_header" >&5
6597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 eval "$as_ac_Header=$ac_header_preproc"
6603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6608 cat >>confdefs.h
<<_ACEOF
6609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6616 echo "$as_me:$LINENO: checking for working strerror_r" >&5
6617 echo $ECHO_N "checking for working strerror_r... $ECHO_C" >&6
6618 if test "${ac_cv_func_strerror_r_works+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 cat >conftest.
$ac_ext <<_ACEOF
6623 #line $LINENO "configure"
6624 #include "confdefs.h"
6628 # include <string.h>
6631 #ifdef F77_DUMMY_MAIN
6635 int F77_DUMMY_MAIN() { return 1; }
6642 char x = *strerror_r (0, buf, sizeof buf);
6648 rm -f conftest.
$ac_objext
6649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6650 (eval $ac_compile) 2>&5
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } &&
6654 { ac_try
='test -s conftest.$ac_objext'
6655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }; }; then
6660 ac_cv_func_strerror_r_works
=yes
6662 echo "$as_me: failed program was:" >&5
6663 cat conftest.
$ac_ext >&5
6664 ac_cv_func_strerror_r_works
=no
6667 rm -f conftest.
$ac_objext conftest.
$ac_ext
6668 if test $ac_cv_func_strerror_r_works = no
; then
6669 # strerror_r seems not to work, but now we have to choose between
6670 # systems that have relatively inaccessible declarations for the
6671 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
6672 # former has a strerror_r that returns char*, while the latter
6673 # has a strerror_r that returns `int'.
6674 # This test should segfault on the DEC system.
6675 if test "$cross_compiling" = yes; then
6676 ac_cv_func_strerror_r_works
=no
6678 cat >conftest.
$ac_ext <<_ACEOF
6679 #line $LINENO "configure"
6680 #include "confdefs.h"
6683 # include <string.h>
6686 extern char *strerror_r ();
6692 char x = *strerror_r (0, buf, sizeof buf);
6693 exit (!isalpha (x));
6697 rm -f conftest
$ac_exeext
6698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6699 (eval $ac_link) 2>&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); }; }; then
6708 ac_cv_func_strerror_r_works
=yes
6710 echo "$as_me: program exited with status $ac_status" >&5
6711 echo "$as_me: failed program was:" >&5
6712 cat conftest.
$ac_ext >&5
6714 ac_cv_func_strerror_r_works
=no
6716 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6721 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_works" >&5
6722 echo "${ECHO_T}$ac_cv_func_strerror_r_works" >&6
6723 if test $ac_cv_func_strerror_r_works = yes; then
6725 cat >>confdefs.h
<<_ACEOF
6726 #define HAVE_WORKING_STRERROR_R 1
6732 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
6733 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
6735 # Check whether --with-dmalloc or --without-dmalloc was given.
6736 if test "${with_dmalloc+set}" = set; then
6737 withval
="$with_dmalloc"
6738 if test "$withval" = yes; then
6739 echo "$as_me:$LINENO: result: yes" >&5
6740 echo "${ECHO_T}yes" >&6
6742 cat >>confdefs.h
<<\_ACEOF
6743 #define WITH_DMALLOC 1
6746 LIBS
="$LIBS -ldmalloc"
6747 LDFLAGS
="$LDFLAGS -g"
6749 echo "$as_me:$LINENO: result: no" >&5
6750 echo "${ECHO_T}no" >&6
6753 echo "$as_me:$LINENO: result: no" >&5
6754 echo "${ECHO_T}no" >&6
6757 ALL_LINGUAS
="de es et fr ja nl tr ru"
6758 # Make sure we can run config.sub.
6759 $ac_config_sub sun4
>/dev
/null
2>&1 ||
6760 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6761 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6762 { (exit 1); exit 1; }; }
6764 echo "$as_me:$LINENO: checking build system type" >&5
6765 echo $ECHO_N "checking build system type... $ECHO_C" >&6
6766 if test "${ac_cv_build+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6769 ac_cv_build_alias
=$build_alias
6770 test -z "$ac_cv_build_alias" &&
6771 ac_cv_build_alias
=`$ac_config_guess`
6772 test -z "$ac_cv_build_alias" &&
6773 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6774 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6775 { (exit 1); exit 1; }; }
6776 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
6777 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed." >&5
6778 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
6779 { (exit 1); exit 1; }; }
6782 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6783 echo "${ECHO_T}$ac_cv_build" >&6
6785 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6786 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6787 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6789 echo "$as_me:$LINENO: checking host system type" >&5
6790 echo $ECHO_N "checking host system type... $ECHO_C" >&6
6791 if test "${ac_cv_host+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 ac_cv_host_alias
=$host_alias
6795 test -z "$ac_cv_host_alias" &&
6796 ac_cv_host_alias
=$ac_cv_build_alias
6797 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
6798 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6799 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6800 { (exit 1); exit 1; }; }
6803 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6804 echo "${ECHO_T}$ac_cv_host" >&6
6806 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6807 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6808 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6810 echo "$as_me:$LINENO: checking for off_t" >&5
6811 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6812 if test "${ac_cv_type_off_t+set}" = set; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 cat >conftest.
$ac_ext <<_ACEOF
6816 #line $LINENO "configure"
6817 #include "confdefs.h"
6818 $ac_includes_default
6819 #ifdef F77_DUMMY_MAIN
6823 int F77_DUMMY_MAIN() { return 1; }
6836 rm -f conftest.
$ac_objext
6837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6838 (eval $ac_compile) 2>&5
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); } &&
6842 { ac_try
='test -s conftest.$ac_objext'
6843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); }; }; then
6848 ac_cv_type_off_t
=yes
6850 echo "$as_me: failed program was:" >&5
6851 cat conftest.
$ac_ext >&5
6854 rm -f conftest.
$ac_objext conftest.
$ac_ext
6856 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6857 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6858 if test $ac_cv_type_off_t = yes; then
6862 cat >>confdefs.h
<<_ACEOF
6868 echo "$as_me:$LINENO: checking for size_t" >&5
6869 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6870 if test "${ac_cv_type_size_t+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6873 cat >conftest.
$ac_ext <<_ACEOF
6874 #line $LINENO "configure"
6875 #include "confdefs.h"
6876 $ac_includes_default
6877 #ifdef F77_DUMMY_MAIN
6881 int F77_DUMMY_MAIN() { return 1; }
6888 if (sizeof (size_t))
6894 rm -f conftest.
$ac_objext
6895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6896 (eval $ac_compile) 2>&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); } &&
6900 { ac_try
='test -s conftest.$ac_objext'
6901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); }; }; then
6906 ac_cv_type_size_t
=yes
6908 echo "$as_me: failed program was:" >&5
6909 cat conftest.
$ac_ext >&5
6910 ac_cv_type_size_t
=no
6912 rm -f conftest.
$ac_objext conftest.
$ac_ext
6914 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6915 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6916 if test $ac_cv_type_size_t = yes; then
6920 cat >>confdefs.h
<<_ACEOF
6921 #define size_t unsigned
6926 for ac_header
in stdlib.h unistd.h
6928 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6930 echo "$as_me:$LINENO: checking for $ac_header" >&5
6931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
6935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6938 # Is the header compilable?
6939 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6941 cat >conftest.
$ac_ext <<_ACEOF
6942 #line $LINENO "configure"
6943 #include "confdefs.h"
6944 $ac_includes_default
6945 #include <$ac_header>
6947 rm -f conftest.
$ac_objext
6948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6949 (eval $ac_compile) 2>&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } &&
6953 { ac_try
='test -s conftest.$ac_objext'
6954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); }; }; then
6959 ac_header_compiler
=yes
6961 echo "$as_me: failed program was:" >&5
6962 cat conftest.
$ac_ext >&5
6963 ac_header_compiler
=no
6965 rm -f conftest.
$ac_objext conftest.
$ac_ext
6966 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6967 echo "${ECHO_T}$ac_header_compiler" >&6
6969 # Is the header present?
6970 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6972 cat >conftest.
$ac_ext <<_ACEOF
6973 #line $LINENO "configure"
6974 #include "confdefs.h"
6975 #include <$ac_header>
6977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6978 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6980 egrep -v '^ *\+' conftest.er1
>conftest.err
6982 cat conftest.err
>&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } >/dev
/null
; then
6985 if test -s conftest.err
; then
6986 ac_cpp_err
=$ac_c_preproc_warn_flag
6993 if test -z "$ac_cpp_err"; then
6994 ac_header_preproc
=yes
6996 echo "$as_me: failed program was:" >&5
6997 cat conftest.
$ac_ext >&5
6998 ac_header_preproc
=no
7000 rm -f conftest.err conftest.
$ac_ext
7001 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7002 echo "${ECHO_T}$ac_header_preproc" >&6
7004 # So? What about this header?
7005 case $ac_header_compiler:$ac_header_preproc in
7007 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7008 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7012 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7014 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7015 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7019 echo "$as_me:$LINENO: checking for $ac_header" >&5
7020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7024 eval "$as_ac_Header=$ac_header_preproc"
7026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7031 cat >>confdefs.h
<<_ACEOF
7032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7039 for ac_func
in getpagesize
7041 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7042 echo "$as_me:$LINENO: checking for $ac_func" >&5
7043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7044 if eval "test \"\${$as_ac_var+set}\" = set"; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 cat >conftest.
$ac_ext <<_ACEOF
7048 #line $LINENO "configure"
7049 #include "confdefs.h"
7050 /* System header to define __stub macros and hopefully few prototypes,
7051 which can conflict with char $ac_func (); below. */
7053 /* Override any gcc2 internal prototype to avoid an error. */
7057 /* We use char because int might match the return type of a gcc2
7058 builtin and then its argument prototype would still apply. */
7062 #ifdef F77_DUMMY_MAIN
7066 int F77_DUMMY_MAIN() { return 1; }
7071 /* The GNU C library defines this for functions which it implements
7072 to always fail with ENOSYS. Some functions are actually named
7073 something starting with __ and the normal name is an alias. */
7074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7084 rm -f conftest.
$ac_objext conftest
$ac_exeext
7085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7086 (eval $ac_link) 2>&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } &&
7090 { ac_try
='test -s conftest$ac_exeext'
7091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); }; }; then
7096 eval "$as_ac_var=yes"
7098 echo "$as_me: failed program was:" >&5
7099 cat conftest.
$ac_ext >&5
7100 eval "$as_ac_var=no"
7102 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7105 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7106 if test `eval echo '${'$as_ac_var'}'` = yes; then
7107 cat >>confdefs.h
<<_ACEOF
7108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7114 echo "$as_me:$LINENO: checking for working mmap" >&5
7115 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7116 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
7119 if test "$cross_compiling" = yes; then
7120 ac_cv_func_mmap_fixed_mapped
=no
7122 cat >conftest.
$ac_ext <<_ACEOF
7123 #line $LINENO "configure"
7124 #include "confdefs.h"
7125 $ac_includes_default
7126 /* Thanks to Mike Haertel and Jim Avera for this test.
7127 Here is a matrix of mmap possibilities:
7128 mmap private not fixed
7129 mmap private fixed at somewhere currently unmapped
7130 mmap private fixed at somewhere already mapped
7131 mmap shared not fixed
7132 mmap shared fixed at somewhere currently unmapped
7133 mmap shared fixed at somewhere already mapped
7134 For private mappings, we should verify that changes cannot be read()
7135 back from the file, nor mmap's back from the file at a different
7136 address. (There have been systems where private was not correctly
7137 implemented like the infamous i386 svr4.0, and systems where the
7138 VM page cache was not coherent with the file system buffer cache
7139 like early versions of FreeBSD and possibly contemporary NetBSD.)
7140 For shared mappings, we should conversely verify that changes get
7141 propogated back to all the places they're supposed to be.
7143 Grep wants private fixed already mapped.
7144 The main things grep needs to know about mmap are:
7145 * does it exist and is it safe to write into the mmap'd area
7146 * how to use it (BSD variants) */
7149 #include <sys/mman.h>
7151 #if !STDC_HEADERS && !HAVE_STDLIB_H
7155 /* This mess was copied from the GNU getpagesize.h. */
7156 #if !HAVE_GETPAGESIZE
7157 /* Assume that all systems that can run configure have sys/param.h. */
7158 # if !HAVE_SYS_PARAM_H
7159 # define HAVE_SYS_PARAM_H 1
7162 # ifdef _SC_PAGESIZE
7163 # define getpagesize() sysconf(_SC_PAGESIZE)
7164 # else /* no _SC_PAGESIZE */
7165 # if HAVE_SYS_PARAM_H
7166 # include <sys/param.h>
7167 # ifdef EXEC_PAGESIZE
7168 # define getpagesize() EXEC_PAGESIZE
7169 # else /* no EXEC_PAGESIZE */
7171 # define getpagesize() NBPG * CLSIZE
7174 # endif /* no CLSIZE */
7175 # else /* no NBPG */
7177 # define getpagesize() NBPC
7178 # else /* no NBPC */
7180 # define getpagesize() PAGESIZE
7181 # endif /* PAGESIZE */
7182 # endif /* no NBPC */
7183 # endif /* no NBPG */
7184 # endif /* no EXEC_PAGESIZE */
7185 # else /* no HAVE_SYS_PARAM_H */
7186 # define getpagesize() 8192 /* punt totally */
7187 # endif /* no HAVE_SYS_PARAM_H */
7188 # endif /* no _SC_PAGESIZE */
7190 #endif /* no HAVE_GETPAGESIZE */
7195 char *data, *data2, *data3;
7199 pagesize = getpagesize ();
7201 /* First, make a file with some known garbage in it. */
7202 data = (char *) malloc (pagesize);
7205 for (i = 0; i < pagesize; ++i)
7206 *(data + i) = rand ();
7208 fd = creat ("conftest.mmap", 0600);
7211 if (write (fd, data, pagesize) != pagesize)
7215 /* Next, try to mmap the file at a fixed address which already has
7216 something else allocated at it. If we can, also make sure that
7217 we see the same garbage. */
7218 fd = open ("conftest.mmap", O_RDWR);
7221 data2 = (char *) malloc (2 * pagesize);
7224 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7225 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7226 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7228 for (i = 0; i < pagesize; ++i)
7229 if (*(data + i) != *(data2 + i))
7232 /* Finally, make sure that changes to the mapped area do not
7233 percolate back to the file as seen by read(). (This is a bug on
7234 some variants of i386 svr4.0.) */
7235 for (i = 0; i < pagesize; ++i)
7236 *(data2 + i) = *(data2 + i) + 1;
7237 data3 = (char *) malloc (pagesize);
7240 if (read (fd, data3, pagesize) != pagesize)
7242 for (i = 0; i < pagesize; ++i)
7243 if (*(data + i) != *(data3 + i))
7249 rm -f conftest
$ac_exeext
7250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7251 (eval $ac_link) 2>&5
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); }; }; then
7260 ac_cv_func_mmap_fixed_mapped
=yes
7262 echo "$as_me: program exited with status $ac_status" >&5
7263 echo "$as_me: failed program was:" >&5
7264 cat conftest.
$ac_ext >&5
7266 ac_cv_func_mmap_fixed_mapped
=no
7268 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7271 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7272 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7273 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7275 cat >>confdefs.h
<<\_ACEOF
7282 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7283 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7284 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7287 cat >conftest.
$ac_ext <<_ACEOF
7288 #line $LINENO "configure"
7289 #include "confdefs.h"
7291 #include <features.h>
7292 #ifdef __GNU_LIBRARY__
7293 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7300 egrep "Lucky GNU user" >/dev
/null
2>&1; then
7301 ac_cv_gnu_library_2_1
=yes
7303 ac_cv_gnu_library_2_1
=no
7308 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7309 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7311 GLIBC21
="$ac_cv_gnu_library_2_1"
7313 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7314 stdlib.h string.h unistd.h sys
/param.h
7316 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7318 echo "$as_me:$LINENO: checking for $ac_header" >&5
7319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7326 # Is the header compilable?
7327 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7329 cat >conftest.
$ac_ext <<_ACEOF
7330 #line $LINENO "configure"
7331 #include "confdefs.h"
7332 $ac_includes_default
7333 #include <$ac_header>
7335 rm -f conftest.
$ac_objext
7336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7337 (eval $ac_compile) 2>&5
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); } &&
7341 { ac_try
='test -s conftest.$ac_objext'
7342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); }; }; then
7347 ac_header_compiler
=yes
7349 echo "$as_me: failed program was:" >&5
7350 cat conftest.
$ac_ext >&5
7351 ac_header_compiler
=no
7353 rm -f conftest.
$ac_objext conftest.
$ac_ext
7354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7355 echo "${ECHO_T}$ac_header_compiler" >&6
7357 # Is the header present?
7358 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7359 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7360 cat >conftest.
$ac_ext <<_ACEOF
7361 #line $LINENO "configure"
7362 #include "confdefs.h"
7363 #include <$ac_header>
7365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7366 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7368 egrep -v '^ *\+' conftest.er1
>conftest.err
7370 cat conftest.err
>&5
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); } >/dev
/null
; then
7373 if test -s conftest.err
; then
7374 ac_cpp_err
=$ac_c_preproc_warn_flag
7381 if test -z "$ac_cpp_err"; then
7382 ac_header_preproc
=yes
7384 echo "$as_me: failed program was:" >&5
7385 cat conftest.
$ac_ext >&5
7386 ac_header_preproc
=no
7388 rm -f conftest.err conftest.
$ac_ext
7389 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7390 echo "${ECHO_T}$ac_header_preproc" >&6
7392 # So? What about this header?
7393 case $ac_header_compiler:$ac_header_preproc in
7395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7407 echo "$as_me:$LINENO: checking for $ac_header" >&5
7408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7410 echo $ECHO_N "(cached) $ECHO_C" >&6
7412 eval "$as_ac_Header=$ac_header_preproc"
7414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7415 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7418 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7419 cat >>confdefs.h
<<_ACEOF
7420 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7427 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
7428 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
7429 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
7431 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7432 echo "$as_me:$LINENO: checking for $ac_func" >&5
7433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7434 if eval "test \"\${$as_ac_var+set}\" = set"; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 cat >conftest.
$ac_ext <<_ACEOF
7438 #line $LINENO "configure"
7439 #include "confdefs.h"
7440 /* System header to define __stub macros and hopefully few prototypes,
7441 which can conflict with char $ac_func (); below. */
7443 /* Override any gcc2 internal prototype to avoid an error. */
7447 /* We use char because int might match the return type of a gcc2
7448 builtin and then its argument prototype would still apply. */
7452 #ifdef F77_DUMMY_MAIN
7456 int F77_DUMMY_MAIN() { return 1; }
7461 /* The GNU C library defines this for functions which it implements
7462 to always fail with ENOSYS. Some functions are actually named
7463 something starting with __ and the normal name is an alias. */
7464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7474 rm -f conftest.
$ac_objext conftest
$ac_exeext
7475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7476 (eval $ac_link) 2>&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); } &&
7480 { ac_try
='test -s conftest$ac_exeext'
7481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); }; }; then
7486 eval "$as_ac_var=yes"
7488 echo "$as_me: failed program was:" >&5
7489 cat conftest.
$ac_ext >&5
7490 eval "$as_ac_var=no"
7492 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7495 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7496 if test `eval echo '${'$as_ac_var'}'` = yes; then
7497 cat >>confdefs.h
<<_ACEOF
7498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7504 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7505 if test "${with_libiconv_prefix+set}" = set; then
7506 withval
="$with_libiconv_prefix"
7508 for dir
in `echo "$withval" | tr : ' '`; do
7509 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
7510 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
7515 echo "$as_me:$LINENO: checking for iconv" >&5
7516 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7517 if test "${am_cv_func_iconv+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 am_cv_func_iconv
="no, consider installing GNU libiconv"
7523 cat >conftest.
$ac_ext <<_ACEOF
7524 #line $LINENO "configure"
7525 #include "confdefs.h"
7528 #ifdef F77_DUMMY_MAIN
7532 int F77_DUMMY_MAIN() { return 1; }
7537 iconv_t cd = iconv_open("","");
7538 iconv(cd,NULL,NULL,NULL,NULL);
7544 rm -f conftest.
$ac_objext conftest
$ac_exeext
7545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7546 (eval $ac_link) 2>&5
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); } &&
7550 { ac_try
='test -s conftest$ac_exeext'
7551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); }; }; then
7556 am_cv_func_iconv
=yes
7558 echo "$as_me: failed program was:" >&5
7559 cat conftest.
$ac_ext >&5
7561 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7562 if test "$am_cv_func_iconv" != yes; then
7563 am_save_LIBS
="$LIBS"
7564 LIBS
="$LIBS -liconv"
7565 cat >conftest.
$ac_ext <<_ACEOF
7566 #line $LINENO "configure"
7567 #include "confdefs.h"
7570 #ifdef F77_DUMMY_MAIN
7574 int F77_DUMMY_MAIN() { return 1; }
7579 iconv_t cd = iconv_open("","");
7580 iconv(cd,NULL,NULL,NULL,NULL);
7586 rm -f conftest.
$ac_objext conftest
$ac_exeext
7587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7588 (eval $ac_link) 2>&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); } &&
7592 { ac_try
='test -s conftest$ac_exeext'
7593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); }; }; then
7599 am_cv_func_iconv
=yes
7601 echo "$as_me: failed program was:" >&5
7602 cat conftest.
$ac_ext >&5
7604 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7605 LIBS
="$am_save_LIBS"
7609 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7610 echo "${ECHO_T}$am_cv_func_iconv" >&6
7611 if test "$am_cv_func_iconv" = yes; then
7613 cat >>confdefs.h
<<\_ACEOF
7614 #define HAVE_ICONV 1
7617 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7618 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7619 if test "${am_cv_proto_iconv+set}" = set; then
7620 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 cat >conftest.
$ac_ext <<_ACEOF
7624 #line $LINENO "configure"
7625 #include "confdefs.h"
7633 #if defined(__STDC__) || defined(__cplusplus)
7634 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7639 #ifdef F77_DUMMY_MAIN
7643 int F77_DUMMY_MAIN() { return 1; }
7653 rm -f conftest.
$ac_objext
7654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7655 (eval $ac_compile) 2>&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); } &&
7659 { ac_try
='test -s conftest.$ac_objext'
7660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); }; }; then
7665 am_cv_proto_iconv_arg1
=""
7667 echo "$as_me: failed program was:" >&5
7668 cat conftest.
$ac_ext >&5
7669 am_cv_proto_iconv_arg1
="const"
7671 rm -f conftest.
$ac_objext conftest.
$ac_ext
7672 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);"
7675 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7676 echo "$as_me:$LINENO: result: ${ac_t:-
7677 }$am_cv_proto_iconv" >&5
7678 echo "${ECHO_T}${ac_t:-
7679 }$am_cv_proto_iconv" >&6
7681 cat >>confdefs.h
<<_ACEOF
7682 #define ICONV_CONST $am_cv_proto_iconv_arg1
7687 if test "$am_cv_lib_iconv" = yes; then
7691 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7692 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7693 if test "${am_cv_langinfo_codeset+set}" = set; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
7696 cat >conftest.
$ac_ext <<_ACEOF
7697 #line $LINENO "configure"
7698 #include "confdefs.h"
7699 #include <langinfo.h>
7700 #ifdef F77_DUMMY_MAIN
7704 int F77_DUMMY_MAIN() { return 1; }
7709 char* cs = nl_langinfo(CODESET);
7714 rm -f conftest.
$ac_objext conftest
$ac_exeext
7715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7716 (eval $ac_link) 2>&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); } &&
7720 { ac_try
='test -s conftest$ac_exeext'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; }; then
7726 am_cv_langinfo_codeset
=yes
7728 echo "$as_me: failed program was:" >&5
7729 cat conftest.
$ac_ext >&5
7730 am_cv_langinfo_codeset
=no
7732 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7735 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7736 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7737 if test $am_cv_langinfo_codeset = yes; then
7739 cat >>confdefs.h
<<\_ACEOF
7740 #define HAVE_LANGINFO_CODESET 1
7745 if test $ac_cv_header_locale_h = yes; then
7746 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7747 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7748 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 cat >conftest.
$ac_ext <<_ACEOF
7752 #line $LINENO "configure"
7753 #include "confdefs.h"
7755 #ifdef F77_DUMMY_MAIN
7759 int F77_DUMMY_MAIN() { return 1; }
7769 rm -f conftest.
$ac_objext conftest
$ac_exeext
7770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7771 (eval $ac_link) 2>&5
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); } &&
7775 { ac_try
='test -s conftest$ac_exeext'
7776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); }; }; then
7781 am_cv_val_LC_MESSAGES
=yes
7783 echo "$as_me: failed program was:" >&5
7784 cat conftest.
$ac_ext >&5
7785 am_cv_val_LC_MESSAGES
=no
7787 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7789 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7790 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7791 if test $am_cv_val_LC_MESSAGES = yes; then
7793 cat >>confdefs.h
<<\_ACEOF
7794 #define HAVE_LC_MESSAGES 1
7799 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7800 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7801 # Check whether --enable-nls or --disable-nls was given.
7802 if test "${enable_nls+set}" = set; then
7803 enableval
="$enable_nls"
7808 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7809 echo "${ECHO_T}$USE_NLS" >&6
7811 BUILD_INCLUDED_LIBINTL
=no
7812 USE_INCLUDED_LIBINTL
=no
7815 if test "$USE_NLS" = "yes"; then
7817 cat >>confdefs.h
<<\_ACEOF
7818 #define ENABLE_NLS 1
7821 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7822 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7824 # Check whether --with-included-gettext or --without-included-gettext was given.
7825 if test "${with_included_gettext+set}" = set; then
7826 withval
="$with_included_gettext"
7827 nls_cv_force_use_gnu_gettext
=$withval
7829 nls_cv_force_use_gnu_gettext
=no
7831 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7832 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7834 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7835 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7838 if test "${ac_cv_header_libintl_h+set}" = set; then
7839 echo "$as_me:$LINENO: checking for libintl.h" >&5
7840 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7841 if test "${ac_cv_header_libintl_h+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7844 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7845 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7847 # Is the header compilable?
7848 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7849 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7850 cat >conftest.
$ac_ext <<_ACEOF
7851 #line $LINENO "configure"
7852 #include "confdefs.h"
7853 $ac_includes_default
7854 #include <libintl.h>
7856 rm -f conftest.
$ac_objext
7857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7858 (eval $ac_compile) 2>&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } &&
7862 { ac_try
='test -s conftest.$ac_objext'
7863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }; }; then
7868 ac_header_compiler
=yes
7870 echo "$as_me: failed program was:" >&5
7871 cat conftest.
$ac_ext >&5
7872 ac_header_compiler
=no
7874 rm -f conftest.
$ac_objext conftest.
$ac_ext
7875 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7876 echo "${ECHO_T}$ac_header_compiler" >&6
7878 # Is the header present?
7879 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7880 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7881 cat >conftest.
$ac_ext <<_ACEOF
7882 #line $LINENO "configure"
7883 #include "confdefs.h"
7884 #include <libintl.h>
7886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7887 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7889 egrep -v '^ *\+' conftest.er1
>conftest.err
7891 cat conftest.err
>&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } >/dev
/null
; then
7894 if test -s conftest.err
; then
7895 ac_cpp_err
=$ac_c_preproc_warn_flag
7902 if test -z "$ac_cpp_err"; then
7903 ac_header_preproc
=yes
7905 echo "$as_me: failed program was:" >&5
7906 cat conftest.
$ac_ext >&5
7907 ac_header_preproc
=no
7909 rm -f conftest.err conftest.
$ac_ext
7910 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7911 echo "${ECHO_T}$ac_header_preproc" >&6
7913 # So? What about this header?
7914 case $ac_header_compiler:$ac_header_preproc in
7916 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7917 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7918 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7919 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7921 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled." >&5
7922 echo "$as_me: WARNING: libintl.h: present but cannot be compiled." >&2;}
7923 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7924 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7925 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7926 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7928 echo "$as_me:$LINENO: checking for libintl.h" >&5
7929 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7930 if test "${ac_cv_header_libintl_h+set}" = set; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 ac_cv_header_libintl_h
=$ac_header_preproc
7935 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7936 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7939 if test $ac_cv_header_libintl_h = yes; then
7940 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
7941 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
7942 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7945 cat >conftest.
$ac_ext <<_ACEOF
7946 #line $LINENO "configure"
7947 #include "confdefs.h"
7948 #include <libintl.h>
7949 extern int _nl_msg_cat_cntr;
7950 #ifdef F77_DUMMY_MAIN
7954 int F77_DUMMY_MAIN() { return 1; }
7959 bindtextdomain ("", "");
7960 return (int) gettext ("") + _nl_msg_cat_cntr
7965 rm -f conftest.
$ac_objext conftest
$ac_exeext
7966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7967 (eval $ac_link) 2>&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); } &&
7971 { ac_try
='test -s conftest$ac_exeext'
7972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); }; }; then
7977 gt_cv_func_gnugettext1_libc
=yes
7979 echo "$as_me: failed program was:" >&5
7980 cat conftest.
$ac_ext >&5
7981 gt_cv_func_gnugettext1_libc
=no
7983 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7985 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
7986 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
7988 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
7989 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7990 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
7991 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
7994 gt_save_LIBS
="$LIBS"
7995 LIBS
="$LIBS -lintl $LIBICONV"
7996 cat >conftest.
$ac_ext <<_ACEOF
7997 #line $LINENO "configure"
7998 #include "confdefs.h"
7999 #include <libintl.h>
8000 extern int _nl_msg_cat_cntr;
8001 #ifdef F77_DUMMY_MAIN
8005 int F77_DUMMY_MAIN() { return 1; }
8010 bindtextdomain ("", "");
8011 return (int) gettext ("") + _nl_msg_cat_cntr
8016 rm -f conftest.
$ac_objext conftest
$ac_exeext
8017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8018 (eval $ac_link) 2>&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } &&
8022 { ac_try
='test -s conftest$ac_exeext'
8023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); }; }; then
8028 gt_cv_func_gnugettext1_libintl
=yes
8030 echo "$as_me: failed program was:" >&5
8031 cat conftest.
$ac_ext >&5
8032 gt_cv_func_gnugettext1_libintl
=no
8034 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8035 LIBS
="$gt_save_LIBS"
8037 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
8038 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
8041 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
8042 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
8043 && test "$PACKAGE" != gettext; }; then
8045 cat >>confdefs.h
<<\_ACEOF
8046 #define HAVE_GETTEXT 1
8049 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
8050 INTLLIBS
="-lintl $LIBICONV"
8053 gt_save_LIBS
="$LIBS"
8054 LIBS
="$LIBS $INTLLIBS"
8056 for ac_func
in dcgettext
8058 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8059 echo "$as_me:$LINENO: checking for $ac_func" >&5
8060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8061 if eval "test \"\${$as_ac_var+set}\" = set"; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 cat >conftest.
$ac_ext <<_ACEOF
8065 #line $LINENO "configure"
8066 #include "confdefs.h"
8067 /* System header to define __stub macros and hopefully few prototypes,
8068 which can conflict with char $ac_func (); below. */
8070 /* Override any gcc2 internal prototype to avoid an error. */
8074 /* We use char because int might match the return type of a gcc2
8075 builtin and then its argument prototype would still apply. */
8079 #ifdef F77_DUMMY_MAIN
8083 int F77_DUMMY_MAIN() { return 1; }
8088 /* The GNU C library defines this for functions which it implements
8089 to always fail with ENOSYS. Some functions are actually named
8090 something starting with __ and the normal name is an alias. */
8091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8101 rm -f conftest.
$ac_objext conftest
$ac_exeext
8102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8103 (eval $ac_link) 2>&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } &&
8107 { ac_try
='test -s conftest$ac_exeext'
8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; }; then
8113 eval "$as_ac_var=yes"
8115 echo "$as_me: failed program was:" >&5
8116 cat conftest.
$ac_ext >&5
8117 eval "$as_ac_var=no"
8119 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8122 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8123 if test `eval echo '${'$as_ac_var'}'` = yes; then
8124 cat >>confdefs.h
<<_ACEOF
8125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8131 LIBS
="$gt_save_LIBS"
8133 # Extract the first word of "msgfmt", so it can be a program name with args.
8134 set dummy msgfmt
; ac_word
=$2
8135 echo "$as_me:$LINENO: checking for $ac_word" >&5
8136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8137 if test "${ac_cv_path_MSGFMT+set}" = set; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
8142 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8145 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8146 for ac_dir
in $PATH; do
8147 test -z "$ac_dir" && ac_dir
=.
8148 if test -f $ac_dir/$ac_word; then
8149 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8150 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8156 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8160 MSGFMT
="$ac_cv_path_MSGFMT"
8161 if test "$MSGFMT" != ":"; then
8162 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8163 echo "${ECHO_T}$MSGFMT" >&6
8165 echo "$as_me:$LINENO: result: no" >&5
8166 echo "${ECHO_T}no" >&6
8169 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8170 set dummy gmsgfmt
; ac_word
=$2
8171 echo "$as_me:$LINENO: checking for $ac_word" >&5
8172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8173 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8178 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8185 test -z "$as_dir" && as_dir
=.
8186 for ac_exec_ext
in '' $ac_executable_extensions; do
8187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8188 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8195 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8199 GMSGFMT
=$ac_cv_path_GMSGFMT
8201 if test -n "$GMSGFMT"; then
8202 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8203 echo "${ECHO_T}$GMSGFMT" >&6
8205 echo "$as_me:$LINENO: result: no" >&5
8206 echo "${ECHO_T}no" >&6
8209 # Extract the first word of "xgettext", so it can be a program name with args.
8210 set dummy xgettext
; ac_word
=$2
8211 echo "$as_me:$LINENO: checking for $ac_word" >&5
8212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8213 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8214 echo $ECHO_N "(cached) $ECHO_C" >&6
8218 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8221 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8222 for ac_dir
in $PATH; do
8223 test -z "$ac_dir" && ac_dir
=.
8224 if test -f $ac_dir/$ac_word; then
8225 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8226 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8232 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8236 XGETTEXT
="$ac_cv_path_XGETTEXT"
8237 if test "$XGETTEXT" != ":"; then
8238 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8239 echo "${ECHO_T}$XGETTEXT" >&6
8241 echo "$as_me:$LINENO: result: no" >&5
8242 echo "${ECHO_T}no" >&6
8250 if test "$CATOBJEXT" = "NONE"; then
8251 nls_cv_use_gnu_gettext
=yes
8255 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8256 INTLOBJS
="\$(GETTOBJS)"
8257 # Extract the first word of "msgfmt", so it can be a program name with args.
8258 set dummy msgfmt
; ac_word
=$2
8259 echo "$as_me:$LINENO: checking for $ac_word" >&5
8260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8261 if test "${ac_cv_path_MSGFMT+set}" = set; then
8262 echo $ECHO_N "(cached) $ECHO_C" >&6
8266 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8269 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8270 for ac_dir
in $PATH; do
8271 test -z "$ac_dir" && ac_dir
=.
8272 if test -f $ac_dir/$ac_word; then
8273 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8274 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8280 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8284 MSGFMT
="$ac_cv_path_MSGFMT"
8285 if test "$MSGFMT" != ":"; then
8286 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8287 echo "${ECHO_T}$MSGFMT" >&6
8289 echo "$as_me:$LINENO: result: no" >&5
8290 echo "${ECHO_T}no" >&6
8293 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8294 set dummy gmsgfmt
; ac_word
=$2
8295 echo "$as_me:$LINENO: checking for $ac_word" >&5
8296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8297 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8302 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8305 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8309 test -z "$as_dir" && as_dir
=.
8310 for ac_exec_ext
in '' $ac_executable_extensions; do
8311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8312 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8319 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8323 GMSGFMT
=$ac_cv_path_GMSGFMT
8325 if test -n "$GMSGFMT"; then
8326 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8327 echo "${ECHO_T}$GMSGFMT" >&6
8329 echo "$as_me:$LINENO: result: no" >&5
8330 echo "${ECHO_T}no" >&6
8333 # Extract the first word of "xgettext", so it can be a program name with args.
8334 set dummy xgettext
; ac_word
=$2
8335 echo "$as_me:$LINENO: checking for $ac_word" >&5
8336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8337 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8338 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8345 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8346 for ac_dir
in $PATH; do
8347 test -z "$ac_dir" && ac_dir
=.
8348 if test -f $ac_dir/$ac_word; then
8349 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8350 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8356 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8360 XGETTEXT
="$ac_cv_path_XGETTEXT"
8361 if test "$XGETTEXT" != ":"; then
8362 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8363 echo "${ECHO_T}$XGETTEXT" >&6
8365 echo "$as_me:$LINENO: result: no" >&5
8366 echo "${ECHO_T}no" >&6
8369 BUILD_INCLUDED_LIBINTL
=yes
8370 USE_INCLUDED_LIBINTL
=yes
8372 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
8373 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8376 if test "$GMSGFMT" != ":"; then
8377 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
8380 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
8381 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
8386 if test "$XGETTEXT" != ":"; then
8387 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
8390 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8391 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8398 ac_config_commands
="$ac_config_commands default-2"
8400 if test "$PACKAGE" = gettext; then
8401 BUILD_INCLUDED_LIBINTL
=yes
8404 for ac_prog
in bison
8406 # Extract the first word of "$ac_prog", so it can be a program name with args.
8407 set dummy
$ac_prog; ac_word
=$2
8408 echo "$as_me:$LINENO: checking for $ac_word" >&5
8409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8410 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 if test -n "$INTLBISON"; then
8414 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
8416 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8420 test -z "$as_dir" && as_dir
=.
8421 for ac_exec_ext
in '' $ac_executable_extensions; do
8422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8423 ac_cv_prog_INTLBISON
="$ac_prog"
8424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8432 INTLBISON
=$ac_cv_prog_INTLBISON
8433 if test -n "$INTLBISON"; then
8434 echo "$as_me:$LINENO: result: $INTLBISON" >&5
8435 echo "${ECHO_T}$INTLBISON" >&6
8437 echo "$as_me:$LINENO: result: no" >&5
8438 echo "${ECHO_T}no" >&6
8441 test -n "$INTLBISON" && break
8444 if test -z "$INTLBISON"; then
8447 echo "$as_me:$LINENO: checking version of bison" >&5
8448 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8449 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8450 case $ac_prog_version in
8451 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
8452 1.2[6-9]* | 1.
[3-9][0-9]* | [2-9].
*)
8453 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
8454 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
8456 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8457 echo "${ECHO_T}$ac_prog_version" >&6
8459 if test $ac_verc_fail = yes; then
8463 for lang
in $ALL_LINGUAS; do
8464 GMOFILES
="$GMOFILES $lang.gmo"
8465 POFILES
="$POFILES $lang.po"
8469 nls_cv_header_libgt
=
8477 if test "x$CATOBJEXT" != "x"; then
8478 if test "x$ALL_LINGUAS" = "x"; then
8481 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8482 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8484 for presentlang
in $ALL_LINGUAS; do
8486 for desiredlang
in ${LINGUAS-$ALL_LINGUAS}; do
8487 # Use the presentlang catalog if desiredlang is
8488 # a. equal to presentlang, or
8489 # b. a variant of presentlang (because in this case,
8490 # presentlang can be used as a fallback for messages
8491 # which are not translated in the desiredlang catalog).
8492 case "$desiredlang" in
8493 "$presentlang"*) useit
=yes;;
8496 if test $useit = yes; then
8497 NEW_LINGUAS
="$NEW_LINGUAS $presentlang"
8500 LINGUAS
=$NEW_LINGUAS
8501 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8502 echo "${ECHO_T}$LINGUAS" >&6
8505 if test -n "$LINGUAS"; then
8506 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8511 if test -n "$ac_aux_dir"; then
8512 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8514 if test -z "$MKINSTALLDIRS"; then
8515 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8518 INTL_LIBTOOL_SUFFIX_PREFIX
=
8520 # This is necessary so that .o files in LIBOBJS are also built via
8521 # the ANSI2KNR-filtering rules.
8522 LIBOBJS
=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
8524 ac_config_files
="$ac_config_files Makefile config/Makefile intl/Makefile po/Makefile.in lib/Makefile src/Makefile doc/Makefile m4/Makefile tests/Makefile"
8525 cat >confcache
<<\_ACEOF
8526 # This file is a shell script that caches the results of configure
8527 # tests run on this system so they can be shared between configure
8528 # scripts and configure runs, see configure's option --config-cache.
8529 # It is not useful on other systems. If it contains results you don't
8530 # want to keep, you may remove or edit it.
8532 # config.status only pays attention to the cache file if you give it
8533 # the --recheck option to rerun configure.
8535 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8536 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8541 # The following way of writing the cache mishandles newlines in values,
8542 # but we know of no workaround that is simple, portable, and efficient.
8543 # So, don't put newlines in cache variables' values.
8544 # Ultrix sh set writes to stderr and can't be redirected directly,
8545 # and sets the high bit in the cache file unless we assign to the vars.
8548 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8550 # `set' does not quote correctly, so add quotes (double-quote
8551 # substitution turns \\\\ into \\, and sed turns \\ into \).
8554 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8557 # `set' quotes correctly as required by POSIX, so do not add quotes.
8559 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8566 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8568 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8570 if cmp -s $cache_file confcache
; then :; else
8571 if test -w $cache_file; then
8572 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8573 cat confcache
>$cache_file
8575 echo "not updating unwritable cache $cache_file"
8580 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8581 # Let make expand exec_prefix.
8582 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8584 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8585 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8586 # trailing colons and then remove the whole line if VPATH becomes empty
8587 # (actually we leave an empty line to preserve line numbers).
8588 if test "x$srcdir" = x.
; then
8589 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8590 s/:*\$(srcdir):*/:/;
8591 s/:*\${srcdir}:*/:/;
8593 s/^\([^=]*=[ ]*\):*/\1/;
8599 DEFS
=-DHAVE_CONFIG_H
8601 : ${CONFIG_STATUS=./config.status}
8602 ac_clean_files_save
=$ac_clean_files
8603 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8604 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8605 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8606 cat >$CONFIG_STATUS <<_ACEOF
8608 # Generated automatically by $as_me.
8609 # Run this file to recreate the current configuration.
8610 # Compiler output produced by configure, useful for debugging
8611 # configure, is in config.log if it exists.
8614 SHELL=\${CONFIG_SHELL-$SHELL}
8617 cat >>$CONFIG_STATUS <<\_ACEOF
8619 ## --------------------- ##
8620 ## M4sh Initialization. ##
8621 ## --------------------- ##
8623 # Be Bourne compatible
8624 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8627 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8631 # Name of the executable.
8632 as_me
=`echo "$0" |sed 's,\(.*[\\/]\+\)\?\([^\\/]\+\)[\\/]*,\2,'`
8634 # Rewrite early, but we need PATH_SEPARATOR.
8635 # The user is always right.
8636 if test "${PATH_SEPARATOR+set}" != set; then
8637 echo "#! $SHELL" >conftest.sh
8638 echo "exit 0" >>conftest.sh
8639 chmod +x conftest.sh
8640 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
8651 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev
/null
`
8652 test "x$as_lineno_1" != "x$as_lineno_2" &&
8653 test "x$as_lineno_3" = "x$as_lineno_2"
8655 if eval "$as_command"; then
8658 # Find who we are. Look in the path if we contain no path at all
8661 *[\\/]* ) as_myself=$0 ;;
8662 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8666 test -z "$as_dir" && as_dir=.
8667 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8672 # We did not find ourselves, most probably we were run as `sh COMMAND
'
8673 # in which case we are not to be found in the path.
8674 if test "x$as_myself" = x; then
8677 if test ! -f "$as_myself"; then
8678 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8679 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8680 { (exit 1); exit 1; }; }
8682 case $CONFIG_SHELL in
8684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8685 for as_dir in /bin:/usr/bin:$PATH
8688 test -z "$as_dir" && as_dir=.
8689 for as_base in sh bash ksh sh5; do
8692 if ("$as_dir/$as_base" -c "$as_command") 2>/dev/null; then
8693 CONFIG_SHELL=$as_dir/$as_base
8695 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8702 if test ! -f "$as_me.lineno" ||
8703 test x`ls -1dt "$as_me.lineno" "$as_myself" 2>/dev/null | sed 1q` \
8704 != x"$as_me.lineno"; then
8705 # Be sure to write the pattern so that it doesn't replace itself
:
8706 # it must not match itself.
8708 /[$]LINENO/ { printf "%d:", NR }
8711 sed '/[$]LINENO/s/^\([0-9][0-9]*\):\(.*\)[$]LINENO/\2\1/' \
8713 chmod +x
$as_me.lineno
8716 # Don't try to exec as it changes $[0], causing all sort of problems
8717 # (the dirname of $[0] is not the place where we might find the
8718 # original and so on. Autoconf is especially sensible to this).
8720 # Exit status is that of the last command.
8724 # Avoid depending upon Character Ranges.
8725 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8726 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8727 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8728 as_cr_digits
='0123456789'
8729 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8731 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8732 *c
*,-n*) ECHO_N
= ECHO_C
='
8734 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
8735 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
8738 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8744 rm -f conf$$ conf$$.exe conf$$.
file
8746 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8747 # We could just check for DJGPP; but this test a) works b) is more generic
8748 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8749 if test -f conf$$.exe
; then
8750 # Don't use ln at all; we don't have any links
8755 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8760 rm -f conf$$ conf$$.exe conf$$.
file
8762 as_executable_p
="test -f"
8764 # Sed expression to map a string onto a valid CPP name.
8765 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8767 # Sed expression to map a string onto a valid variable name.
8768 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8770 # Support unset when possible.
8771 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
8778 $as_unset LANG
|| test "${LANG+set}" != set || { LANG
=C
; export LANG
; }
8779 $as_unset LC_ALL
|| test "${LC_ALL+set}" != set || { LC_ALL
=C
; export LC_ALL
; }
8780 $as_unset LC_TIME
|| test "${LC_TIME+set}" != set || { LC_TIME
=C
; export LC_TIME
; }
8781 $as_unset LC_CTYPE
|| test "${LC_CTYPE+set}" != set || { LC_CTYPE
=C
; export LC_CTYPE
; }
8782 $as_unset LANGUAGE
|| test "${LANGUAGE+set}" != set || { LANGUAGE
=C
; export LANGUAGE
; }
8783 $as_unset LC_COLLATE
|| test "${LC_COLLATE+set}" != set || { LC_COLLATE
=C
; export LC_COLLATE
; }
8784 $as_unset LC_NUMERIC
|| test "${LC_NUMERIC+set}" != set || { LC_NUMERIC
=C
; export LC_NUMERIC
; }
8785 $as_unset LC_MESSAGES
|| test "${LC_MESSAGES+set}" != set || { LC_MESSAGES
=C
; export LC_MESSAGES
; }
8788 # We need space, tab and new line, in precisely that order.
8794 $as_unset CDPATH
|| test "${CDPATH+set}" != set || { CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
8798 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8799 # report actual input values of CONFIG_FILES etc. instead of their
8800 # values after options handling. Logging --version etc. is OK.
8804 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8805 ## Running $as_me. ##
8810 This file was extended by GNU Bison $as_me 1.29e, which was
8811 generated by GNU Autoconf 2.52e. Invocation command line was
8813 CONFIG_FILES = $CONFIG_FILES
8814 CONFIG_HEADERS = $CONFIG_HEADERS
8815 CONFIG_LINKS = $CONFIG_LINKS
8816 CONFIG_COMMANDS = $CONFIG_COMMANDS
8820 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8824 # Files that config.status was made for.
8825 if test -n "$ac_config_files"; then
8826 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8829 if test -n "$ac_config_headers"; then
8830 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8833 if test -n "$ac_config_links"; then
8834 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8837 if test -n "$ac_config_commands"; then
8838 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8841 cat >>$CONFIG_STATUS <<\_ACEOF
8844 \`$as_me' instantiates files from templates according to the
8845 current configuration.
8847 Usage: $0 [OPTIONS] [FILE]...
8849 -h, --help print this help, then exit
8850 -V, --version print version number, then exit
8851 -d, --debug don't remove temporary files
8852 --recheck update $as_me by reconfiguring in the same conditions
8853 --file=FILE[:TEMPLATE]
8854 instantiate the configuration file FILE
8855 --header=FILE[:TEMPLATE]
8856 instantiate the configuration header FILE
8858 Configuration files:
8861 Configuration headers:
8864 Configuration commands:
8867 Report bugs to <bug-autoconf@gnu.org>."
8870 cat >>$CONFIG_STATUS <<_ACEOF
8872 GNU Bison config.status 1.29e
8873 configured by $0, generated by GNU Autoconf 2.52e,
8874 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8876 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8877 Free Software Foundation, Inc.
8878 This config.status script is free software; the Free Software Foundation
8879 gives unlimited permission to copy, distribute and modify it."
8884 cat >>$CONFIG_STATUS <<\_ACEOF
8885 # If no file are specified by the user, then we need to provide default
8886 # value. By we need to know if files were specified by the user.
8892 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
8893 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
8895 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
8899 *) # This is not an option, so the user has probably given explicit
8901 ac_need_defaults
=false
;;
8905 # Handling of the options.
8907 cat >>$CONFIG_STATUS <<_ACEOF
8908 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8909 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8910 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8912 cat >>$CONFIG_STATUS <<\_ACEOF
8913 --version | --vers* | -V )
8914 echo "$ac_cs_version"; exit 0 ;;
8916 # Conflict between --help and --header
8917 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8918 Try \`$0 --help' for more information." >&5
8919 echo "$as_me: error: ambiguous option: $1
8920 Try \`$0 --help' for more information." >&2;}
8921 { (exit 1); exit 1; }; };;
8922 --help | --hel | -h )
8923 echo "$ac_cs_usage"; exit 0 ;;
8924 --debug | --d* | -d )
8926 --file | --fil | --fi | --f )
8928 CONFIG_FILES
="$CONFIG_FILES $1"
8929 ac_need_defaults
=false
;;
8930 --header | --heade | --head | --hea )
8932 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
8933 ac_need_defaults
=false
;;
8936 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8937 Try \`$0 --help' for more information." >&5
8938 echo "$as_me: error: unrecognized option: $1
8939 Try \`$0 --help' for more information." >&2;}
8940 { (exit 1); exit 1; }; } ;;
8942 *) ac_config_targets
="$ac_config_targets $1" ;;
8950 cat >>$CONFIG_STATUS <<_ACEOF
8952 # INIT-COMMANDS section.
8955 PACKAGE_NAME='$PACKAGE_NAME'
8956 PACKAGE_TARNAME='$PACKAGE_TARNAME'
8957 PACKAGE_VERSION='$PACKAGE_VERSION'
8958 PACKAGE_STRING='$PACKAGE_STRING'
8959 PACKAGE_BUGREPORT='$PACKAGE_BUGREPORT'
8961 AMDEP_TRUE="$AMDEP_TRUE"
8962 ac_aux_dir="$ac_aux_dir"
8966 cat >>$CONFIG_STATUS <<\_ACEOF
8967 for ac_config_target
in $ac_config_targets
8969 case "$ac_config_target" in
8970 # Handling of arguments.
8971 "tests/atlocal" ) CONFIG_FILES
="$CONFIG_FILES tests/atlocal" ;;
8972 "tests/bison" ) CONFIG_FILES
="$CONFIG_FILES tests/bison" ;;
8973 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8974 "config/Makefile" ) CONFIG_FILES
="$CONFIG_FILES config/Makefile" ;;
8975 "intl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
8976 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
8977 "lib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
8978 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
8979 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
8980 "m4/Makefile" ) CONFIG_FILES
="$CONFIG_FILES m4/Makefile" ;;
8981 "tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
8982 "tests/package.m4" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS tests/package.m4" ;;
8983 "tests/atconfig" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS tests/atconfig" ;;
8984 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
8985 "default-2" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-2" ;;
8986 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.hin" ;;
8987 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8988 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8989 { (exit 1); exit 1; }; };;
8993 # If the user did not use the arguments to specify the items to instantiate,
8994 # then the envvar interface is used. Set only those that are not.
8995 # We use the long form for the default assignment because of an extremely
8996 # bizarre bug on SunOS 4.1.3.
8997 if $ac_need_defaults; then
8998 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8999 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9000 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9003 # Create a temporary directory, and hook for its removal unless debugging.
9006 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9007 trap '{ (exit 1); exit 1; }' 1 2 13 15
9010 # Create a (secure) tmp directory for tmp files.
9013 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9014 test -n "$tmp" && test -d "$tmp"
9017 tmp
=$TMPDIR/cs$$
-$RANDOM
9018 (umask 077 && mkdir $tmp)
9021 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9022 { (exit 1); exit 1; }
9027 cat >>$CONFIG_STATUS <<_ACEOF
9030 # CONFIG_FILES section.
9033 # No need to generate the scripts if there are no CONFIG_FILES.
9034 # This happens for instance when ./config.status config.h
9035 if test -n "\$CONFIG_FILES"; then
9036 # Protect against being on the right side of a sed subst in config.status.
9037 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9038 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9039 s,@SHELL@,$SHELL,;t t
9040 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9041 s,@exec_prefix@,$exec_prefix,;t t
9042 s,@prefix@,$prefix,;t t
9043 s,@program_transform_name@,$program_transform_name,;t t
9044 s,@bindir@,$bindir,;t t
9045 s,@sbindir@,$sbindir,;t t
9046 s,@libexecdir@,$libexecdir,;t t
9047 s,@datadir@,$datadir,;t t
9048 s,@sysconfdir@,$sysconfdir,;t t
9049 s,@sharedstatedir@,$sharedstatedir,;t t
9050 s,@localstatedir@,$localstatedir,;t t
9051 s,@libdir@,$libdir,;t t
9052 s,@includedir@,$includedir,;t t
9053 s,@oldincludedir@,$oldincludedir,;t t
9054 s,@infodir@,$infodir,;t t
9055 s,@mandir@,$mandir,;t t
9056 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9057 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9058 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9059 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9060 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9061 s,@build_alias@,$build_alias,;t t
9062 s,@host_alias@,$host_alias,;t t
9063 s,@target_alias@,$target_alias,;t t
9065 s,@ECHO_C@,$ECHO_C,;t t
9066 s,@ECHO_N@,$ECHO_N,;t t
9067 s,@ECHO_T@,$ECHO_T,;t t
9069 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9070 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9071 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9072 s,@PACKAGE@,$PACKAGE,;t t
9073 s,@VERSION@,$VERSION,;t t
9074 s,@ACLOCAL@,$ACLOCAL,;t t
9075 s,@AUTOCONF@,$AUTOCONF,;t t
9076 s,@AUTOMAKE@,$AUTOMAKE,;t t
9077 s,@AUTOHEADER@,$AUTOHEADER,;t t
9078 s,@MAKEINFO@,$MAKEINFO,;t t
9079 s,@AMTAR@,$AMTAR,;t t
9080 s,@install_sh@,$install_sh,;t t
9081 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9083 s,@SET_MAKE@,$SET_MAKE,;t t
9084 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9085 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9086 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9087 s,@DEPDIR@,$DEPDIR,;t t
9089 s,@CFLAGS@,$CFLAGS,;t t
9090 s,@LDFLAGS@,$LDFLAGS,;t t
9091 s,@CPPFLAGS@,$CPPFLAGS,;t t
9092 s,@ac_ct_CC@,$ac_ct_CC,;t t
9093 s,@EXEEXT@,$EXEEXT,;t t
9094 s,@OBJEXT@,$OBJEXT,;t t
9095 s,@am__include@,$am__include,;t t
9096 s,@am__quote@,$am__quote,;t t
9097 s,@CCDEPMODE@,$CCDEPMODE,;t t
9099 s,@RANLIB@,$RANLIB,;t t
9100 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9102 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
9104 s,@ANSI2KNR@,$ANSI2KNR,;t t
9105 s,@ALLOCA@,$ALLOCA,;t t
9106 s,@LIBOBJS@,$LIBOBJS,;t t
9107 s,@build@,$build,;t t
9108 s,@build_cpu@,$build_cpu,;t t
9109 s,@build_vendor@,$build_vendor,;t t
9110 s,@build_os@,$build_os,;t t
9112 s,@host_cpu@,$host_cpu,;t t
9113 s,@host_vendor@,$host_vendor,;t t
9114 s,@host_os@,$host_os,;t t
9115 s,@GLIBC21@,$GLIBC21,;t t
9116 s,@LIBICONV@,$LIBICONV,;t t
9117 s,@USE_NLS@,$USE_NLS,;t t
9118 s,@MSGFMT@,$MSGFMT,;t t
9119 s,@GMSGFMT@,$GMSGFMT,;t t
9120 s,@XGETTEXT@,$XGETTEXT,;t t
9121 s,@INTLBISON@,$INTLBISON,;t t
9122 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
9123 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9124 s,@CATALOGS@,$CATALOGS,;t t
9125 s,@CATOBJEXT@,$CATOBJEXT,;t t
9126 s,@GMOFILES@,$GMOFILES,;t t
9127 s,@INTLLIBS@,$INTLLIBS,;t t
9128 s,@INTLOBJS@,$INTLOBJS,;t t
9129 s,@POFILES@,$POFILES,;t t
9130 s,@POSUB@,$POSUB,;t t
9131 s,@DATADIRNAME@,$DATADIRNAME,;t t
9132 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9133 s,@GENCAT@,$GENCAT,;t t
9134 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9135 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
9140 cat >>$CONFIG_STATUS <<\_ACEOF
9141 # Split the substitutions into bite-sized pieces for seds with
9142 # small command number limits, like on Digital OSF/1 and HP-UX.
9144 ac_sed_frag
=1 # Number of current file.
9145 ac_beg
=1 # First line for current file.
9146 ac_end
=$ac_max_sed_lines # Line after last line for current file.
9149 while $ac_more_lines; do
9150 if test $ac_beg -gt 1; then
9151 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9153 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9155 if test ! -s $tmp/subs.frag
; then
9158 # The purpose of the label and of the branching condition is to
9159 # speed up the sed processing (if there are no `@' at all, there
9160 # is no need to browse any of the substitutions).
9161 # These are the two extra sed commands mentioned above.
9163 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs
-$ac_sed_frag.
sed
9164 if test -z "$ac_sed_cmds"; then
9165 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
9167 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9169 ac_sed_frag
=`expr $ac_sed_frag + 1`
9171 ac_end
=`expr $ac_end + $ac_max_sed_lines`
9174 if test -z "$ac_sed_cmds"; then
9177 fi # test -n "$CONFIG_FILES"
9180 cat >>$CONFIG_STATUS <<\_ACEOF
9181 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
9182 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9184 - | *:- | *:-:* ) # input from stdin
9186 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9187 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9188 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9189 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9190 * ) ac_file_in
=$ac_file.
in ;;
9193 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9194 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9195 X"$ac_file" : 'X\(//\)[^/]' \| \
9196 X"$ac_file" : 'X\(//\)$' \| \
9197 X"$ac_file" : 'X\(/\)' \| \
9198 . : '\(.\)' 2>/dev/null ||
9200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9201 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9202 /^X\(\/\/\)$/{ s//\1/; q; }
9203 /^X\(\/\).*/{ s//\1/; q; }
9206 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9210 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9211 case $as_mkdir_dir in
9212 # Skip DOS drivespec
9213 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9215 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9216 test -d "$as_incr_dir" ||
9217 mkdir "$as_incr_dir" ||
9218 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9219 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9220 { (exit 1); exit 1; }; }
9227 if test "$ac_dir" != .
; then
9228 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9229 # A "../" for each directory in $ac_dir_suffix.
9230 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9232 ac_dir_suffix
= ac_top_builddir
=
9236 .
) # No --srcdir option. We are building in place.
9238 if test -z "$ac_top_builddir"; then
9241 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9243 [\\/]* | ?
:[\\/]* ) # Absolute path.
9244 ac_srcdir
=$srcdir$ac_dir_suffix;
9245 ac_top_srcdir
=$srcdir ;;
9247 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9248 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9250 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9252 ac_buildpath
=`cd "$ac_dir" && cd $ac_builddir && pwd`
9253 ac_top_buildpath
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9254 ac_srcpath
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9255 ac_top_srcpath
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9258 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9259 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
9262 if test x
"$ac_file" != x
-; then
9263 { echo "$as_me:$LINENO: creating $ac_file" >&5
9264 echo "$as_me: creating $ac_file" >&6;}
9267 # Let's still pretend it is `configure' which instantiates (i.e., don't
9268 # use $as_me), people would be surprised to read:
9269 # /* config.h. Generated automatically by config.status. */
9270 configure_input
="Generated automatically from `echo $ac_file_in |
9271 sed 's,.*/,,'` by configure."
9273 # First look for the input files in the build tree, otherwise in the
9275 ac_file_inputs
=`IFS=:
9276 for f in $ac_file_in; do
9278 -) echo $tmp/stdin ;;
9280 # Absolute (can't be DOS-style, as IFS=:)
9281 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9282 echo "$as_me: error: cannot find input file: $f" >&2;}
9283 { (exit 1); exit 1; }; }
9286 if test -f "$f"; then
9289 elif test -f "$srcdir/$f"; then
9294 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9295 echo "$as_me: error: cannot find input file: $f" >&2;}
9296 { (exit 1); exit 1; }; }
9299 done` || { (exit 1); exit 1; }
9301 cat >>$CONFIG_STATUS <<_ACEOF
9305 cat >>$CONFIG_STATUS <<\_ACEOF
9307 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
9308 s
,@configure_input@
,$configure_input,;t t
9309 s
,@srcdir@
,$ac_srcdir,;t t
9310 s
,@srcpath@
,$ac_srcpath,;t t
9311 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9312 s
,@top_srcpath@
,$ac_top_srcpath,;t t
9313 s
,@builddir@
,$ac_builddir,;t t
9314 s
,@buildpath@
,$ac_buildpath,;t t
9315 s
,@top_builddir@
,$ac_top_builddir,;t t
9316 s
,@top_buildpath@
,$ac_top_buildpath,;t t
9317 s
,@INSTALL@
,$ac_INSTALL,;t t
9318 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9320 if test x"$ac_file" != x-; then
9321 mv $tmp/out $ac_file
9327 # Run the commands associated with the file.
9329 tests/bison ) chmod +x tests/bison ;;
9333 cat >>$CONFIG_STATUS <<\_ACEOF
9336 # CONFIG_HEADER section.
9339 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9340 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9342 # ac_d sets the value in "#define NAME VALUE" lines.
9343 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9344 ac_dB
='[ ].*$,\1#\2'
9347 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9348 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9349 ac_uB
='$,\1#\2define\3'
9353 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9354 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9356 - | *:- | *:-:* ) # input from stdin
9358 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9359 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9360 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9361 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9362 * ) ac_file_in
=$ac_file.
in ;;
9365 test x
"$ac_file" != x
- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9366 echo "$as_me: creating $ac_file" >&6;}
9368 # First look for the input files in the build tree, otherwise in the
9370 ac_file_inputs
=`IFS=:
9371 for f in $ac_file_in; do
9373 -) echo $tmp/stdin ;;
9375 # Absolute (can't be DOS-style, as IFS=:)
9376 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9377 echo "$as_me: error: cannot find input file: $f" >&2;}
9378 { (exit 1); exit 1; }; }
9381 if test -f "$f"; then
9384 elif test -f "$srcdir/$f"; then
9389 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9390 echo "$as_me: error: cannot find input file: $f" >&2;}
9391 { (exit 1); exit 1; }; }
9394 done` || { (exit 1); exit 1; }
9395 # Remove the trailing spaces.
9396 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9400 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9401 # `conftest.undefs', that substitutes the proper values into
9402 # config.h.in to produce config.h. The first handles `#define'
9403 # templates, and the second `#undef' templates.
9404 # And first: Protect against being on the right side of a sed subst in
9405 # config.status. Protect against being in an unquoted here document
9407 rm -f conftest.defines conftest.undefs
9408 # Using a here document instead of a string reduces the quoting nightmare.
9409 # Putting comments in sed scripts is not portable.
9411 # `end' is used to avoid that the second main sed command (meant for
9412 # 0-ary CPP macros) applies to n-ary macro definitions.
9413 # See the Autoconf documentation for `clear'.
9414 cat >confdef2sed.
sed <<\_ACEOF
9419 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9421 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9424 # If some macros were called several times there might be several times
9425 # the same #defines, which is useless. Nevertheless, we may not want to
9426 # sort them, since we want the *last* AC-DEFINE to be honored.
9427 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9428 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9429 rm -f confdef2sed.sed
9431 # This sed command replaces #undef with comments. This is necessary, for
9432 # example, in the case of _POSIX_SOURCE, which is predefined and required
9433 # on some systems where configure will not decide to define it.
9434 cat >>conftest.undefs <<\_ACEOF
9435 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9438 # Break up conftest.defines because some shells have a limit on the size
9439 # of here documents, and old seds have small limits too (100 cmds).
9440 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9441 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9442 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9443 echo ' :' >>$CONFIG_STATUS
9445 while grep . conftest.defines >/dev/null
9447 # Write a limited-size here document to $tmp/defines.sed.
9448 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9449 # Speed up: don't consider the non `#define' lines.
9450 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9451 # Work around the forget-to-reset-the-flag bug.
9452 echo 't clr' >>$CONFIG_STATUS
9453 echo ': clr' >>$CONFIG_STATUS
9454 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9456 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9460 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9461 rm -f conftest.defines
9462 mv conftest.
tail conftest.defines
9464 rm -f conftest.defines
9465 echo ' fi # egrep' >>$CONFIG_STATUS
9466 echo >>$CONFIG_STATUS
9468 # Break up conftest.undefs because some shells have a limit on the size
9469 # of here documents, and old seds have small limits too (100 cmds).
9470 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9472 while grep . conftest.undefs
>/dev
/null
9474 # Write a limited-size here document to $tmp/undefs.sed.
9475 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9476 # Speed up: don't consider the non
`#undef'
9477 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9478 # Work around the forget-to-reset-the-flag bug.
9479 echo 't clr' >>$CONFIG_STATUS
9480 echo ': clr' >>$CONFIG_STATUS
9481 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9483 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9487 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9488 rm -f conftest.undefs
9489 mv conftest.tail conftest.undefs
9491 rm -f conftest.undefs
9493 cat >>$CONFIG_STATUS <<\_ACEOF
9494 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9495 # use $as_me), people would be surprised to read:
9496 # /* config.h. Generated automatically by config.status. */
9497 if test x
"$ac_file" = x
-; then
9498 echo "/* Generated automatically by configure. */" >$tmp/config.h
9500 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
9502 cat $tmp/in >>$tmp/config.h
9504 if test x
"$ac_file" != x
-; then
9505 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
9506 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9507 echo "$as_me: $ac_file is unchanged" >&6;}
9509 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9510 X"$ac_file" : 'X\(//\)[^/]' \| \
9511 X"$ac_file" : 'X\(//\)$' \| \
9512 X"$ac_file" : 'X\(/\)' \| \
9513 . : '\(.\)' 2>/dev/null ||
9515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9516 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9517 /^X\(\/\/\)$/{ s//\1/; q; }
9518 /^X\(\/\).*/{ s//\1/; q; }
9521 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9525 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9526 case $as_mkdir_dir in
9527 # Skip DOS drivespec
9528 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9530 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9531 test -d "$as_incr_dir" ||
9532 mkdir "$as_incr_dir" ||
9533 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9534 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9535 { (exit 1); exit 1; }; }
9541 mv $tmp/config.h
$ac_file
9547 # Run the commands associated with the file.
9549 config.h
) # update the timestamp
9550 echo timestamp
>"./stamp-h1"
9555 cat >>$CONFIG_STATUS <<\_ACEOF
9558 # CONFIG_COMMANDS section.
9560 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9561 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9562 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9563 ac_dir
=`$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9564 X"$ac_dest" : 'X\(//\)[^/]' \| \
9565 X"$ac_dest" : 'X\(//\)$' \| \
9566 X"$ac_dest" : 'X\(/\)' \| \
9567 . : '\(.\)' 2>/dev/null ||
9569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9570 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9571 /^X\(\/\/\)$/{ s//\1/; q; }
9572 /^X\(\/\).*/{ s//\1/; q; }
9576 if test "$ac_dir" != .
; then
9577 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9578 # A "../" for each directory in $ac_dir_suffix.
9579 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9581 ac_dir_suffix
= ac_top_builddir
=
9585 .
) # No --srcdir option. We are building in place.
9587 if test -z "$ac_top_builddir"; then
9590 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9592 [\\/]* | ?
:[\\/]* ) # Absolute path.
9593 ac_srcdir
=$srcdir$ac_dir_suffix;
9594 ac_top_srcdir
=$srcdir ;;
9596 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9597 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9599 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9601 ac_buildpath
=`cd "$ac_dir" && cd $ac_builddir && pwd`
9602 ac_top_buildpath
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9603 ac_srcpath
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9604 ac_top_srcpath
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9606 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9607 echo "$as_me: executing $ac_dest commands" >&6;}
9609 tests
/package.
m4 ) cat >tests
/package.
m4 <<ATEOF
9610 # Signature of the current package.
9611 m4_define([PACKAGE_NAME], [$PACKAGE_NAME])
9612 m4_define([PACKAGE_TARNAME], [$PACKAGE_TARNAME])
9613 m4_define([PACKAGE_VERSION], [$PACKAGE_VERSION])
9614 m4_define([PACKAGE_STRING], [$PACKAGE_STRING])
9615 m4_define([PACKAGE_BUGREPORT], [$PACKAGE_BUGREPORT])
9618 tests
/atconfig
) cat >tests
/atconfig
<<ATEOF
9619 # Configurable variable values for building test suites.
9621 # Copyright 2000, 2001 Free Software Foundation, Inc.
9624 buildpath='$ac_buildpath'
9626 srcpath='$ac_srcpath'
9627 top_srcdir='$ac_top_srcdir'
9628 top_srcpath='$ac_top_srcpath'
9629 top_builddir='$ac_top_builddir'
9630 top_buildpath='$ac_top_buildpath'
9632 AUTOTEST_PATH='tests'
9634 SHELL=\${CONFIG_SHELL-'$SHELL'}
9638 test x
"$AMDEP_TRUE" != x
"" ||
9639 for mf
in $CONFIG_FILES; do
9641 Makefile
) dirpart
=.
;;
9642 */Makefile
) dirpart
=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
9645 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null
|| continue
9646 # Extract the definition of DEP_FILES from the Makefile without
9648 DEPDIR
=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9649 test -z "$DEPDIR" && continue
9650 # When using ansi2knr, U may be empty or an underscore; expand it
9651 U
=`sed -n -e '/^U = / s///p' < "$mf"`
9652 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9653 # We invoke sed twice because it is the simplest approach to
9654 # changing $(DEPDIR) to its actual value in the expansion.
9655 for file in `sed -n -e '
9656 /^DEP_FILES = .*\\\\$/ {
9665 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9666 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9667 # Make sure the directory exists.
9668 test -f "$dirpart/$file" && continue
9669 fdir
=`echo "$file" | sed -e 's|/[^/]*$||'`
9670 $ac_aux_dir/mkinstalldirs
"$dirpart/$fdir" > /dev
/null
2>&1
9671 # echo "creating $dirpart/$file"
9672 echo '# dummy' > "$dirpart/$file"
9676 default
-2 ) for ac_file
in $CONFIG_FILES; do
9677 # Support "outfile[:infile[:infile...]]"
9679 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9681 # PO directories have a Makefile.in generated from Makefile.in.in.
9682 case "$ac_file" in */Makefile.
in)
9683 # Adjust a relative srcdir.
9684 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9685 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
9686 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9687 # In autoconf-2.13 it is called $ac_given_srcdir.
9688 # In autoconf-2.50 it is called $srcdir.
9689 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
9690 case "$ac_given_srcdir" in
9691 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
9692 /*) top_srcdir
="$ac_given_srcdir" ;;
9693 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9695 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9696 rm -f "$ac_dir/POTFILES"
9697 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9698 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9699 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9700 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9709 cat >>$CONFIG_STATUS <<\_ACEOF
9711 { (exit 0); exit 0; }
9713 chmod +x
$CONFIG_STATUS
9714 ac_clean_files
=$ac_clean_files_save
9716 # configure is writing to config.log, and then calls config.status.
9717 # config.status does its own redirection, appending to config.log.
9718 # Unfortunately, on DOS this fails, as config.log is still kept open
9719 # by configure, so config.status won't be able to write to it; its
9720 # output is simply discarded. So we exec the FD to /dev/null,
9721 # effectively closing config.log, so it can be properly (re)opened and
9722 # appended to by config.status. When coming back to configure, we
9723 # need to make the FD available again.
9724 if test "$no_create" != yes; then
9727 $SHELL $CONFIG_STATUS || ac_cs_success
=false
9729 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9730 # would make configure fail if this is the last instruction.
9731 $ac_cs_success || { (exit 1); exit 1; }