2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.52e for GNU Bison 1.29c.
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 # If LINENO is not supported by the shell, produce a version of this
28 # script where LINENO is hard coded. Rewrite if not up to date only.
29 # Comparing LINENO against _oline_ is not a good solution, since in
30 # the case of embedded executables (such as config.status within
31 # configure) you'd compare LINENO wrt config.status vs. _oline_ vs
32 # configure. Hence a useless rewrite (not to mention the risk of
33 # ``infinite'' rewrites. Merely check that LINENO is incremented
34 # between two lines, which is a property guaranteed for _oline_, hence
35 # it protects us from repetitive rewrites. Be sure to have a test
36 # that does detect non LINENO support...
39 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev
/null
`
40 if test "x$as_lineno_1" = "x$as_lineno_2" ||
41 test "x$as_lineno_3" != "x$as_lineno_2";
45 *[\\/]* | ?:[\\/]* ) as_myself=$0 ;;
46 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50 test -z "$as_dir" && as_dir=.
51 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
56 if test ! -f $as_myself; then
57 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
58 { (exit 1); exit 1; }; }
60 if test ! -f $as_me.lineno ||
61 test x`ls -1dt $as_me.lineno
$as_myself 2>/dev
/null
| sed 1q
` \
62 != x$as_me.lineno; then
63 # Be sure to write the pattern so that it doesn't replace itself:
64 # it must not match itself.
67 while (sub (/[$]LINENO/, NR))
70 }' <$as_myself >$as_me.lineno
71 chmod +x $as_me.lineno
73 exec ${SHELL-/bin/sh} ./$as_me.lineno ${1+"$@"}
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 case `echo "testing\c"; echo 1,2,3`,`echo -n testing
; echo 1,2,3` in
84 *c*,-n*) ECHO_N= ECHO_C='
86 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
87 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
90 if expr a : '\(a\)' >/dev/null 2>&1; then
96 rm -f conf$$ conf$$.exe conf$$.file
98 if ln -s conf$$.file conf$$ 2>/dev/null; then
99 # We could just check for DJGPP; but this test a) works b) is more generic
100 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
101 if test -f conf$$.exe; then
102 # Don't use ln at all; we don't have any links
107 elif ln conf$$.file conf$$ 2>/dev/null; then
112 rm -f conf$$ conf$$.exe conf$$.file
114 # The user is always right.
115 if test "${PATH_SEPARATOR+set}" != set; then
116 echo "#! $SHELL" >conftest.sh
117 echo "exit 0" >>conftest.sh
119 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
127 as_executable_p="test -f"
129 # Sed expression to map a string onto a valid CPP name.
130 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
132 # Sed expression to map a string onto a valid variable name.
133 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
135 # Support unset when possible.
136 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
143 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
144 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
145 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
146 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
147 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
148 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
149 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
150 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
153 # We need space, tab and new line, in precisely that order.
159 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
162 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
163 # so uname gets run too.
164 ac_hostname=`(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
171 ac_default_prefix=/usr/local
176 SHELL=${CONFIG_SHELL-/bin/sh}
178 # Maximum number of lines to put in a shell here document.
179 # This variable seems obsolete. It should probably be removed, and
180 # only ac_max_sed_lines should be used.
181 : ${ac_max_here_lines=38}
183 # Factoring default headers for most tests.
184 ac_includes_default="\
187 # include <sys/types.h>
190 # include <sys/stat.h>
201 # if !STDC_HEADERS && HAVE_MEMORY_H
207 # include <strings.h>
210 # include <inttypes.h>
220 # Initialize some variables set by options.
222 ac_init_version=false
223 # The variables have the same names as the options, with
224 # dashes changed to underlines.
232 program_transform_name=s,x,x,
240 # Installation directory options.
241 # These are left unexpanded so users can "make install exec_prefix=/foo"
242 # and all the variables that are supposed to be based on exec_prefix
243 # by default will actually change.
244 # Use braces instead of parens because sh, perl, etc. also accept them.
245 bindir='${exec_prefix}/bin'
246 sbindir='${exec_prefix}/sbin'
247 libexecdir='${exec_prefix}/libexec'
248 datadir='${prefix}/share'
249 sysconfdir='${prefix}/etc'
250 sharedstatedir='${prefix}/com'
251 localstatedir='${prefix}/var'
252 libdir='${exec_prefix}/lib'
253 includedir='${prefix}/include'
254 oldincludedir='/usr/include'
255 infodir='${prefix}/info'
256 mandir='${prefix}/man'
258 # Identity of this package.
259 PACKAGE_NAME='GNU Bison'
260 PACKAGE_TARNAME='bison'
261 PACKAGE_VERSION='1.29c'
262 PACKAGE_STRING='GNU Bison 1.29c'
263 PACKAGE_BUGREPORT='bug-bison@gnu.org'
268 # If the previous option needs an argument, assign it.
269 if test -n "$ac_prev"; then
270 eval "$ac_prev=\$ac_option"
275 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
277 # Accept the important Cygnus configure options, so we can diagnose typos.
281 -bindir | --bindir | --bindi | --bind | --bin | --bi)
283 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
286 -build | --build | --buil | --bui | --bu)
287 ac_prev=build_alias ;;
288 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
289 build_alias=$ac_optarg ;;
291 -cache-file | --cache-file | --cache-fil | --cache-fi \
292 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
293 ac_prev=cache_file ;;
294 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
295 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
296 cache_file=$ac_optarg ;;
299 cache_file=config.cache ;;
301 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
303 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
305 datadir=$ac_optarg ;;
307 -disable-* | --disable-*)
308 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
309 # Reject names that are not valid shell variable names.
310 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
311 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
312 { (exit 1); exit 1; }; }
313 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
314 eval "enable_$ac_feature=no" ;;
316 -enable-* | --enable-*)
317 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
318 # Reject names that are not valid shell variable names.
319 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
320 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
321 { (exit 1); exit 1; }; }
322 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
324 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
327 eval "enable_$ac_feature='$ac_optarg'" ;;
329 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
330 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
331 | --exec | --exe | --ex)
332 ac_prev=exec_prefix ;;
333 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
334 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
335 | --exec=* | --exe=* | --ex=*)
336 exec_prefix=$ac_optarg ;;
338 -gas | --gas | --ga | --g)
339 # Obsolete; use --with-gas.
342 -help | --help | --hel | --he | -h)
344 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
345 ac_init_help=recursive ;;
346 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
347 ac_init_help=short ;;
349 -host | --host | --hos | --ho)
350 ac_prev=host_alias ;;
351 -host=* | --host=* | --hos=* | --ho=*)
352 host_alias=$ac_optarg ;;
354 -includedir | --includedir | --includedi | --included | --include \
355 | --includ | --inclu | --incl | --inc)
356 ac_prev=includedir ;;
357 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
358 | --includ=* | --inclu=* | --incl=* | --inc=*)
359 includedir=$ac_optarg ;;
361 -infodir | --infodir | --infodi | --infod | --info | --inf)
363 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
364 infodir=$ac_optarg ;;
366 -libdir | --libdir | --libdi | --libd)
368 -libdir=* | --libdir=* | --libdi=* | --libd=*)
371 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
372 | --libexe | --libex | --libe)
373 ac_prev=libexecdir ;;
374 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
375 | --libexe=* | --libex=* | --libe=*)
376 libexecdir=$ac_optarg ;;
378 -localstatedir | --localstatedir | --localstatedi | --localstated \
379 | --localstate | --localstat | --localsta | --localst \
380 | --locals | --local | --loca | --loc | --lo)
381 ac_prev=localstatedir ;;
382 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
383 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
384 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
385 localstatedir=$ac_optarg ;;
387 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
389 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
393 # Obsolete; use --without-fp.
396 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
400 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
401 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
404 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
405 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
406 | --oldin | --oldi | --old | --ol | --o)
407 ac_prev=oldincludedir ;;
408 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
409 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
410 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
411 oldincludedir=$ac_optarg ;;
413 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
415 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
418 -program-prefix | --program-prefix | --program-prefi | --program-pref \
419 | --program-pre | --program-pr | --program-p)
420 ac_prev=program_prefix ;;
421 -program-prefix=* | --program-prefix=* | --program-prefi=* \
422 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
423 program_prefix=$ac_optarg ;;
425 -program-suffix | --program-suffix | --program-suffi | --program-suff \
426 | --program-suf | --program-su | --program-s)
427 ac_prev=program_suffix ;;
428 -program-suffix=* | --program-suffix=* | --program-suffi=* \
429 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
430 program_suffix=$ac_optarg ;;
432 -program-transform-name | --program-transform-name \
433 | --program-transform-nam | --program-transform-na \
434 | --program-transform-n | --program-transform- \
435 | --program-transform | --program-transfor \
436 | --program-transfo | --program-transf \
437 | --program-trans | --program-tran \
438 | --progr-tra | --program-tr | --program-t)
439 ac_prev=program_transform_name ;;
440 -program-transform-name=* | --program-transform-name=* \
441 | --program-transform-nam=* | --program-transform-na=* \
442 | --program-transform-n=* | --program-transform-=* \
443 | --program-transform=* | --program-transfor=* \
444 | --program-transfo=* | --program-transf=* \
445 | --program-trans=* | --program-tran=* \
446 | --progr-tra=* | --program-tr=* | --program-t=*)
447 program_transform_name=$ac_optarg ;;
449 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
450 | -silent | --silent | --silen | --sile | --sil)
453 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
455 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
457 sbindir=$ac_optarg ;;
459 -sharedstatedir | --sharedstatedir | --sharedstatedi \
460 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
461 | --sharedst | --shareds | --shared | --share | --shar \
463 ac_prev=sharedstatedir ;;
464 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
465 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
466 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
468 sharedstatedir=$ac_optarg ;;
470 -site | --site | --sit)
472 -site=* | --site=* | --sit=*)
475 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
477 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
480 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
481 | --syscon | --sysco | --sysc | --sys | --sy)
482 ac_prev=sysconfdir ;;
483 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
484 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
485 sysconfdir=$ac_optarg ;;
487 -target | --target | --targe | --targ | --tar | --ta | --t)
488 ac_prev=target_alias ;;
489 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
490 target_alias=$ac_optarg ;;
492 -v | -verbose | --verbose | --verbos | --verbo | --verb)
495 -version | --version | --versio | --versi | --vers | -V)
499 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
500 # Reject names that are not valid shell variable names.
501 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
502 { echo "$as_me: error: invalid package name: $ac_package" >&2
503 { (exit 1); exit 1; }; }
504 ac_package=`echo $ac_package| sed 's/-/_/g'`
506 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
509 eval "with_$ac_package='$ac_optarg'" ;;
511 -without-* | --without-*)
512 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
513 # Reject names that are not valid shell variable names.
514 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
515 { echo "$as_me: error: invalid package name: $ac_package" >&2
516 { (exit 1); exit 1; }; }
517 ac_package=`echo $ac_package | sed 's/-/_/g'`
518 eval "with_$ac_package=no" ;;
521 # Obsolete; use --with-x.
524 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
525 | --x-incl | --x-inc | --x-in | --x-i)
526 ac_prev=x_includes ;;
527 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
528 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
529 x_includes=$ac_optarg ;;
531 -x-libraries | --x-libraries | --x-librarie | --x-librari \
532 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
533 ac_prev=x_libraries ;;
534 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
535 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
536 x_libraries=$ac_optarg ;;
538 -*) { echo "$as_me: error: unrecognized option: $ac_option
539 Try \`$0 --help' for more information." >&2
540 { (exit 1); exit 1; }; }
544 ac_envvar=`expr "x$ac_option" : 'x\
([^
=]*\
)='`
545 # Reject names that are not valid shell variable names.
546 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
547 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
548 { (exit 1); exit 1; }; }
549 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
550 eval "$ac_envvar='$ac_optarg'"
554 # FIXME: should be removed in autoconf 3.0.
555 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
556 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
557 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
558 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
564 if test -n "$ac_prev"; then
565 ac_option=--`echo $ac_prev | sed 's
/_
/-/g
'`
566 { echo "$as_me: error: missing argument to $ac_option" >&2
567 { (exit 1); exit 1; }; }
570 # Be sure to have absolute paths.
571 for ac_var in exec_prefix prefix
573 eval ac_val=$`echo $ac_var`
575 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
576 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
577 { (exit 1); exit 1; }; };;
581 # Be sure to have absolute paths.
582 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
583 localstatedir libdir includedir oldincludedir infodir mandir
585 eval ac_val=$`echo $ac_var`
587 [\\/$]* | ?:[\\/]* ) ;;
588 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
589 { (exit 1); exit 1; }; };;
593 # There might be people who depend on the old broken behavior: `$host'
594 # used to hold the argument of --host etc.
599 # FIXME: should be removed in autoconf 3.0.
600 if test "x$host_alias" != x
; then
601 if test "x$build_alias" = x
; then
602 cross_compiling
=maybe
603 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
604 If a cross compiler is detected then cross compile mode will be used." >&2
605 elif test "x$build_alias" != "x$host_alias"; then
611 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
613 test "$silent" = yes && exec 6>/dev
/null
615 # Find the source files, if location was not specified.
616 if test -z "$srcdir"; then
617 ac_srcdir_defaulted
=yes
618 # Try the directory containing this script, then its parent.
620 ac_confdir
=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
621 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
623 if test ! -r $srcdir/$ac_unique_file; then
627 ac_srcdir_defaulted
=no
629 if test ! -r $srcdir/$ac_unique_file; then
630 if test "$ac_srcdir_defaulted" = yes; then
631 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
632 { (exit 1); exit 1; }; }
634 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
635 { (exit 1); exit 1; }; }
638 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
639 ac_env_build_alias_set
=${build_alias+set}
640 ac_env_build_alias_value
=$build_alias
641 ac_cv_env_build_alias_set
=${build_alias+set}
642 ac_cv_env_build_alias_value
=$build_alias
643 ac_env_host_alias_set
=${host_alias+set}
644 ac_env_host_alias_value
=$host_alias
645 ac_cv_env_host_alias_set
=${host_alias+set}
646 ac_cv_env_host_alias_value
=$host_alias
647 ac_env_target_alias_set
=${target_alias+set}
648 ac_env_target_alias_value
=$target_alias
649 ac_cv_env_target_alias_set
=${target_alias+set}
650 ac_cv_env_target_alias_value
=$target_alias
651 ac_env_CC_set
=${CC+set}
653 ac_cv_env_CC_set
=${CC+set}
654 ac_cv_env_CC_value
=$CC
655 ac_env_CFLAGS_set
=${CFLAGS+set}
656 ac_env_CFLAGS_value
=$CFLAGS
657 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
658 ac_cv_env_CFLAGS_value
=$CFLAGS
659 ac_env_LDFLAGS_set
=${LDFLAGS+set}
660 ac_env_LDFLAGS_value
=$LDFLAGS
661 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
662 ac_cv_env_LDFLAGS_value
=$LDFLAGS
663 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
664 ac_env_CPPFLAGS_value
=$CPPFLAGS
665 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
666 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
667 ac_env_CPP_set
=${CPP+set}
668 ac_env_CPP_value
=$CPP
669 ac_cv_env_CPP_set
=${CPP+set}
670 ac_cv_env_CPP_value
=$CPP
673 # Report the --help message.
675 if test "$ac_init_help" = "long"; then
676 # Omit some internal or obsolete options to make the list less imposing.
677 # This message is too long to be a string in the A/UX 3.1 sh.
679 \`configure' configures GNU Bison 1.29c to adapt to many kinds of systems.
681 Usage: $0 [OPTION]... [VAR=VALUE]...
683 To assign environment variables (e.g., CC, CFLAGS...), specify them as
684 VAR=VALUE. See below for descriptions of some of the useful variables.
686 Defaults for the options are specified in brackets.
689 -h, --help display this help and exit
690 --help=short display options specific to this package
691 --help=recursive display the short help of all the included packages
692 -V, --version display version information and exit
693 -q, --quiet, --silent do not print \`checking...' messages
694 --cache-file=FILE cache test results in FILE [disabled]
695 -C, --config-cache alias for \`--cache-file=config.cache'
696 -n, --no-create do not create output files
697 --srcdir=DIR find the sources in DIR [configure dir or \`..']
702 Installation directories:
703 --prefix=PREFIX install architecture-independent files in PREFIX
705 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
708 By default, \`make install' will install all the files in
709 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
710 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
711 for instance \`--prefix=\$HOME'.
713 For better control, use the options below.
715 Fine tuning of the installation directories:
716 --bindir=DIR user executables [EPREFIX/bin]
717 --sbindir=DIR system admin executables [EPREFIX/sbin]
718 --libexecdir=DIR program executables [EPREFIX/libexec]
719 --datadir=DIR read-only architecture-independent data [PREFIX/share]
720 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
721 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
722 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
723 --libdir=DIR object code libraries [EPREFIX/lib]
724 --includedir=DIR C header files [PREFIX/include]
725 --oldincludedir=DIR C header files for non-gcc [/usr/include]
726 --infodir=DIR info documentation [PREFIX/info]
727 --mandir=DIR man documentation [PREFIX/man]
733 --program-prefix=PREFIX prepend PREFIX to installed program names
734 --program-suffix=SUFFIX append SUFFIX to installed program names
735 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
738 --build=BUILD configure
for building on BUILD
[guessed
]
739 --host=HOST build programs to run on HOST
[BUILD
]
743 if test -n "$ac_init_help"; then
744 case $ac_init_help in
745 short
| recursive
) echo "Configuration of GNU Bison 1.29c:";;
750 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
751 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
752 --disable-dependency-tracking Speeds up one
-time builds
753 --enable-dependency-tracking Do not reject slow dependency extractors
754 --enable-gcc-warnings turn on lots of GCC warnings
(not recommended
)
755 --disable-nls do not use Native Language Support
758 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
759 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
760 --with-dmalloc use dmalloc
, as
in
761 http
://www.dmalloc.com
/dmalloc.
tar.gz
762 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
763 --with-included-gettext use the GNU
gettext library included here
765 Some influential environment variables
:
766 CC C compiler
command
767 CFLAGS C compiler flags
768 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
769 nonstandard directory
<lib dir
>
770 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
771 headers
in a nonstandard directory
<include dir
>
774 Use these variables to override the choices made by
`configure' or to help
775 it to find libraries and programs with nonstandard names/locations.
777 Report bugs to <bug-bison@gnu.org>.
781 if test "$ac_init_help" = "recursive"; then
782 # If there are subdirs, report their specific --help.
784 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
785 test -d $ac_dir || continue
788 if test "$ac_dir" != .; then
789 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
790 # A "../" for each directory in $ac_dir_suffix.
791 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
793 ac_dir_suffix= ac_top_builddir=
797 .) # No --srcdir option. We are building in place.
799 if test -z "$ac_top_builddir"; then
802 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
804 [\\/]* | ?:[\\/]* ) # Absolute path.
805 ac_srcdir=$srcdir$ac_dir_suffix;
806 ac_top_srcdir=$srcdir ;;
808 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
809 ac_top_srcdir=$ac_top_builddir$srcdir ;;
811 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
813 ac_buildpath=`cd "$ac_dir" && cd $ac_builddir && pwd`
814 ac_top_buildpath=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
815 ac_srcpath=`cd "$ac_dir" && cd $ac_srcdir && pwd`
816 ac_top_srcpath=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
819 # Check for guested configure; otherwise get Cygnus style configure.
820 if test -f $ac_srcdir/configure.gnu; then
822 $SHELL $ac_srcdir/configure.gnu --help=recursive
823 elif test -f $ac_srcdir/configure; then
825 $SHELL $ac_srcdir/configure --help=recursive
826 elif test -f $ac_srcdir/configure.ac ||
827 test -f $ac_srcdir/configure.in; then
831 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
837 test -n "$ac_init_help" && exit 0
838 if $ac_init_version; then
840 GNU Bison configure 1.29c
841 generated by GNU Autoconf 2.52e
843 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
844 Free Software Foundation, Inc.
845 This configure script is free software; the Free Software Foundation
846 gives unlimited permission to copy, distribute and modify it.
852 This file contains any messages produced by compilers while
853 running configure, to aid debugging if configure makes a mistake.
855 It was created by GNU Bison $as_me 1.29c, which was
856 generated by GNU Autoconf 2.52e. Invocation command line was
867 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
868 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
869 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
870 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
871 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
873 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
874 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
876 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
877 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
878 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
879 hostinfo = `(hostinfo
) 2>/dev
/null
|| echo unknown
`
880 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
881 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
882 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
890 test -z "$as_dir" && as_dir=.
904 # Keep a trace of the command line.
905 # Strip out --no-create and --no-recursion so they do not pile up.
906 # Also quote any args containing shell meta-characters.
912 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
913 | --no-cr | --no-c) ;;
914 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
915 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
916 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
917 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
918 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
920 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
923 # Get rid of the leading space.
926 # When interrupted or exit'd, cleanup temporary files, and complete
927 # config.log. We remove comments because anyway the quotes in there
928 # would cause problems or look ugly.
929 # WARNING: Be sure not to use single quotes in there, as some shells,
930 # such as our DU 5.0 friend, will then `close
' the trap.
932 # Save into config.log some information that might help in debugging.
936 ## ---------------- ##
937 ## Cache variables. ##
938 ## ---------------- ##
941 # The following way of writing the cache mishandles newlines in values,
944 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
947 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
948 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
952 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
957 if test -s confdefs.h
; then
964 sed "/^$/d" confdefs.h
967 test "$ac_signal" != 0 &&
968 echo "$as_me: caught signal $ac_signal"
969 echo "$as_me: exit $exit_status"
971 rm -rf conftest
* confdefs
* core core.
* *.core conf$$
* $ac_clean_files &&
974 for ac_signal in 1 2 13 15; do
975 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
979 # confdefs.h avoids OS command line length limits that DEFS can exceed.
980 rm -rf conftest* confdefs.h
981 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
984 # Let the site file select an alternate cache file if it wants to.
985 # Prefer explicitly selected file to automatically selected ones.
986 if test -z "$CONFIG_SITE"; then
987 if test "x$prefix" != xNONE; then
988 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
990 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
993 for ac_site_file in $CONFIG_SITE; do
994 if test -r "$ac_site_file"; then
995 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
996 echo "$as_me: loading site script $ac_site_file" >&6;}
997 sed 's
/^
/| /' "$ac_site_file" >&5
1002 if test -r "$cache_file"; then
1003 # Some versions of bash will fail to source /dev/null (special
1004 # files actually), so we avoid doing that.
1005 if test -f "$cache_file"; then
1006 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1007 echo "$as_me: loading cache $cache_file" >&6;}
1009 [\\/]* | ?:[\\/]* ) . $cache_file;;
1010 *) . ./$cache_file;;
1014 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1015 echo "$as_me: creating cache $cache_file" >&6;}
1019 # Check that the precious variables saved in the cache have kept the same
1021 ac_cache_corrupted=false
1022 for ac_var in `(set) 2>&1 |
1023 sed -n 's
/^ac_env_\
([a
-zA-Z_0-9]*\
)_set
=.
*/\
1/p
'`; do
1024 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1025 eval ac_new_set=\$ac_env_${ac_var}_set
1026 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1027 eval ac_new_val="\$ac_env_${ac_var}_value"
1028 case $ac_old_set,$ac_new_set in
1030 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1031 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1032 ac_cache_corrupted=: ;;
1034 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1035 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1036 ac_cache_corrupted=: ;;
1039 if test "x$ac_old_val" != "x$ac_new_val"; then
1040 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1041 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1042 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1043 echo "$as_me: former value: $ac_old_val" >&2;}
1044 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1045 echo "$as_me: current value: $ac_new_val" >&2;}
1046 ac_cache_corrupted=:
1049 # Pass precious variables to config.status. It doesn't matter if
1050 # we pass some twice (in addition to the command line arguments).
1051 if test "$ac_new_set" = set; then
1053 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1054 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1055 ac_configure_args="$ac_configure_args '$ac_arg'"
1057 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1062 if $ac_cache_corrupted; then
1063 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1064 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1065 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1066 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1067 { (exit 1); exit 1; }; }
1071 ac_cpp='$CPP $CPPFLAGS'
1072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1073 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1077 for ac_dir in config $srcdir/config; do
1078 if test -f $ac_dir/install-sh; then
1080 ac_install_sh="$ac_aux_dir/install-sh -c"
1082 elif test -f $ac_dir/install.sh; then
1084 ac_install_sh="$ac_aux_dir/install.sh -c"
1086 elif test -f $ac_dir/shtool; then
1088 ac_install_sh="$ac_aux_dir/shtool install -c"
1092 if test -z "$ac_aux_dir"; then
1093 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1094 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1095 { (exit 1); exit 1; }; }
1097 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1098 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1099 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1101 # Find a good install program. We prefer a C program (faster),
1102 # so one script is as good as another. But avoid the broken or
1103 # incompatible versions:
1104 # SysV /etc/install, /usr/sbin/install
1105 # SunOS /usr/etc/install
1106 # IRIX /sbin/install
1108 # AmigaOS /C/install, which installs bootblocks on floppy discs
1109 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1110 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1111 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1112 # ./install, which can be erroneously created by make from ./install.sh.
1113 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
1114 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1115 if test -z "$INSTALL"; then
1116 if test "${ac_cv_path_install+set}" = set; then
1117 echo $ECHO_N "(cached) $ECHO_C" >&6
1119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1123 test -z "$as_dir" && as_dir
=.
1124 # Account for people who put trailing slashes in PATH elements.
1126 .
/ | .
// | /cC
/* | \
1127 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
1130 # OSF1 and SCO ODT 3.0 have their own names for install.
1131 # Don't use installbsd from OSF since it installs stuff as root
1133 for ac_prog
in ginstall scoinst
install; do
1134 for ac_exec_ext
in '' $ac_executable_extensions; do
1135 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1136 if test $ac_prog = install &&
1137 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1138 # AIX install. It has an incompatible calling convention.
1140 elif test $ac_prog = install &&
1141 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1142 # program-specific install script used by HP pwplus--don't use.
1145 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1156 if test "${ac_cv_path_install+set}" = set; then
1157 INSTALL
=$ac_cv_path_install
1159 # As a last resort, use the slow shell script. We don't cache a
1160 # path for INSTALL within a source directory, because that will
1161 # break other packages using the cache if that directory is
1162 # removed, or if the path is relative.
1163 INSTALL
=$ac_install_sh
1166 echo "$as_me:$LINENO: result: $INSTALL" >&5
1167 echo "${ECHO_T}$INSTALL" >&6
1169 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1170 # It thinks the first close brace ends the variable substitution.
1171 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1173 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1175 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1177 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1178 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1181 echo timestamp
> conftest.
file
1182 # Do `set' in a subshell so we don't clobber the current shell's
1183 # arguments. Must try -L first in case configure is actually a
1184 # symlink; some systems play weird games with the mod time of symlinks
1185 # (eg FreeBSD returns the mod time of the symlink's containing
1188 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1189 if test "$*" = "X"; then
1191 set X
`ls -t $srcdir/configure conftest.file`
1194 if test "$*" != "X $srcdir/configure conftest.file" \
1195 && test "$*" != "X conftest.file $srcdir/configure"; then
1197 # If neither matched, then we have a broken ls. This can happen
1198 # if, for instance, CONFIG_SHELL is bash and it inherits a
1199 # broken ls alias from the environment. This has actually
1200 # happened. Such a system could not be considered "sane".
1201 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1202 alias in your environment" >&5
1203 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1204 alias in your environment" >&2;}
1205 { (exit 1); exit 1; }; }
1208 test "$2" = conftest.
file
1214 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1215 Check your system clock" >&5
1216 echo "$as_me: error: newly created file is older than distributed files!
1217 Check your system clock" >&2;}
1218 { (exit 1); exit 1; }; }
1220 echo "$as_me:$LINENO: result: yes" >&5
1221 echo "${ECHO_T}yes" >&6
1222 test "$program_prefix" != NONE
&&
1223 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1224 # Use a double $ so make ignores it.
1225 test "$program_suffix" != NONE
&&
1226 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1227 # Double any \ or $. echo might interpret backslashes.
1228 # By default was `s,x,x', remove it if useless.
1229 cat <<\_ACEOF
>conftest.
sed
1230 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1232 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1235 # expand $ac_aux_dir to an absolute path
1236 am_aux_dir
=`CDPATH=:; cd $ac_aux_dir && pwd`
1238 test x
"${MISSING+set}" = xset
|| MISSING
="\${SHELL} $am_aux_dir/missing"
1239 # Use eval to expand $SHELL
1240 if eval "$MISSING --run true"; then
1241 am_missing_run
="$MISSING --run "
1245 { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1246 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1249 for ac_prog
in mawk gawk nawk
awk
1251 # Extract the first word of "$ac_prog", so it can be a program name with args.
1252 set dummy
$ac_prog; ac_word
=$2
1253 echo "$as_me:$LINENO: checking for $ac_word" >&5
1254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1255 if test "${ac_cv_prog_AWK+set}" = set; then
1256 echo $ECHO_N "(cached) $ECHO_C" >&6
1258 if test -n "$AWK"; then
1259 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1261 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1265 test -z "$as_dir" && as_dir
=.
1266 for ac_exec_ext
in '' $ac_executable_extensions; do
1267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1268 ac_cv_prog_AWK
="$ac_prog"
1269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1278 if test -n "$AWK"; then
1279 echo "$as_me:$LINENO: result: $AWK" >&5
1280 echo "${ECHO_T}$AWK" >&6
1282 echo "$as_me:$LINENO: result: no" >&5
1283 echo "${ECHO_T}no" >&6
1286 test -n "$AWK" && break
1289 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1290 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1291 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
1292 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1293 echo $ECHO_N "(cached) $ECHO_C" >&6
1295 cat >conftest.
make <<\_ACEOF
1297 @
echo 'ac_maketemp="${MAKE}"'
1299 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1300 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1301 if test -n "$ac_maketemp"; then
1302 eval ac_cv_prog_make_
${ac_make}_set
=yes
1304 eval ac_cv_prog_make_
${ac_make}_set
=no
1308 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1309 echo "$as_me:$LINENO: result: yes" >&5
1310 echo "${ECHO_T}yes" >&6
1313 echo "$as_me:$LINENO: result: no" >&5
1314 echo "${ECHO_T}no" >&6
1315 SET_MAKE
="MAKE=${MAKE-make}"
1318 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1319 if test "${enable_dependency_tracking+set}" = set; then
1320 enableval
="$enable_dependency_tracking"
1323 if test "x$enable_dependency_tracking" != xno
; then
1324 am_depcomp
="$ac_aux_dir/depcomp"
1328 if test "x$enable_dependency_tracking" != xno; then
1336 rm -f .deps
2>/dev
/null
1337 mkdir .deps
2>/dev
/null
1338 if test -d .deps
; then
1341 # MS-DOS does not allow filenames that begin with a dot.
1344 rmdir .deps
2>/dev
/null
1346 # test to see if srcdir already configured
1347 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1348 test -f $srcdir/config.status
; then
1349 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1350 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1351 { (exit 1); exit 1; }; }
1354 # Define the identity of the package.
1358 cat >>confdefs.h
<<_ACEOF
1359 #define PACKAGE "$PACKAGE"
1362 cat >>confdefs.h
<<_ACEOF
1363 #define VERSION "$VERSION"
1366 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1367 # the ones we care about.
1369 # Autoconf 2.50 always computes EXEEXT. However we need to be
1370 # compatible with 2.13, for now. So we always define EXEEXT, but we
1373 # Similar for OBJEXT -- only we only use OBJEXT if the user actually
1374 # requests that it be used. This is a bit dumb.
1377 # Some tools Automake needs.
1379 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal"}
1381 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1383 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake"}
1385 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1387 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1389 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1391 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1393 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1395 # We need awk for the "check" target. The system "awk" is bad on
1398 ac_config_headers
="$ac_config_headers config.h:config.hin"
1400 # Initialize the test suite.
1401 ac_config_commands
="$ac_config_commands tests/package.m4"
1403 ac_config_commands
="$ac_config_commands tests/atconfig"
1405 if test -f $srcdir/tests
/atlocal.
in; then
1406 ac_config_files
="$ac_config_files tests/atlocal"
1410 ac_config_files
="$ac_config_files tests/bison"
1412 # Checks for programs.
1414 ac_cpp
='$CPP $CPPFLAGS'
1415 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1416 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1417 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1418 if test -n "$ac_tool_prefix"; then
1419 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1420 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1421 echo "$as_me:$LINENO: checking for $ac_word" >&5
1422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1423 if test "${ac_cv_prog_CC+set}" = set; then
1424 echo $ECHO_N "(cached) $ECHO_C" >&6
1426 if test -n "$CC"; then
1427 ac_cv_prog_CC
="$CC" # Let the user override the test.
1429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1433 test -z "$as_dir" && as_dir
=.
1434 for ac_exec_ext
in '' $ac_executable_extensions; do
1435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1436 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1446 if test -n "$CC"; then
1447 echo "$as_me:$LINENO: result: $CC" >&5
1448 echo "${ECHO_T}$CC" >&6
1450 echo "$as_me:$LINENO: result: no" >&5
1451 echo "${ECHO_T}no" >&6
1455 if test -z "$ac_cv_prog_CC"; then
1457 # Extract the first word of "gcc", so it can be a program name with args.
1458 set dummy gcc
; ac_word
=$2
1459 echo "$as_me:$LINENO: checking for $ac_word" >&5
1460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1461 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1462 echo $ECHO_N "(cached) $ECHO_C" >&6
1464 if test -n "$ac_ct_CC"; then
1465 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1471 test -z "$as_dir" && as_dir
=.
1472 for ac_exec_ext
in '' $ac_executable_extensions; do
1473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1474 ac_cv_prog_ac_ct_CC
="gcc"
1475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1483 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1484 if test -n "$ac_ct_CC"; then
1485 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1486 echo "${ECHO_T}$ac_ct_CC" >&6
1488 echo "$as_me:$LINENO: result: no" >&5
1489 echo "${ECHO_T}no" >&6
1497 if test -z "$CC"; then
1498 if test -n "$ac_tool_prefix"; then
1499 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1500 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1501 echo "$as_me:$LINENO: checking for $ac_word" >&5
1502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1503 if test "${ac_cv_prog_CC+set}" = set; then
1504 echo $ECHO_N "(cached) $ECHO_C" >&6
1506 if test -n "$CC"; then
1507 ac_cv_prog_CC
="$CC" # Let the user override the test.
1509 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1513 test -z "$as_dir" && as_dir
=.
1514 for ac_exec_ext
in '' $ac_executable_extensions; do
1515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1516 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1526 if test -n "$CC"; then
1527 echo "$as_me:$LINENO: result: $CC" >&5
1528 echo "${ECHO_T}$CC" >&6
1530 echo "$as_me:$LINENO: result: no" >&5
1531 echo "${ECHO_T}no" >&6
1535 if test -z "$ac_cv_prog_CC"; then
1537 # Extract the first word of "cc", so it can be a program name with args.
1538 set dummy cc
; ac_word
=$2
1539 echo "$as_me:$LINENO: checking for $ac_word" >&5
1540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1541 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1542 echo $ECHO_N "(cached) $ECHO_C" >&6
1544 if test -n "$ac_ct_CC"; then
1545 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1547 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1551 test -z "$as_dir" && as_dir
=.
1552 for ac_exec_ext
in '' $ac_executable_extensions; do
1553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1554 ac_cv_prog_ac_ct_CC
="cc"
1555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1564 if test -n "$ac_ct_CC"; then
1565 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1566 echo "${ECHO_T}$ac_ct_CC" >&6
1568 echo "$as_me:$LINENO: result: no" >&5
1569 echo "${ECHO_T}no" >&6
1578 if test -z "$CC"; then
1579 # Extract the first word of "cc", so it can be a program name with args.
1580 set dummy cc
; ac_word
=$2
1581 echo "$as_me:$LINENO: checking for $ac_word" >&5
1582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1583 if test "${ac_cv_prog_CC+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1586 if test -n "$CC"; then
1587 ac_cv_prog_CC
="$CC" # Let the user override the test.
1590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1594 test -z "$as_dir" && as_dir
=.
1595 for ac_exec_ext
in '' $ac_executable_extensions; do
1596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1597 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1598 ac_prog_rejected
=yes
1602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608 if test $ac_prog_rejected = yes; then
1609 # We found a bogon in the path, so make sure we never use it.
1610 set dummy
$ac_cv_prog_CC
1612 if test $# != 0; then
1613 # We chose a different compiler from the bogus one.
1614 # However, it has the same basename, so the bogon will be chosen
1615 # first if we set CC to just the basename; use the full file name.
1617 set dummy
"$as_dir/$ac_word" ${1+"$@"}
1625 if test -n "$CC"; then
1626 echo "$as_me:$LINENO: result: $CC" >&5
1627 echo "${ECHO_T}$CC" >&6
1629 echo "$as_me:$LINENO: result: no" >&5
1630 echo "${ECHO_T}no" >&6
1634 if test -z "$CC"; then
1635 if test -n "$ac_tool_prefix"; then
1638 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1639 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1640 echo "$as_me:$LINENO: checking for $ac_word" >&5
1641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642 if test "${ac_cv_prog_CC+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 if test -n "$CC"; then
1646 ac_cv_prog_CC
="$CC" # Let the user override the test.
1648 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1652 test -z "$as_dir" && as_dir
=.
1653 for ac_exec_ext
in '' $ac_executable_extensions; do
1654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1655 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1665 if test -n "$CC"; then
1666 echo "$as_me:$LINENO: result: $CC" >&5
1667 echo "${ECHO_T}$CC" >&6
1669 echo "$as_me:$LINENO: result: no" >&5
1670 echo "${ECHO_T}no" >&6
1673 test -n "$CC" && break
1676 if test -z "$CC"; then
1680 # Extract the first word of "$ac_prog", so it can be a program name with args.
1681 set dummy
$ac_prog; ac_word
=$2
1682 echo "$as_me:$LINENO: checking for $ac_word" >&5
1683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1685 echo $ECHO_N "(cached) $ECHO_C" >&6
1687 if test -n "$ac_ct_CC"; then
1688 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1694 test -z "$as_dir" && as_dir
=.
1695 for ac_exec_ext
in '' $ac_executable_extensions; do
1696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697 ac_cv_prog_ac_ct_CC
="$ac_prog"
1698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1706 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1707 if test -n "$ac_ct_CC"; then
1708 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1709 echo "${ECHO_T}$ac_ct_CC" >&6
1711 echo "$as_me:$LINENO: result: no" >&5
1712 echo "${ECHO_T}no" >&6
1715 test -n "$ac_ct_CC" && break
1723 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
1724 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1725 { (exit 1); exit 1; }; }
1727 # Provide some information about the compiler.
1728 echo "$as_me:$LINENO:" \
1729 "checking for C compiler version" >&5
1730 ac_compiler
=`set X $ac_compile; echo $2`
1731 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1732 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1735 (exit $ac_status); }
1736 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1737 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1740 (exit $ac_status); }
1741 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1742 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1745 (exit $ac_status); }
1747 cat >conftest.
$ac_ext <<_ACEOF
1748 #line $LINENO "configure"
1749 #include "confdefs.h"
1751 #ifdef F77_DUMMY_MAIN
1755 int F77_DUMMY_MAIN() { return 1; }
1765 ac_clean_files_save
=$ac_clean_files
1766 ac_clean_files
="$ac_clean_files a.out a.exe"
1767 # Try to create an executable without -o first, disregard a.out.
1768 # It will help us diagnose broken compilers, and finding out an intuition
1770 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1771 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1772 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1773 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1774 (eval $ac_link_default) 2>&5
1776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1777 (exit $ac_status); }; then
1778 # Find the output, starting from the most likely. This scheme is
1779 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1781 for ac_file
in `ls a.exe conftest.exe 2>/dev/null;
1782 ls a.out conftest 2>/dev/null;
1783 ls a.* conftest.* 2>/dev/null`; do
1785 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
) ;;
1786 a.out
) # We found the default executable, but exeext='' is most
1789 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1790 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1797 echo "$as_me: failed program was:" >&5
1798 cat conftest.
$ac_ext >&5
1799 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1800 echo "$as_me: error: C compiler cannot create executables" >&2;}
1801 { (exit 77); exit 77; }; }
1804 ac_exeext
=$ac_cv_exeext
1805 echo "$as_me:$LINENO: result: $ac_file" >&5
1806 echo "${ECHO_T}$ac_file" >&6
1808 # Check the compiler produces executables we can run. If not, either
1809 # the compiler is broken, or we cross compile.
1810 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1811 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1812 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1813 # If not cross compiling, check that we can run a simple program.
1814 if test "$cross_compiling" != yes; then
1815 if { ac_try
='./$ac_file'
1816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820 (exit $ac_status); }; }; then
1823 if test "$cross_compiling" = maybe
; then
1826 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1827 If you meant to cross compile, use \`--host'." >&5
1828 echo "$as_me: error: cannot run C compiled programs.
1829 If you meant to cross compile, use \`--host'." >&2;}
1830 { (exit 1); exit 1; }; }
1834 echo "$as_me:$LINENO: result: yes" >&5
1835 echo "${ECHO_T}yes" >&6
1837 rm -f a.out a.exe conftest
$ac_cv_exeext
1838 ac_clean_files
=$ac_clean_files_save
1839 # Check the compiler produces executables we can run. If not, either
1840 # the compiler is broken, or we cross compile.
1841 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1842 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1843 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1844 echo "${ECHO_T}$cross_compiling" >&6
1846 echo "$as_me:$LINENO: checking for executable suffix" >&5
1847 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1849 (eval $ac_link) 2>&5
1851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852 (exit $ac_status); }; then
1853 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1854 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1855 # work properly (i.e., refer to `conftest.exe'), while it won't with
1857 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1859 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1860 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1867 { { echo "$as_me:$LINENO: error: cannot compute EXEEXT: cannot compile and link" >&5
1868 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1869 { (exit 1); exit 1; }; }
1872 rm -f conftest
$ac_cv_exeext
1873 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1874 echo "${ECHO_T}$ac_cv_exeext" >&6
1876 rm -f conftest.
$ac_ext
1877 EXEEXT
=$ac_cv_exeext
1879 echo "$as_me:$LINENO: checking for object suffix" >&5
1880 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1881 if test "${ac_cv_objext+set}" = set; then
1882 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 cat >conftest.
$ac_ext <<_ACEOF
1885 #line $LINENO "configure"
1886 #include "confdefs.h"
1888 #ifdef F77_DUMMY_MAIN
1892 int F77_DUMMY_MAIN() { return 1; }
1902 rm -f conftest.o conftest.obj
1903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1904 (eval $ac_compile) 2>&5
1906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1907 (exit $ac_status); }; then
1908 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1910 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1911 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1916 echo "$as_me: failed program was:" >&5
1917 cat conftest.
$ac_ext >&5
1918 { { echo "$as_me:$LINENO: error: cannot compute OBJEXT: cannot compile" >&5
1919 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1920 { (exit 1); exit 1; }; }
1923 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1925 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1926 echo "${ECHO_T}$ac_cv_objext" >&6
1927 OBJEXT
=$ac_cv_objext
1929 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1930 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1931 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 cat >conftest.
$ac_ext <<_ACEOF
1935 #line $LINENO "configure"
1936 #include "confdefs.h"
1938 #ifdef F77_DUMMY_MAIN
1942 int F77_DUMMY_MAIN() { return 1; }
1955 rm -f conftest.
$ac_objext
1956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1957 (eval $ac_compile) 2>&5
1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960 (exit $ac_status); } &&
1961 { ac_try
='test -s conftest.$ac_objext'
1962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966 (exit $ac_status); }; }; then
1969 echo "$as_me: failed program was:" >&5
1970 cat conftest.
$ac_ext >&5
1973 rm -f conftest.
$ac_objext conftest.
$ac_ext
1974 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1977 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1978 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1979 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1980 ac_test_CFLAGS
=${CFLAGS+set}
1981 ac_save_CFLAGS
=$CFLAGS
1983 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1984 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1985 if test "${ac_cv_prog_cc_g+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 cat >conftest.
$ac_ext <<_ACEOF
1989 #line $LINENO "configure"
1990 #include "confdefs.h"
1992 #ifdef F77_DUMMY_MAIN
1996 int F77_DUMMY_MAIN() { return 1; }
2006 rm -f conftest.
$ac_objext
2007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2008 (eval $ac_compile) 2>&5
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); } &&
2012 { ac_try
='test -s conftest.$ac_objext'
2013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017 (exit $ac_status); }; }; then
2020 echo "$as_me: failed program was:" >&5
2021 cat conftest.
$ac_ext >&5
2024 rm -f conftest.
$ac_objext conftest.
$ac_ext
2026 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2027 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2028 if test "$ac_test_CFLAGS" = set; then
2029 CFLAGS
=$ac_save_CFLAGS
2030 elif test $ac_cv_prog_cc_g = yes; then
2031 if test "$GCC" = yes; then
2037 if test "$GCC" = yes; then
2043 # Some people use a C++ compiler to compile C. Since we use `exit',
2044 # in C++ we need to declare it. In case someone uses the same compiler
2045 # for both compiling C and C++ we need to have the C++ compiler decide
2046 # the declaration of exit, since it's the most demanding environment.
2047 cat >conftest.
$ac_ext <<_ACEOF
2052 rm -f conftest.
$ac_objext
2053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2054 (eval $ac_compile) 2>&5
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); } &&
2058 { ac_try
='test -s conftest.$ac_objext'
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; }; then
2064 for ac_declaration
in \
2066 '#include <stdlib.h>' \
2067 'extern "C" void std::exit (int) throw (); using std::exit;' \
2068 'extern "C" void std::exit (int); using std::exit;' \
2069 'extern "C" void exit (int) throw ();' \
2070 'extern "C" void exit (int);' \
2073 cat >conftest.
$ac_ext <<_ACEOF
2074 #line $LINENO "configure"
2075 #include "confdefs.h"
2078 #ifdef F77_DUMMY_MAIN
2082 int F77_DUMMY_MAIN() { return 1; }
2092 rm -f conftest.
$ac_objext
2093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2094 (eval $ac_compile) 2>&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); } &&
2098 { ac_try
='test -s conftest.$ac_objext'
2099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }; }; then
2106 echo "$as_me: failed program was:" >&5
2107 cat conftest.
$ac_ext >&5
2110 rm -f conftest.
$ac_objext conftest.
$ac_ext
2111 cat >conftest.
$ac_ext <<_ACEOF
2112 #line $LINENO "configure"
2113 #include "confdefs.h"
2115 #ifdef F77_DUMMY_MAIN
2119 int F77_DUMMY_MAIN() { return 1; }
2129 rm -f conftest.
$ac_objext
2130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2131 (eval $ac_compile) 2>&5
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); } &&
2135 { ac_try
='test -s conftest.$ac_objext'
2136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }; }; then
2143 echo "$as_me: failed program was:" >&5
2144 cat conftest.
$ac_ext >&5
2146 rm -f conftest.
$ac_objext conftest.
$ac_ext
2149 if test -n "$ac_declaration"; then
2150 echo '#ifdef __cplusplus' >>confdefs.h
2151 echo $ac_declaration >>confdefs.h
2152 echo '#endif' >>confdefs.h
2156 echo "$as_me: failed program was:" >&5
2157 cat conftest.
$ac_ext >&5
2159 rm -f conftest.
$ac_objext conftest.
$ac_ext
2161 ac_cpp
='$CPP $CPPFLAGS'
2162 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2163 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2164 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2166 ac_config_commands
="$ac_config_commands default-1"
2168 am_make
=${MAKE-make}
2169 cat > confinc
<< 'END'
2173 # If we don't find an include directive, just comment out the code.
2174 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2175 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2179 # First try GNU make style include.
2180 echo "include confinc" > confmf
2181 # We grep out `Entering directory' and `Leaving directory'
2182 # messages which can occur if `w' ends up in MAKEFLAGS.
2183 # In particular we don't look at `^make:' because GNU make might
2184 # be invoked under some other name (usually "gmake"), in which
2185 # case it prints its new name instead of `make'.
2186 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2191 # Now try BSD make style include.
2192 if test "$am__include" = "#"; then
2193 echo '.include "confinc"' > confmf
2194 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2195 am__include
=.include
2201 echo "$as_me:$LINENO: result: $_am_result" >&5
2202 echo "${ECHO_T}$_am_result" >&6
2203 rm -f confinc confmf
2205 depcc
="$CC" am_compiler_list
=
2207 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2208 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2209 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2213 # We make a subdir and do the tests there. Otherwise we can end up
2214 # making bogus files that we don't know about and never remove. For
2215 # instance it was reported that on HP-UX the gcc test will end up
2216 # making a dummy file named `D' -- because `-MD' means `put the output
2219 # Copy depcomp to subdir because otherwise we won't find it if we're
2220 # using a relative directory.
2221 cp "$am_depcomp" conftest.dir
2224 am_cv_CC_dependencies_compiler_type
=none
2225 if test "$am_compiler_list" = ""; then
2226 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2228 for depmode
in $am_compiler_list; do
2229 # We need to recreate these files for each test, as the compiler may
2230 # overwrite some of them when testing with obscure command lines.
2231 # This happens at least with the AIX C compiler.
2232 echo '#include "conftest.h"' > conftest.c
2233 echo 'int i;' > conftest.h
2234 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2238 # after this tag, mechanisms are not by side-effect, so they'll
2239 # only be used when explicitly requested
2240 if test "x$enable_dependency_tracking" = xyes
; then
2248 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2249 # mode. It turns out that the SunPro C++ compiler does not properly
2250 # handle `-M -o', and we need to detect this.
2251 if depmode
=$depmode \
2252 source=conftest.c object
=conftest.o \
2253 depfile
=conftest.Po tmpdepfile
=conftest.TPo \
2254 $SHELL .
/depcomp
$depcc -c conftest.c
-o conftest.o
>/dev
/null
2>&1 &&
2255 grep conftest.h conftest.Po
> /dev
/null
2>&1 &&
2256 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2257 am_cv_CC_dependencies_compiler_type
=$depmode
2265 am_cv_CC_dependencies_compiler_type
=none
2269 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2270 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2271 CCDEPMODE
="depmode=$am_cv_CC_dependencies_compiler_type"
2274 ac_cpp
='$CPP $CPPFLAGS'
2275 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2276 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2277 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2278 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2279 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2280 # On Suns, sometimes $CPP names a directory.
2281 if test -n "$CPP" && test -d "$CPP"; then
2284 if test -z "$CPP"; then
2285 if test "${ac_cv_prog_CPP+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 # Double quotes because CPP needs to be expanded
2289 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2292 for ac_c_preproc_warn_flag
in '' yes
2294 # Use a header file that comes with gcc, so configuring glibc
2295 # with a fresh cross-compiler works.
2296 # On the NeXT, cc -E runs the code through the compiler's parser,
2297 # not just through cpp. "Syntax error" is here to catch this case.
2298 cat >conftest.
$ac_ext <<_ACEOF
2299 #line $LINENO "configure"
2300 #include "confdefs.h"
2304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2305 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2307 egrep -v '^ *\+' conftest.er1
>conftest.err
2309 cat conftest.err
>&5
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); } >/dev
/null
; then
2312 if test -s conftest.err
; then
2313 ac_cpp_err
=$ac_c_preproc_warn_flag
2320 if test -z "$ac_cpp_err"; then
2323 echo "$as_me: failed program was:" >&5
2324 cat conftest.
$ac_ext >&5
2325 # Broken: fails on valid input.
2328 rm -f conftest.err conftest.
$ac_ext
2330 # OK, works on sane cases. Now check whether non-existent headers
2331 # can be detected and how.
2332 cat >conftest.
$ac_ext <<_ACEOF
2333 #line $LINENO "configure"
2334 #include "confdefs.h"
2335 #include <ac_nonexistent.h>
2337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2338 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2340 egrep -v '^ *\+' conftest.er1
>conftest.err
2342 cat conftest.err
>&5
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); } >/dev
/null
; then
2345 if test -s conftest.err
; then
2346 ac_cpp_err
=$ac_c_preproc_warn_flag
2353 if test -z "$ac_cpp_err"; then
2354 # Broken: success on invalid input.
2357 echo "$as_me: failed program was:" >&5
2358 cat conftest.
$ac_ext >&5
2359 # Passes both tests.
2363 rm -f conftest.err conftest.
$ac_ext
2366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2367 rm -f conftest.err conftest.
$ac_ext
2368 if $ac_preproc_ok; then
2380 echo "$as_me:$LINENO: result: $CPP" >&5
2381 echo "${ECHO_T}$CPP" >&6
2383 for ac_c_preproc_warn_flag
in '' yes
2385 # Use a header file that comes with gcc, so configuring glibc
2386 # with a fresh cross-compiler works.
2387 # On the NeXT, cc -E runs the code through the compiler's parser,
2388 # not just through cpp. "Syntax error" is here to catch this case.
2389 cat >conftest.
$ac_ext <<_ACEOF
2390 #line $LINENO "configure"
2391 #include "confdefs.h"
2395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2396 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2398 egrep -v '^ *\+' conftest.er1
>conftest.err
2400 cat conftest.err
>&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } >/dev
/null
; then
2403 if test -s conftest.err
; then
2404 ac_cpp_err
=$ac_c_preproc_warn_flag
2411 if test -z "$ac_cpp_err"; then
2414 echo "$as_me: failed program was:" >&5
2415 cat conftest.
$ac_ext >&5
2416 # Broken: fails on valid input.
2419 rm -f conftest.err conftest.
$ac_ext
2421 # OK, works on sane cases. Now check whether non-existent headers
2422 # can be detected and how.
2423 cat >conftest.
$ac_ext <<_ACEOF
2424 #line $LINENO "configure"
2425 #include "confdefs.h"
2426 #include <ac_nonexistent.h>
2428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2429 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2431 egrep -v '^ *\+' conftest.er1
>conftest.err
2433 cat conftest.err
>&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); } >/dev
/null
; then
2436 if test -s conftest.err
; then
2437 ac_cpp_err
=$ac_c_preproc_warn_flag
2444 if test -z "$ac_cpp_err"; then
2445 # Broken: success on invalid input.
2448 echo "$as_me: failed program was:" >&5
2449 cat conftest.
$ac_ext >&5
2450 # Passes both tests.
2454 rm -f conftest.err conftest.
$ac_ext
2457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2458 rm -f conftest.err conftest.
$ac_ext
2459 if $ac_preproc_ok; then
2462 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2463 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2464 { (exit 1); exit 1; }; }
2468 ac_cpp
='$CPP $CPPFLAGS'
2469 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2470 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2471 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2473 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2474 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2475 if test "${ac_cv_header_stdc+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 cat >conftest.
$ac_ext <<_ACEOF
2479 #line $LINENO "configure"
2480 #include "confdefs.h"
2487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2488 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2490 egrep -v '^ *\+' conftest.er1
>conftest.err
2492 cat conftest.err
>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } >/dev
/null
; then
2495 if test -s conftest.err
; then
2496 ac_cpp_err
=$ac_c_preproc_warn_flag
2503 if test -z "$ac_cpp_err"; then
2504 ac_cv_header_stdc
=yes
2506 echo "$as_me: failed program was:" >&5
2507 cat conftest.
$ac_ext >&5
2508 ac_cv_header_stdc
=no
2510 rm -f conftest.err conftest.
$ac_ext
2512 if test $ac_cv_header_stdc = yes; then
2513 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2514 cat >conftest.
$ac_ext <<_ACEOF
2515 #line $LINENO "configure"
2516 #include "confdefs.h"
2520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2521 egrep "memchr" >/dev
/null
2>&1; then
2524 ac_cv_header_stdc
=no
2530 if test $ac_cv_header_stdc = yes; then
2531 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2532 cat >conftest.
$ac_ext <<_ACEOF
2533 #line $LINENO "configure"
2534 #include "confdefs.h"
2538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2539 egrep "free" >/dev
/null
2>&1; then
2542 ac_cv_header_stdc
=no
2548 if test $ac_cv_header_stdc = yes; then
2549 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2550 if test "$cross_compiling" = yes; then
2553 cat >conftest.
$ac_ext <<_ACEOF
2554 #line $LINENO "configure"
2555 #include "confdefs.h"
2557 #if ((' ' & 0x0FF) == 0x020)
2558 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2559 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2561 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2562 || ('j' <= (c) && (c) <= 'r') \
2563 || ('s' <= (c) && (c) <= 'z'))
2564 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2567 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2572 for (i = 0; i < 256; i++)
2573 if (XOR (islower (i), ISLOWER (i))
2574 || toupper (i) != TOUPPER (i))
2579 rm -f conftest
$ac_exeext
2580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2581 (eval $ac_link) 2>&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; }; then
2592 echo "$as_me: program exited with status $ac_status" >&5
2593 echo "$as_me: failed program was:" >&5
2594 cat conftest.
$ac_ext >&5
2595 ac_cv_header_stdc
=no
2597 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2601 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2602 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2603 if test $ac_cv_header_stdc = yes; then
2605 cat >>confdefs.h
<<\_ACEOF
2606 #define STDC_HEADERS 1
2611 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2613 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2614 inttypes.h stdint.h unistd.h
2616 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2617 echo "$as_me:$LINENO: checking for $ac_header" >&5
2618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
2622 cat >conftest.
$ac_ext <<_ACEOF
2623 #line $LINENO "configure"
2624 #include "confdefs.h"
2625 $ac_includes_default
2627 #include <$ac_header>
2629 rm -f conftest.
$ac_objext
2630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2631 (eval $ac_compile) 2>&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); } &&
2635 { ac_try
='test -s conftest.$ac_objext'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; }; then
2641 eval "$as_ac_Header=yes"
2643 echo "$as_me: failed program was:" >&5
2644 cat conftest.
$ac_ext >&5
2645 eval "$as_ac_Header=no"
2647 rm -f conftest.
$ac_objext conftest.
$ac_ext
2649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2652 cat >>confdefs.h
<<_ACEOF
2653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2660 if test "${ac_cv_header_minix_config_h+set}" = set; then
2661 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2662 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2663 if test "${ac_cv_header_minix_config_h+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2666 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2667 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2669 # Is the header compilable?
2670 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2671 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2672 cat >conftest.
$ac_ext <<_ACEOF
2673 #line $LINENO "configure"
2674 #include "confdefs.h"
2675 $ac_includes_default
2676 #include <minix/config.h>
2678 rm -f conftest.
$ac_objext
2679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2680 (eval $ac_compile) 2>&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); } &&
2684 { ac_try
='test -s conftest.$ac_objext'
2685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }; }; then
2690 ac_header_compiler
=yes
2692 echo "$as_me: failed program was:" >&5
2693 cat conftest.
$ac_ext >&5
2694 ac_header_compiler
=no
2696 rm -f conftest.
$ac_objext conftest.
$ac_ext
2697 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2698 echo "${ECHO_T}$ac_header_compiler" >&6
2700 # Is the header present?
2701 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2702 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2703 cat >conftest.
$ac_ext <<_ACEOF
2704 #line $LINENO "configure"
2705 #include "confdefs.h"
2706 #include <minix/config.h>
2708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2709 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2711 egrep -v '^ *\+' conftest.er1
>conftest.err
2713 cat conftest.err
>&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); } >/dev
/null
; then
2716 if test -s conftest.err
; then
2717 ac_cpp_err
=$ac_c_preproc_warn_flag
2724 if test -z "$ac_cpp_err"; then
2725 ac_header_preproc
=yes
2727 echo "$as_me: failed program was:" >&5
2728 cat conftest.
$ac_ext >&5
2729 ac_header_preproc
=no
2731 rm -f conftest.err conftest.
$ac_ext
2732 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2733 echo "${ECHO_T}$ac_header_preproc" >&6
2735 # So? What about this header?
2736 case $ac_header_compiler:$ac_header_preproc in
2738 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
2739 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2740 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2741 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2743 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled." >&5
2744 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled." >&2;}
2745 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
2746 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
2747 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2748 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2750 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2751 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2752 if test "${ac_cv_header_minix_config_h+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 ac_cv_header_minix_config_h
=$ac_header_preproc
2757 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2758 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2761 if test $ac_cv_header_minix_config_h = yes; then
2767 if test "$MINIX" = yes; then
2769 cat >>confdefs.h
<<\_ACEOF
2770 #define _POSIX_SOURCE 1
2773 cat >>confdefs.h
<<\_ACEOF
2774 #define _POSIX_1_SOURCE 2
2777 cat >>confdefs.h
<<\_ACEOF
2783 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2784 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2785 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 ac_check_lib_save_LIBS
=$LIBS
2789 LIBS
="-lcposix $LIBS"
2790 cat >conftest.
$ac_ext <<_ACEOF
2791 #line $LINENO "configure"
2792 #include "confdefs.h"
2794 /* Override any gcc2 internal prototype to avoid an error. */
2798 /* We use char because int might match the return type of a gcc2
2799 builtin and then its argument prototype would still apply. */
2801 #ifdef F77_DUMMY_MAIN
2805 int F77_DUMMY_MAIN() { return 1; }
2815 rm -f conftest.
$ac_objext conftest
$ac_exeext
2816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2817 (eval $ac_link) 2>&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); } &&
2821 { ac_try
='test -s conftest$ac_exeext'
2822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; }; then
2827 ac_cv_lib_cposix_strerror
=yes
2829 echo "$as_me: failed program was:" >&5
2830 cat conftest.
$ac_ext >&5
2831 ac_cv_lib_cposix_strerror
=no
2833 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2834 LIBS
=$ac_check_lib_save_LIBS
2836 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2837 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2838 if test $ac_cv_lib_cposix_strerror = yes; then
2839 LIBS
="$LIBS -lcposix"
2842 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2843 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2844 if test "${am_cv_prog_cc_stdc+set}" = set; then
2845 echo $ECHO_N "(cached) $ECHO_C" >&6
2847 am_cv_prog_cc_stdc
=no
2849 # Don't try gcc -ansi; that turns off useful extensions and
2850 # breaks some systems' header files.
2851 # AIX -qlanglvl=ansi
2852 # Ultrix and OSF/1 -std1
2853 # HP-UX 10.20 and later -Ae
2854 # HP-UX older versions -Aa -D_HPUX_SOURCE
2855 # SVR4 -Xc -D__EXTENSIONS__
2856 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2858 CC
="$ac_save_CC $ac_arg"
2859 cat >conftest.
$ac_ext <<_ACEOF
2860 #line $LINENO "configure"
2861 #include "confdefs.h"
2864 #include <sys/types.h>
2865 #include <sys/stat.h>
2866 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2867 struct buf { int x; };
2868 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2869 static char *e (p, i)
2875 static char *f (char * (*g) (char **, int), char **p, ...)
2880 s = g (p, va_arg (v,int));
2884 int test (int i, double x);
2885 struct s1 {int (*f) (int a);};
2886 struct s2 {int (*f) (double a);};
2887 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2891 #ifdef F77_DUMMY_MAIN
2895 int F77_DUMMY_MAIN() { return 1; }
2901 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2907 rm -f conftest.
$ac_objext
2908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2909 (eval $ac_compile) 2>&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); } &&
2913 { ac_try
='test -s conftest.$ac_objext'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; }; then
2919 am_cv_prog_cc_stdc
="$ac_arg"; break
2921 echo "$as_me: failed program was:" >&5
2922 cat conftest.
$ac_ext >&5
2924 rm -f conftest.
$ac_objext conftest.
$ac_ext
2930 if test -z "$am_cv_prog_cc_stdc"; then
2931 echo "$as_me:$LINENO: result: none needed" >&5
2932 echo "${ECHO_T}none needed" >&6
2934 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2935 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2937 case "x$am_cv_prog_cc_stdc" in
2939 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
2942 if test -n "$ac_tool_prefix"; then
2943 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2944 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2945 echo "$as_me:$LINENO: checking for $ac_word" >&5
2946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2947 if test "${ac_cv_prog_RANLIB+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2950 if test -n "$RANLIB"; then
2951 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2953 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2957 test -z "$as_dir" && as_dir
=.
2958 for ac_exec_ext
in '' $ac_executable_extensions; do
2959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2960 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 RANLIB
=$ac_cv_prog_RANLIB
2970 if test -n "$RANLIB"; then
2971 echo "$as_me:$LINENO: result: $RANLIB" >&5
2972 echo "${ECHO_T}$RANLIB" >&6
2974 echo "$as_me:$LINENO: result: no" >&5
2975 echo "${ECHO_T}no" >&6
2979 if test -z "$ac_cv_prog_RANLIB"; then
2980 ac_ct_RANLIB
=$RANLIB
2981 # Extract the first word of "ranlib", so it can be a program name with args.
2982 set dummy ranlib
; ac_word
=$2
2983 echo "$as_me:$LINENO: checking for $ac_word" >&5
2984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2985 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2988 if test -n "$ac_ct_RANLIB"; then
2989 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2995 test -z "$as_dir" && as_dir
=.
2996 for ac_exec_ext
in '' $ac_executable_extensions; do
2997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2998 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3008 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3009 if test -n "$ac_ct_RANLIB"; then
3010 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3011 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3013 echo "$as_me:$LINENO: result: no" >&5
3014 echo "${ECHO_T}no" >&6
3017 RANLIB
=$ac_ct_RANLIB
3019 RANLIB
="$ac_cv_prog_RANLIB"
3022 # GNU M4 is needed to build the testsuite.
3023 for ac_prog
in gm4 gnum4
m4
3025 # Extract the first word of "$ac_prog", so it can be a program name with args.
3026 set dummy
$ac_prog; ac_word
=$2
3027 echo "$as_me:$LINENO: checking for $ac_word" >&5
3028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3029 if test "${ac_cv_path_M4+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3034 ac_cv_path_M4
="$M4" # Let the user override the test with a path.
3037 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3041 test -z "$as_dir" && as_dir
=.
3042 for ac_exec_ext
in '' $ac_executable_extensions; do
3043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3044 ac_cv_path_M4
="$as_dir/$ac_word$ac_exec_ext"
3045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 if test -n "$M4"; then
3057 echo "$as_me:$LINENO: result: $M4" >&5
3058 echo "${ECHO_T}$M4" >&6
3060 echo "$as_me:$LINENO: result: no" >&5
3061 echo "${ECHO_T}no" >&6
3064 test -n "$M4" && break
3066 test -n "$M4" || M4
="m4"
3068 echo "$as_me:$LINENO: checking whether m4 supports frozen files" >&5
3069 echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" >&6
3070 if test "${ac_cv_prog_gnu_m4+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 ac_cv_prog_gnu_m4
=no
3074 if test x
"$M4" != x
; then
3075 case `$M4 --help < /dev/null 2>&1` in
3076 *reload
-state*) ac_cv_prog_gnu_m4
=yes ;;
3080 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_m4" >&5
3081 echo "${ECHO_T}$ac_cv_prog_gnu_m4" >&6
3083 if test "$ac_cv_prog_gnu_m4" != yes; then
3084 missing_dir
=`cd $ac_aux_dir && pwd`
3085 M4
="$missing_dir/missing m4"
3088 # Check whether --enable-gcc-warnings or --disable-gcc-warnings was given.
3089 if test "${enable_gcc_warnings+set}" = set; then
3090 enableval
="$enable_gcc_warnings"
3091 case "${enableval}" in
3093 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for gcc-warnings option" >&5
3094 echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;}
3095 { (exit 1); exit 1; }; } ;;
3100 if test "${enableval}" = yes; then
3101 echo "$as_me:$LINENO: checking whether compiler accepts -Wall" >&5
3102 echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6
3104 ac_save_CFLAGS
="$CFLAGS"
3105 CFLAGS
="$CFLAGS -Wall"
3106 cat >conftest.
$ac_ext <<_ACEOF
3107 #line $LINENO "configure"
3108 #include "confdefs.h"
3110 #ifdef F77_DUMMY_MAIN
3114 int F77_DUMMY_MAIN() { return 1; }
3124 rm -f conftest.
$ac_objext
3125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3126 (eval $ac_compile) 2>&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } &&
3130 { ac_try
='test -s conftest.$ac_objext'
3131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }; }; then
3136 WARNING_CFLAGS
="$WARNING_CFLAGS -Wall"
3137 echo "$as_me:$LINENO: result: yes" >&5
3138 echo "${ECHO_T}yes" >&6
3140 echo "$as_me: failed program was:" >&5
3141 cat conftest.
$ac_ext >&5
3142 echo "$as_me:$LINENO: result: no" >&5
3143 echo "${ECHO_T}no" >&6
3145 rm -f conftest.
$ac_objext conftest.
$ac_ext
3146 CFLAGS
="$ac_save_CFLAGS"
3147 echo "$as_me:$LINENO: checking whether compiler accepts -W" >&5
3148 echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6
3150 ac_save_CFLAGS
="$CFLAGS"
3152 cat >conftest.
$ac_ext <<_ACEOF
3153 #line $LINENO "configure"
3154 #include "confdefs.h"
3156 #ifdef F77_DUMMY_MAIN
3160 int F77_DUMMY_MAIN() { return 1; }
3170 rm -f conftest.
$ac_objext
3171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3172 (eval $ac_compile) 2>&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); } &&
3176 { ac_try
='test -s conftest.$ac_objext'
3177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; }; then
3182 WARNING_CFLAGS
="$WARNING_CFLAGS -W"
3183 echo "$as_me:$LINENO: result: yes" >&5
3184 echo "${ECHO_T}yes" >&6
3186 echo "$as_me: failed program was:" >&5
3187 cat conftest.
$ac_ext >&5
3188 echo "$as_me:$LINENO: result: no" >&5
3189 echo "${ECHO_T}no" >&6
3191 rm -f conftest.
$ac_objext conftest.
$ac_ext
3192 CFLAGS
="$ac_save_CFLAGS"
3193 echo "$as_me:$LINENO: checking whether compiler accepts -Wbad-function-cast" >&5
3194 echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6
3196 ac_save_CFLAGS
="$CFLAGS"
3197 CFLAGS
="$CFLAGS -Wbad-function-cast"
3198 cat >conftest.
$ac_ext <<_ACEOF
3199 #line $LINENO "configure"
3200 #include "confdefs.h"
3202 #ifdef F77_DUMMY_MAIN
3206 int F77_DUMMY_MAIN() { return 1; }
3216 rm -f conftest.
$ac_objext
3217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3218 (eval $ac_compile) 2>&5
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); } &&
3222 { ac_try
='test -s conftest.$ac_objext'
3223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); }; }; then
3228 WARNING_CFLAGS
="$WARNING_CFLAGS -Wbad-function-cast"
3229 echo "$as_me:$LINENO: result: yes" >&5
3230 echo "${ECHO_T}yes" >&6
3232 echo "$as_me: failed program was:" >&5
3233 cat conftest.
$ac_ext >&5
3234 echo "$as_me:$LINENO: result: no" >&5
3235 echo "${ECHO_T}no" >&6
3237 rm -f conftest.
$ac_objext conftest.
$ac_ext
3238 CFLAGS
="$ac_save_CFLAGS"
3239 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-align" >&5
3240 echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6
3242 ac_save_CFLAGS
="$CFLAGS"
3243 CFLAGS
="$CFLAGS -Wcast-align"
3244 cat >conftest.
$ac_ext <<_ACEOF
3245 #line $LINENO "configure"
3246 #include "confdefs.h"
3248 #ifdef F77_DUMMY_MAIN
3252 int F77_DUMMY_MAIN() { return 1; }
3262 rm -f conftest.
$ac_objext
3263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3264 (eval $ac_compile) 2>&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); } &&
3268 { ac_try
='test -s conftest.$ac_objext'
3269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; }; then
3274 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-align"
3275 echo "$as_me:$LINENO: result: yes" >&5
3276 echo "${ECHO_T}yes" >&6
3278 echo "$as_me: failed program was:" >&5
3279 cat conftest.
$ac_ext >&5
3280 echo "$as_me:$LINENO: result: no" >&5
3281 echo "${ECHO_T}no" >&6
3283 rm -f conftest.
$ac_objext conftest.
$ac_ext
3284 CFLAGS
="$ac_save_CFLAGS"
3285 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-qual" >&5
3286 echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6
3288 ac_save_CFLAGS
="$CFLAGS"
3289 CFLAGS
="$CFLAGS -Wcast-qual"
3290 cat >conftest.
$ac_ext <<_ACEOF
3291 #line $LINENO "configure"
3292 #include "confdefs.h"
3294 #ifdef F77_DUMMY_MAIN
3298 int F77_DUMMY_MAIN() { return 1; }
3308 rm -f conftest.
$ac_objext
3309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3310 (eval $ac_compile) 2>&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); } &&
3314 { ac_try
='test -s conftest.$ac_objext'
3315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }; }; then
3320 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-qual"
3321 echo "$as_me:$LINENO: result: yes" >&5
3322 echo "${ECHO_T}yes" >&6
3324 echo "$as_me: failed program was:" >&5
3325 cat conftest.
$ac_ext >&5
3326 echo "$as_me:$LINENO: result: no" >&5
3327 echo "${ECHO_T}no" >&6
3329 rm -f conftest.
$ac_objext conftest.
$ac_ext
3330 CFLAGS
="$ac_save_CFLAGS"
3331 echo "$as_me:$LINENO: checking whether compiler accepts -Wformat" >&5
3332 echo $ECHO_N "checking whether compiler accepts -Wformat... $ECHO_C" >&6
3334 ac_save_CFLAGS
="$CFLAGS"
3335 CFLAGS
="$CFLAGS -Wformat"
3336 cat >conftest.
$ac_ext <<_ACEOF
3337 #line $LINENO "configure"
3338 #include "confdefs.h"
3340 #ifdef F77_DUMMY_MAIN
3344 int F77_DUMMY_MAIN() { return 1; }
3354 rm -f conftest.
$ac_objext
3355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3356 (eval $ac_compile) 2>&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); } &&
3360 { ac_try
='test -s conftest.$ac_objext'
3361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }; }; then
3366 WARNING_CFLAGS
="$WARNING_CFLAGS -Wformat"
3367 echo "$as_me:$LINENO: result: yes" >&5
3368 echo "${ECHO_T}yes" >&6
3370 echo "$as_me: failed program was:" >&5
3371 cat conftest.
$ac_ext >&5
3372 echo "$as_me:$LINENO: result: no" >&5
3373 echo "${ECHO_T}no" >&6
3375 rm -f conftest.
$ac_objext conftest.
$ac_ext
3376 CFLAGS
="$ac_save_CFLAGS"
3377 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-declarations" >&5
3378 echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6
3380 ac_save_CFLAGS
="$CFLAGS"
3381 CFLAGS
="$CFLAGS -Wmissing-declarations"
3382 cat >conftest.
$ac_ext <<_ACEOF
3383 #line $LINENO "configure"
3384 #include "confdefs.h"
3386 #ifdef F77_DUMMY_MAIN
3390 int F77_DUMMY_MAIN() { return 1; }
3400 rm -f conftest.
$ac_objext
3401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3402 (eval $ac_compile) 2>&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } &&
3406 { ac_try
='test -s conftest.$ac_objext'
3407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); }; }; then
3412 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-declarations"
3413 echo "$as_me:$LINENO: result: yes" >&5
3414 echo "${ECHO_T}yes" >&6
3416 echo "$as_me: failed program was:" >&5
3417 cat conftest.
$ac_ext >&5
3418 echo "$as_me:$LINENO: result: no" >&5
3419 echo "${ECHO_T}no" >&6
3421 rm -f conftest.
$ac_objext conftest.
$ac_ext
3422 CFLAGS
="$ac_save_CFLAGS"
3423 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-prototypes" >&5
3424 echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6
3426 ac_save_CFLAGS
="$CFLAGS"
3427 CFLAGS
="$CFLAGS -Wmissing-prototypes"
3428 cat >conftest.
$ac_ext <<_ACEOF
3429 #line $LINENO "configure"
3430 #include "confdefs.h"
3432 #ifdef F77_DUMMY_MAIN
3436 int F77_DUMMY_MAIN() { return 1; }
3446 rm -f conftest.
$ac_objext
3447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3448 (eval $ac_compile) 2>&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try
='test -s conftest.$ac_objext'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; }; then
3458 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-prototypes"
3459 echo "$as_me:$LINENO: result: yes" >&5
3460 echo "${ECHO_T}yes" >&6
3462 echo "$as_me: failed program was:" >&5
3463 cat conftest.
$ac_ext >&5
3464 echo "$as_me:$LINENO: result: no" >&5
3465 echo "${ECHO_T}no" >&6
3467 rm -f conftest.
$ac_objext conftest.
$ac_ext
3468 CFLAGS
="$ac_save_CFLAGS"
3469 echo "$as_me:$LINENO: checking whether compiler accepts -Wnested-externs" >&5
3470 echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6
3472 ac_save_CFLAGS
="$CFLAGS"
3473 CFLAGS
="$CFLAGS -Wnested-externs"
3474 cat >conftest.
$ac_ext <<_ACEOF
3475 #line $LINENO "configure"
3476 #include "confdefs.h"
3478 #ifdef F77_DUMMY_MAIN
3482 int F77_DUMMY_MAIN() { return 1; }
3492 rm -f conftest.
$ac_objext
3493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3494 (eval $ac_compile) 2>&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } &&
3498 { ac_try
='test -s conftest.$ac_objext'
3499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); }; }; then
3504 WARNING_CFLAGS
="$WARNING_CFLAGS -Wnested-externs"
3505 echo "$as_me:$LINENO: result: yes" >&5
3506 echo "${ECHO_T}yes" >&6
3508 echo "$as_me: failed program was:" >&5
3509 cat conftest.
$ac_ext >&5
3510 echo "$as_me:$LINENO: result: no" >&5
3511 echo "${ECHO_T}no" >&6
3513 rm -f conftest.
$ac_objext conftest.
$ac_ext
3514 CFLAGS
="$ac_save_CFLAGS"
3515 echo "$as_me:$LINENO: checking whether compiler accepts -Wshadow" >&5
3516 echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6
3518 ac_save_CFLAGS
="$CFLAGS"
3519 CFLAGS
="$CFLAGS -Wshadow"
3520 cat >conftest.
$ac_ext <<_ACEOF
3521 #line $LINENO "configure"
3522 #include "confdefs.h"
3524 #ifdef F77_DUMMY_MAIN
3528 int F77_DUMMY_MAIN() { return 1; }
3538 rm -f conftest.
$ac_objext
3539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3540 (eval $ac_compile) 2>&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } &&
3544 { ac_try
='test -s conftest.$ac_objext'
3545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }; }; then
3550 WARNING_CFLAGS
="$WARNING_CFLAGS -Wshadow"
3551 echo "$as_me:$LINENO: result: yes" >&5
3552 echo "${ECHO_T}yes" >&6
3554 echo "$as_me: failed program was:" >&5
3555 cat conftest.
$ac_ext >&5
3556 echo "$as_me:$LINENO: result: no" >&5
3557 echo "${ECHO_T}no" >&6
3559 rm -f conftest.
$ac_objext conftest.
$ac_ext
3560 CFLAGS
="$ac_save_CFLAGS"
3561 echo "$as_me:$LINENO: checking whether compiler accepts -Wstrict-prototypes" >&5
3562 echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6
3564 ac_save_CFLAGS
="$CFLAGS"
3565 CFLAGS
="$CFLAGS -Wstrict-prototypes"
3566 cat >conftest.
$ac_ext <<_ACEOF
3567 #line $LINENO "configure"
3568 #include "confdefs.h"
3570 #ifdef F77_DUMMY_MAIN
3574 int F77_DUMMY_MAIN() { return 1; }
3584 rm -f conftest.
$ac_objext
3585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3586 (eval $ac_compile) 2>&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } &&
3590 { ac_try
='test -s conftest.$ac_objext'
3591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; }; then
3596 WARNING_CFLAGS
="$WARNING_CFLAGS -Wstrict-prototypes"
3597 echo "$as_me:$LINENO: result: yes" >&5
3598 echo "${ECHO_T}yes" >&6
3600 echo "$as_me: failed program was:" >&5
3601 cat conftest.
$ac_ext >&5
3602 echo "$as_me:$LINENO: result: no" >&5
3603 echo "${ECHO_T}no" >&6
3605 rm -f conftest.
$ac_objext conftest.
$ac_ext
3606 CFLAGS
="$ac_save_CFLAGS"
3607 echo "$as_me:$LINENO: checking whether compiler accepts -Wwrite-strings" >&5
3608 echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6
3610 ac_save_CFLAGS
="$CFLAGS"
3611 CFLAGS
="$CFLAGS -Wwrite-strings"
3612 cat >conftest.
$ac_ext <<_ACEOF
3613 #line $LINENO "configure"
3614 #include "confdefs.h"
3616 #ifdef F77_DUMMY_MAIN
3620 int F77_DUMMY_MAIN() { return 1; }
3630 rm -f conftest.
$ac_objext
3631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3632 (eval $ac_compile) 2>&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } &&
3636 { ac_try
='test -s conftest.$ac_objext'
3637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; }; then
3642 WARNING_CFLAGS
="$WARNING_CFLAGS -Wwrite-strings"
3643 echo "$as_me:$LINENO: result: yes" >&5
3644 echo "${ECHO_T}yes" >&6
3646 echo "$as_me: failed program was:" >&5
3647 cat conftest.
$ac_ext >&5
3648 echo "$as_me:$LINENO: result: no" >&5
3649 echo "${ECHO_T}no" >&6
3651 rm -f conftest.
$ac_objext conftest.
$ac_ext
3652 CFLAGS
="$ac_save_CFLAGS"
3653 CFLAGS
="$CFLAGS $WARNING_CFLAGS"
3656 # Checks for libraries.
3658 cat >>confdefs.h
<<\_ACEOF
3659 #define _GNU_SOURCE 1
3662 # Checks for header files.
3663 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3664 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3665 if test "${ac_cv_header_stdc+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 cat >conftest.
$ac_ext <<_ACEOF
3669 #line $LINENO "configure"
3670 #include "confdefs.h"
3677 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3678 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3680 egrep -v '^ *\+' conftest.er1
>conftest.err
3682 cat conftest.err
>&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); } >/dev
/null
; then
3685 if test -s conftest.err
; then
3686 ac_cpp_err
=$ac_c_preproc_warn_flag
3693 if test -z "$ac_cpp_err"; then
3694 ac_cv_header_stdc
=yes
3696 echo "$as_me: failed program was:" >&5
3697 cat conftest.
$ac_ext >&5
3698 ac_cv_header_stdc
=no
3700 rm -f conftest.err conftest.
$ac_ext
3702 if test $ac_cv_header_stdc = yes; then
3703 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3704 cat >conftest.
$ac_ext <<_ACEOF
3705 #line $LINENO "configure"
3706 #include "confdefs.h"
3710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3711 egrep "memchr" >/dev
/null
2>&1; then
3714 ac_cv_header_stdc
=no
3720 if test $ac_cv_header_stdc = yes; then
3721 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3722 cat >conftest.
$ac_ext <<_ACEOF
3723 #line $LINENO "configure"
3724 #include "confdefs.h"
3728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3729 egrep "free" >/dev
/null
2>&1; then
3732 ac_cv_header_stdc
=no
3738 if test $ac_cv_header_stdc = yes; then
3739 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3740 if test "$cross_compiling" = yes; then
3743 cat >conftest.
$ac_ext <<_ACEOF
3744 #line $LINENO "configure"
3745 #include "confdefs.h"
3747 #if ((' ' & 0x0FF) == 0x020)
3748 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3749 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3751 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3752 || ('j' <= (c) && (c) <= 'r') \
3753 || ('s' <= (c) && (c) <= 'z'))
3754 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3757 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3762 for (i = 0; i < 256; i++)
3763 if (XOR (islower (i), ISLOWER (i))
3764 || toupper (i) != TOUPPER (i))
3769 rm -f conftest
$ac_exeext
3770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3771 (eval $ac_link) 2>&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; }; then
3782 echo "$as_me: program exited with status $ac_status" >&5
3783 echo "$as_me: failed program was:" >&5
3784 cat conftest.
$ac_ext >&5
3785 ac_cv_header_stdc
=no
3787 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3791 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3792 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3793 if test $ac_cv_header_stdc = yes; then
3795 cat >>confdefs.h
<<\_ACEOF
3796 #define STDC_HEADERS 1
3801 for ac_header
in ctype.h locale.h memory.h stdlib.h string.h unistd.h
3803 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3805 echo "$as_me:$LINENO: checking for $ac_header" >&5
3806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3813 # Is the header compilable?
3814 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3816 cat >conftest.
$ac_ext <<_ACEOF
3817 #line $LINENO "configure"
3818 #include "confdefs.h"
3819 $ac_includes_default
3820 #include <$ac_header>
3822 rm -f conftest.
$ac_objext
3823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3824 (eval $ac_compile) 2>&5
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); } &&
3828 { ac_try
='test -s conftest.$ac_objext'
3829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; }; then
3834 ac_header_compiler
=yes
3836 echo "$as_me: failed program was:" >&5
3837 cat conftest.
$ac_ext >&5
3838 ac_header_compiler
=no
3840 rm -f conftest.
$ac_objext conftest.
$ac_ext
3841 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3842 echo "${ECHO_T}$ac_header_compiler" >&6
3844 # Is the header present?
3845 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3847 cat >conftest.
$ac_ext <<_ACEOF
3848 #line $LINENO "configure"
3849 #include "confdefs.h"
3850 #include <$ac_header>
3852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3853 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3855 egrep -v '^ *\+' conftest.er1
>conftest.err
3857 cat conftest.err
>&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); } >/dev
/null
; then
3860 if test -s conftest.err
; then
3861 ac_cpp_err
=$ac_c_preproc_warn_flag
3868 if test -z "$ac_cpp_err"; then
3869 ac_header_preproc
=yes
3871 echo "$as_me: failed program was:" >&5
3872 cat conftest.
$ac_ext >&5
3873 ac_header_preproc
=no
3875 rm -f conftest.err conftest.
$ac_ext
3876 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3877 echo "${ECHO_T}$ac_header_preproc" >&6
3879 # So? What about this header?
3880 case $ac_header_compiler:$ac_header_preproc in
3882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
3888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
3889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3894 echo "$as_me:$LINENO: checking for $ac_header" >&5
3895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3899 eval "$as_ac_Header=$ac_header_preproc"
3901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3906 cat >>confdefs.h
<<_ACEOF
3907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3914 # Checks for typedefs.
3916 # Checks for structures.
3918 # Checks for compiler characteristics.
3919 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3920 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3921 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 ac_cv_prog_cc_stdc
=no
3926 cat >conftest.
$ac_ext <<_ACEOF
3927 #line $LINENO "configure"
3928 #include "confdefs.h"
3931 #include <sys/types.h>
3932 #include <sys/stat.h>
3933 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3934 struct buf { int x; };
3935 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3936 static char *e (p, i)
3942 static char *f (char * (*g) (char **, int), char **p, ...)
3947 s = g (p, va_arg (v,int));
3951 int test (int i, double x);
3952 struct s1 {int (*f) (int a);};
3953 struct s2 {int (*f) (double a);};
3954 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3957 #ifdef F77_DUMMY_MAIN
3961 int F77_DUMMY_MAIN() { return 1; }
3966 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3971 # Don't try gcc -ansi; that turns off useful extensions and
3972 # breaks some systems' header files.
3973 # AIX -qlanglvl=ansi
3974 # Ultrix and OSF/1 -std1
3975 # HP-UX 10.20 and later -Ae
3976 # HP-UX older versions -Aa -D_HPUX_SOURCE
3977 # SVR4 -Xc -D__EXTENSIONS__
3978 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3980 CC
="$ac_save_CC $ac_arg"
3981 rm -f conftest.
$ac_objext
3982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3983 (eval $ac_compile) 2>&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } &&
3987 { ac_try
='test -s conftest.$ac_objext'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; }; then
3993 ac_cv_prog_cc_stdc
=$ac_arg
3996 echo "$as_me: failed program was:" >&5
3997 cat conftest.
$ac_ext >&5
3999 rm -f conftest.
$ac_objext
4001 rm -f conftest.
$ac_ext conftest.
$ac_objext
4006 case "x$ac_cv_prog_cc_stdc" in
4008 echo "$as_me:$LINENO: result: none needed" >&5
4009 echo "${ECHO_T}none needed" >&6 ;;
4011 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4012 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4013 CC
="$CC $ac_cv_prog_cc_stdc" ;;
4016 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4017 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4018 if test "${ac_cv_c_const+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 cat >conftest.
$ac_ext <<_ACEOF
4022 #line $LINENO "configure"
4023 #include "confdefs.h"
4025 #ifdef F77_DUMMY_MAIN
4029 int F77_DUMMY_MAIN() { return 1; }
4034 /* FIXME: Include the comments suggested by Paul. */
4036 /* Ultrix mips cc rejects this. */
4037 typedef int charset[2];
4039 /* SunOS 4.1.1 cc rejects this. */
4040 char const *const *ccp;
4042 /* NEC SVR4.0.2 mips cc rejects this. */
4043 struct point {int x, y;};
4044 static struct point const zero = {0,0};
4045 /* AIX XL C 1.02.0.0 rejects this.
4046 It does not let you subtract one const X* pointer from another in
4047 an arm of an if-expression whose if-part is not a constant
4049 const char *g = "string";
4050 ccp = &g + (g ? g-g : 0);
4051 /* HPUX 7.0 cc rejects these. */
4054 ccp = (char const *const *) p;
4055 { /* SCO 3.2v4 cc rejects this. */
4057 char const *s = 0 ? (char *) 0 : (char const *) 0;
4061 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4063 const int *foo = &x[0];
4066 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4067 typedef const int *iptr;
4071 { /* AIX XL C 1.02.0.0 rejects this saying
4072 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4073 struct s { int j; const int *ap[3]; };
4074 struct s *b; b->j = 5;
4076 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4085 rm -f conftest.
$ac_objext
4086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4087 (eval $ac_compile) 2>&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); } &&
4091 { ac_try
='test -s conftest.$ac_objext'
4092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); }; }; then
4099 echo "$as_me: failed program was:" >&5
4100 cat conftest.
$ac_ext >&5
4103 rm -f conftest.
$ac_objext conftest.
$ac_ext
4105 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4106 echo "${ECHO_T}$ac_cv_c_const" >&6
4107 if test $ac_cv_c_const = no
; then
4109 cat >>confdefs.h
<<\_ACEOF
4115 echo "$as_me:$LINENO: checking for inline" >&5
4116 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4117 if test "${ac_cv_c_inline+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4121 for ac_kw
in inline __inline__ __inline
; do
4122 cat >conftest.
$ac_ext <<_ACEOF
4123 #line $LINENO "configure"
4124 #include "confdefs.h"
4126 static $ac_kw int static_foo () {return 0; }
4127 $ac_kw int foo () {return 0; }
4131 rm -f conftest.
$ac_objext
4132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4133 (eval $ac_compile) 2>&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); } &&
4137 { ac_try
='test -s conftest.$ac_objext'
4138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; }; then
4143 ac_cv_c_inline
=$ac_kw; break
4145 echo "$as_me: failed program was:" >&5
4146 cat conftest.
$ac_ext >&5
4148 rm -f conftest.
$ac_objext conftest.
$ac_ext
4152 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4153 echo "${ECHO_T}$ac_cv_c_inline" >&6
4154 case $ac_cv_c_inline in
4157 cat >>confdefs.h
<<\_ACEOF
4161 *) cat >>confdefs.h
<<_ACEOF
4162 #define inline $ac_cv_c_inline
4167 echo "$as_me:$LINENO: checking for function prototypes" >&5
4168 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4169 if test "$am_cv_prog_cc_stdc" != no
; then
4170 echo "$as_me:$LINENO: result: yes" >&5
4171 echo "${ECHO_T}yes" >&6
4173 cat >>confdefs.h
<<\_ACEOF
4174 #define PROTOTYPES 1
4179 echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6
4181 U
=_ ANSI2KNR
=.
/ansi2knr
4183 # Ensure some checks needed by ansi2knr itself.
4184 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4185 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4186 if test "${ac_cv_header_stdc+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 cat >conftest.
$ac_ext <<_ACEOF
4190 #line $LINENO "configure"
4191 #include "confdefs.h"
4198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4199 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4201 egrep -v '^ *\+' conftest.er1
>conftest.err
4203 cat conftest.err
>&5
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); } >/dev
/null
; then
4206 if test -s conftest.err
; then
4207 ac_cpp_err
=$ac_c_preproc_warn_flag
4214 if test -z "$ac_cpp_err"; then
4215 ac_cv_header_stdc
=yes
4217 echo "$as_me: failed program was:" >&5
4218 cat conftest.
$ac_ext >&5
4219 ac_cv_header_stdc
=no
4221 rm -f conftest.err conftest.
$ac_ext
4223 if test $ac_cv_header_stdc = yes; then
4224 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4225 cat >conftest.
$ac_ext <<_ACEOF
4226 #line $LINENO "configure"
4227 #include "confdefs.h"
4231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4232 egrep "memchr" >/dev
/null
2>&1; then
4235 ac_cv_header_stdc
=no
4241 if test $ac_cv_header_stdc = yes; then
4242 # ISC 2.0.2 stdlib.h does not declare free, 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 "free" >/dev
/null
2>&1; then
4253 ac_cv_header_stdc
=no
4259 if test $ac_cv_header_stdc = yes; then
4260 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4261 if test "$cross_compiling" = yes; then
4264 cat >conftest.
$ac_ext <<_ACEOF
4265 #line $LINENO "configure"
4266 #include "confdefs.h"
4268 #if ((' ' & 0x0FF) == 0x020)
4269 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4270 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4272 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4273 || ('j' <= (c) && (c) <= 'r') \
4274 || ('s' <= (c) && (c) <= 'z'))
4275 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4278 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4283 for (i = 0; i < 256; i++)
4284 if (XOR (islower (i), ISLOWER (i))
4285 || toupper (i) != TOUPPER (i))
4290 rm -f conftest
$ac_exeext
4291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4292 (eval $ac_link) 2>&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; }; then
4303 echo "$as_me: program exited with status $ac_status" >&5
4304 echo "$as_me: failed program was:" >&5
4305 cat conftest.
$ac_ext >&5
4306 ac_cv_header_stdc
=no
4308 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4312 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4313 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4314 if test $ac_cv_header_stdc = yes; then
4316 cat >>confdefs.h
<<\_ACEOF
4317 #define STDC_HEADERS 1
4322 for ac_header
in string.h
4324 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4326 echo "$as_me:$LINENO: checking for $ac_header" >&5
4327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4334 # Is the header compilable?
4335 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4337 cat >conftest.
$ac_ext <<_ACEOF
4338 #line $LINENO "configure"
4339 #include "confdefs.h"
4340 $ac_includes_default
4341 #include <$ac_header>
4343 rm -f conftest.
$ac_objext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4345 (eval $ac_compile) 2>&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } &&
4349 { ac_try
='test -s conftest.$ac_objext'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; }; then
4355 ac_header_compiler
=yes
4357 echo "$as_me: failed program was:" >&5
4358 cat conftest.
$ac_ext >&5
4359 ac_header_compiler
=no
4361 rm -f conftest.
$ac_objext conftest.
$ac_ext
4362 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4363 echo "${ECHO_T}$ac_header_compiler" >&6
4365 # Is the header present?
4366 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4368 cat >conftest.
$ac_ext <<_ACEOF
4369 #line $LINENO "configure"
4370 #include "confdefs.h"
4371 #include <$ac_header>
4373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4374 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4376 egrep -v '^ *\+' conftest.er1
>conftest.err
4378 cat conftest.err
>&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); } >/dev
/null
; then
4381 if test -s conftest.err
; then
4382 ac_cpp_err
=$ac_c_preproc_warn_flag
4389 if test -z "$ac_cpp_err"; then
4390 ac_header_preproc
=yes
4392 echo "$as_me: failed program was:" >&5
4393 cat conftest.
$ac_ext >&5
4394 ac_header_preproc
=no
4396 rm -f conftest.err conftest.
$ac_ext
4397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4398 echo "${ECHO_T}$ac_header_preproc" >&6
4400 # So? What about this header?
4401 case $ac_header_compiler:$ac_header_preproc in
4403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
4409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
4410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4415 echo "$as_me:$LINENO: checking for $ac_header" >&5
4416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4420 eval "$as_ac_Header=$ac_header_preproc"
4422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4427 cat >>confdefs.h
<<_ACEOF
4428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4435 # Checks for library functions.
4436 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4437 # for constant arguments. Useless!
4438 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4439 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4440 if test "${ac_cv_working_alloca_h+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 cat >conftest.
$ac_ext <<_ACEOF
4444 #line $LINENO "configure"
4445 #include "confdefs.h"
4447 #ifdef F77_DUMMY_MAIN
4451 int F77_DUMMY_MAIN() { return 1; }
4456 char *p = (char *) alloca (2 * sizeof (int));
4461 rm -f conftest.
$ac_objext conftest
$ac_exeext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4463 (eval $ac_link) 2>&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } &&
4467 { ac_try
='test -s conftest$ac_exeext'
4468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; }; then
4473 ac_cv_working_alloca_h
=yes
4475 echo "$as_me: failed program was:" >&5
4476 cat conftest.
$ac_ext >&5
4477 ac_cv_working_alloca_h
=no
4479 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4481 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4482 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4483 if test $ac_cv_working_alloca_h = yes; then
4485 cat >>confdefs.h
<<\_ACEOF
4486 #define HAVE_ALLOCA_H 1
4491 echo "$as_me:$LINENO: checking for alloca" >&5
4492 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4493 if test "${ac_cv_func_alloca_works+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4496 cat >conftest.
$ac_ext <<_ACEOF
4497 #line $LINENO "configure"
4498 #include "confdefs.h"
4500 # define alloca __builtin_alloca
4503 # include <malloc.h>
4504 # define alloca _alloca
4507 # include <alloca.h>
4512 # ifndef alloca /* predefined by HP cc +Olibcalls */
4520 #ifdef F77_DUMMY_MAIN
4524 int F77_DUMMY_MAIN() { return 1; }
4529 char *p = (char *) alloca (1);
4534 rm -f conftest.
$ac_objext conftest
$ac_exeext
4535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4536 (eval $ac_link) 2>&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } &&
4540 { ac_try
='test -s conftest$ac_exeext'
4541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; }; then
4546 ac_cv_func_alloca_works
=yes
4548 echo "$as_me: failed program was:" >&5
4549 cat conftest.
$ac_ext >&5
4550 ac_cv_func_alloca_works
=no
4552 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4554 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4555 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4557 if test $ac_cv_func_alloca_works = yes; then
4559 cat >>confdefs.h
<<\_ACEOF
4560 #define HAVE_ALLOCA 1
4564 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4565 # that cause trouble. Some versions do not even contain alloca or
4566 # contain a buggy version. If you still want to use their alloca,
4567 # use ar to extract alloca.o from them instead of compiling alloca.c.
4569 ALLOCA
=alloca.
$ac_objext
4571 cat >>confdefs.h
<<\_ACEOF
4575 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4576 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4577 if test "${ac_cv_os_cray+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 cat >conftest.
$ac_ext <<_ACEOF
4581 #line $LINENO "configure"
4582 #include "confdefs.h"
4583 #if defined(CRAY) && ! defined(CRAY2)
4590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4591 egrep "webecray" >/dev
/null
2>&1; then
4599 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4600 echo "${ECHO_T}$ac_cv_os_cray" >&6
4601 if test $ac_cv_os_cray = yes; then
4602 for ac_func
in _getb67 GETB67 getb67
; do
4603 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4604 echo "$as_me:$LINENO: checking for $ac_func" >&5
4605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4606 if eval "test \"\${$as_ac_var+set}\" = set"; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 cat >conftest.
$ac_ext <<_ACEOF
4610 #line $LINENO "configure"
4611 #include "confdefs.h"
4612 /* System header to define __stub macros and hopefully few prototypes,
4613 which can conflict with char $ac_func (); below. */
4615 /* Override any gcc2 internal prototype to avoid an error. */
4619 /* We use char because int might match the return type of a gcc2
4620 builtin and then its argument prototype would still apply. */
4624 #ifdef F77_DUMMY_MAIN
4628 int F77_DUMMY_MAIN() { return 1; }
4633 /* The GNU C library defines this for functions which it implements
4634 to always fail with ENOSYS. Some functions are actually named
4635 something starting with __ and the normal name is an alias. */
4636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4646 rm -f conftest.
$ac_objext conftest
$ac_exeext
4647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4648 (eval $ac_link) 2>&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } &&
4652 { ac_try
='test -s conftest$ac_exeext'
4653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }; }; then
4658 eval "$as_ac_var=yes"
4660 echo "$as_me: failed program was:" >&5
4661 cat conftest.
$ac_ext >&5
4662 eval "$as_ac_var=no"
4664 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4667 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4668 if test `eval echo '${'$as_ac_var'}'` = yes; then
4670 cat >>confdefs.h
<<_ACEOF
4671 #define CRAY_STACKSEG_END $ac_func
4680 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4681 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4682 if test "${ac_cv_c_stack_direction+set}" = set; then
4683 echo $ECHO_N "(cached) $ECHO_C" >&6
4685 if test "$cross_compiling" = yes; then
4686 ac_cv_c_stack_direction
=0
4688 cat >conftest.
$ac_ext <<_ACEOF
4689 #line $LINENO "configure"
4690 #include "confdefs.h"
4692 find_stack_direction ()
4694 static char *addr = 0;
4699 return find_stack_direction ();
4702 return (&dummy > addr) ? 1 : -1;
4708 exit (find_stack_direction () < 0);
4711 rm -f conftest
$ac_exeext
4712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4713 (eval $ac_link) 2>&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; }; then
4722 ac_cv_c_stack_direction
=1
4724 echo "$as_me: program exited with status $ac_status" >&5
4725 echo "$as_me: failed program was:" >&5
4726 cat conftest.
$ac_ext >&5
4727 ac_cv_c_stack_direction
=-1
4729 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4732 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4733 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4735 cat >>confdefs.h
<<_ACEOF
4736 #define STACK_DIRECTION $ac_cv_c_stack_direction
4741 for ac_func
in mkstemp setlocale
4743 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4744 echo "$as_me:$LINENO: checking for $ac_func" >&5
4745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4746 if eval "test \"\${$as_ac_var+set}\" = set"; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 cat >conftest.
$ac_ext <<_ACEOF
4750 #line $LINENO "configure"
4751 #include "confdefs.h"
4752 /* System header to define __stub macros and hopefully few prototypes,
4753 which can conflict with char $ac_func (); below. */
4755 /* Override any gcc2 internal prototype to avoid an error. */
4759 /* We use char because int might match the return type of a gcc2
4760 builtin and then its argument prototype would still apply. */
4764 #ifdef F77_DUMMY_MAIN
4768 int F77_DUMMY_MAIN() { return 1; }
4773 /* The GNU C library defines this for functions which it implements
4774 to always fail with ENOSYS. Some functions are actually named
4775 something starting with __ and the normal name is an alias. */
4776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4786 rm -f conftest.
$ac_objext conftest
$ac_exeext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4788 (eval $ac_link) 2>&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); } &&
4792 { ac_try
='test -s conftest$ac_exeext'
4793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); }; }; then
4798 eval "$as_ac_var=yes"
4800 echo "$as_me: failed program was:" >&5
4801 cat conftest.
$ac_ext >&5
4802 eval "$as_ac_var=no"
4804 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4807 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4808 if test `eval echo '${'$as_ac_var'}'` = yes; then
4809 cat >>confdefs.h
<<_ACEOF
4810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4816 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
4817 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
4818 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4821 cat >conftest.
$ac_ext <<_ACEOF
4822 #line $LINENO "configure"
4823 #include "confdefs.h"
4824 $ac_includes_default
4825 #ifdef F77_DUMMY_MAIN
4829 int F77_DUMMY_MAIN() { return 1; }
4835 char *p = (char *) stpcpy;
4842 rm -f conftest.
$ac_objext
4843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4844 (eval $ac_compile) 2>&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } &&
4848 { ac_try
='test -s conftest.$ac_objext'
4849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); }; }; then
4854 ac_cv_have_decl_stpcpy
=yes
4856 echo "$as_me: failed program was:" >&5
4857 cat conftest.
$ac_ext >&5
4858 ac_cv_have_decl_stpcpy
=no
4860 rm -f conftest.
$ac_objext conftest.
$ac_ext
4862 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
4863 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
4864 if test $ac_cv_have_decl_stpcpy = yes; then
4866 cat >>confdefs.h
<<_ACEOF
4867 #define HAVE_DECL_STPCPY 1
4871 cat >>confdefs.h
<<_ACEOF
4872 #define HAVE_DECL_STPCPY 0
4876 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
4877 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
4878 if test "${ac_cv_have_decl_strndup+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 cat >conftest.
$ac_ext <<_ACEOF
4882 #line $LINENO "configure"
4883 #include "confdefs.h"
4884 $ac_includes_default
4885 #ifdef F77_DUMMY_MAIN
4889 int F77_DUMMY_MAIN() { return 1; }
4895 char *p = (char *) strndup;
4902 rm -f conftest.
$ac_objext
4903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4904 (eval $ac_compile) 2>&5
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } &&
4908 { ac_try
='test -s conftest.$ac_objext'
4909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }; }; then
4914 ac_cv_have_decl_strndup
=yes
4916 echo "$as_me: failed program was:" >&5
4917 cat conftest.
$ac_ext >&5
4918 ac_cv_have_decl_strndup
=no
4920 rm -f conftest.
$ac_objext conftest.
$ac_ext
4922 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
4923 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
4924 if test $ac_cv_have_decl_strndup = yes; then
4926 cat >>confdefs.h
<<_ACEOF
4927 #define HAVE_DECL_STRNDUP 1
4931 cat >>confdefs.h
<<_ACEOF
4932 #define HAVE_DECL_STRNDUP 0
4936 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
4937 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
4938 if test "${ac_cv_have_decl_strnlen+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 cat >conftest.
$ac_ext <<_ACEOF
4942 #line $LINENO "configure"
4943 #include "confdefs.h"
4944 $ac_includes_default
4945 #ifdef F77_DUMMY_MAIN
4949 int F77_DUMMY_MAIN() { return 1; }
4955 char *p = (char *) strnlen;
4962 rm -f conftest.
$ac_objext
4963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4964 (eval $ac_compile) 2>&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } &&
4968 { ac_try
='test -s conftest.$ac_objext'
4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; }; then
4974 ac_cv_have_decl_strnlen
=yes
4976 echo "$as_me: failed program was:" >&5
4977 cat conftest.
$ac_ext >&5
4978 ac_cv_have_decl_strnlen
=no
4980 rm -f conftest.
$ac_objext conftest.
$ac_ext
4982 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
4983 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
4984 if test $ac_cv_have_decl_strnlen = yes; then
4986 cat >>confdefs.h
<<_ACEOF
4987 #define HAVE_DECL_STRNLEN 1
4991 cat >>confdefs.h
<<_ACEOF
4992 #define HAVE_DECL_STRNLEN 0
4996 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
4997 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
4998 if test "${ac_cv_have_decl_memchr+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5001 cat >conftest.
$ac_ext <<_ACEOF
5002 #line $LINENO "configure"
5003 #include "confdefs.h"
5004 $ac_includes_default
5005 #ifdef F77_DUMMY_MAIN
5009 int F77_DUMMY_MAIN() { return 1; }
5015 char *p = (char *) memchr;
5022 rm -f conftest.
$ac_objext
5023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5024 (eval $ac_compile) 2>&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); } &&
5028 { ac_try
='test -s conftest.$ac_objext'
5029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); }; }; then
5034 ac_cv_have_decl_memchr
=yes
5036 echo "$as_me: failed program was:" >&5
5037 cat conftest.
$ac_ext >&5
5038 ac_cv_have_decl_memchr
=no
5040 rm -f conftest.
$ac_objext conftest.
$ac_ext
5042 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
5043 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
5044 if test $ac_cv_have_decl_memchr = yes; then
5046 cat >>confdefs.h
<<_ACEOF
5047 #define HAVE_DECL_MEMCHR 1
5051 cat >>confdefs.h
<<_ACEOF
5052 #define HAVE_DECL_MEMCHR 0
5057 for ac_func
in stpcpy strndup strnlen strspn memchr
5059 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5060 echo "$as_me:$LINENO: checking for $ac_func" >&5
5061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5062 if eval "test \"\${$as_ac_var+set}\" = set"; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 cat >conftest.
$ac_ext <<_ACEOF
5066 #line $LINENO "configure"
5067 #include "confdefs.h"
5068 /* System header to define __stub macros and hopefully few prototypes,
5069 which can conflict with char $ac_func (); below. */
5071 /* Override any gcc2 internal prototype to avoid an error. */
5075 /* We use char because int might match the return type of a gcc2
5076 builtin and then its argument prototype would still apply. */
5080 #ifdef F77_DUMMY_MAIN
5084 int F77_DUMMY_MAIN() { return 1; }
5089 /* The GNU C library defines this for functions which it implements
5090 to always fail with ENOSYS. Some functions are actually named
5091 something starting with __ and the normal name is an alias. */
5092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5102 rm -f conftest.
$ac_objext conftest
$ac_exeext
5103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5104 (eval $ac_link) 2>&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } &&
5108 { ac_try
='test -s conftest$ac_exeext'
5109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); }; }; then
5114 eval "$as_ac_var=yes"
5116 echo "$as_me: failed program was:" >&5
5117 cat conftest.
$ac_ext >&5
5118 eval "$as_ac_var=no"
5120 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5124 if test `eval echo '${'$as_ac_var'}'` = yes; then
5125 cat >>confdefs.h
<<_ACEOF
5126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5130 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
5134 cat >>confdefs.h
<<_ACEOF
5135 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
5138 echo "$as_me:$LINENO: checking for working malloc" >&5
5139 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
5140 if test "${jm_cv_func_working_malloc+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5143 if test "$cross_compiling" = yes; then
5144 jm_cv_func_working_malloc
=no
5146 cat >conftest.
$ac_ext <<_ACEOF
5147 #line $LINENO "configure"
5148 #include "confdefs.h"
5154 exit (malloc (0) ? 0 : 1);
5158 rm -f conftest
$ac_exeext
5159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5160 (eval $ac_link) 2>&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); }; }; then
5169 jm_cv_func_working_malloc
=yes
5171 echo "$as_me: program exited with status $ac_status" >&5
5172 echo "$as_me: failed program was:" >&5
5173 cat conftest.
$ac_ext >&5
5174 jm_cv_func_working_malloc
=no
5176 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5180 echo "$as_me:$LINENO: result: $jm_cv_func_working_malloc" >&5
5181 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
5182 if test $jm_cv_func_working_malloc = no
; then
5184 LIBOBJS
="$LIBOBJS malloc.$ac_objext"
5186 cat >>confdefs.h
<<_ACEOF
5187 #define malloc rpl_malloc
5192 cat >>confdefs.h
<<_ACEOF
5193 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
5196 echo "$as_me:$LINENO: checking for working realloc" >&5
5197 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
5198 if test "${jm_cv_func_working_realloc+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5201 if test "$cross_compiling" = yes; then
5202 jm_cv_func_working_realloc
=no
5204 cat >conftest.
$ac_ext <<_ACEOF
5205 #line $LINENO "configure"
5206 #include "confdefs.h"
5212 exit (realloc (0, 0) ? 0 : 1);
5216 rm -f conftest
$ac_exeext
5217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5218 (eval $ac_link) 2>&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); }; }; then
5227 jm_cv_func_working_realloc
=yes
5229 echo "$as_me: program exited with status $ac_status" >&5
5230 echo "$as_me: failed program was:" >&5
5231 cat conftest.
$ac_ext >&5
5232 jm_cv_func_working_realloc
=no
5234 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5238 echo "$as_me:$LINENO: result: $jm_cv_func_working_realloc" >&5
5239 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
5240 if test $jm_cv_func_working_realloc = no
; then
5242 LIBOBJS
="$LIBOBJS realloc.$ac_objext"
5244 cat >>confdefs.h
<<_ACEOF
5245 #define realloc rpl_realloc
5250 for ac_func
in isascii iswprint mbsinit
5252 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5253 echo "$as_me:$LINENO: checking for $ac_func" >&5
5254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5255 if eval "test \"\${$as_ac_var+set}\" = set"; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 cat >conftest.
$ac_ext <<_ACEOF
5259 #line $LINENO "configure"
5260 #include "confdefs.h"
5261 /* System header to define __stub macros and hopefully few prototypes,
5262 which can conflict with char $ac_func (); below. */
5264 /* Override any gcc2 internal prototype to avoid an error. */
5268 /* We use char because int might match the return type of a gcc2
5269 builtin and then its argument prototype would still apply. */
5273 #ifdef F77_DUMMY_MAIN
5277 int F77_DUMMY_MAIN() { return 1; }
5282 /* The GNU C library defines this for functions which it implements
5283 to always fail with ENOSYS. Some functions are actually named
5284 something starting with __ and the normal name is an alias. */
5285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5295 rm -f conftest.
$ac_objext conftest
$ac_exeext
5296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5297 (eval $ac_link) 2>&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } &&
5301 { ac_try
='test -s conftest$ac_exeext'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; }; then
5307 eval "$as_ac_var=yes"
5309 echo "$as_me: failed program was:" >&5
5310 cat conftest.
$ac_ext >&5
5311 eval "$as_ac_var=no"
5313 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5317 if test `eval echo '${'$as_ac_var'}'` = yes; then
5318 cat >>confdefs.h
<<_ACEOF
5319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5325 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
5326 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
5327 if test "${jm_cv_func_mbrtowc+set}" = set; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5330 cat >conftest.
$ac_ext <<_ACEOF
5331 #line $LINENO "configure"
5332 #include "confdefs.h"
5334 #ifdef F77_DUMMY_MAIN
5338 int F77_DUMMY_MAIN() { return 1; }
5343 mbstate_t state; return ! (sizeof state && mbrtowc);
5348 rm -f conftest.
$ac_objext conftest
$ac_exeext
5349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5350 (eval $ac_link) 2>&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); } &&
5354 { ac_try
='test -s conftest$ac_exeext'
5355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); }; }; then
5360 jm_cv_func_mbrtowc
=yes
5362 echo "$as_me: failed program was:" >&5
5363 cat conftest.
$ac_ext >&5
5364 jm_cv_func_mbrtowc
=no
5366 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5368 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
5369 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
5370 if test $jm_cv_func_mbrtowc = yes; then
5372 cat >>confdefs.h
<<\_ACEOF
5373 #define HAVE_MBRTOWC 1
5378 for ac_header
in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
5380 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5382 echo "$as_me:$LINENO: checking for $ac_header" >&5
5383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5390 # Is the header compilable?
5391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5393 cat >conftest.
$ac_ext <<_ACEOF
5394 #line $LINENO "configure"
5395 #include "confdefs.h"
5396 $ac_includes_default
5397 #include <$ac_header>
5399 rm -f conftest.
$ac_objext
5400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5401 (eval $ac_compile) 2>&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } &&
5405 { ac_try
='test -s conftest.$ac_objext'
5406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; }; then
5411 ac_header_compiler
=yes
5413 echo "$as_me: failed program was:" >&5
5414 cat conftest.
$ac_ext >&5
5415 ac_header_compiler
=no
5417 rm -f conftest.
$ac_objext conftest.
$ac_ext
5418 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5419 echo "${ECHO_T}$ac_header_compiler" >&6
5421 # Is the header present?
5422 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5424 cat >conftest.
$ac_ext <<_ACEOF
5425 #line $LINENO "configure"
5426 #include "confdefs.h"
5427 #include <$ac_header>
5429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5430 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5432 egrep -v '^ *\+' conftest.er1
>conftest.err
5434 cat conftest.err
>&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); } >/dev
/null
; then
5437 if test -s conftest.err
; then
5438 ac_cpp_err
=$ac_c_preproc_warn_flag
5445 if test -z "$ac_cpp_err"; then
5446 ac_header_preproc
=yes
5448 echo "$as_me: failed program was:" >&5
5449 cat conftest.
$ac_ext >&5
5450 ac_header_preproc
=no
5452 rm -f conftest.err conftest.
$ac_ext
5453 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5454 echo "${ECHO_T}$ac_header_preproc" >&6
5456 # So? What about this header?
5457 case $ac_header_compiler:$ac_header_preproc in
5459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5465 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5467 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5471 echo "$as_me:$LINENO: checking for $ac_header" >&5
5472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 eval "$as_ac_Header=$ac_header_preproc"
5478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5483 cat >>confdefs.h
<<_ACEOF
5484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5491 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5492 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5493 if test "${ac_cv_header_stdc+set}" = set; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5496 cat >conftest.
$ac_ext <<_ACEOF
5497 #line $LINENO "configure"
5498 #include "confdefs.h"
5505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5506 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5508 egrep -v '^ *\+' conftest.er1
>conftest.err
5510 cat conftest.err
>&5
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); } >/dev
/null
; then
5513 if test -s conftest.err
; then
5514 ac_cpp_err
=$ac_c_preproc_warn_flag
5521 if test -z "$ac_cpp_err"; then
5522 ac_cv_header_stdc
=yes
5524 echo "$as_me: failed program was:" >&5
5525 cat conftest.
$ac_ext >&5
5526 ac_cv_header_stdc
=no
5528 rm -f conftest.err conftest.
$ac_ext
5530 if test $ac_cv_header_stdc = yes; then
5531 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5532 cat >conftest.
$ac_ext <<_ACEOF
5533 #line $LINENO "configure"
5534 #include "confdefs.h"
5538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5539 egrep "memchr" >/dev
/null
2>&1; then
5542 ac_cv_header_stdc
=no
5548 if test $ac_cv_header_stdc = yes; then
5549 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5550 cat >conftest.
$ac_ext <<_ACEOF
5551 #line $LINENO "configure"
5552 #include "confdefs.h"
5556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5557 egrep "free" >/dev
/null
2>&1; then
5560 ac_cv_header_stdc
=no
5566 if test $ac_cv_header_stdc = yes; then
5567 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5568 if test "$cross_compiling" = yes; then
5571 cat >conftest.
$ac_ext <<_ACEOF
5572 #line $LINENO "configure"
5573 #include "confdefs.h"
5575 #if ((' ' & 0x0FF) == 0x020)
5576 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5577 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5579 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5580 || ('j' <= (c) && (c) <= 'r') \
5581 || ('s' <= (c) && (c) <= 'z'))
5582 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5585 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5590 for (i = 0; i < 256; i++)
5591 if (XOR (islower (i), ISLOWER (i))
5592 || toupper (i) != TOUPPER (i))
5597 rm -f conftest
$ac_exeext
5598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5599 (eval $ac_link) 2>&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }; }; then
5610 echo "$as_me: program exited with status $ac_status" >&5
5611 echo "$as_me: failed program was:" >&5
5612 cat conftest.
$ac_ext >&5
5613 ac_cv_header_stdc
=no
5615 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5619 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5620 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5621 if test $ac_cv_header_stdc = yes; then
5623 cat >>confdefs.h
<<\_ACEOF
5624 #define STDC_HEADERS 1
5629 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
5630 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
5631 if test "${ac_cv_c_backslash_a+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 cat >conftest.
$ac_ext <<_ACEOF
5635 #line $LINENO "configure"
5636 #include "confdefs.h"
5638 #ifdef F77_DUMMY_MAIN
5642 int F77_DUMMY_MAIN() { return 1; }
5651 char buf['\a' == 'a' ? -1 : 1];
5653 return buf[0] != "\a"[0];
5659 rm -f conftest.
$ac_objext
5660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5661 (eval $ac_compile) 2>&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } &&
5665 { ac_try
='test -s conftest.$ac_objext'
5666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; }; then
5671 ac_cv_c_backslash_a
=yes
5673 echo "$as_me: failed program was:" >&5
5674 cat conftest.
$ac_ext >&5
5675 ac_cv_c_backslash_a
=no
5677 rm -f conftest.
$ac_objext conftest.
$ac_ext
5679 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
5680 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
5681 if test $ac_cv_c_backslash_a = yes; then
5683 cat >>confdefs.h
<<\_ACEOF
5684 #define HAVE_C_BACKSLASH_A 1
5689 for ac_header
in stdlib.h
5691 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5693 echo "$as_me:$LINENO: checking for $ac_header" >&5
5694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5701 # Is the header compilable?
5702 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5704 cat >conftest.
$ac_ext <<_ACEOF
5705 #line $LINENO "configure"
5706 #include "confdefs.h"
5707 $ac_includes_default
5708 #include <$ac_header>
5710 rm -f conftest.
$ac_objext
5711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5712 (eval $ac_compile) 2>&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); } &&
5716 { ac_try
='test -s conftest.$ac_objext'
5717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); }; }; then
5722 ac_header_compiler
=yes
5724 echo "$as_me: failed program was:" >&5
5725 cat conftest.
$ac_ext >&5
5726 ac_header_compiler
=no
5728 rm -f conftest.
$ac_objext conftest.
$ac_ext
5729 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5730 echo "${ECHO_T}$ac_header_compiler" >&6
5732 # Is the header present?
5733 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5735 cat >conftest.
$ac_ext <<_ACEOF
5736 #line $LINENO "configure"
5737 #include "confdefs.h"
5738 #include <$ac_header>
5740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5741 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5743 egrep -v '^ *\+' conftest.er1
>conftest.err
5745 cat conftest.err
>&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } >/dev
/null
; then
5748 if test -s conftest.err
; then
5749 ac_cpp_err
=$ac_c_preproc_warn_flag
5756 if test -z "$ac_cpp_err"; then
5757 ac_header_preproc
=yes
5759 echo "$as_me: failed program was:" >&5
5760 cat conftest.
$ac_ext >&5
5761 ac_header_preproc
=no
5763 rm -f conftest.err conftest.
$ac_ext
5764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5765 echo "${ECHO_T}$ac_header_preproc" >&6
5767 # So? What about this header?
5768 case $ac_header_compiler:$ac_header_preproc in
5770 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5771 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5775 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5776 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5777 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5778 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5782 echo "$as_me:$LINENO: checking for $ac_header" >&5
5783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5787 eval "$as_ac_Header=$ac_header_preproc"
5789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5794 cat >>confdefs.h
<<_ACEOF
5795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5802 echo "$as_me:$LINENO: checking for mbstate_t" >&5
5803 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
5804 if test "${ac_cv_type_mbstate_t+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 cat >conftest.
$ac_ext <<_ACEOF
5808 #line $LINENO "configure"
5809 #include "confdefs.h"
5812 # include <stdlib.h>
5815 #ifdef F77_DUMMY_MAIN
5819 int F77_DUMMY_MAIN() { return 1; }
5824 mbstate_t x; return sizeof x;
5829 rm -f conftest.
$ac_objext
5830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5831 (eval $ac_compile) 2>&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } &&
5835 { ac_try
='test -s conftest.$ac_objext'
5836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; }; then
5841 ac_cv_type_mbstate_t
=yes
5843 echo "$as_me: failed program was:" >&5
5844 cat conftest.
$ac_ext >&5
5845 ac_cv_type_mbstate_t
=no
5847 rm -f conftest.
$ac_objext conftest.
$ac_ext
5849 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
5850 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
5851 if test $ac_cv_type_mbstate_t = no
; then
5853 cat >>confdefs.h
<<\_ACEOF
5854 #define mbstate_t int
5859 echo "$as_me:$LINENO: checking for function prototypes" >&5
5860 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5861 if test "$am_cv_prog_cc_stdc" != no
; then
5862 echo "$as_me:$LINENO: result: yes" >&5
5863 echo "${ECHO_T}yes" >&6
5865 cat >>confdefs.h
<<\_ACEOF
5866 #define PROTOTYPES 1
5871 echo "$as_me:$LINENO: result: no" >&5
5872 echo "${ECHO_T}no" >&6
5873 U
=_ ANSI2KNR
=.
/ansi2knr
5875 # Ensure some checks needed by ansi2knr itself.
5876 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5877 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5878 if test "${ac_cv_header_stdc+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 cat >conftest.
$ac_ext <<_ACEOF
5882 #line $LINENO "configure"
5883 #include "confdefs.h"
5890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5891 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5893 egrep -v '^ *\+' conftest.er1
>conftest.err
5895 cat conftest.err
>&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); } >/dev
/null
; then
5898 if test -s conftest.err
; then
5899 ac_cpp_err
=$ac_c_preproc_warn_flag
5906 if test -z "$ac_cpp_err"; then
5907 ac_cv_header_stdc
=yes
5909 echo "$as_me: failed program was:" >&5
5910 cat conftest.
$ac_ext >&5
5911 ac_cv_header_stdc
=no
5913 rm -f conftest.err conftest.
$ac_ext
5915 if test $ac_cv_header_stdc = yes; then
5916 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5917 cat >conftest.
$ac_ext <<_ACEOF
5918 #line $LINENO "configure"
5919 #include "confdefs.h"
5923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5924 egrep "memchr" >/dev
/null
2>&1; then
5927 ac_cv_header_stdc
=no
5933 if test $ac_cv_header_stdc = yes; then
5934 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5935 cat >conftest.
$ac_ext <<_ACEOF
5936 #line $LINENO "configure"
5937 #include "confdefs.h"
5941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5942 egrep "free" >/dev
/null
2>&1; then
5945 ac_cv_header_stdc
=no
5951 if test $ac_cv_header_stdc = yes; then
5952 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5953 if test "$cross_compiling" = yes; then
5956 cat >conftest.
$ac_ext <<_ACEOF
5957 #line $LINENO "configure"
5958 #include "confdefs.h"
5960 #if ((' ' & 0x0FF) == 0x020)
5961 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5962 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5964 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5965 || ('j' <= (c) && (c) <= 'r') \
5966 || ('s' <= (c) && (c) <= 'z'))
5967 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5970 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5975 for (i = 0; i < 256; i++)
5976 if (XOR (islower (i), ISLOWER (i))
5977 || toupper (i) != TOUPPER (i))
5982 rm -f conftest
$ac_exeext
5983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5984 (eval $ac_link) 2>&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; }; then
5995 echo "$as_me: program exited with status $ac_status" >&5
5996 echo "$as_me: failed program was:" >&5
5997 cat conftest.
$ac_ext >&5
5998 ac_cv_header_stdc
=no
6000 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6004 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6005 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6006 if test $ac_cv_header_stdc = yes; then
6008 cat >>confdefs.h
<<\_ACEOF
6009 #define STDC_HEADERS 1
6014 for ac_header
in string.h
6016 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6018 echo "$as_me:$LINENO: checking for $ac_header" >&5
6019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6026 # Is the header compilable?
6027 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6028 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6029 cat >conftest.
$ac_ext <<_ACEOF
6030 #line $LINENO "configure"
6031 #include "confdefs.h"
6032 $ac_includes_default
6033 #include <$ac_header>
6035 rm -f conftest.
$ac_objext
6036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6037 (eval $ac_compile) 2>&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } &&
6041 { ac_try
='test -s conftest.$ac_objext'
6042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); }; }; then
6047 ac_header_compiler
=yes
6049 echo "$as_me: failed program was:" >&5
6050 cat conftest.
$ac_ext >&5
6051 ac_header_compiler
=no
6053 rm -f conftest.
$ac_objext conftest.
$ac_ext
6054 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6055 echo "${ECHO_T}$ac_header_compiler" >&6
6057 # Is the header present?
6058 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6060 cat >conftest.
$ac_ext <<_ACEOF
6061 #line $LINENO "configure"
6062 #include "confdefs.h"
6063 #include <$ac_header>
6065 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6066 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6068 egrep -v '^ *\+' conftest.er1
>conftest.err
6070 cat conftest.err
>&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); } >/dev
/null
; then
6073 if test -s conftest.err
; then
6074 ac_cpp_err
=$ac_c_preproc_warn_flag
6081 if test -z "$ac_cpp_err"; then
6082 ac_header_preproc
=yes
6084 echo "$as_me: failed program was:" >&5
6085 cat conftest.
$ac_ext >&5
6086 ac_header_preproc
=no
6088 rm -f conftest.err conftest.
$ac_ext
6089 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6090 echo "${ECHO_T}$ac_header_preproc" >&6
6092 # So? What about this header?
6093 case $ac_header_compiler:$ac_header_preproc in
6095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6103 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6107 echo "$as_me:$LINENO: checking for $ac_header" >&5
6108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 eval "$as_ac_Header=$ac_header_preproc"
6114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6119 cat >>confdefs.h
<<_ACEOF
6120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6127 for ac_func
in strerror strerror_r vprintf doprnt
6129 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6130 echo "$as_me:$LINENO: checking for $ac_func" >&5
6131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6132 if eval "test \"\${$as_ac_var+set}\" = set"; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 cat >conftest.
$ac_ext <<_ACEOF
6136 #line $LINENO "configure"
6137 #include "confdefs.h"
6138 /* System header to define __stub macros and hopefully few prototypes,
6139 which can conflict with char $ac_func (); below. */
6141 /* Override any gcc2 internal prototype to avoid an error. */
6145 /* We use char because int might match the return type of a gcc2
6146 builtin and then its argument prototype would still apply. */
6150 #ifdef F77_DUMMY_MAIN
6154 int F77_DUMMY_MAIN() { return 1; }
6159 /* The GNU C library defines this for functions which it implements
6160 to always fail with ENOSYS. Some functions are actually named
6161 something starting with __ and the normal name is an alias. */
6162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6172 rm -f conftest.
$ac_objext conftest
$ac_exeext
6173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6174 (eval $ac_link) 2>&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } &&
6178 { ac_try
='test -s conftest$ac_exeext'
6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }; }; then
6184 eval "$as_ac_var=yes"
6186 echo "$as_me: failed program was:" >&5
6187 cat conftest.
$ac_ext >&5
6188 eval "$as_ac_var=no"
6190 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6193 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6194 if test `eval echo '${'$as_ac_var'}'` = yes; then
6195 cat >>confdefs.h
<<_ACEOF
6196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6202 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6203 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6204 if test "${ac_cv_header_stdc+set}" = set; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6207 cat >conftest.
$ac_ext <<_ACEOF
6208 #line $LINENO "configure"
6209 #include "confdefs.h"
6216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6217 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6219 egrep -v '^ *\+' conftest.er1
>conftest.err
6221 cat conftest.err
>&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } >/dev
/null
; then
6224 if test -s conftest.err
; then
6225 ac_cpp_err
=$ac_c_preproc_warn_flag
6232 if test -z "$ac_cpp_err"; then
6233 ac_cv_header_stdc
=yes
6235 echo "$as_me: failed program was:" >&5
6236 cat conftest.
$ac_ext >&5
6237 ac_cv_header_stdc
=no
6239 rm -f conftest.err conftest.
$ac_ext
6241 if test $ac_cv_header_stdc = yes; then
6242 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6243 cat >conftest.
$ac_ext <<_ACEOF
6244 #line $LINENO "configure"
6245 #include "confdefs.h"
6249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6250 egrep "memchr" >/dev
/null
2>&1; then
6253 ac_cv_header_stdc
=no
6259 if test $ac_cv_header_stdc = yes; then
6260 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6261 cat >conftest.
$ac_ext <<_ACEOF
6262 #line $LINENO "configure"
6263 #include "confdefs.h"
6267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6268 egrep "free" >/dev
/null
2>&1; then
6271 ac_cv_header_stdc
=no
6277 if test $ac_cv_header_stdc = yes; then
6278 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6279 if test "$cross_compiling" = yes; then
6282 cat >conftest.
$ac_ext <<_ACEOF
6283 #line $LINENO "configure"
6284 #include "confdefs.h"
6286 #if ((' ' & 0x0FF) == 0x020)
6287 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6288 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6290 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6291 || ('j' <= (c) && (c) <= 'r') \
6292 || ('s' <= (c) && (c) <= 'z'))
6293 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6296 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6301 for (i = 0; i < 256; i++)
6302 if (XOR (islower (i), ISLOWER (i))
6303 || toupper (i) != TOUPPER (i))
6308 rm -f conftest
$ac_exeext
6309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6310 (eval $ac_link) 2>&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; }; then
6321 echo "$as_me: program exited with status $ac_status" >&5
6322 echo "$as_me: failed program was:" >&5
6323 cat conftest.
$ac_ext >&5
6324 ac_cv_header_stdc
=no
6326 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6330 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6331 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6332 if test $ac_cv_header_stdc = yes; then
6334 cat >>confdefs.h
<<\_ACEOF
6335 #define STDC_HEADERS 1
6340 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
6341 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
6342 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6345 cat >conftest.
$ac_ext <<_ACEOF
6346 #line $LINENO "configure"
6347 #include "confdefs.h"
6348 $ac_includes_default
6349 #ifdef F77_DUMMY_MAIN
6353 int F77_DUMMY_MAIN() { return 1; }
6359 char *p = (char *) strerror_r;
6366 rm -f conftest.
$ac_objext
6367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6368 (eval $ac_compile) 2>&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); } &&
6372 { ac_try
='test -s conftest.$ac_objext'
6373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); }; }; then
6378 ac_cv_have_decl_strerror_r
=yes
6380 echo "$as_me: failed program was:" >&5
6381 cat conftest.
$ac_ext >&5
6382 ac_cv_have_decl_strerror_r
=no
6384 rm -f conftest.
$ac_objext conftest.
$ac_ext
6386 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
6387 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
6388 if test $ac_cv_have_decl_strerror_r = yes; then
6390 cat >>confdefs.h
<<_ACEOF
6391 #define HAVE_DECL_STRERROR_R 1
6395 cat >>confdefs.h
<<_ACEOF
6396 #define HAVE_DECL_STRERROR_R 0
6401 for ac_func
in strerror_r
6403 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6404 echo "$as_me:$LINENO: checking for $ac_func" >&5
6405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6406 if eval "test \"\${$as_ac_var+set}\" = set"; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 cat >conftest.
$ac_ext <<_ACEOF
6410 #line $LINENO "configure"
6411 #include "confdefs.h"
6412 /* System header to define __stub macros and hopefully few prototypes,
6413 which can conflict with char $ac_func (); below. */
6415 /* Override any gcc2 internal prototype to avoid an error. */
6419 /* We use char because int might match the return type of a gcc2
6420 builtin and then its argument prototype would still apply. */
6424 #ifdef F77_DUMMY_MAIN
6428 int F77_DUMMY_MAIN() { return 1; }
6433 /* The GNU C library defines this for functions which it implements
6434 to always fail with ENOSYS. Some functions are actually named
6435 something starting with __ and the normal name is an alias. */
6436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6446 rm -f conftest.
$ac_objext conftest
$ac_exeext
6447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6448 (eval $ac_link) 2>&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } &&
6452 { ac_try
='test -s conftest$ac_exeext'
6453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); }; }; then
6458 eval "$as_ac_var=yes"
6460 echo "$as_me: failed program was:" >&5
6461 cat conftest.
$ac_ext >&5
6462 eval "$as_ac_var=no"
6464 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6467 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6468 if test `eval echo '${'$as_ac_var'}'` = yes; then
6469 cat >>confdefs.h
<<_ACEOF
6470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6476 if test $ac_cv_func_strerror_r = yes; then
6478 for ac_header
in string.h
6480 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6482 echo "$as_me:$LINENO: checking for $ac_header" >&5
6483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6490 # Is the header compilable?
6491 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6492 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6493 cat >conftest.
$ac_ext <<_ACEOF
6494 #line $LINENO "configure"
6495 #include "confdefs.h"
6496 $ac_includes_default
6497 #include <$ac_header>
6499 rm -f conftest.
$ac_objext
6500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6501 (eval $ac_compile) 2>&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); } &&
6505 { ac_try
='test -s conftest.$ac_objext'
6506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; }; then
6511 ac_header_compiler
=yes
6513 echo "$as_me: failed program was:" >&5
6514 cat conftest.
$ac_ext >&5
6515 ac_header_compiler
=no
6517 rm -f conftest.
$ac_objext conftest.
$ac_ext
6518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6519 echo "${ECHO_T}$ac_header_compiler" >&6
6521 # Is the header present?
6522 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6524 cat >conftest.
$ac_ext <<_ACEOF
6525 #line $LINENO "configure"
6526 #include "confdefs.h"
6527 #include <$ac_header>
6529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6530 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6532 egrep -v '^ *\+' conftest.er1
>conftest.err
6534 cat conftest.err
>&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } >/dev
/null
; then
6537 if test -s conftest.err
; then
6538 ac_cpp_err
=$ac_c_preproc_warn_flag
6545 if test -z "$ac_cpp_err"; then
6546 ac_header_preproc
=yes
6548 echo "$as_me: failed program was:" >&5
6549 cat conftest.
$ac_ext >&5
6550 ac_header_preproc
=no
6552 rm -f conftest.err conftest.
$ac_ext
6553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6554 echo "${ECHO_T}$ac_header_preproc" >&6
6556 # So? What about this header?
6557 case $ac_header_compiler:$ac_header_preproc in
6559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6567 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6571 echo "$as_me:$LINENO: checking for $ac_header" >&5
6572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 eval "$as_ac_Header=$ac_header_preproc"
6578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6583 cat >>confdefs.h
<<_ACEOF
6584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6591 echo "$as_me:$LINENO: checking for working strerror_r" >&5
6592 echo $ECHO_N "checking for working strerror_r... $ECHO_C" >&6
6593 if test "${ac_cv_func_strerror_r_works+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
6597 cat >conftest.
$ac_ext <<_ACEOF
6598 #line $LINENO "configure"
6599 #include "confdefs.h"
6603 # include <string.h>
6606 #ifdef F77_DUMMY_MAIN
6610 int F77_DUMMY_MAIN() { return 1; }
6617 char x = *strerror_r (0, buf, sizeof buf);
6623 rm -f conftest.
$ac_objext
6624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6625 (eval $ac_compile) 2>&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); } &&
6629 { ac_try
='test -s conftest.$ac_objext'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; }; then
6635 ac_cv_func_strerror_r_works
=yes
6637 echo "$as_me: failed program was:" >&5
6638 cat conftest.
$ac_ext >&5
6639 ac_cv_func_strerror_r_works
=no
6642 rm -f conftest.
$ac_objext conftest.
$ac_ext
6643 if test $ac_cv_func_strerror_r_works = no
; then
6644 # strerror_r seems not to work, but now we have to choose between
6645 # systems that have relatively inaccessible declarations for the
6646 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
6647 # former has a strerror_r that returns char*, while the latter
6648 # has a strerror_r that returns `int'.
6649 # This test should segfault on the DEC system.
6650 if test "$cross_compiling" = yes; then
6651 ac_cv_func_strerror_r_works
=no
6653 cat >conftest.
$ac_ext <<_ACEOF
6654 #line $LINENO "configure"
6655 #include "confdefs.h"
6658 # include <string.h>
6661 extern char *strerror_r ();
6667 char x = *strerror_r (0, buf, sizeof buf);
6668 exit (!isalpha (x));
6672 rm -f conftest
$ac_exeext
6673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6674 (eval $ac_link) 2>&5
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; }; then
6683 ac_cv_func_strerror_r_works
=yes
6685 echo "$as_me: program exited with status $ac_status" >&5
6686 echo "$as_me: failed program was:" >&5
6687 cat conftest.
$ac_ext >&5
6688 ac_cv_func_strerror_r_works
=no
6690 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6695 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_works" >&5
6696 echo "${ECHO_T}$ac_cv_func_strerror_r_works" >&6
6697 if test $ac_cv_func_strerror_r_works = yes; then
6699 cat >>confdefs.h
<<_ACEOF
6700 #define HAVE_WORKING_STRERROR_R 1
6706 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
6707 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
6709 # Check whether --with-dmalloc or --without-dmalloc was given.
6710 if test "${with_dmalloc+set}" = set; then
6711 withval
="$with_dmalloc"
6712 if test "$withval" = yes; then
6713 echo "$as_me:$LINENO: result: yes" >&5
6714 echo "${ECHO_T}yes" >&6
6716 cat >>confdefs.h
<<\_ACEOF
6717 #define WITH_DMALLOC 1
6720 LIBS
="$LIBS -ldmalloc"
6721 LDFLAGS
="$LDFLAGS -g"
6723 echo "$as_me:$LINENO: result: no" >&5
6724 echo "${ECHO_T}no" >&6
6727 echo "$as_me:$LINENO: result: no" >&5
6728 echo "${ECHO_T}no" >&6
6731 ALL_LINGUAS
="de es et fr ja nl tr ru"
6732 # Make sure we can run config.sub.
6733 $ac_config_sub sun4
>/dev
/null
2>&1 ||
6734 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6735 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6736 { (exit 1); exit 1; }; }
6738 echo "$as_me:$LINENO: checking build system type" >&5
6739 echo $ECHO_N "checking build system type... $ECHO_C" >&6
6740 if test "${ac_cv_build+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6743 ac_cv_build_alias
=$build_alias
6744 test -z "$ac_cv_build_alias" &&
6745 ac_cv_build_alias
=`$ac_config_guess`
6746 test -z "$ac_cv_build_alias" &&
6747 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6748 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6749 { (exit 1); exit 1; }; }
6750 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
6751 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed." >&5
6752 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
6753 { (exit 1); exit 1; }; }
6756 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6757 echo "${ECHO_T}$ac_cv_build" >&6
6759 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6760 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6761 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6763 echo "$as_me:$LINENO: checking host system type" >&5
6764 echo $ECHO_N "checking host system type... $ECHO_C" >&6
6765 if test "${ac_cv_host+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 ac_cv_host_alias
=$host_alias
6769 test -z "$ac_cv_host_alias" &&
6770 ac_cv_host_alias
=$ac_cv_build_alias
6771 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
6772 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6773 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6774 { (exit 1); exit 1; }; }
6777 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6778 echo "${ECHO_T}$ac_cv_host" >&6
6780 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6781 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6782 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6784 echo "$as_me:$LINENO: checking for off_t" >&5
6785 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6786 if test "${ac_cv_type_off_t+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 cat >conftest.
$ac_ext <<_ACEOF
6790 #line $LINENO "configure"
6791 #include "confdefs.h"
6792 $ac_includes_default
6793 #ifdef F77_DUMMY_MAIN
6797 int F77_DUMMY_MAIN() { return 1; }
6810 rm -f conftest.
$ac_objext
6811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6812 (eval $ac_compile) 2>&5
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); } &&
6816 { ac_try
='test -s conftest.$ac_objext'
6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; }; then
6822 ac_cv_type_off_t
=yes
6824 echo "$as_me: failed program was:" >&5
6825 cat conftest.
$ac_ext >&5
6828 rm -f conftest.
$ac_objext conftest.
$ac_ext
6830 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6831 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6832 if test $ac_cv_type_off_t = yes; then
6836 cat >>confdefs.h
<<_ACEOF
6842 echo "$as_me:$LINENO: checking for size_t" >&5
6843 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6844 if test "${ac_cv_type_size_t+set}" = set; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
6847 cat >conftest.
$ac_ext <<_ACEOF
6848 #line $LINENO "configure"
6849 #include "confdefs.h"
6850 $ac_includes_default
6851 #ifdef F77_DUMMY_MAIN
6855 int F77_DUMMY_MAIN() { return 1; }
6862 if (sizeof (size_t))
6868 rm -f conftest.
$ac_objext
6869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6870 (eval $ac_compile) 2>&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); } &&
6874 { ac_try
='test -s conftest.$ac_objext'
6875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); }; }; then
6880 ac_cv_type_size_t
=yes
6882 echo "$as_me: failed program was:" >&5
6883 cat conftest.
$ac_ext >&5
6884 ac_cv_type_size_t
=no
6886 rm -f conftest.
$ac_objext conftest.
$ac_ext
6888 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6889 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6890 if test $ac_cv_type_size_t = yes; then
6894 cat >>confdefs.h
<<_ACEOF
6895 #define size_t unsigned
6900 for ac_header
in stdlib.h unistd.h
6902 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6904 echo "$as_me:$LINENO: checking for $ac_header" >&5
6905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6912 # Is the header compilable?
6913 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6914 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6915 cat >conftest.
$ac_ext <<_ACEOF
6916 #line $LINENO "configure"
6917 #include "confdefs.h"
6918 $ac_includes_default
6919 #include <$ac_header>
6921 rm -f conftest.
$ac_objext
6922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6923 (eval $ac_compile) 2>&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); } &&
6927 { ac_try
='test -s conftest.$ac_objext'
6928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); }; }; then
6933 ac_header_compiler
=yes
6935 echo "$as_me: failed program was:" >&5
6936 cat conftest.
$ac_ext >&5
6937 ac_header_compiler
=no
6939 rm -f conftest.
$ac_objext conftest.
$ac_ext
6940 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6941 echo "${ECHO_T}$ac_header_compiler" >&6
6943 # Is the header present?
6944 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6946 cat >conftest.
$ac_ext <<_ACEOF
6947 #line $LINENO "configure"
6948 #include "confdefs.h"
6949 #include <$ac_header>
6951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6952 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6954 egrep -v '^ *\+' conftest.er1
>conftest.err
6956 cat conftest.err
>&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); } >/dev
/null
; then
6959 if test -s conftest.err
; then
6960 ac_cpp_err
=$ac_c_preproc_warn_flag
6967 if test -z "$ac_cpp_err"; then
6968 ac_header_preproc
=yes
6970 echo "$as_me: failed program was:" >&5
6971 cat conftest.
$ac_ext >&5
6972 ac_header_preproc
=no
6974 rm -f conftest.err conftest.
$ac_ext
6975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6976 echo "${ECHO_T}$ac_header_preproc" >&6
6978 # So? What about this header?
6979 case $ac_header_compiler:$ac_header_preproc in
6981 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6986 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6987 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6988 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6989 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6993 echo "$as_me:$LINENO: checking for $ac_header" >&5
6994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 eval "$as_ac_Header=$ac_header_preproc"
7000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7005 cat >>confdefs.h
<<_ACEOF
7006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7013 for ac_func
in getpagesize
7015 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7016 echo "$as_me:$LINENO: checking for $ac_func" >&5
7017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7018 if eval "test \"\${$as_ac_var+set}\" = set"; then
7019 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 cat >conftest.
$ac_ext <<_ACEOF
7022 #line $LINENO "configure"
7023 #include "confdefs.h"
7024 /* System header to define __stub macros and hopefully few prototypes,
7025 which can conflict with char $ac_func (); below. */
7027 /* Override any gcc2 internal prototype to avoid an error. */
7031 /* We use char because int might match the return type of a gcc2
7032 builtin and then its argument prototype would still apply. */
7036 #ifdef F77_DUMMY_MAIN
7040 int F77_DUMMY_MAIN() { return 1; }
7045 /* The GNU C library defines this for functions which it implements
7046 to always fail with ENOSYS. Some functions are actually named
7047 something starting with __ and the normal name is an alias. */
7048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7058 rm -f conftest.
$ac_objext conftest
$ac_exeext
7059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7060 (eval $ac_link) 2>&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); } &&
7064 { ac_try
='test -s conftest$ac_exeext'
7065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; }; then
7070 eval "$as_ac_var=yes"
7072 echo "$as_me: failed program was:" >&5
7073 cat conftest.
$ac_ext >&5
7074 eval "$as_ac_var=no"
7076 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7079 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7080 if test `eval echo '${'$as_ac_var'}'` = yes; then
7081 cat >>confdefs.h
<<_ACEOF
7082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7088 echo "$as_me:$LINENO: checking for working mmap" >&5
7089 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7090 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7093 if test "$cross_compiling" = yes; then
7094 ac_cv_func_mmap_fixed_mapped
=no
7096 cat >conftest.
$ac_ext <<_ACEOF
7097 #line $LINENO "configure"
7098 #include "confdefs.h"
7099 $ac_includes_default
7100 /* Thanks to Mike Haertel and Jim Avera for this test.
7101 Here is a matrix of mmap possibilities:
7102 mmap private not fixed
7103 mmap private fixed at somewhere currently unmapped
7104 mmap private fixed at somewhere already mapped
7105 mmap shared not fixed
7106 mmap shared fixed at somewhere currently unmapped
7107 mmap shared fixed at somewhere already mapped
7108 For private mappings, we should verify that changes cannot be read()
7109 back from the file, nor mmap's back from the file at a different
7110 address. (There have been systems where private was not correctly
7111 implemented like the infamous i386 svr4.0, and systems where the
7112 VM page cache was not coherent with the file system buffer cache
7113 like early versions of FreeBSD and possibly contemporary NetBSD.)
7114 For shared mappings, we should conversely verify that changes get
7115 propogated back to all the places they're supposed to be.
7117 Grep wants private fixed already mapped.
7118 The main things grep needs to know about mmap are:
7119 * does it exist and is it safe to write into the mmap'd area
7120 * how to use it (BSD variants) */
7123 #include <sys/mman.h>
7125 #if !STDC_HEADERS && !HAVE_STDLIB_H
7129 /* This mess was copied from the GNU getpagesize.h. */
7130 #if !HAVE_GETPAGESIZE
7131 /* Assume that all systems that can run configure have sys/param.h. */
7132 # if !HAVE_SYS_PARAM_H
7133 # define HAVE_SYS_PARAM_H 1
7136 # ifdef _SC_PAGESIZE
7137 # define getpagesize() sysconf(_SC_PAGESIZE)
7138 # else /* no _SC_PAGESIZE */
7139 # if HAVE_SYS_PARAM_H
7140 # include <sys/param.h>
7141 # ifdef EXEC_PAGESIZE
7142 # define getpagesize() EXEC_PAGESIZE
7143 # else /* no EXEC_PAGESIZE */
7145 # define getpagesize() NBPG * CLSIZE
7148 # endif /* no CLSIZE */
7149 # else /* no NBPG */
7151 # define getpagesize() NBPC
7152 # else /* no NBPC */
7154 # define getpagesize() PAGESIZE
7155 # endif /* PAGESIZE */
7156 # endif /* no NBPC */
7157 # endif /* no NBPG */
7158 # endif /* no EXEC_PAGESIZE */
7159 # else /* no HAVE_SYS_PARAM_H */
7160 # define getpagesize() 8192 /* punt totally */
7161 # endif /* no HAVE_SYS_PARAM_H */
7162 # endif /* no _SC_PAGESIZE */
7164 #endif /* no HAVE_GETPAGESIZE */
7169 char *data, *data2, *data3;
7173 pagesize = getpagesize ();
7175 /* First, make a file with some known garbage in it. */
7176 data = (char *) malloc (pagesize);
7179 for (i = 0; i < pagesize; ++i)
7180 *(data + i) = rand ();
7182 fd = creat ("conftest.mmap", 0600);
7185 if (write (fd, data, pagesize) != pagesize)
7189 /* Next, try to mmap the file at a fixed address which already has
7190 something else allocated at it. If we can, also make sure that
7191 we see the same garbage. */
7192 fd = open ("conftest.mmap", O_RDWR);
7195 data2 = (char *) malloc (2 * pagesize);
7198 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7199 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7200 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7202 for (i = 0; i < pagesize; ++i)
7203 if (*(data + i) != *(data2 + i))
7206 /* Finally, make sure that changes to the mapped area do not
7207 percolate back to the file as seen by read(). (This is a bug on
7208 some variants of i386 svr4.0.) */
7209 for (i = 0; i < pagesize; ++i)
7210 *(data2 + i) = *(data2 + i) + 1;
7211 data3 = (char *) malloc (pagesize);
7214 if (read (fd, data3, pagesize) != pagesize)
7216 for (i = 0; i < pagesize; ++i)
7217 if (*(data + i) != *(data3 + i))
7223 rm -f conftest
$ac_exeext
7224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7225 (eval $ac_link) 2>&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); }; }; then
7234 ac_cv_func_mmap_fixed_mapped
=yes
7236 echo "$as_me: program exited with status $ac_status" >&5
7237 echo "$as_me: failed program was:" >&5
7238 cat conftest.
$ac_ext >&5
7239 ac_cv_func_mmap_fixed_mapped
=no
7241 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7244 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7245 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7246 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7248 cat >>confdefs.h
<<\_ACEOF
7255 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7256 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7257 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7260 cat >conftest.
$ac_ext <<_ACEOF
7261 #line $LINENO "configure"
7262 #include "confdefs.h"
7264 #include <features.h>
7265 #ifdef __GNU_LIBRARY__
7266 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7273 egrep "Lucky GNU user" >/dev
/null
2>&1; then
7274 ac_cv_gnu_library_2_1
=yes
7276 ac_cv_gnu_library_2_1
=no
7281 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7282 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7284 GLIBC21
="$ac_cv_gnu_library_2_1"
7286 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7287 stdlib.h string.h unistd.h sys
/param.h
7289 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7291 echo "$as_me:$LINENO: checking for $ac_header" >&5
7292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7299 # Is the header compilable?
7300 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7302 cat >conftest.
$ac_ext <<_ACEOF
7303 #line $LINENO "configure"
7304 #include "confdefs.h"
7305 $ac_includes_default
7306 #include <$ac_header>
7308 rm -f conftest.
$ac_objext
7309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7310 (eval $ac_compile) 2>&5
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); } &&
7314 { ac_try
='test -s conftest.$ac_objext'
7315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); }; }; then
7320 ac_header_compiler
=yes
7322 echo "$as_me: failed program was:" >&5
7323 cat conftest.
$ac_ext >&5
7324 ac_header_compiler
=no
7326 rm -f conftest.
$ac_objext conftest.
$ac_ext
7327 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7328 echo "${ECHO_T}$ac_header_compiler" >&6
7330 # Is the header present?
7331 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7332 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7333 cat >conftest.
$ac_ext <<_ACEOF
7334 #line $LINENO "configure"
7335 #include "confdefs.h"
7336 #include <$ac_header>
7338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7339 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7341 egrep -v '^ *\+' conftest.er1
>conftest.err
7343 cat conftest.err
>&5
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); } >/dev
/null
; then
7346 if test -s conftest.err
; then
7347 ac_cpp_err
=$ac_c_preproc_warn_flag
7354 if test -z "$ac_cpp_err"; then
7355 ac_header_preproc
=yes
7357 echo "$as_me: failed program was:" >&5
7358 cat conftest.
$ac_ext >&5
7359 ac_header_preproc
=no
7361 rm -f conftest.err conftest.
$ac_ext
7362 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7363 echo "${ECHO_T}$ac_header_preproc" >&6
7365 # So? What about this header?
7366 case $ac_header_compiler:$ac_header_preproc in
7368 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7376 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7378 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7380 echo "$as_me:$LINENO: checking for $ac_header" >&5
7381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7385 eval "$as_ac_Header=$ac_header_preproc"
7387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7392 cat >>confdefs.h
<<_ACEOF
7393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7400 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
7401 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
7402 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
7404 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7405 echo "$as_me:$LINENO: checking for $ac_func" >&5
7406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7407 if eval "test \"\${$as_ac_var+set}\" = set"; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7410 cat >conftest.
$ac_ext <<_ACEOF
7411 #line $LINENO "configure"
7412 #include "confdefs.h"
7413 /* System header to define __stub macros and hopefully few prototypes,
7414 which can conflict with char $ac_func (); below. */
7416 /* Override any gcc2 internal prototype to avoid an error. */
7420 /* We use char because int might match the return type of a gcc2
7421 builtin and then its argument prototype would still apply. */
7425 #ifdef F77_DUMMY_MAIN
7429 int F77_DUMMY_MAIN() { return 1; }
7434 /* The GNU C library defines this for functions which it implements
7435 to always fail with ENOSYS. Some functions are actually named
7436 something starting with __ and the normal name is an alias. */
7437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7447 rm -f conftest.
$ac_objext conftest
$ac_exeext
7448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7449 (eval $ac_link) 2>&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } &&
7453 { ac_try
='test -s conftest$ac_exeext'
7454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); }; }; then
7459 eval "$as_ac_var=yes"
7461 echo "$as_me: failed program was:" >&5
7462 cat conftest.
$ac_ext >&5
7463 eval "$as_ac_var=no"
7465 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7468 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7469 if test `eval echo '${'$as_ac_var'}'` = yes; then
7470 cat >>confdefs.h
<<_ACEOF
7471 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7477 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7478 if test "${with_libiconv_prefix+set}" = set; then
7479 withval
="$with_libiconv_prefix"
7481 for dir
in `echo "$withval" | tr : ' '`; do
7482 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
7483 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
7488 echo "$as_me:$LINENO: checking for iconv" >&5
7489 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7490 if test "${am_cv_func_iconv+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7494 am_cv_func_iconv
="no, consider installing GNU libiconv"
7496 cat >conftest.
$ac_ext <<_ACEOF
7497 #line $LINENO "configure"
7498 #include "confdefs.h"
7501 #ifdef F77_DUMMY_MAIN
7505 int F77_DUMMY_MAIN() { return 1; }
7510 iconv_t cd = iconv_open("","");
7511 iconv(cd,NULL,NULL,NULL,NULL);
7517 rm -f conftest.
$ac_objext conftest
$ac_exeext
7518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7519 (eval $ac_link) 2>&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); } &&
7523 { ac_try
='test -s conftest$ac_exeext'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; }; then
7529 am_cv_func_iconv
=yes
7531 echo "$as_me: failed program was:" >&5
7532 cat conftest.
$ac_ext >&5
7534 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7535 if test "$am_cv_func_iconv" != yes; then
7536 am_save_LIBS
="$LIBS"
7537 LIBS
="$LIBS -liconv"
7538 cat >conftest.
$ac_ext <<_ACEOF
7539 #line $LINENO "configure"
7540 #include "confdefs.h"
7543 #ifdef F77_DUMMY_MAIN
7547 int F77_DUMMY_MAIN() { return 1; }
7552 iconv_t cd = iconv_open("","");
7553 iconv(cd,NULL,NULL,NULL,NULL);
7559 rm -f conftest.
$ac_objext conftest
$ac_exeext
7560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7561 (eval $ac_link) 2>&5
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); } &&
7565 { ac_try
='test -s conftest$ac_exeext'
7566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); }; }; then
7572 am_cv_func_iconv
=yes
7574 echo "$as_me: failed program was:" >&5
7575 cat conftest.
$ac_ext >&5
7577 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7578 LIBS
="$am_save_LIBS"
7582 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7583 echo "${ECHO_T}$am_cv_func_iconv" >&6
7584 if test "$am_cv_func_iconv" = yes; then
7586 cat >>confdefs.h
<<\_ACEOF
7587 #define HAVE_ICONV 1
7590 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7591 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7592 if test "${am_cv_proto_iconv+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7596 cat >conftest.
$ac_ext <<_ACEOF
7597 #line $LINENO "configure"
7598 #include "confdefs.h"
7606 #if defined(__STDC__) || defined(__cplusplus)
7607 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7612 #ifdef F77_DUMMY_MAIN
7616 int F77_DUMMY_MAIN() { return 1; }
7626 rm -f conftest.
$ac_objext
7627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7628 (eval $ac_compile) 2>&5
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); } &&
7632 { ac_try
='test -s conftest.$ac_objext'
7633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); }; }; then
7638 am_cv_proto_iconv_arg1
=""
7640 echo "$as_me: failed program was:" >&5
7641 cat conftest.
$ac_ext >&5
7642 am_cv_proto_iconv_arg1
="const"
7644 rm -f conftest.
$ac_objext conftest.
$ac_ext
7645 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);"
7648 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7649 echo "$as_me:$LINENO: result: ${ac_t:-
7650 }$am_cv_proto_iconv" >&5
7651 echo "${ECHO_T}${ac_t:-
7652 }$am_cv_proto_iconv" >&6
7654 cat >>confdefs.h
<<_ACEOF
7655 #define ICONV_CONST $am_cv_proto_iconv_arg1
7660 if test "$am_cv_lib_iconv" = yes; then
7664 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7665 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7666 if test "${am_cv_langinfo_codeset+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 cat >conftest.
$ac_ext <<_ACEOF
7670 #line $LINENO "configure"
7671 #include "confdefs.h"
7672 #include <langinfo.h>
7673 #ifdef F77_DUMMY_MAIN
7677 int F77_DUMMY_MAIN() { return 1; }
7682 char* cs = nl_langinfo(CODESET);
7687 rm -f conftest.
$ac_objext conftest
$ac_exeext
7688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7689 (eval $ac_link) 2>&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } &&
7693 { ac_try
='test -s conftest$ac_exeext'
7694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); }; }; then
7699 am_cv_langinfo_codeset
=yes
7701 echo "$as_me: failed program was:" >&5
7702 cat conftest.
$ac_ext >&5
7703 am_cv_langinfo_codeset
=no
7705 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7708 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7709 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7710 if test $am_cv_langinfo_codeset = yes; then
7712 cat >>confdefs.h
<<\_ACEOF
7713 #define HAVE_LANGINFO_CODESET 1
7718 if test $ac_cv_header_locale_h = yes; then
7719 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7720 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7721 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7724 cat >conftest.
$ac_ext <<_ACEOF
7725 #line $LINENO "configure"
7726 #include "confdefs.h"
7728 #ifdef F77_DUMMY_MAIN
7732 int F77_DUMMY_MAIN() { return 1; }
7742 rm -f conftest.
$ac_objext conftest
$ac_exeext
7743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7744 (eval $ac_link) 2>&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } &&
7748 { ac_try
='test -s conftest$ac_exeext'
7749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); }; }; then
7754 am_cv_val_LC_MESSAGES
=yes
7756 echo "$as_me: failed program was:" >&5
7757 cat conftest.
$ac_ext >&5
7758 am_cv_val_LC_MESSAGES
=no
7760 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7762 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7763 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7764 if test $am_cv_val_LC_MESSAGES = yes; then
7766 cat >>confdefs.h
<<\_ACEOF
7767 #define HAVE_LC_MESSAGES 1
7772 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7773 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7774 # Check whether --enable-nls or --disable-nls was given.
7775 if test "${enable_nls+set}" = set; then
7776 enableval
="$enable_nls"
7781 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7782 echo "${ECHO_T}$USE_NLS" >&6
7784 BUILD_INCLUDED_LIBINTL
=no
7785 USE_INCLUDED_LIBINTL
=no
7788 if test "$USE_NLS" = "yes"; then
7790 cat >>confdefs.h
<<\_ACEOF
7791 #define ENABLE_NLS 1
7794 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7795 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7797 # Check whether --with-included-gettext or --without-included-gettext was given.
7798 if test "${with_included_gettext+set}" = set; then
7799 withval
="$with_included_gettext"
7800 nls_cv_force_use_gnu_gettext
=$withval
7802 nls_cv_force_use_gnu_gettext
=no
7804 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7805 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7807 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7808 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7811 if test "${ac_cv_header_libintl_h+set}" = set; then
7812 echo "$as_me:$LINENO: checking for libintl.h" >&5
7813 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7814 if test "${ac_cv_header_libintl_h+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7818 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7820 # Is the header compilable?
7821 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7822 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7823 cat >conftest.
$ac_ext <<_ACEOF
7824 #line $LINENO "configure"
7825 #include "confdefs.h"
7826 $ac_includes_default
7827 #include <libintl.h>
7829 rm -f conftest.
$ac_objext
7830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7831 (eval $ac_compile) 2>&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); } &&
7835 { ac_try
='test -s conftest.$ac_objext'
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; }; then
7841 ac_header_compiler
=yes
7843 echo "$as_me: failed program was:" >&5
7844 cat conftest.
$ac_ext >&5
7845 ac_header_compiler
=no
7847 rm -f conftest.
$ac_objext conftest.
$ac_ext
7848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7849 echo "${ECHO_T}$ac_header_compiler" >&6
7851 # Is the header present?
7852 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7853 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7854 cat >conftest.
$ac_ext <<_ACEOF
7855 #line $LINENO "configure"
7856 #include "confdefs.h"
7857 #include <libintl.h>
7859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7860 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7862 egrep -v '^ *\+' conftest.er1
>conftest.err
7864 cat conftest.err
>&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } >/dev
/null
; then
7867 if test -s conftest.err
; then
7868 ac_cpp_err
=$ac_c_preproc_warn_flag
7875 if test -z "$ac_cpp_err"; then
7876 ac_header_preproc
=yes
7878 echo "$as_me: failed program was:" >&5
7879 cat conftest.
$ac_ext >&5
7880 ac_header_preproc
=no
7882 rm -f conftest.err conftest.
$ac_ext
7883 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7884 echo "${ECHO_T}$ac_header_preproc" >&6
7886 # So? What about this header?
7887 case $ac_header_compiler:$ac_header_preproc in
7889 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7890 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7891 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7892 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7894 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled." >&5
7895 echo "$as_me: WARNING: libintl.h: present but cannot be compiled." >&2;}
7896 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7897 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7898 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7899 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7901 echo "$as_me:$LINENO: checking for libintl.h" >&5
7902 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7903 if test "${ac_cv_header_libintl_h+set}" = set; then
7904 echo $ECHO_N "(cached) $ECHO_C" >&6
7906 ac_cv_header_libintl_h
=$ac_header_preproc
7908 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7909 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7912 if test $ac_cv_header_libintl_h = yes; then
7913 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
7914 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
7915 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7918 cat >conftest.
$ac_ext <<_ACEOF
7919 #line $LINENO "configure"
7920 #include "confdefs.h"
7921 #include <libintl.h>
7922 extern int _nl_msg_cat_cntr;
7923 #ifdef F77_DUMMY_MAIN
7927 int F77_DUMMY_MAIN() { return 1; }
7932 bindtextdomain ("", "");
7933 return (int) gettext ("") + _nl_msg_cat_cntr
7938 rm -f conftest.
$ac_objext conftest
$ac_exeext
7939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7940 (eval $ac_link) 2>&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } &&
7944 { ac_try
='test -s conftest$ac_exeext'
7945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); }; }; then
7950 gt_cv_func_gnugettext1_libc
=yes
7952 echo "$as_me: failed program was:" >&5
7953 cat conftest.
$ac_ext >&5
7954 gt_cv_func_gnugettext1_libc
=no
7956 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7958 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
7959 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
7961 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
7962 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7963 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
7964 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7965 echo $ECHO_N "(cached) $ECHO_C" >&6
7967 gt_save_LIBS
="$LIBS"
7968 LIBS
="$LIBS -lintl $LIBICONV"
7969 cat >conftest.
$ac_ext <<_ACEOF
7970 #line $LINENO "configure"
7971 #include "confdefs.h"
7972 #include <libintl.h>
7973 extern int _nl_msg_cat_cntr;
7974 #ifdef F77_DUMMY_MAIN
7978 int F77_DUMMY_MAIN() { return 1; }
7983 bindtextdomain ("", "");
7984 return (int) gettext ("") + _nl_msg_cat_cntr
7989 rm -f conftest.
$ac_objext conftest
$ac_exeext
7990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7991 (eval $ac_link) 2>&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); } &&
7995 { ac_try
='test -s conftest$ac_exeext'
7996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); }; }; then
8001 gt_cv_func_gnugettext1_libintl
=yes
8003 echo "$as_me: failed program was:" >&5
8004 cat conftest.
$ac_ext >&5
8005 gt_cv_func_gnugettext1_libintl
=no
8007 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8008 LIBS
="$gt_save_LIBS"
8010 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
8011 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
8014 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
8015 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
8016 && test "$PACKAGE" != gettext; }; then
8018 cat >>confdefs.h
<<\_ACEOF
8019 #define HAVE_GETTEXT 1
8022 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
8023 INTLLIBS
="-lintl $LIBICONV"
8026 gt_save_LIBS
="$LIBS"
8027 LIBS
="$LIBS $INTLLIBS"
8029 for ac_func
in dcgettext
8031 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8032 echo "$as_me:$LINENO: checking for $ac_func" >&5
8033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8034 if eval "test \"\${$as_ac_var+set}\" = set"; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8037 cat >conftest.
$ac_ext <<_ACEOF
8038 #line $LINENO "configure"
8039 #include "confdefs.h"
8040 /* System header to define __stub macros and hopefully few prototypes,
8041 which can conflict with char $ac_func (); below. */
8043 /* Override any gcc2 internal prototype to avoid an error. */
8047 /* We use char because int might match the return type of a gcc2
8048 builtin and then its argument prototype would still apply. */
8052 #ifdef F77_DUMMY_MAIN
8056 int F77_DUMMY_MAIN() { return 1; }
8061 /* The GNU C library defines this for functions which it implements
8062 to always fail with ENOSYS. Some functions are actually named
8063 something starting with __ and the normal name is an alias. */
8064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8074 rm -f conftest.
$ac_objext conftest
$ac_exeext
8075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8076 (eval $ac_link) 2>&5
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); } &&
8080 { ac_try
='test -s conftest$ac_exeext'
8081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); }; }; then
8086 eval "$as_ac_var=yes"
8088 echo "$as_me: failed program was:" >&5
8089 cat conftest.
$ac_ext >&5
8090 eval "$as_ac_var=no"
8092 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8095 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8096 if test `eval echo '${'$as_ac_var'}'` = yes; then
8097 cat >>confdefs.h
<<_ACEOF
8098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8104 LIBS
="$gt_save_LIBS"
8106 # Extract the first word of "msgfmt", so it can be a program name with args.
8107 set dummy msgfmt
; ac_word
=$2
8108 echo "$as_me:$LINENO: checking for $ac_word" >&5
8109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8110 if test "${ac_cv_path_MSGFMT+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8115 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8118 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8119 for ac_dir
in $PATH; do
8120 test -z "$ac_dir" && ac_dir
=.
8121 if test -f $ac_dir/$ac_word; then
8122 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8123 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8129 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8133 MSGFMT
="$ac_cv_path_MSGFMT"
8134 if test "$MSGFMT" != ":"; then
8135 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8136 echo "${ECHO_T}$MSGFMT" >&6
8138 echo "$as_me:$LINENO: result: no" >&5
8139 echo "${ECHO_T}no" >&6
8142 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8143 set dummy gmsgfmt
; ac_word
=$2
8144 echo "$as_me:$LINENO: checking for $ac_word" >&5
8145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8146 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8147 echo $ECHO_N "(cached) $ECHO_C" >&6
8151 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8154 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8158 test -z "$as_dir" && as_dir
=.
8159 for ac_exec_ext
in '' $ac_executable_extensions; do
8160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8161 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8168 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8172 GMSGFMT
=$ac_cv_path_GMSGFMT
8174 if test -n "$GMSGFMT"; then
8175 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8176 echo "${ECHO_T}$GMSGFMT" >&6
8178 echo "$as_me:$LINENO: result: no" >&5
8179 echo "${ECHO_T}no" >&6
8182 # Extract the first word of "xgettext", so it can be a program name with args.
8183 set dummy xgettext
; ac_word
=$2
8184 echo "$as_me:$LINENO: checking for $ac_word" >&5
8185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8186 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8187 echo $ECHO_N "(cached) $ECHO_C" >&6
8191 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8194 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8195 for ac_dir
in $PATH; do
8196 test -z "$ac_dir" && ac_dir
=.
8197 if test -f $ac_dir/$ac_word; then
8198 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8199 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8205 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8209 XGETTEXT
="$ac_cv_path_XGETTEXT"
8210 if test "$XGETTEXT" != ":"; then
8211 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8212 echo "${ECHO_T}$XGETTEXT" >&6
8214 echo "$as_me:$LINENO: result: no" >&5
8215 echo "${ECHO_T}no" >&6
8223 if test "$CATOBJEXT" = "NONE"; then
8224 nls_cv_use_gnu_gettext
=yes
8228 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8229 INTLOBJS
="\$(GETTOBJS)"
8230 # Extract the first word of "msgfmt", so it can be a program name with args.
8231 set dummy msgfmt
; ac_word
=$2
8232 echo "$as_me:$LINENO: checking for $ac_word" >&5
8233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8234 if test "${ac_cv_path_MSGFMT+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8239 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8242 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8243 for ac_dir
in $PATH; do
8244 test -z "$ac_dir" && ac_dir
=.
8245 if test -f $ac_dir/$ac_word; then
8246 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8247 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8253 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8257 MSGFMT
="$ac_cv_path_MSGFMT"
8258 if test "$MSGFMT" != ":"; then
8259 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8260 echo "${ECHO_T}$MSGFMT" >&6
8262 echo "$as_me:$LINENO: result: no" >&5
8263 echo "${ECHO_T}no" >&6
8266 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8267 set dummy gmsgfmt
; ac_word
=$2
8268 echo "$as_me:$LINENO: checking for $ac_word" >&5
8269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8270 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8275 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8278 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8282 test -z "$as_dir" && as_dir
=.
8283 for ac_exec_ext
in '' $ac_executable_extensions; do
8284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8285 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8292 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8296 GMSGFMT
=$ac_cv_path_GMSGFMT
8298 if test -n "$GMSGFMT"; then
8299 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8300 echo "${ECHO_T}$GMSGFMT" >&6
8302 echo "$as_me:$LINENO: result: no" >&5
8303 echo "${ECHO_T}no" >&6
8306 # Extract the first word of "xgettext", so it can be a program name with args.
8307 set dummy xgettext
; ac_word
=$2
8308 echo "$as_me:$LINENO: checking for $ac_word" >&5
8309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8310 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8311 echo $ECHO_N "(cached) $ECHO_C" >&6
8315 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8318 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8319 for ac_dir
in $PATH; do
8320 test -z "$ac_dir" && ac_dir
=.
8321 if test -f $ac_dir/$ac_word; then
8322 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8323 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8329 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8333 XGETTEXT
="$ac_cv_path_XGETTEXT"
8334 if test "$XGETTEXT" != ":"; then
8335 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8336 echo "${ECHO_T}$XGETTEXT" >&6
8338 echo "$as_me:$LINENO: result: no" >&5
8339 echo "${ECHO_T}no" >&6
8342 BUILD_INCLUDED_LIBINTL
=yes
8343 USE_INCLUDED_LIBINTL
=yes
8345 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
8346 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8349 if test "$GMSGFMT" != ":"; then
8350 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
8353 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
8354 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
8359 if test "$XGETTEXT" != ":"; then
8360 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
8363 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8364 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8371 ac_config_commands
="$ac_config_commands default-2"
8373 if test "$PACKAGE" = gettext; then
8374 BUILD_INCLUDED_LIBINTL
=yes
8377 for ac_prog
in bison
8379 # Extract the first word of "$ac_prog", so it can be a program name with args.
8380 set dummy
$ac_prog; ac_word
=$2
8381 echo "$as_me:$LINENO: checking for $ac_word" >&5
8382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8383 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8386 if test -n "$INTLBISON"; then
8387 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
8389 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8393 test -z "$as_dir" && as_dir
=.
8394 for ac_exec_ext
in '' $ac_executable_extensions; do
8395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8396 ac_cv_prog_INTLBISON
="$ac_prog"
8397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8405 INTLBISON
=$ac_cv_prog_INTLBISON
8406 if test -n "$INTLBISON"; then
8407 echo "$as_me:$LINENO: result: $INTLBISON" >&5
8408 echo "${ECHO_T}$INTLBISON" >&6
8410 echo "$as_me:$LINENO: result: no" >&5
8411 echo "${ECHO_T}no" >&6
8414 test -n "$INTLBISON" && break
8417 if test -z "$INTLBISON"; then
8420 echo "$as_me:$LINENO: checking version of bison" >&5
8421 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8422 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8423 case $ac_prog_version in
8424 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
8425 1.2[6-9]* | 1.
[3-9][0-9]* | [2-9].
*)
8426 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
8427 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
8429 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8430 echo "${ECHO_T}$ac_prog_version" >&6
8432 if test $ac_verc_fail = yes; then
8436 for lang
in $ALL_LINGUAS; do
8437 GMOFILES
="$GMOFILES $lang.gmo"
8438 POFILES
="$POFILES $lang.po"
8442 nls_cv_header_libgt
=
8450 if test "x$CATOBJEXT" != "x"; then
8451 if test "x$ALL_LINGUAS" = "x"; then
8454 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8455 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8457 for presentlang
in $ALL_LINGUAS; do
8459 for desiredlang
in ${LINGUAS-$ALL_LINGUAS}; do
8460 # Use the presentlang catalog if desiredlang is
8461 # a. equal to presentlang, or
8462 # b. a variant of presentlang (because in this case,
8463 # presentlang can be used as a fallback for messages
8464 # which are not translated in the desiredlang catalog).
8465 case "$desiredlang" in
8466 "$presentlang"*) useit
=yes;;
8469 if test $useit = yes; then
8470 NEW_LINGUAS
="$NEW_LINGUAS $presentlang"
8473 LINGUAS
=$NEW_LINGUAS
8474 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8475 echo "${ECHO_T}$LINGUAS" >&6
8478 if test -n "$LINGUAS"; then
8479 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8484 if test -n "$ac_aux_dir"; then
8485 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8487 if test -z "$MKINSTALLDIRS"; then
8488 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8491 INTL_LIBTOOL_SUFFIX_PREFIX
=
8493 # This is necessary so that .o files in LIBOBJS are also built via
8494 # the ANSI2KNR-filtering rules.
8495 LIBOBJS
=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
8497 ac_config_files
="$ac_config_files Makefile config/Makefile intl/Makefile po/Makefile.in lib/Makefile src/Makefile doc/Makefile m4/Makefile tests/Makefile"
8498 cat >confcache
<<\_ACEOF
8499 # This file is a shell script that caches the results of configure
8500 # tests run on this system so they can be shared between configure
8501 # scripts and configure runs, see configure's option --config-cache.
8502 # It is not useful on other systems. If it contains results you don't
8503 # want to keep, you may remove or edit it.
8505 # config.status only pays attention to the cache file if you give it
8506 # the --recheck option to rerun configure.
8508 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8509 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8514 # The following way of writing the cache mishandles newlines in values,
8515 # but we know of no workaround that is simple, portable, and efficient.
8516 # So, don't put newlines in cache variables' values.
8517 # Ultrix sh set writes to stderr and can't be redirected directly,
8518 # and sets the high bit in the cache file unless we assign to the vars.
8521 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8523 # `set' does not quote correctly, so add quotes (double-quote
8524 # substitution turns \\\\ into \\, and sed turns \\ into \).
8527 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8530 # `set' quotes correctly as required by POSIX, so do not add quotes.
8532 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8539 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8541 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8543 if cmp -s $cache_file confcache
; then :; else
8544 if test -w $cache_file; then
8545 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8546 cat confcache
>$cache_file
8548 echo "not updating unwritable cache $cache_file"
8553 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8554 # Let make expand exec_prefix.
8555 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8557 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8558 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8559 # trailing colons and then remove the whole line if VPATH becomes empty
8560 # (actually we leave an empty line to preserve line numbers).
8561 if test "x$srcdir" = x.
; then
8562 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8563 s/:*\$(srcdir):*/:/;
8564 s/:*\${srcdir}:*/:/;
8566 s/^\([^=]*=[ ]*\):*/\1/;
8572 DEFS
=-DHAVE_CONFIG_H
8574 : ${CONFIG_STATUS=./config.status}
8575 ac_clean_files_save
=$ac_clean_files
8576 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8577 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8578 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8579 cat >$CONFIG_STATUS <<_ACEOF
8581 # Generated automatically by $as_me.
8582 # Run this file to recreate the current configuration.
8583 # Compiler output produced by configure, useful for debugging
8584 # configure, is in config.log if it exists.
8587 SHELL=\${CONFIG_SHELL-$SHELL}
8590 cat >>$CONFIG_STATUS <<\_ACEOF
8592 ## --------------------- ##
8593 ## M4sh Initialization. ##
8594 ## --------------------- ##
8596 # Be Bourne compatible
8597 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8600 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8604 # Name of the executable.
8605 as_me
=`echo "$0" |sed 's,\(.*[\\/]\+\)\?\([^\\/]\+\)[\\/]*,\2,'`
8607 # If LINENO is not supported by the shell, produce a version of this
8608 # script where LINENO is hard coded. Rewrite if not up to date only.
8609 # Comparing LINENO against _oline_ is not a good solution, since in
8610 # the case of embedded executables (such as config.status within
8611 # configure) you'd compare LINENO wrt config.status vs. _oline_ vs
8612 # configure. Hence a useless rewrite (not to mention the risk of
8613 # ``infinite'' rewrites. Merely check that LINENO is incremented
8614 # between two lines, which is a property guaranteed for _oline_, hence
8615 # it protects us from repetitive rewrites. Be sure to have a test
8616 # that does detect non LINENO support...
8619 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev
/null
`
8620 if test "x$as_lineno_1" = "x$as_lineno_2" ||
8621 test "x$as_lineno_3" != "x$as_lineno_2";
8625 *[\\/]* | ?:[\\/]* ) as_myself=$0 ;;
8626 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8630 test -z "$as_dir" && as_dir=.
8631 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8636 if test ! -f $as_myself; then
8637 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8638 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8639 { (exit 1); exit 1; }; }
8641 if test ! -f $as_me.lineno ||
8642 test x`ls -1dt $as_me.lineno
$as_myself 2>/dev
/null
| sed 1q
` \
8643 != x$as_me.lineno; then
8644 # Be sure to write the pattern so that it doesn't replace itself:
8645 # it must not match itself.
8647 if ($0 ~ /[$]LINENO/)
8648 while (sub (/[$]LINENO/, NR))
8651 }' <$as_myself >$as_me.lineno
8652 chmod +x $as_me.lineno
8654 exec ${SHELL-/bin/sh} ./$as_me.lineno ${1+"$@"}
8657 # Avoid depending upon Character Ranges.
8658 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8659 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8660 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8661 as_cr_digits='0123456789'
8662 as_cr_alnum=$as_cr_Letters$as_cr_digits
8664 case `echo "testing\c"; echo 1,2,3`,`echo -n testing
; echo 1,2,3` in
8665 *c*,-n*) ECHO_N= ECHO_C='
8667 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8668 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8671 if expr a : '\(a\)' >/dev/null 2>&1; then
8677 rm -f conf$$ conf$$.exe conf$$.file
8679 if ln -s conf$$.file conf$$ 2>/dev/null; then
8680 # We could just check for DJGPP; but this test a) works b) is more generic
8681 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8682 if test -f conf$$.exe; then
8683 # Don't use ln at all; we don't have any links
8688 elif ln conf$$.file conf$$ 2>/dev/null; then
8693 rm -f conf$$ conf$$.exe conf$$.file
8695 # The user is always right.
8696 if test "${PATH_SEPARATOR+set}" != set; then
8697 echo "#! $SHELL" >conftest.sh
8698 echo "exit 0" >>conftest.sh
8699 chmod +x conftest.sh
8700 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
8708 as_executable_p="test -f"
8710 # Sed expression to map a string onto a valid CPP name.
8711 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8713 # Sed expression to map a string onto a valid variable name.
8714 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8716 # Support unset when possible.
8717 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8724 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
8725 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
8726 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
8727 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
8728 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
8729 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
8730 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
8731 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
8734 # We need space, tab and new line, in precisely that order.
8740 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
8744 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8745 # report actual input values of CONFIG_FILES etc. instead of their
8746 # values after options handling. Logging --version etc. is OK.
8750 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8751 ## Running $as_me. ##
8756 This file was extended by GNU Bison $as_me 1.29c, which was
8757 generated by GNU Autoconf 2.52e. Invocation command line was
8759 CONFIG_FILES = $CONFIG_FILES
8760 CONFIG_HEADERS = $CONFIG_HEADERS
8761 CONFIG_LINKS = $CONFIG_LINKS
8762 CONFIG_COMMANDS = $CONFIG_COMMANDS
8766 echo "on `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`" >&5
8770 # Files that config.status was made for.
8771 if test -n "$ac_config_files"; then
8772 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8775 if test -n "$ac_config_headers"; then
8776 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8779 if test -n "$ac_config_links"; then
8780 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8783 if test -n "$ac_config_commands"; then
8784 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8787 cat >>$CONFIG_STATUS <<\_ACEOF
8790 \`$as_me' instantiates files from templates according to the
8791 current configuration.
8793 Usage: $0 [OPTIONS] [FILE]...
8795 -h, --help print this help, then exit
8796 -V, --version print version number, then exit
8797 -d, --debug don't remove temporary files
8798 --recheck update
$as_me by reconfiguring
in the same conditions
8799 --file=FILE
[:TEMPLATE
]
8800 instantiate the configuration
file FILE
8801 --header=FILE
[:TEMPLATE
]
8802 instantiate the configuration header FILE
8804 Configuration files
:
8807 Configuration headers
:
8810 Configuration commands
:
8813 Report bugs to
<bug
-autoconf@gnu.org
>.
"
8816 cat >>$CONFIG_STATUS <<_ACEOF
8818 GNU Bison config.status
1.29c
8819 configured by
$0, generated by GNU Autoconf
2.52e
,
8820 with options
\\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8822 Copyright
1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8823 Free Software Foundation
, Inc.
8824 This config.status
script is free software
; the Free Software Foundation
8825 gives unlimited permission to copy
, distribute and modify it.
"
8830 cat >>$CONFIG_STATUS <<\_ACEOF
8831 # If no file are specified by the user, then we need to provide default
8832 # value. By we need to know if files were specified by the user.
8838 ac_option=`expr "x
$1" : 'x\([^=]*\)='`
8839 ac_optarg=`expr "x
$1" : 'x[^=]*=\(.*\)'`
8841 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
8845 *) # This is not an option, so the user has probably given explicit
8847 ac_need_defaults=false;;
8851 # Handling of the options.
8853 cat >>$CONFIG_STATUS <<_ACEOF
8854 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8855 echo "running
$SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8856 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8858 cat >>$CONFIG_STATUS <<\_ACEOF
8859 --version | --vers* | -V )
8860 echo "$ac_cs_version"; exit 0 ;;
8862 # Conflict between --help and --header
8863 { { echo "$as_me:$LINENO: error
: ambiguous option
: $1
8864 Try \
`$0 --help' for more information." >&5
8865 echo "$as_me: error: ambiguous option: $1
8866 Try \`$0 --help' for more information." >&2;}
8867 { (exit 1); exit 1; }; };;
8868 --help | --hel | -h )
8869 echo "$ac_cs_usage"; exit 0 ;;
8870 --debug | --d* | -d )
8872 --file | --fil | --fi | --f )
8874 CONFIG_FILES="$CONFIG_FILES $1"
8875 ac_need_defaults=false;;
8876 --header | --heade | --head | --hea )
8878 CONFIG_HEADERS="$CONFIG_HEADERS $1"
8879 ac_need_defaults=false;;
8882 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8883 Try \`$0 --help' for more information.
" >&5
8884 echo "$as_me: error
: unrecognized option
: $1
8885 Try \
`$0 --help' for more information." >&2;}
8886 { (exit 1); exit 1; }; } ;;
8888 *) ac_config_targets="$ac_config_targets $1" ;;
8896 cat >>$CONFIG_STATUS <<_ACEOF
8898 # INIT-COMMANDS section.
8901 PACKAGE_NAME='$PACKAGE_NAME'
8902 PACKAGE_TARNAME='$PACKAGE_TARNAME'
8903 PACKAGE_VERSION='$PACKAGE_VERSION'
8904 PACKAGE_STRING='$PACKAGE_STRING'
8905 PACKAGE_BUGREPORT='$PACKAGE_BUGREPORT'
8907 AMDEP_TRUE="$AMDEP_TRUE"
8908 ac_aux_dir="$ac_aux_dir"
8912 cat >>$CONFIG_STATUS <<\_ACEOF
8913 for ac_config_target in $ac_config_targets
8915 case "$ac_config_target" in
8916 # Handling of arguments.
8917 "tests/atlocal" ) CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
8918 "tests/bison" ) CONFIG_FILES="$CONFIG_FILES tests/bison" ;;
8919 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8920 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
8921 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
8922 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8923 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
8924 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8925 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8926 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
8927 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
8928 "tests/package.m4" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tests/package.m4" ;;
8929 "tests/atconfig" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
8930 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8931 "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
8932 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
8933 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8934 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8935 { (exit 1); exit 1; }; };;
8939 # If the user did not use the arguments to specify the items to instantiate,
8940 # then the envvar interface is used. Set only those that are not.
8941 # We use the long form for the default assignment because of an extremely
8942 # bizarre bug on SunOS 4.1.3.
8943 if $ac_need_defaults; then
8944 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8945 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8946 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8949 # Create a temporary directory, and hook for its removal unless debugging.
8952 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8953 trap '{ (exit 1); exit 1; }' 1 2 13 15
8956 # Create a (secure) tmp directory for tmp files.
8959 tmp=`(umask 077 && mktemp
-d -q "$TMPDIR/csXXXXXX") 2>/dev
/null
` &&
8960 test -n "$tmp" && test -d "$tmp"
8963 tmp=$TMPDIR/cs$$-$RANDOM
8964 (umask 077 && mkdir $tmp)
8967 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8968 { (exit 1); exit 1; }
8973 cat >>$CONFIG_STATUS <<_ACEOF
8976 # CONFIG_FILES section.
8979 # No need to generate the scripts if there are no CONFIG_FILES.
8980 # This happens for instance when ./config.status config.h
8981 if test -n "\$CONFIG_FILES"; then
8982 # Protect against being on the right side of a sed subst in config.status.
8983 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8984 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8985 s,@SHELL@,$SHELL,;t t
8986 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8987 s,@exec_prefix@,$exec_prefix,;t t
8988 s,@prefix@,$prefix,;t t
8989 s,@program_transform_name@,$program_transform_name,;t t
8990 s,@bindir@,$bindir,;t t
8991 s,@sbindir@,$sbindir,;t t
8992 s,@libexecdir@,$libexecdir,;t t
8993 s,@datadir@,$datadir,;t t
8994 s,@sysconfdir@,$sysconfdir,;t t
8995 s,@sharedstatedir@,$sharedstatedir,;t t
8996 s,@localstatedir@,$localstatedir,;t t
8997 s,@libdir@,$libdir,;t t
8998 s,@includedir@,$includedir,;t t
8999 s,@oldincludedir@,$oldincludedir,;t t
9000 s,@infodir@,$infodir,;t t
9001 s,@mandir@,$mandir,;t t
9002 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9003 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9004 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9005 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9006 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9007 s,@build_alias@,$build_alias,;t t
9008 s,@host_alias@,$host_alias,;t t
9009 s,@target_alias@,$target_alias,;t t
9011 s,@ECHO_C@,$ECHO_C,;t t
9012 s,@ECHO_N@,$ECHO_N,;t t
9013 s,@ECHO_T@,$ECHO_T,;t t
9015 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9016 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9017 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9018 s,@PACKAGE@,$PACKAGE,;t t
9019 s,@VERSION@,$VERSION,;t t
9020 s,@EXEEXT@,$EXEEXT,;t t
9021 s,@OBJEXT@,$OBJEXT,;t t
9022 s,@ACLOCAL@,$ACLOCAL,;t t
9023 s,@AUTOCONF@,$AUTOCONF,;t t
9024 s,@AUTOMAKE@,$AUTOMAKE,;t t
9025 s,@AUTOHEADER@,$AUTOHEADER,;t t
9026 s,@MAKEINFO@,$MAKEINFO,;t t
9027 s,@AMTAR@,$AMTAR,;t t
9028 s,@install_sh@,$install_sh,;t t
9029 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9031 s,@SET_MAKE@,$SET_MAKE,;t t
9032 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9033 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9034 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9035 s,@DEPDIR@,$DEPDIR,;t t
9037 s,@CFLAGS@,$CFLAGS,;t t
9038 s,@LDFLAGS@,$LDFLAGS,;t t
9039 s,@CPPFLAGS@,$CPPFLAGS,;t t
9040 s,@ac_ct_CC@,$ac_ct_CC,;t t
9041 s,@am__include@,$am__include,;t t
9042 s,@am__quote@,$am__quote,;t t
9043 s,@CCDEPMODE@,$CCDEPMODE,;t t
9045 s,@RANLIB@,$RANLIB,;t t
9046 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9048 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
9050 s,@ANSI2KNR@,$ANSI2KNR,;t t
9051 s,@ALLOCA@,$ALLOCA,;t t
9052 s,@LIBOBJS@,$LIBOBJS,;t t
9053 s,@build@,$build,;t t
9054 s,@build_cpu@,$build_cpu,;t t
9055 s,@build_vendor@,$build_vendor,;t t
9056 s,@build_os@,$build_os,;t t
9058 s,@host_cpu@,$host_cpu,;t t
9059 s,@host_vendor@,$host_vendor,;t t
9060 s,@host_os@,$host_os,;t t
9061 s,@GLIBC21@,$GLIBC21,;t t
9062 s,@LIBICONV@,$LIBICONV,;t t
9063 s,@USE_NLS@,$USE_NLS,;t t
9064 s,@MSGFMT@,$MSGFMT,;t t
9065 s,@GMSGFMT@,$GMSGFMT,;t t
9066 s,@XGETTEXT@,$XGETTEXT,;t t
9067 s,@INTLBISON@,$INTLBISON,;t t
9068 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
9069 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9070 s,@CATALOGS@,$CATALOGS,;t t
9071 s,@CATOBJEXT@,$CATOBJEXT,;t t
9072 s,@GMOFILES@,$GMOFILES,;t t
9073 s,@INTLLIBS@,$INTLLIBS,;t t
9074 s,@INTLOBJS@,$INTLOBJS,;t t
9075 s,@POFILES@,$POFILES,;t t
9076 s,@POSUB@,$POSUB,;t t
9077 s,@DATADIRNAME@,$DATADIRNAME,;t t
9078 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9079 s,@GENCAT@,$GENCAT,;t t
9080 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9081 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
9086 cat >>$CONFIG_STATUS <<\_ACEOF
9087 # Split the substitutions into bite-sized pieces for seds with
9088 # small command number limits, like on Digital OSF/1 and HP-UX.
9090 ac_sed_frag=1 # Number of current file.
9091 ac_beg=1 # First line for current file.
9092 ac_end=$ac_max_sed_lines # Line after last line for current file.
9095 while $ac_more_lines; do
9096 if test $ac_beg -gt 1; then
9097 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9099 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9101 if test ! -s $tmp/subs.frag; then
9104 # The purpose of the label and of the branching condition is to
9105 # speed up the sed processing (if there are no `@
' at all, there
9106 # is no need to browse any of the substitutions).
9107 # These are the two extra sed commands mentioned above.
9109 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9110 if test -z "$ac_sed_cmds"; then
9111 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9113 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9115 ac_sed_frag=`expr $ac_sed_frag + 1`
9117 ac_end=`expr $ac_end + $ac_max_sed_lines`
9120 if test -z "$ac_sed_cmds"; then
9123 fi # test -n "$CONFIG_FILES"
9126 cat >>$CONFIG_STATUS <<\_ACEOF
9127 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9128 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9130 - | *:- | *:-:* ) # input from stdin
9132 ac_file_in=`echo "$ac_file" | sed 's
,[^
:]*:,,'`
9133 ac_file=`echo "$ac_file" | sed 's
,:.
*,,'` ;;
9134 *:* ) ac_file_in=`echo "$ac_file" | sed 's
,[^
:]*:,,'`
9135 ac_file=`echo "$ac_file" | sed 's
,:.
*,,'` ;;
9136 * ) ac_file_in=$ac_file.in ;;
9139 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9140 ac_dir=`$as_expr X"$ac_file" : 'X\
(.
*[^/]\)//*[^/][^/]*/*$
' \
| \
9141 X
"$ac_file" : 'X\(//\)[^/]' \
| \
9142 X
"$ac_file" : 'X\(//\)$' \
| \
9143 X
"$ac_file" : 'X\(/\)' \
| \
9144 .
: '\(.\)' 2>/dev
/null
||
9146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9147 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9148 /^X\(\/\/\)$/{ s//\1/; q; }
9149 /^X\(\/\).*/{ s//\1/; q; }
9152 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9156 for as_mkdir_dir in `IFS
='/\\'; set X
$as_dummy; shift; echo "$@"`; do
9157 case $as_mkdir_dir in
9158 # Skip DOS drivespec
9159 ?:) as_incr_dir=$as_mkdir_dir ;;
9161 as_incr_dir=$as_incr_dir/$as_mkdir_dir
9162 test -d "$as_incr_dir" ||
9163 mkdir "$as_incr_dir" ||
9164 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9165 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9166 { (exit 1); exit 1; }; }
9173 if test "$ac_dir" != .; then
9174 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9175 # A "../" for each directory in $ac_dir_suffix.
9176 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9178 ac_dir_suffix= ac_top_builddir=
9182 .) # No --srcdir option. We are building in place.
9184 if test -z "$ac_top_builddir"; then
9187 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9189 [\\/]* | ?:[\\/]* ) # Absolute path.
9190 ac_srcdir=$srcdir$ac_dir_suffix;
9191 ac_top_srcdir=$srcdir ;;
9193 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9194 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9196 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9198 ac_buildpath=`cd "$ac_dir" && cd $ac_builddir && pwd`
9199 ac_top_buildpath=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9200 ac_srcpath=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9201 ac_top_srcpath=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9204 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9205 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9208 if test x"$ac_file" != x-; then
9209 { echo "$as_me:$LINENO: creating $ac_file" >&5
9210 echo "$as_me: creating $ac_file" >&6;}
9213 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9214 # use $as_me), people would be surprised to read:
9215 # /* config.h. Generated automatically by config.status. */
9216 configure_input
="Generated automatically from `echo $ac_file_in |
9217 sed 's,.*/,,'` by configure."
9219 # First look for the input files in the build tree, otherwise in the
9221 ac_file_inputs
=`IFS=:
9222 for f in $ac_file_in; do
9224 -) echo $tmp/stdin ;;
9226 # Absolute (can't be DOS-style, as IFS=:)
9227 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9228 echo "$as_me: error: cannot find input file: $f" >&2;}
9229 { (exit 1); exit 1; }; }
9232 if test -f "$f"; then
9235 elif test -f "$srcdir/$f"; then
9240 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9241 echo "$as_me: error: cannot find input file: $f" >&2;}
9242 { (exit 1); exit 1; }; }
9245 done` || { (exit 1); exit 1; }
9247 cat >>$CONFIG_STATUS <<_ACEOF
9251 cat >>$CONFIG_STATUS <<\_ACEOF
9253 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
9254 s
,@configure_input@
,$configure_input,;t t
9255 s
,@srcdir@
,$ac_srcdir,;t t
9256 s
,@srcpath@
,$ac_srcpath,;t t
9257 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9258 s
,@top_srcpath@
,$ac_top_srcpath,;t t
9259 s
,@builddir@
,$ac_builddir,;t t
9260 s
,@buildpath@
,$ac_buildpath,;t t
9261 s
,@top_builddir@
,$ac_top_builddir,;t t
9262 s
,@top_buildpath@
,$ac_top_buildpath,;t t
9263 s
,@INSTALL@
,$ac_INSTALL,;t t
9264 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9266 if test x"$ac_file" != x-; then
9267 mv $tmp/out $ac_file
9273 # Run the commands associated with the file.
9275 tests/bison ) chmod +x tests/bison ;;
9279 cat >>$CONFIG_STATUS <<\_ACEOF
9282 # CONFIG_HEADER section.
9285 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9286 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9288 # ac_d sets the value in "#define NAME VALUE" lines.
9289 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9290 ac_dB
='[ ].*$,\1#\2'
9293 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9294 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9295 ac_uB
='$,\1#\2define\3'
9299 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9300 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9302 - | *:- | *:-:* ) # input from stdin
9304 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9305 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9306 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9307 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9308 * ) ac_file_in
=$ac_file.
in ;;
9311 test x
"$ac_file" != x
- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9312 echo "$as_me: creating $ac_file" >&6;}
9314 # First look for the input files in the build tree, otherwise in the
9316 ac_file_inputs
=`IFS=:
9317 for f in $ac_file_in; do
9319 -) echo $tmp/stdin ;;
9321 # Absolute (can't be DOS-style, as IFS=:)
9322 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9323 echo "$as_me: error: cannot find input file: $f" >&2;}
9324 { (exit 1); exit 1; }; }
9327 if test -f "$f"; then
9330 elif test -f "$srcdir/$f"; then
9335 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9336 echo "$as_me: error: cannot find input file: $f" >&2;}
9337 { (exit 1); exit 1; }; }
9340 done` || { (exit 1); exit 1; }
9341 # Remove the trailing spaces.
9342 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9346 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9347 # `conftest.undefs', that substitutes the proper values into
9348 # config.h.in to produce config.h. The first handles `#define'
9349 # templates, and the second `#undef' templates.
9350 # And first: Protect against being on the right side of a sed subst in
9351 # config.status. Protect against being in an unquoted here document
9353 rm -f conftest.defines conftest.undefs
9354 # Using a here document instead of a string reduces the quoting nightmare.
9355 # Putting comments in sed scripts is not portable.
9357 # `end' is used to avoid that the second main sed command (meant for
9358 # 0-ary CPP macros) applies to n-ary macro definitions.
9359 # See the Autoconf documentation for `clear'.
9360 cat >confdef2sed.
sed <<\_ACEOF
9365 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
9367 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9370 # If some macros were called several times there might be several times
9371 # the same #defines, which is useless. Nevertheless, we may not want to
9372 # sort them, since we want the *last* AC-DEFINE to be honored.
9373 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9374 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9375 rm -f confdef2sed.sed
9377 # This sed command replaces #undef with comments. This is necessary, for
9378 # example, in the case of _POSIX_SOURCE, which is predefined and required
9379 # on some systems where configure will not decide to define it.
9380 cat >>conftest.undefs <<\_ACEOF
9381 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9384 # Break up conftest.defines because some shells have a limit on the size
9385 # of here documents, and old seds have small limits too (100 cmds).
9386 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9387 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9388 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9389 echo ' :' >>$CONFIG_STATUS
9391 while grep . conftest.defines >/dev/null
9393 # Write a limited-size here document to $tmp/defines.sed.
9394 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9395 # Speed up: don't consider the non `#define' lines.
9396 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9397 # Work around the forget-to-reset-the-flag bug.
9398 echo 't clr' >>$CONFIG_STATUS
9399 echo ': clr' >>$CONFIG_STATUS
9400 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9402 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9406 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9407 rm -f conftest.defines
9408 mv conftest.
tail conftest.defines
9410 rm -f conftest.defines
9411 echo ' fi # egrep' >>$CONFIG_STATUS
9412 echo >>$CONFIG_STATUS
9414 # Break up conftest.undefs because some shells have a limit on the size
9415 # of here documents, and old seds have small limits too (100 cmds).
9416 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9418 while grep . conftest.undefs
>/dev
/null
9420 # Write a limited-size here document to $tmp/undefs.sed.
9421 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9422 # Speed up: don't consider the non
`#undef'
9423 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9424 # Work around the forget-to-reset-the-flag bug.
9425 echo 't clr' >>$CONFIG_STATUS
9426 echo ': clr' >>$CONFIG_STATUS
9427 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9429 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9433 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9434 rm -f conftest.undefs
9435 mv conftest.tail conftest.undefs
9437 rm -f conftest.undefs
9439 cat >>$CONFIG_STATUS <<\_ACEOF
9440 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9441 # use $as_me), people would be surprised to read:
9442 # /* config.h. Generated automatically by config.status. */
9443 if test x
"$ac_file" = x
-; then
9444 echo "/* Generated automatically by configure. */" >$tmp/config.h
9446 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
9448 cat $tmp/in >>$tmp/config.h
9450 if test x
"$ac_file" != x
-; then
9451 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
9452 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9453 echo "$as_me: $ac_file is unchanged" >&6;}
9455 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9456 X"$ac_file" : 'X\(//\)[^/]' \| \
9457 X"$ac_file" : 'X\(//\)$' \| \
9458 X"$ac_file" : 'X\(/\)' \| \
9459 . : '\(.\)' 2>/dev/null ||
9461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9462 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9463 /^X\(\/\/\)$/{ s//\1/; q; }
9464 /^X\(\/\).*/{ s//\1/; q; }
9467 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9471 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9472 case $as_mkdir_dir in
9473 # Skip DOS drivespec
9474 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9476 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9477 test -d "$as_incr_dir" ||
9478 mkdir "$as_incr_dir" ||
9479 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9480 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9481 { (exit 1); exit 1; }; }
9487 mv $tmp/config.h
$ac_file
9493 # Run the commands associated with the file.
9495 config.h
) # update the timestamp
9496 echo timestamp
>"./stamp-h1"
9501 cat >>$CONFIG_STATUS <<\_ACEOF
9504 # CONFIG_COMMANDS section.
9506 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9507 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9508 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9509 ac_dir
=`$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9510 X"$ac_dest" : 'X\(//\)[^/]' \| \
9511 X"$ac_dest" : 'X\(//\)$' \| \
9512 X"$ac_dest" : '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; }
9522 if test "$ac_dir" != .
; then
9523 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9524 # A "../" for each directory in $ac_dir_suffix.
9525 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9527 ac_dir_suffix
= ac_top_builddir
=
9531 .
) # No --srcdir option. We are building in place.
9533 if test -z "$ac_top_builddir"; then
9536 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9538 [\\/]* | ?
:[\\/]* ) # Absolute path.
9539 ac_srcdir
=$srcdir$ac_dir_suffix;
9540 ac_top_srcdir
=$srcdir ;;
9542 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9543 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9545 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9547 ac_buildpath
=`cd "$ac_dir" && cd $ac_builddir && pwd`
9548 ac_top_buildpath
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9549 ac_srcpath
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9550 ac_top_srcpath
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9552 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9553 echo "$as_me: executing $ac_dest commands" >&6;}
9555 tests
/package.
m4 ) cat >tests
/package.
m4 <<ATEOF
9556 # Signature of the current package.
9557 m4_define([PACKAGE_NAME], [$PACKAGE_NAME])
9558 m4_define([PACKAGE_TARNAME], [$PACKAGE_TARNAME])
9559 m4_define([PACKAGE_VERSION], [$PACKAGE_VERSION])
9560 m4_define([PACKAGE_STRING], [$PACKAGE_STRING])
9561 m4_define([PACKAGE_BUGREPORT], [$PACKAGE_BUGREPORT])
9564 tests
/atconfig
) cat >tests
/atconfig
<<ATEOF
9565 # Configurable variable values for building test suites.
9567 # Copyright 2000, 2001 Free Software Foundation, Inc.
9570 buildpath='$ac_buildpath'
9572 srcpath='$ac_srcpath'
9573 top_srcdir='$ac_top_srcdir'
9574 top_srcpath='$ac_top_srcpath'
9575 top_builddir='$ac_top_builddir'
9576 top_buildpath='$ac_top_buildpath'
9578 AUTOTEST_PATH='tests'
9580 SHELL=\${CONFIG_SHELL-'$SHELL'}
9584 test x
"$AMDEP_TRUE" != x
"" ||
9585 for mf
in $CONFIG_FILES; do
9587 Makefile
) dirpart
=.
;;
9588 */Makefile
) dirpart
=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
9591 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null
|| continue
9592 # Extract the definition of DEP_FILES from the Makefile without
9594 DEPDIR
=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9595 test -z "$DEPDIR" && continue
9596 # When using ansi2knr, U may be empty or an underscore; expand it
9597 U
=`sed -n -e '/^U = / s///p' < "$mf"`
9598 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9599 # We invoke sed twice because it is the simplest approach to
9600 # changing $(DEPDIR) to its actual value in the expansion.
9601 for file in `sed -n -e '
9602 /^DEP_FILES = .*\\\\$/ {
9611 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9612 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9613 # Make sure the directory exists.
9614 test -f "$dirpart/$file" && continue
9615 fdir
=`echo "$file" | sed -e 's|/[^/]*$||'`
9616 $ac_aux_dir/mkinstalldirs
"$dirpart/$fdir" > /dev
/null
2>&1
9617 # echo "creating $dirpart/$file"
9618 echo '# dummy' > "$dirpart/$file"
9622 default
-2 ) for ac_file
in $CONFIG_FILES; do
9623 # Support "outfile[:infile[:infile...]]"
9625 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9627 # PO directories have a Makefile.in generated from Makefile.in.in.
9628 case "$ac_file" in */Makefile.
in)
9629 # Adjust a relative srcdir.
9630 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9631 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
9632 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9633 # In autoconf-2.13 it is called $ac_given_srcdir.
9634 # In autoconf-2.50 it is called $srcdir.
9635 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
9636 case "$ac_given_srcdir" in
9637 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
9638 /*) top_srcdir
="$ac_given_srcdir" ;;
9639 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9641 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9642 rm -f "$ac_dir/POTFILES"
9643 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9644 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9645 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9646 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9655 cat >>$CONFIG_STATUS <<\_ACEOF
9657 { (exit 0); exit 0; }
9659 chmod +x
$CONFIG_STATUS
9660 ac_clean_files
=$ac_clean_files_save
9662 # configure is writing to config.log, and then calls config.status.
9663 # config.status does its own redirection, appending to config.log.
9664 # Unfortunately, on DOS this fails, as config.log is still kept open
9665 # by configure, so config.status won't be able to write to it; its
9666 # output is simply discarded. So we exec the FD to /dev/null,
9667 # effectively closing config.log, so it can be properly (re)opened and
9668 # appended to by config.status. When coming back to configure, we
9669 # need to make the FD available again.
9670 if test "$no_create" != yes; then
9673 $SHELL $CONFIG_STATUS || ac_cs_success
=false
9675 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9676 # would make configure fail if this is the last instruction.
9677 $ac_cs_success || { (exit 1); exit 1; }