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
74 # Don't try to exec as it changes $[0], causing all sort of problems
75 # (the dirname of $[0] is not the place where we might find the
76 # original and so on. Autoconf is especially sensible to this).
77 source ./$as_me.lineno
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 case `echo "testing\c"; echo 1,2,3`,`echo -n testing
; echo 1,2,3` in
89 *c*,-n*) ECHO_N= ECHO_C='
91 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
92 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
95 if expr a : '\(a\)' >/dev/null 2>&1; then
101 rm -f conf$$ conf$$.exe conf$$.file
103 if ln -s conf$$.file conf$$ 2>/dev/null; then
104 # We could just check for DJGPP; but this test a) works b) is more generic
105 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
106 if test -f conf$$.exe; then
107 # Don't use ln at all; we don't have any links
112 elif ln conf$$.file conf$$ 2>/dev/null; then
117 rm -f conf$$ conf$$.exe conf$$.file
119 # The user is always right.
120 if test "${PATH_SEPARATOR+set}" != set; then
121 echo "#! $SHELL" >conftest.sh
122 echo "exit 0" >>conftest.sh
124 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
132 as_executable_p="test -f"
134 # Sed expression to map a string onto a valid CPP name.
135 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
137 # Sed expression to map a string onto a valid variable name.
138 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
140 # Support unset when possible.
141 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
148 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
149 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
150 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
151 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
152 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
153 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
154 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
155 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
158 # We need space, tab and new line, in precisely that order.
164 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
167 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
168 # so uname gets run too.
169 ac_hostname=`(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
176 ac_default_prefix=/usr/local
181 SHELL=${CONFIG_SHELL-/bin/sh}
183 # Maximum number of lines to put in a shell here document.
184 # This variable seems obsolete. It should probably be removed, and
185 # only ac_max_sed_lines should be used.
186 : ${ac_max_here_lines=38}
188 # Factoring default headers for most tests.
189 ac_includes_default="\
192 # include <sys/types.h>
195 # include <sys/stat.h>
206 # if !STDC_HEADERS && HAVE_MEMORY_H
212 # include <strings.h>
215 # include <inttypes.h>
225 # Initialize some variables set by options.
227 ac_init_version=false
228 # The variables have the same names as the options, with
229 # dashes changed to underlines.
237 program_transform_name=s,x,x,
245 # Installation directory options.
246 # These are left unexpanded so users can "make install exec_prefix=/foo"
247 # and all the variables that are supposed to be based on exec_prefix
248 # by default will actually change.
249 # Use braces instead of parens because sh, perl, etc. also accept them.
250 bindir='${exec_prefix}/bin'
251 sbindir='${exec_prefix}/sbin'
252 libexecdir='${exec_prefix}/libexec'
253 datadir='${prefix}/share'
254 sysconfdir='${prefix}/etc'
255 sharedstatedir='${prefix}/com'
256 localstatedir='${prefix}/var'
257 libdir='${exec_prefix}/lib'
258 includedir='${prefix}/include'
259 oldincludedir='/usr/include'
260 infodir='${prefix}/info'
261 mandir='${prefix}/man'
263 # Identity of this package.
264 PACKAGE_NAME='GNU Bison'
265 PACKAGE_TARNAME='bison'
266 PACKAGE_VERSION='1.29c'
267 PACKAGE_STRING='GNU Bison 1.29c'
268 PACKAGE_BUGREPORT='bug-bison@gnu.org'
273 # If the previous option needs an argument, assign it.
274 if test -n "$ac_prev"; then
275 eval "$ac_prev=\$ac_option"
280 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
282 # Accept the important Cygnus configure options, so we can diagnose typos.
286 -bindir | --bindir | --bindi | --bind | --bin | --bi)
288 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
291 -build | --build | --buil | --bui | --bu)
292 ac_prev=build_alias ;;
293 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
294 build_alias=$ac_optarg ;;
296 -cache-file | --cache-file | --cache-fil | --cache-fi \
297 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
298 ac_prev=cache_file ;;
299 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
300 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
301 cache_file=$ac_optarg ;;
304 cache_file=config.cache ;;
306 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
308 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
310 datadir=$ac_optarg ;;
312 -disable-* | --disable-*)
313 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
314 # Reject names that are not valid shell variable names.
315 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
316 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
317 { (exit 1); exit 1; }; }
318 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
319 eval "enable_$ac_feature=no" ;;
321 -enable-* | --enable-*)
322 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
323 # Reject names that are not valid shell variable names.
324 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
325 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
326 { (exit 1); exit 1; }; }
327 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
329 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
332 eval "enable_$ac_feature='$ac_optarg'" ;;
334 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
335 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
336 | --exec | --exe | --ex)
337 ac_prev=exec_prefix ;;
338 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
339 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
340 | --exec=* | --exe=* | --ex=*)
341 exec_prefix=$ac_optarg ;;
343 -gas | --gas | --ga | --g)
344 # Obsolete; use --with-gas.
347 -help | --help | --hel | --he | -h)
349 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
350 ac_init_help=recursive ;;
351 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
352 ac_init_help=short ;;
354 -host | --host | --hos | --ho)
355 ac_prev=host_alias ;;
356 -host=* | --host=* | --hos=* | --ho=*)
357 host_alias=$ac_optarg ;;
359 -includedir | --includedir | --includedi | --included | --include \
360 | --includ | --inclu | --incl | --inc)
361 ac_prev=includedir ;;
362 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
363 | --includ=* | --inclu=* | --incl=* | --inc=*)
364 includedir=$ac_optarg ;;
366 -infodir | --infodir | --infodi | --infod | --info | --inf)
368 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
369 infodir=$ac_optarg ;;
371 -libdir | --libdir | --libdi | --libd)
373 -libdir=* | --libdir=* | --libdi=* | --libd=*)
376 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
377 | --libexe | --libex | --libe)
378 ac_prev=libexecdir ;;
379 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
380 | --libexe=* | --libex=* | --libe=*)
381 libexecdir=$ac_optarg ;;
383 -localstatedir | --localstatedir | --localstatedi | --localstated \
384 | --localstate | --localstat | --localsta | --localst \
385 | --locals | --local | --loca | --loc | --lo)
386 ac_prev=localstatedir ;;
387 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
388 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
389 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
390 localstatedir=$ac_optarg ;;
392 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
394 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
398 # Obsolete; use --without-fp.
401 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
405 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
406 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
409 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
410 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
411 | --oldin | --oldi | --old | --ol | --o)
412 ac_prev=oldincludedir ;;
413 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
414 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
415 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
416 oldincludedir=$ac_optarg ;;
418 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
420 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
423 -program-prefix | --program-prefix | --program-prefi | --program-pref \
424 | --program-pre | --program-pr | --program-p)
425 ac_prev=program_prefix ;;
426 -program-prefix=* | --program-prefix=* | --program-prefi=* \
427 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
428 program_prefix=$ac_optarg ;;
430 -program-suffix | --program-suffix | --program-suffi | --program-suff \
431 | --program-suf | --program-su | --program-s)
432 ac_prev=program_suffix ;;
433 -program-suffix=* | --program-suffix=* | --program-suffi=* \
434 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
435 program_suffix=$ac_optarg ;;
437 -program-transform-name | --program-transform-name \
438 | --program-transform-nam | --program-transform-na \
439 | --program-transform-n | --program-transform- \
440 | --program-transform | --program-transfor \
441 | --program-transfo | --program-transf \
442 | --program-trans | --program-tran \
443 | --progr-tra | --program-tr | --program-t)
444 ac_prev=program_transform_name ;;
445 -program-transform-name=* | --program-transform-name=* \
446 | --program-transform-nam=* | --program-transform-na=* \
447 | --program-transform-n=* | --program-transform-=* \
448 | --program-transform=* | --program-transfor=* \
449 | --program-transfo=* | --program-transf=* \
450 | --program-trans=* | --program-tran=* \
451 | --progr-tra=* | --program-tr=* | --program-t=*)
452 program_transform_name=$ac_optarg ;;
454 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
455 | -silent | --silent | --silen | --sile | --sil)
458 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
460 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
462 sbindir=$ac_optarg ;;
464 -sharedstatedir | --sharedstatedir | --sharedstatedi \
465 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
466 | --sharedst | --shareds | --shared | --share | --shar \
468 ac_prev=sharedstatedir ;;
469 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
470 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
471 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
473 sharedstatedir=$ac_optarg ;;
475 -site | --site | --sit)
477 -site=* | --site=* | --sit=*)
480 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
482 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
485 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
486 | --syscon | --sysco | --sysc | --sys | --sy)
487 ac_prev=sysconfdir ;;
488 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
489 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
490 sysconfdir=$ac_optarg ;;
492 -target | --target | --targe | --targ | --tar | --ta | --t)
493 ac_prev=target_alias ;;
494 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
495 target_alias=$ac_optarg ;;
497 -v | -verbose | --verbose | --verbos | --verbo | --verb)
500 -version | --version | --versio | --versi | --vers | -V)
504 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
505 # Reject names that are not valid shell variable names.
506 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
507 { echo "$as_me: error: invalid package name: $ac_package" >&2
508 { (exit 1); exit 1; }; }
509 ac_package=`echo $ac_package| sed 's/-/_/g'`
511 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
514 eval "with_$ac_package='$ac_optarg'" ;;
516 -without-* | --without-*)
517 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
518 # Reject names that are not valid shell variable names.
519 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
520 { echo "$as_me: error: invalid package name: $ac_package" >&2
521 { (exit 1); exit 1; }; }
522 ac_package=`echo $ac_package | sed 's/-/_/g'`
523 eval "with_$ac_package=no" ;;
526 # Obsolete; use --with-x.
529 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
530 | --x-incl | --x-inc | --x-in | --x-i)
531 ac_prev=x_includes ;;
532 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
533 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
534 x_includes=$ac_optarg ;;
536 -x-libraries | --x-libraries | --x-librarie | --x-librari \
537 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
538 ac_prev=x_libraries ;;
539 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
540 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
541 x_libraries=$ac_optarg ;;
543 -*) { echo "$as_me: error: unrecognized option: $ac_option
544 Try \`$0 --help' for more information." >&2
545 { (exit 1); exit 1; }; }
549 ac_envvar=`expr "x$ac_option" : 'x\
([^
=]*\
)='`
550 # Reject names that are not valid shell variable names.
551 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
552 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
553 { (exit 1); exit 1; }; }
554 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
555 eval "$ac_envvar='$ac_optarg'"
559 # FIXME: should be removed in autoconf 3.0.
560 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
561 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
562 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
563 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
569 if test -n "$ac_prev"; then
570 ac_option=--`echo $ac_prev | sed 's
/_
/-/g
'`
571 { echo "$as_me: error: missing argument to $ac_option" >&2
572 { (exit 1); exit 1; }; }
575 # Be sure to have absolute paths.
576 for ac_var in exec_prefix prefix
578 eval ac_val=$`echo $ac_var`
580 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
581 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
582 { (exit 1); exit 1; }; };;
586 # Be sure to have absolute paths.
587 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
588 localstatedir libdir includedir oldincludedir infodir mandir
590 eval ac_val=$`echo $ac_var`
592 [\\/$]* | ?:[\\/]* ) ;;
593 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
594 { (exit 1); exit 1; }; };;
598 # There might be people who depend on the old broken behavior: `$host'
599 # used to hold the argument of --host etc.
604 # FIXME: should be removed in autoconf 3.0.
605 if test "x$host_alias" != x
; then
606 if test "x$build_alias" = x
; then
607 cross_compiling
=maybe
608 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
609 If a cross compiler is detected then cross compile mode will be used." >&2
610 elif test "x$build_alias" != "x$host_alias"; then
616 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
618 test "$silent" = yes && exec 6>/dev
/null
620 # Find the source files, if location was not specified.
621 if test -z "$srcdir"; then
622 ac_srcdir_defaulted
=yes
623 # Try the directory containing this script, then its parent.
625 ac_confdir
=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
626 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
628 if test ! -r $srcdir/$ac_unique_file; then
632 ac_srcdir_defaulted
=no
634 if test ! -r $srcdir/$ac_unique_file; then
635 if test "$ac_srcdir_defaulted" = yes; then
636 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
637 { (exit 1); exit 1; }; }
639 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
640 { (exit 1); exit 1; }; }
643 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
644 ac_env_build_alias_set
=${build_alias+set}
645 ac_env_build_alias_value
=$build_alias
646 ac_cv_env_build_alias_set
=${build_alias+set}
647 ac_cv_env_build_alias_value
=$build_alias
648 ac_env_host_alias_set
=${host_alias+set}
649 ac_env_host_alias_value
=$host_alias
650 ac_cv_env_host_alias_set
=${host_alias+set}
651 ac_cv_env_host_alias_value
=$host_alias
652 ac_env_target_alias_set
=${target_alias+set}
653 ac_env_target_alias_value
=$target_alias
654 ac_cv_env_target_alias_set
=${target_alias+set}
655 ac_cv_env_target_alias_value
=$target_alias
656 ac_env_CC_set
=${CC+set}
658 ac_cv_env_CC_set
=${CC+set}
659 ac_cv_env_CC_value
=$CC
660 ac_env_CFLAGS_set
=${CFLAGS+set}
661 ac_env_CFLAGS_value
=$CFLAGS
662 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
663 ac_cv_env_CFLAGS_value
=$CFLAGS
664 ac_env_LDFLAGS_set
=${LDFLAGS+set}
665 ac_env_LDFLAGS_value
=$LDFLAGS
666 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
667 ac_cv_env_LDFLAGS_value
=$LDFLAGS
668 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
669 ac_env_CPPFLAGS_value
=$CPPFLAGS
670 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
671 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
672 ac_env_CPP_set
=${CPP+set}
673 ac_env_CPP_value
=$CPP
674 ac_cv_env_CPP_set
=${CPP+set}
675 ac_cv_env_CPP_value
=$CPP
678 # Report the --help message.
680 if test "$ac_init_help" = "long"; then
681 # Omit some internal or obsolete options to make the list less imposing.
682 # This message is too long to be a string in the A/UX 3.1 sh.
684 \`configure' configures GNU Bison 1.29c to adapt to many kinds of systems.
686 Usage: $0 [OPTION]... [VAR=VALUE]...
688 To assign environment variables (e.g., CC, CFLAGS...), specify them as
689 VAR=VALUE. See below for descriptions of some of the useful variables.
691 Defaults for the options are specified in brackets.
694 -h, --help display this help and exit
695 --help=short display options specific to this package
696 --help=recursive display the short help of all the included packages
697 -V, --version display version information and exit
698 -q, --quiet, --silent do not print \`checking...' messages
699 --cache-file=FILE cache test results in FILE [disabled]
700 -C, --config-cache alias for \`--cache-file=config.cache'
701 -n, --no-create do not create output files
702 --srcdir=DIR find the sources in DIR [configure dir or \`..']
707 Installation directories:
708 --prefix=PREFIX install architecture-independent files in PREFIX
710 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
713 By default, \`make install' will install all the files in
714 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
715 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
716 for instance \`--prefix=\$HOME'.
718 For better control, use the options below.
720 Fine tuning of the installation directories:
721 --bindir=DIR user executables [EPREFIX/bin]
722 --sbindir=DIR system admin executables [EPREFIX/sbin]
723 --libexecdir=DIR program executables [EPREFIX/libexec]
724 --datadir=DIR read-only architecture-independent data [PREFIX/share]
725 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
726 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
727 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
728 --libdir=DIR object code libraries [EPREFIX/lib]
729 --includedir=DIR C header files [PREFIX/include]
730 --oldincludedir=DIR C header files for non-gcc [/usr/include]
731 --infodir=DIR info documentation [PREFIX/info]
732 --mandir=DIR man documentation [PREFIX/man]
738 --program-prefix=PREFIX prepend PREFIX to installed program names
739 --program-suffix=SUFFIX append SUFFIX to installed program names
740 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
743 --build=BUILD configure
for building on BUILD
[guessed
]
744 --host=HOST build programs to run on HOST
[BUILD
]
748 if test -n "$ac_init_help"; then
749 case $ac_init_help in
750 short
| recursive
) echo "Configuration of GNU Bison 1.29c:";;
755 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
756 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
757 --disable-dependency-tracking Speeds up one
-time builds
758 --enable-dependency-tracking Do not reject slow dependency extractors
759 --enable-gcc-warnings turn on lots of GCC warnings
(not recommended
)
760 --disable-nls do not use Native Language Support
763 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
764 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
765 --with-dmalloc use dmalloc
, as
in
766 http
://www.dmalloc.com
/dmalloc.
tar.gz
767 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
768 --with-included-gettext use the GNU
gettext library included here
770 Some influential environment variables
:
771 CC C compiler
command
772 CFLAGS C compiler flags
773 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
774 nonstandard directory
<lib dir
>
775 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
776 headers
in a nonstandard directory
<include dir
>
779 Use these variables to override the choices made by
`configure' or to help
780 it to find libraries and programs with nonstandard names/locations.
782 Report bugs to <bug-bison@gnu.org>.
786 if test "$ac_init_help" = "recursive"; then
787 # If there are subdirs, report their specific --help.
789 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
790 test -d $ac_dir || continue
793 if test "$ac_dir" != .; then
794 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
795 # A "../" for each directory in $ac_dir_suffix.
796 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
798 ac_dir_suffix= ac_top_builddir=
802 .) # No --srcdir option. We are building in place.
804 if test -z "$ac_top_builddir"; then
807 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
809 [\\/]* | ?:[\\/]* ) # Absolute path.
810 ac_srcdir=$srcdir$ac_dir_suffix;
811 ac_top_srcdir=$srcdir ;;
813 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
814 ac_top_srcdir=$ac_top_builddir$srcdir ;;
816 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
818 ac_buildpath=`cd "$ac_dir" && cd $ac_builddir && pwd`
819 ac_top_buildpath=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
820 ac_srcpath=`cd "$ac_dir" && cd $ac_srcdir && pwd`
821 ac_top_srcpath=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
824 # Check for guested configure; otherwise get Cygnus style configure.
825 if test -f $ac_srcdir/configure.gnu; then
827 $SHELL $ac_srcdir/configure.gnu --help=recursive
828 elif test -f $ac_srcdir/configure; then
830 $SHELL $ac_srcdir/configure --help=recursive
831 elif test -f $ac_srcdir/configure.ac ||
832 test -f $ac_srcdir/configure.in; then
836 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
842 test -n "$ac_init_help" && exit 0
843 if $ac_init_version; then
845 GNU Bison configure 1.29c
846 generated by GNU Autoconf 2.52e
848 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
849 Free Software Foundation, Inc.
850 This configure script is free software; the Free Software Foundation
851 gives unlimited permission to copy, distribute and modify it.
857 This file contains any messages produced by compilers while
858 running configure, to aid debugging if configure makes a mistake.
860 It was created by GNU Bison $as_me 1.29c, which was
861 generated by GNU Autoconf 2.52e. Invocation command line was
872 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
873 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
874 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
875 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
876 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
878 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
879 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
881 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
882 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
883 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
884 hostinfo = `(hostinfo
) 2>/dev
/null
|| echo unknown
`
885 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
886 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
887 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
895 test -z "$as_dir" && as_dir=.
909 # Keep a trace of the command line.
910 # Strip out --no-create and --no-recursion so they do not pile up.
911 # Also quote any args containing shell meta-characters.
917 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
918 | --no-cr | --no-c) ;;
919 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
920 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
921 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
922 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
923 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
925 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
928 # Get rid of the leading space.
931 # When interrupted or exit'd, cleanup temporary files, and complete
932 # config.log. We remove comments because anyway the quotes in there
933 # would cause problems or look ugly.
934 # WARNING: Be sure not to use single quotes in there, as some shells,
935 # such as our DU 5.0 friend, will then `close
' the trap.
937 # Save into config.log some information that might help in debugging.
941 ## ---------------- ##
942 ## Cache variables. ##
943 ## ---------------- ##
946 # The following way of writing the cache mishandles newlines in values,
949 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
952 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
953 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
957 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
962 if test -s confdefs.h
; then
969 sed "/^$/d" confdefs.h
972 test "$ac_signal" != 0 &&
973 echo "$as_me: caught signal $ac_signal"
974 echo "$as_me: exit $exit_status"
976 rm -rf conftest
* confdefs
* core core.
* *.core conf$$
* $ac_clean_files &&
979 for ac_signal in 1 2 13 15; do
980 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
984 # confdefs.h avoids OS command line length limits that DEFS can exceed.
985 rm -rf conftest* confdefs.h
986 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
989 # Let the site file select an alternate cache file if it wants to.
990 # Prefer explicitly selected file to automatically selected ones.
991 if test -z "$CONFIG_SITE"; then
992 if test "x$prefix" != xNONE; then
993 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
995 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
998 for ac_site_file in $CONFIG_SITE; do
999 if test -r "$ac_site_file"; then
1000 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1001 echo "$as_me: loading site script $ac_site_file" >&6;}
1002 sed 's
/^
/| /' "$ac_site_file" >&5
1007 if test -r "$cache_file"; then
1008 # Some versions of bash will fail to source /dev/null (special
1009 # files actually), so we avoid doing that.
1010 if test -f "$cache_file"; then
1011 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1012 echo "$as_me: loading cache $cache_file" >&6;}
1014 [\\/]* | ?:[\\/]* ) . $cache_file;;
1015 *) . ./$cache_file;;
1019 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1020 echo "$as_me: creating cache $cache_file" >&6;}
1024 # Check that the precious variables saved in the cache have kept the same
1026 ac_cache_corrupted=false
1027 for ac_var in `(set) 2>&1 |
1028 sed -n 's
/^ac_env_\
([a
-zA-Z_0-9]*\
)_set
=.
*/\
1/p
'`; do
1029 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1030 eval ac_new_set=\$ac_env_${ac_var}_set
1031 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1032 eval ac_new_val="\$ac_env_${ac_var}_value"
1033 case $ac_old_set,$ac_new_set in
1035 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1036 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1037 ac_cache_corrupted=: ;;
1039 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1040 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1041 ac_cache_corrupted=: ;;
1044 if test "x$ac_old_val" != "x$ac_new_val"; then
1045 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1046 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1047 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1048 echo "$as_me: former value: $ac_old_val" >&2;}
1049 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1050 echo "$as_me: current value: $ac_new_val" >&2;}
1051 ac_cache_corrupted=:
1054 # Pass precious variables to config.status. It doesn't matter if
1055 # we pass some twice (in addition to the command line arguments).
1056 if test "$ac_new_set" = set; then
1058 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1059 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1060 ac_configure_args="$ac_configure_args '$ac_arg'"
1062 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1067 if $ac_cache_corrupted; then
1068 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1069 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1070 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1071 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1072 { (exit 1); exit 1; }; }
1076 ac_cpp='$CPP $CPPFLAGS'
1077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1078 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1082 for ac_dir in config $srcdir/config; do
1083 if test -f $ac_dir/install-sh; then
1085 ac_install_sh="$ac_aux_dir/install-sh -c"
1087 elif test -f $ac_dir/install.sh; then
1089 ac_install_sh="$ac_aux_dir/install.sh -c"
1091 elif test -f $ac_dir/shtool; then
1093 ac_install_sh="$ac_aux_dir/shtool install -c"
1097 if test -z "$ac_aux_dir"; then
1098 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1099 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1100 { (exit 1); exit 1; }; }
1102 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1103 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1104 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1106 # Find a good install program. We prefer a C program (faster),
1107 # so one script is as good as another. But avoid the broken or
1108 # incompatible versions:
1109 # SysV /etc/install, /usr/sbin/install
1110 # SunOS /usr/etc/install
1111 # IRIX /sbin/install
1113 # AmigaOS /C/install, which installs bootblocks on floppy discs
1114 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1115 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1116 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1117 # ./install, which can be erroneously created by make from ./install.sh.
1118 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
1119 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1120 if test -z "$INSTALL"; then
1121 if test "${ac_cv_path_install+set}" = set; then
1122 echo $ECHO_N "(cached) $ECHO_C" >&6
1124 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1128 test -z "$as_dir" && as_dir
=.
1129 # Account for people who put trailing slashes in PATH elements.
1131 .
/ | .
// | /cC
/* | \
1132 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
1135 # OSF1 and SCO ODT 3.0 have their own names for install.
1136 # Don't use installbsd from OSF since it installs stuff as root
1138 for ac_prog
in ginstall scoinst
install; do
1139 for ac_exec_ext
in '' $ac_executable_extensions; do
1140 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1141 if test $ac_prog = install &&
1142 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1143 # AIX install. It has an incompatible calling convention.
1145 elif test $ac_prog = install &&
1146 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1147 # program-specific install script used by HP pwplus--don't use.
1150 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1161 if test "${ac_cv_path_install+set}" = set; then
1162 INSTALL
=$ac_cv_path_install
1164 # As a last resort, use the slow shell script. We don't cache a
1165 # path for INSTALL within a source directory, because that will
1166 # break other packages using the cache if that directory is
1167 # removed, or if the path is relative.
1168 INSTALL
=$ac_install_sh
1171 echo "$as_me:$LINENO: result: $INSTALL" >&5
1172 echo "${ECHO_T}$INSTALL" >&6
1174 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1175 # It thinks the first close brace ends the variable substitution.
1176 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1178 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1180 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1182 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1183 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1186 echo timestamp
> conftest.
file
1187 # Do `set' in a subshell so we don't clobber the current shell's
1188 # arguments. Must try -L first in case configure is actually a
1189 # symlink; some systems play weird games with the mod time of symlinks
1190 # (eg FreeBSD returns the mod time of the symlink's containing
1193 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1194 if test "$*" = "X"; then
1196 set X
`ls -t $srcdir/configure conftest.file`
1199 if test "$*" != "X $srcdir/configure conftest.file" \
1200 && test "$*" != "X conftest.file $srcdir/configure"; then
1202 # If neither matched, then we have a broken ls. This can happen
1203 # if, for instance, CONFIG_SHELL is bash and it inherits a
1204 # broken ls alias from the environment. This has actually
1205 # happened. Such a system could not be considered "sane".
1206 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1207 alias in your environment" >&5
1208 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1209 alias in your environment" >&2;}
1210 { (exit 1); exit 1; }; }
1213 test "$2" = conftest.
file
1219 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1220 Check your system clock" >&5
1221 echo "$as_me: error: newly created file is older than distributed files!
1222 Check your system clock" >&2;}
1223 { (exit 1); exit 1; }; }
1225 echo "$as_me:$LINENO: result: yes" >&5
1226 echo "${ECHO_T}yes" >&6
1227 test "$program_prefix" != NONE
&&
1228 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1229 # Use a double $ so make ignores it.
1230 test "$program_suffix" != NONE
&&
1231 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1232 # Double any \ or $. echo might interpret backslashes.
1233 # By default was `s,x,x', remove it if useless.
1234 cat <<\_ACEOF
>conftest.
sed
1235 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1237 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1240 # expand $ac_aux_dir to an absolute path
1241 am_aux_dir
=`CDPATH=:; cd $ac_aux_dir && pwd`
1243 test x
"${MISSING+set}" = xset
|| MISSING
="\${SHELL} $am_aux_dir/missing"
1244 # Use eval to expand $SHELL
1245 if eval "$MISSING --run true"; then
1246 am_missing_run
="$MISSING --run "
1250 { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1251 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1254 for ac_prog
in mawk gawk nawk
awk
1256 # Extract the first word of "$ac_prog", so it can be a program name with args.
1257 set dummy
$ac_prog; ac_word
=$2
1258 echo "$as_me:$LINENO: checking for $ac_word" >&5
1259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1260 if test "${ac_cv_prog_AWK+set}" = set; then
1261 echo $ECHO_N "(cached) $ECHO_C" >&6
1263 if test -n "$AWK"; then
1264 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1266 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1270 test -z "$as_dir" && as_dir
=.
1271 for ac_exec_ext
in '' $ac_executable_extensions; do
1272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1273 ac_cv_prog_AWK
="$ac_prog"
1274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1283 if test -n "$AWK"; then
1284 echo "$as_me:$LINENO: result: $AWK" >&5
1285 echo "${ECHO_T}$AWK" >&6
1287 echo "$as_me:$LINENO: result: no" >&5
1288 echo "${ECHO_T}no" >&6
1291 test -n "$AWK" && break
1294 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1295 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1296 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
1297 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1298 echo $ECHO_N "(cached) $ECHO_C" >&6
1300 cat >conftest.
make <<\_ACEOF
1302 @
echo 'ac_maketemp="${MAKE}"'
1304 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1305 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1306 if test -n "$ac_maketemp"; then
1307 eval ac_cv_prog_make_
${ac_make}_set
=yes
1309 eval ac_cv_prog_make_
${ac_make}_set
=no
1313 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1314 echo "$as_me:$LINENO: result: yes" >&5
1315 echo "${ECHO_T}yes" >&6
1318 echo "$as_me:$LINENO: result: no" >&5
1319 echo "${ECHO_T}no" >&6
1320 SET_MAKE
="MAKE=${MAKE-make}"
1323 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1324 if test "${enable_dependency_tracking+set}" = set; then
1325 enableval
="$enable_dependency_tracking"
1328 if test "x$enable_dependency_tracking" != xno
; then
1329 am_depcomp
="$ac_aux_dir/depcomp"
1333 if test "x$enable_dependency_tracking" != xno; then
1341 rm -f .deps
2>/dev
/null
1342 mkdir .deps
2>/dev
/null
1343 if test -d .deps
; then
1346 # MS-DOS does not allow filenames that begin with a dot.
1349 rmdir .deps
2>/dev
/null
1351 # test to see if srcdir already configured
1352 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1353 test -f $srcdir/config.status
; then
1354 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1355 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1356 { (exit 1); exit 1; }; }
1359 # Define the identity of the package.
1363 cat >>confdefs.h
<<_ACEOF
1364 #define PACKAGE "$PACKAGE"
1367 cat >>confdefs.h
<<_ACEOF
1368 #define VERSION "$VERSION"
1371 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1372 # the ones we care about.
1374 # Autoconf 2.50 always computes EXEEXT. However we need to be
1375 # compatible with 2.13, for now. So we always define EXEEXT, but we
1378 # Similar for OBJEXT -- only we only use OBJEXT if the user actually
1379 # requests that it be used. This is a bit dumb.
1382 # Some tools Automake needs.
1384 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal"}
1386 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1388 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake"}
1390 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1392 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1394 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1396 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1398 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1400 # We need awk for the "check" target. The system "awk" is bad on
1403 ac_config_headers
="$ac_config_headers config.h:config.hin"
1405 # Initialize the test suite.
1406 ac_config_commands
="$ac_config_commands tests/package.m4"
1408 ac_config_commands
="$ac_config_commands tests/atconfig"
1410 if test -f $srcdir/tests
/atlocal.
in; then
1411 ac_config_files
="$ac_config_files tests/atlocal"
1415 ac_config_files
="$ac_config_files tests/bison"
1417 # Checks for programs.
1419 ac_cpp
='$CPP $CPPFLAGS'
1420 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1421 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1422 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1423 if test -n "$ac_tool_prefix"; then
1424 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1425 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1426 echo "$as_me:$LINENO: checking for $ac_word" >&5
1427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1428 if test "${ac_cv_prog_CC+set}" = set; then
1429 echo $ECHO_N "(cached) $ECHO_C" >&6
1431 if test -n "$CC"; then
1432 ac_cv_prog_CC
="$CC" # Let the user override the test.
1434 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1438 test -z "$as_dir" && as_dir
=.
1439 for ac_exec_ext
in '' $ac_executable_extensions; do
1440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1441 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1451 if test -n "$CC"; then
1452 echo "$as_me:$LINENO: result: $CC" >&5
1453 echo "${ECHO_T}$CC" >&6
1455 echo "$as_me:$LINENO: result: no" >&5
1456 echo "${ECHO_T}no" >&6
1460 if test -z "$ac_cv_prog_CC"; then
1462 # Extract the first word of "gcc", so it can be a program name with args.
1463 set dummy gcc
; ac_word
=$2
1464 echo "$as_me:$LINENO: checking for $ac_word" >&5
1465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1466 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 if test -n "$ac_ct_CC"; then
1470 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1472 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1476 test -z "$as_dir" && as_dir
=.
1477 for ac_exec_ext
in '' $ac_executable_extensions; do
1478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1479 ac_cv_prog_ac_ct_CC
="gcc"
1480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1488 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1489 if test -n "$ac_ct_CC"; then
1490 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1491 echo "${ECHO_T}$ac_ct_CC" >&6
1493 echo "$as_me:$LINENO: result: no" >&5
1494 echo "${ECHO_T}no" >&6
1502 if test -z "$CC"; then
1503 if test -n "$ac_tool_prefix"; then
1504 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1505 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1506 echo "$as_me:$LINENO: checking for $ac_word" >&5
1507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1508 if test "${ac_cv_prog_CC+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1511 if test -n "$CC"; then
1512 ac_cv_prog_CC
="$CC" # Let the user override the test.
1514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1518 test -z "$as_dir" && as_dir
=.
1519 for ac_exec_ext
in '' $ac_executable_extensions; do
1520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1521 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1531 if test -n "$CC"; then
1532 echo "$as_me:$LINENO: result: $CC" >&5
1533 echo "${ECHO_T}$CC" >&6
1535 echo "$as_me:$LINENO: result: no" >&5
1536 echo "${ECHO_T}no" >&6
1540 if test -z "$ac_cv_prog_CC"; then
1542 # Extract the first word of "cc", so it can be a program name with args.
1543 set dummy cc
; ac_word
=$2
1544 echo "$as_me:$LINENO: checking for $ac_word" >&5
1545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1549 if test -n "$ac_ct_CC"; then
1550 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1552 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1556 test -z "$as_dir" && as_dir
=.
1557 for ac_exec_ext
in '' $ac_executable_extensions; do
1558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1559 ac_cv_prog_ac_ct_CC
="cc"
1560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1568 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1569 if test -n "$ac_ct_CC"; then
1570 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1571 echo "${ECHO_T}$ac_ct_CC" >&6
1573 echo "$as_me:$LINENO: result: no" >&5
1574 echo "${ECHO_T}no" >&6
1583 if test -z "$CC"; then
1584 # Extract the first word of "cc", so it can be a program name with args.
1585 set dummy cc
; ac_word
=$2
1586 echo "$as_me:$LINENO: checking for $ac_word" >&5
1587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1588 if test "${ac_cv_prog_CC+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1591 if test -n "$CC"; then
1592 ac_cv_prog_CC
="$CC" # Let the user override the test.
1595 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1599 test -z "$as_dir" && as_dir
=.
1600 for ac_exec_ext
in '' $ac_executable_extensions; do
1601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1602 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1603 ac_prog_rejected
=yes
1607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1613 if test $ac_prog_rejected = yes; then
1614 # We found a bogon in the path, so make sure we never use it.
1615 set dummy
$ac_cv_prog_CC
1617 if test $# != 0; then
1618 # We chose a different compiler from the bogus one.
1619 # However, it has the same basename, so the bogon will be chosen
1620 # first if we set CC to just the basename; use the full file name.
1622 set dummy
"$as_dir/$ac_word" ${1+"$@"}
1630 if test -n "$CC"; then
1631 echo "$as_me:$LINENO: result: $CC" >&5
1632 echo "${ECHO_T}$CC" >&6
1634 echo "$as_me:$LINENO: result: no" >&5
1635 echo "${ECHO_T}no" >&6
1639 if test -z "$CC"; then
1640 if test -n "$ac_tool_prefix"; then
1643 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1644 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1645 echo "$as_me:$LINENO: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_CC+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1650 if test -n "$CC"; then
1651 ac_cv_prog_CC
="$CC" # Let the user override the test.
1653 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1657 test -z "$as_dir" && as_dir
=.
1658 for ac_exec_ext
in '' $ac_executable_extensions; do
1659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1670 if test -n "$CC"; then
1671 echo "$as_me:$LINENO: result: $CC" >&5
1672 echo "${ECHO_T}$CC" >&6
1674 echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1678 test -n "$CC" && break
1681 if test -z "$CC"; then
1685 # Extract the first word of "$ac_prog", so it can be a program name with args.
1686 set dummy
$ac_prog; ac_word
=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 if test -n "$ac_ct_CC"; then
1693 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1695 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1699 test -z "$as_dir" && as_dir
=.
1700 for ac_exec_ext
in '' $ac_executable_extensions; do
1701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702 ac_cv_prog_ac_ct_CC
="$ac_prog"
1703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1711 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1712 if test -n "$ac_ct_CC"; then
1713 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1714 echo "${ECHO_T}$ac_ct_CC" >&6
1716 echo "$as_me:$LINENO: result: no" >&5
1717 echo "${ECHO_T}no" >&6
1720 test -n "$ac_ct_CC" && break
1728 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
1729 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1730 { (exit 1); exit 1; }; }
1732 # Provide some information about the compiler.
1733 echo "$as_me:$LINENO:" \
1734 "checking for C compiler version" >&5
1735 ac_compiler
=`set X $ac_compile; echo $2`
1736 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1737 (eval $ac_compiler --version </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); }
1746 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1747 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1750 (exit $ac_status); }
1752 cat >conftest.
$ac_ext <<_ACEOF
1753 #line $LINENO "configure"
1754 #include "confdefs.h"
1756 #ifdef F77_DUMMY_MAIN
1760 int F77_DUMMY_MAIN() { return 1; }
1770 ac_clean_files_save
=$ac_clean_files
1771 ac_clean_files
="$ac_clean_files a.out a.exe"
1772 # Try to create an executable without -o first, disregard a.out.
1773 # It will help us diagnose broken compilers, and finding out an intuition
1775 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1776 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1777 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1778 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1779 (eval $ac_link_default) 2>&5
1781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1782 (exit $ac_status); }; then
1783 # Find the output, starting from the most likely. This scheme is
1784 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1786 for ac_file
in `ls a.exe conftest.exe 2>/dev/null;
1787 ls a.out conftest 2>/dev/null;
1788 ls a.* conftest.* 2>/dev/null`; do
1790 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
) ;;
1791 a.out
) # We found the default executable, but exeext='' is most
1794 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1795 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1802 echo "$as_me: failed program was:" >&5
1803 cat conftest.
$ac_ext >&5
1804 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1805 echo "$as_me: error: C compiler cannot create executables" >&2;}
1806 { (exit 77); exit 77; }; }
1809 ac_exeext
=$ac_cv_exeext
1810 echo "$as_me:$LINENO: result: $ac_file" >&5
1811 echo "${ECHO_T}$ac_file" >&6
1813 # Check the compiler produces executables we can run. If not, either
1814 # the compiler is broken, or we cross compile.
1815 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1816 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1817 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1818 # If not cross compiling, check that we can run a simple program.
1819 if test "$cross_compiling" != yes; then
1820 if { ac_try
='./$ac_file'
1821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1825 (exit $ac_status); }; }; then
1828 if test "$cross_compiling" = maybe
; then
1831 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1832 If you meant to cross compile, use \`--host'." >&5
1833 echo "$as_me: error: cannot run C compiled programs.
1834 If you meant to cross compile, use \`--host'." >&2;}
1835 { (exit 1); exit 1; }; }
1839 echo "$as_me:$LINENO: result: yes" >&5
1840 echo "${ECHO_T}yes" >&6
1842 rm -f a.out a.exe conftest
$ac_cv_exeext
1843 ac_clean_files
=$ac_clean_files_save
1844 # Check the compiler produces executables we can run. If not, either
1845 # the compiler is broken, or we cross compile.
1846 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1847 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1848 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1849 echo "${ECHO_T}$cross_compiling" >&6
1851 echo "$as_me:$LINENO: checking for executable suffix" >&5
1852 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1854 (eval $ac_link) 2>&5
1856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857 (exit $ac_status); }; then
1858 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1859 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1860 # work properly (i.e., refer to `conftest.exe'), while it won't with
1862 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1864 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1865 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1872 { { echo "$as_me:$LINENO: error: cannot compute EXEEXT: cannot compile and link" >&5
1873 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1874 { (exit 1); exit 1; }; }
1877 rm -f conftest
$ac_cv_exeext
1878 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1879 echo "${ECHO_T}$ac_cv_exeext" >&6
1881 rm -f conftest.
$ac_ext
1882 EXEEXT
=$ac_cv_exeext
1884 echo "$as_me:$LINENO: checking for object suffix" >&5
1885 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1886 if test "${ac_cv_objext+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 cat >conftest.
$ac_ext <<_ACEOF
1890 #line $LINENO "configure"
1891 #include "confdefs.h"
1893 #ifdef F77_DUMMY_MAIN
1897 int F77_DUMMY_MAIN() { return 1; }
1907 rm -f conftest.o conftest.obj
1908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1909 (eval $ac_compile) 2>&5
1911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912 (exit $ac_status); }; then
1913 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1915 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1916 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1921 echo "$as_me: failed program was:" >&5
1922 cat conftest.
$ac_ext >&5
1923 { { echo "$as_me:$LINENO: error: cannot compute OBJEXT: cannot compile" >&5
1924 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1925 { (exit 1); exit 1; }; }
1928 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1930 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1931 echo "${ECHO_T}$ac_cv_objext" >&6
1932 OBJEXT
=$ac_cv_objext
1934 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1935 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1936 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1939 cat >conftest.
$ac_ext <<_ACEOF
1940 #line $LINENO "configure"
1941 #include "confdefs.h"
1943 #ifdef F77_DUMMY_MAIN
1947 int F77_DUMMY_MAIN() { return 1; }
1960 rm -f conftest.
$ac_objext
1961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1962 (eval $ac_compile) 2>&5
1964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965 (exit $ac_status); } &&
1966 { ac_try
='test -s conftest.$ac_objext'
1967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); }; }; then
1974 echo "$as_me: failed program was:" >&5
1975 cat conftest.
$ac_ext >&5
1978 rm -f conftest.
$ac_objext conftest.
$ac_ext
1979 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1982 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1983 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1984 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1985 ac_test_CFLAGS
=${CFLAGS+set}
1986 ac_save_CFLAGS
=$CFLAGS
1988 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1989 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1990 if test "${ac_cv_prog_cc_g+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 cat >conftest.
$ac_ext <<_ACEOF
1994 #line $LINENO "configure"
1995 #include "confdefs.h"
1997 #ifdef F77_DUMMY_MAIN
2001 int F77_DUMMY_MAIN() { return 1; }
2011 rm -f conftest.
$ac_objext
2012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2013 (eval $ac_compile) 2>&5
2015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016 (exit $ac_status); } &&
2017 { ac_try
='test -s conftest.$ac_objext'
2018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); }; }; then
2025 echo "$as_me: failed program was:" >&5
2026 cat conftest.
$ac_ext >&5
2029 rm -f conftest.
$ac_objext conftest.
$ac_ext
2031 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2032 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2033 if test "$ac_test_CFLAGS" = set; then
2034 CFLAGS
=$ac_save_CFLAGS
2035 elif test $ac_cv_prog_cc_g = yes; then
2036 if test "$GCC" = yes; then
2042 if test "$GCC" = yes; then
2048 # Some people use a C++ compiler to compile C. Since we use `exit',
2049 # in C++ we need to declare it. In case someone uses the same compiler
2050 # for both compiling C and C++ we need to have the C++ compiler decide
2051 # the declaration of exit, since it's the most demanding environment.
2052 cat >conftest.
$ac_ext <<_ACEOF
2057 rm -f conftest.
$ac_objext
2058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2059 (eval $ac_compile) 2>&5
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); } &&
2063 { ac_try
='test -s conftest.$ac_objext'
2064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }; }; then
2069 for ac_declaration
in \
2071 '#include <stdlib.h>' \
2072 'extern "C" void std::exit (int) throw (); using std::exit;' \
2073 'extern "C" void std::exit (int); using std::exit;' \
2074 'extern "C" void exit (int) throw ();' \
2075 'extern "C" void exit (int);' \
2078 cat >conftest.
$ac_ext <<_ACEOF
2079 #line $LINENO "configure"
2080 #include "confdefs.h"
2083 #ifdef F77_DUMMY_MAIN
2087 int F77_DUMMY_MAIN() { return 1; }
2097 rm -f conftest.
$ac_objext
2098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2099 (eval $ac_compile) 2>&5
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); } &&
2103 { ac_try
='test -s conftest.$ac_objext'
2104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }; }; then
2111 echo "$as_me: failed program was:" >&5
2112 cat conftest.
$ac_ext >&5
2115 rm -f conftest.
$ac_objext conftest.
$ac_ext
2116 cat >conftest.
$ac_ext <<_ACEOF
2117 #line $LINENO "configure"
2118 #include "confdefs.h"
2120 #ifdef F77_DUMMY_MAIN
2124 int F77_DUMMY_MAIN() { return 1; }
2134 rm -f conftest.
$ac_objext
2135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2136 (eval $ac_compile) 2>&5
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); } &&
2140 { ac_try
='test -s conftest.$ac_objext'
2141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }; }; then
2148 echo "$as_me: failed program was:" >&5
2149 cat conftest.
$ac_ext >&5
2151 rm -f conftest.
$ac_objext conftest.
$ac_ext
2154 if test -n "$ac_declaration"; then
2155 echo '#ifdef __cplusplus' >>confdefs.h
2156 echo $ac_declaration >>confdefs.h
2157 echo '#endif' >>confdefs.h
2161 echo "$as_me: failed program was:" >&5
2162 cat conftest.
$ac_ext >&5
2164 rm -f conftest.
$ac_objext conftest.
$ac_ext
2166 ac_cpp
='$CPP $CPPFLAGS'
2167 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2168 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2169 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2171 ac_config_commands
="$ac_config_commands default-1"
2173 am_make
=${MAKE-make}
2174 cat > confinc
<< 'END'
2178 # If we don't find an include directive, just comment out the code.
2179 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2180 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2184 # First try GNU make style include.
2185 echo "include confinc" > confmf
2186 # We grep out `Entering directory' and `Leaving directory'
2187 # messages which can occur if `w' ends up in MAKEFLAGS.
2188 # In particular we don't look at `^make:' because GNU make might
2189 # be invoked under some other name (usually "gmake"), in which
2190 # case it prints its new name instead of `make'.
2191 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2196 # Now try BSD make style include.
2197 if test "$am__include" = "#"; then
2198 echo '.include "confinc"' > confmf
2199 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2200 am__include
=.include
2206 echo "$as_me:$LINENO: result: $_am_result" >&5
2207 echo "${ECHO_T}$_am_result" >&6
2208 rm -f confinc confmf
2210 depcc
="$CC" am_compiler_list
=
2212 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2213 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2214 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2217 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2218 # We make a subdir and do the tests there. Otherwise we can end up
2219 # making bogus files that we don't know about and never remove. For
2220 # instance it was reported that on HP-UX the gcc test will end up
2221 # making a dummy file named `D' -- because `-MD' means `put the output
2224 # Copy depcomp to subdir because otherwise we won't find it if we're
2225 # using a relative directory.
2226 cp "$am_depcomp" conftest.dir
2229 am_cv_CC_dependencies_compiler_type
=none
2230 if test "$am_compiler_list" = ""; then
2231 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2233 for depmode
in $am_compiler_list; do
2234 # We need to recreate these files for each test, as the compiler may
2235 # overwrite some of them when testing with obscure command lines.
2236 # This happens at least with the AIX C compiler.
2237 echo '#include "conftest.h"' > conftest.c
2238 echo 'int i;' > conftest.h
2239 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2243 # after this tag, mechanisms are not by side-effect, so they'll
2244 # only be used when explicitly requested
2245 if test "x$enable_dependency_tracking" = xyes
; then
2253 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2254 # mode. It turns out that the SunPro C++ compiler does not properly
2255 # handle `-M -o', and we need to detect this.
2256 if depmode
=$depmode \
2257 source=conftest.c object
=conftest.o \
2258 depfile
=conftest.Po tmpdepfile
=conftest.TPo \
2259 $SHELL .
/depcomp
$depcc -c conftest.c
-o conftest.o
>/dev
/null
2>&1 &&
2260 grep conftest.h conftest.Po
> /dev
/null
2>&1 &&
2261 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2262 am_cv_CC_dependencies_compiler_type
=$depmode
2270 am_cv_CC_dependencies_compiler_type
=none
2274 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2275 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2276 CCDEPMODE
="depmode=$am_cv_CC_dependencies_compiler_type"
2279 ac_cpp
='$CPP $CPPFLAGS'
2280 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2281 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2282 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2283 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2284 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2285 # On Suns, sometimes $CPP names a directory.
2286 if test -n "$CPP" && test -d "$CPP"; then
2289 if test -z "$CPP"; then
2290 if test "${ac_cv_prog_CPP+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2293 # Double quotes because CPP needs to be expanded
2294 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2297 for ac_c_preproc_warn_flag
in '' yes
2299 # Use a header file that comes with gcc, so configuring glibc
2300 # with a fresh cross-compiler works.
2301 # On the NeXT, cc -E runs the code through the compiler's parser,
2302 # not just through cpp. "Syntax error" is here to catch this case.
2303 cat >conftest.
$ac_ext <<_ACEOF
2304 #line $LINENO "configure"
2305 #include "confdefs.h"
2309 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2310 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2312 egrep -v '^ *\+' conftest.er1
>conftest.err
2314 cat conftest.err
>&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); } >/dev
/null
; then
2317 if test -s conftest.err
; then
2318 ac_cpp_err
=$ac_c_preproc_warn_flag
2325 if test -z "$ac_cpp_err"; then
2328 echo "$as_me: failed program was:" >&5
2329 cat conftest.
$ac_ext >&5
2330 # Broken: fails on valid input.
2333 rm -f conftest.err conftest.
$ac_ext
2335 # OK, works on sane cases. Now check whether non-existent headers
2336 # can be detected and how.
2337 cat >conftest.
$ac_ext <<_ACEOF
2338 #line $LINENO "configure"
2339 #include "confdefs.h"
2340 #include <ac_nonexistent.h>
2342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2343 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2345 egrep -v '^ *\+' conftest.er1
>conftest.err
2347 cat conftest.err
>&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); } >/dev
/null
; then
2350 if test -s conftest.err
; then
2351 ac_cpp_err
=$ac_c_preproc_warn_flag
2358 if test -z "$ac_cpp_err"; then
2359 # Broken: success on invalid input.
2362 echo "$as_me: failed program was:" >&5
2363 cat conftest.
$ac_ext >&5
2364 # Passes both tests.
2368 rm -f conftest.err conftest.
$ac_ext
2371 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2372 rm -f conftest.err conftest.
$ac_ext
2373 if $ac_preproc_ok; then
2385 echo "$as_me:$LINENO: result: $CPP" >&5
2386 echo "${ECHO_T}$CPP" >&6
2388 for ac_c_preproc_warn_flag
in '' yes
2390 # Use a header file that comes with gcc, so configuring glibc
2391 # with a fresh cross-compiler works.
2392 # On the NeXT, cc -E runs the code through the compiler's parser,
2393 # not just through cpp. "Syntax error" is here to catch this case.
2394 cat >conftest.
$ac_ext <<_ACEOF
2395 #line $LINENO "configure"
2396 #include "confdefs.h"
2400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2401 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2403 egrep -v '^ *\+' conftest.er1
>conftest.err
2405 cat conftest.err
>&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); } >/dev
/null
; then
2408 if test -s conftest.err
; then
2409 ac_cpp_err
=$ac_c_preproc_warn_flag
2416 if test -z "$ac_cpp_err"; then
2419 echo "$as_me: failed program was:" >&5
2420 cat conftest.
$ac_ext >&5
2421 # Broken: fails on valid input.
2424 rm -f conftest.err conftest.
$ac_ext
2426 # OK, works on sane cases. Now check whether non-existent headers
2427 # can be detected and how.
2428 cat >conftest.
$ac_ext <<_ACEOF
2429 #line $LINENO "configure"
2430 #include "confdefs.h"
2431 #include <ac_nonexistent.h>
2433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2434 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2436 egrep -v '^ *\+' conftest.er1
>conftest.err
2438 cat conftest.err
>&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } >/dev
/null
; then
2441 if test -s conftest.err
; then
2442 ac_cpp_err
=$ac_c_preproc_warn_flag
2449 if test -z "$ac_cpp_err"; then
2450 # Broken: success on invalid input.
2453 echo "$as_me: failed program was:" >&5
2454 cat conftest.
$ac_ext >&5
2455 # Passes both tests.
2459 rm -f conftest.err conftest.
$ac_ext
2462 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2463 rm -f conftest.err conftest.
$ac_ext
2464 if $ac_preproc_ok; then
2467 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2468 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2469 { (exit 1); exit 1; }; }
2473 ac_cpp
='$CPP $CPPFLAGS'
2474 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2475 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2476 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2478 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2479 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2480 if test "${ac_cv_header_stdc+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 cat >conftest.
$ac_ext <<_ACEOF
2484 #line $LINENO "configure"
2485 #include "confdefs.h"
2492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2493 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2495 egrep -v '^ *\+' conftest.er1
>conftest.err
2497 cat conftest.err
>&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } >/dev
/null
; then
2500 if test -s conftest.err
; then
2501 ac_cpp_err
=$ac_c_preproc_warn_flag
2508 if test -z "$ac_cpp_err"; then
2509 ac_cv_header_stdc
=yes
2511 echo "$as_me: failed program was:" >&5
2512 cat conftest.
$ac_ext >&5
2513 ac_cv_header_stdc
=no
2515 rm -f conftest.err conftest.
$ac_ext
2517 if test $ac_cv_header_stdc = yes; then
2518 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2519 cat >conftest.
$ac_ext <<_ACEOF
2520 #line $LINENO "configure"
2521 #include "confdefs.h"
2525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2526 egrep "memchr" >/dev
/null
2>&1; then
2529 ac_cv_header_stdc
=no
2535 if test $ac_cv_header_stdc = yes; then
2536 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2537 cat >conftest.
$ac_ext <<_ACEOF
2538 #line $LINENO "configure"
2539 #include "confdefs.h"
2543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2544 egrep "free" >/dev
/null
2>&1; then
2547 ac_cv_header_stdc
=no
2553 if test $ac_cv_header_stdc = yes; then
2554 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2555 if test "$cross_compiling" = yes; then
2558 cat >conftest.
$ac_ext <<_ACEOF
2559 #line $LINENO "configure"
2560 #include "confdefs.h"
2562 #if ((' ' & 0x0FF) == 0x020)
2563 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2564 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2566 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2567 || ('j' <= (c) && (c) <= 'r') \
2568 || ('s' <= (c) && (c) <= 'z'))
2569 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2572 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2577 for (i = 0; i < 256; i++)
2578 if (XOR (islower (i), ISLOWER (i))
2579 || toupper (i) != TOUPPER (i))
2584 rm -f conftest
$ac_exeext
2585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2586 (eval $ac_link) 2>&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; }; then
2597 echo "$as_me: program exited with status $ac_status" >&5
2598 echo "$as_me: failed program was:" >&5
2599 cat conftest.
$ac_ext >&5
2601 ac_cv_header_stdc
=no
2603 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2607 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2608 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2609 if test $ac_cv_header_stdc = yes; then
2611 cat >>confdefs.h
<<\_ACEOF
2612 #define STDC_HEADERS 1
2617 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2619 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2620 inttypes.h stdint.h unistd.h
2622 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2623 echo "$as_me:$LINENO: checking for $ac_header" >&5
2624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 cat >conftest.
$ac_ext <<_ACEOF
2629 #line $LINENO "configure"
2630 #include "confdefs.h"
2631 $ac_includes_default
2633 #include <$ac_header>
2635 rm -f conftest.
$ac_objext
2636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2637 (eval $ac_compile) 2>&5
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); } &&
2641 { ac_try
='test -s conftest.$ac_objext'
2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; }; then
2647 eval "$as_ac_Header=yes"
2649 echo "$as_me: failed program was:" >&5
2650 cat conftest.
$ac_ext >&5
2651 eval "$as_ac_Header=no"
2653 rm -f conftest.
$ac_objext conftest.
$ac_ext
2655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2658 cat >>confdefs.h
<<_ACEOF
2659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2666 if test "${ac_cv_header_minix_config_h+set}" = set; then
2667 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2668 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2669 if test "${ac_cv_header_minix_config_h+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2673 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2675 # Is the header compilable?
2676 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2677 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2678 cat >conftest.
$ac_ext <<_ACEOF
2679 #line $LINENO "configure"
2680 #include "confdefs.h"
2681 $ac_includes_default
2682 #include <minix/config.h>
2684 rm -f conftest.
$ac_objext
2685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2686 (eval $ac_compile) 2>&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); } &&
2690 { ac_try
='test -s conftest.$ac_objext'
2691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; }; then
2696 ac_header_compiler
=yes
2698 echo "$as_me: failed program was:" >&5
2699 cat conftest.
$ac_ext >&5
2700 ac_header_compiler
=no
2702 rm -f conftest.
$ac_objext conftest.
$ac_ext
2703 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2704 echo "${ECHO_T}$ac_header_compiler" >&6
2706 # Is the header present?
2707 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2708 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2709 cat >conftest.
$ac_ext <<_ACEOF
2710 #line $LINENO "configure"
2711 #include "confdefs.h"
2712 #include <minix/config.h>
2714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2715 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2717 egrep -v '^ *\+' conftest.er1
>conftest.err
2719 cat conftest.err
>&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } >/dev
/null
; then
2722 if test -s conftest.err
; then
2723 ac_cpp_err
=$ac_c_preproc_warn_flag
2730 if test -z "$ac_cpp_err"; then
2731 ac_header_preproc
=yes
2733 echo "$as_me: failed program was:" >&5
2734 cat conftest.
$ac_ext >&5
2735 ac_header_preproc
=no
2737 rm -f conftest.err conftest.
$ac_ext
2738 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2739 echo "${ECHO_T}$ac_header_preproc" >&6
2741 # So? What about this header?
2742 case $ac_header_compiler:$ac_header_preproc in
2744 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
2745 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2746 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2747 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2749 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled." >&5
2750 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled." >&2;}
2751 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
2752 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
2753 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2754 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2756 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2757 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2758 if test "${ac_cv_header_minix_config_h+set}" = set; then
2759 echo $ECHO_N "(cached) $ECHO_C" >&6
2761 ac_cv_header_minix_config_h
=$ac_header_preproc
2763 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2764 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2767 if test $ac_cv_header_minix_config_h = yes; then
2773 if test "$MINIX" = yes; then
2775 cat >>confdefs.h
<<\_ACEOF
2776 #define _POSIX_SOURCE 1
2779 cat >>confdefs.h
<<\_ACEOF
2780 #define _POSIX_1_SOURCE 2
2783 cat >>confdefs.h
<<\_ACEOF
2789 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2790 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2791 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2792 echo $ECHO_N "(cached) $ECHO_C" >&6
2794 ac_check_lib_save_LIBS
=$LIBS
2795 LIBS
="-lcposix $LIBS"
2796 cat >conftest.
$ac_ext <<_ACEOF
2797 #line $LINENO "configure"
2798 #include "confdefs.h"
2800 /* Override any gcc2 internal prototype to avoid an error. */
2804 /* We use char because int might match the return type of a gcc2
2805 builtin and then its argument prototype would still apply. */
2807 #ifdef F77_DUMMY_MAIN
2811 int F77_DUMMY_MAIN() { return 1; }
2821 rm -f conftest.
$ac_objext conftest
$ac_exeext
2822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2823 (eval $ac_link) 2>&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); } &&
2827 { ac_try
='test -s conftest$ac_exeext'
2828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); }; }; then
2833 ac_cv_lib_cposix_strerror
=yes
2835 echo "$as_me: failed program was:" >&5
2836 cat conftest.
$ac_ext >&5
2837 ac_cv_lib_cposix_strerror
=no
2839 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2840 LIBS
=$ac_check_lib_save_LIBS
2842 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2843 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2844 if test $ac_cv_lib_cposix_strerror = yes; then
2845 LIBS
="$LIBS -lcposix"
2848 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2849 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2850 if test "${am_cv_prog_cc_stdc+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 am_cv_prog_cc_stdc
=no
2855 # Don't try gcc -ansi; that turns off useful extensions and
2856 # breaks some systems' header files.
2857 # AIX -qlanglvl=ansi
2858 # Ultrix and OSF/1 -std1
2859 # HP-UX 10.20 and later -Ae
2860 # HP-UX older versions -Aa -D_HPUX_SOURCE
2861 # SVR4 -Xc -D__EXTENSIONS__
2862 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2864 CC
="$ac_save_CC $ac_arg"
2865 cat >conftest.
$ac_ext <<_ACEOF
2866 #line $LINENO "configure"
2867 #include "confdefs.h"
2870 #include <sys/types.h>
2871 #include <sys/stat.h>
2872 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2873 struct buf { int x; };
2874 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2875 static char *e (p, i)
2881 static char *f (char * (*g) (char **, int), char **p, ...)
2886 s = g (p, va_arg (v,int));
2890 int test (int i, double x);
2891 struct s1 {int (*f) (int a);};
2892 struct s2 {int (*f) (double a);};
2893 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2897 #ifdef F77_DUMMY_MAIN
2901 int F77_DUMMY_MAIN() { return 1; }
2907 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2913 rm -f conftest.
$ac_objext
2914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2915 (eval $ac_compile) 2>&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); } &&
2919 { ac_try
='test -s conftest.$ac_objext'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; }; then
2925 am_cv_prog_cc_stdc
="$ac_arg"; break
2927 echo "$as_me: failed program was:" >&5
2928 cat conftest.
$ac_ext >&5
2930 rm -f conftest.
$ac_objext conftest.
$ac_ext
2936 if test -z "$am_cv_prog_cc_stdc"; then
2937 echo "$as_me:$LINENO: result: none needed" >&5
2938 echo "${ECHO_T}none needed" >&6
2940 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2941 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2943 case "x$am_cv_prog_cc_stdc" in
2945 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
2948 if test -n "$ac_tool_prefix"; then
2949 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2950 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2951 echo "$as_me:$LINENO: checking for $ac_word" >&5
2952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2953 if test "${ac_cv_prog_RANLIB+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 if test -n "$RANLIB"; then
2957 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2963 test -z "$as_dir" && as_dir
=.
2964 for ac_exec_ext
in '' $ac_executable_extensions; do
2965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2966 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2975 RANLIB
=$ac_cv_prog_RANLIB
2976 if test -n "$RANLIB"; then
2977 echo "$as_me:$LINENO: result: $RANLIB" >&5
2978 echo "${ECHO_T}$RANLIB" >&6
2980 echo "$as_me:$LINENO: result: no" >&5
2981 echo "${ECHO_T}no" >&6
2985 if test -z "$ac_cv_prog_RANLIB"; then
2986 ac_ct_RANLIB
=$RANLIB
2987 # Extract the first word of "ranlib", so it can be a program name with args.
2988 set dummy ranlib
; ac_word
=$2
2989 echo "$as_me:$LINENO: checking for $ac_word" >&5
2990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2991 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2994 if test -n "$ac_ct_RANLIB"; then
2995 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3001 test -z "$as_dir" && as_dir
=.
3002 for ac_exec_ext
in '' $ac_executable_extensions; do
3003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3014 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3015 if test -n "$ac_ct_RANLIB"; then
3016 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3017 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3019 echo "$as_me:$LINENO: result: no" >&5
3020 echo "${ECHO_T}no" >&6
3023 RANLIB
=$ac_ct_RANLIB
3025 RANLIB
="$ac_cv_prog_RANLIB"
3028 # GNU M4 is needed to build the testsuite.
3029 for ac_prog
in gm4 gnum4
m4
3031 # Extract the first word of "$ac_prog", so it can be a program name with args.
3032 set dummy
$ac_prog; ac_word
=$2
3033 echo "$as_me:$LINENO: checking for $ac_word" >&5
3034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3035 if test "${ac_cv_path_M4+set}" = set; then
3036 echo $ECHO_N "(cached) $ECHO_C" >&6
3040 ac_cv_path_M4
="$M4" # Let the user override the test with a path.
3043 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3047 test -z "$as_dir" && as_dir
=.
3048 for ac_exec_ext
in '' $ac_executable_extensions; do
3049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3050 ac_cv_path_M4
="$as_dir/$ac_word$ac_exec_ext"
3051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3062 if test -n "$M4"; then
3063 echo "$as_me:$LINENO: result: $M4" >&5
3064 echo "${ECHO_T}$M4" >&6
3066 echo "$as_me:$LINENO: result: no" >&5
3067 echo "${ECHO_T}no" >&6
3070 test -n "$M4" && break
3072 test -n "$M4" || M4
="m4"
3074 echo "$as_me:$LINENO: checking whether m4 supports frozen files" >&5
3075 echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" >&6
3076 if test "${ac_cv_prog_gnu_m4+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3079 ac_cv_prog_gnu_m4
=no
3080 if test x
"$M4" != x
; then
3081 case `$M4 --help < /dev/null 2>&1` in
3082 *reload
-state*) ac_cv_prog_gnu_m4
=yes ;;
3086 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_m4" >&5
3087 echo "${ECHO_T}$ac_cv_prog_gnu_m4" >&6
3089 if test "$ac_cv_prog_gnu_m4" != yes; then
3090 missing_dir
=`cd $ac_aux_dir && pwd`
3091 M4
="$missing_dir/missing m4"
3094 # Check whether --enable-gcc-warnings or --disable-gcc-warnings was given.
3095 if test "${enable_gcc_warnings+set}" = set; then
3096 enableval
="$enable_gcc_warnings"
3097 case "${enableval}" in
3099 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for gcc-warnings option" >&5
3100 echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;}
3101 { (exit 1); exit 1; }; } ;;
3106 if test "${enableval}" = yes; then
3107 echo "$as_me:$LINENO: checking whether compiler accepts -Wall" >&5
3108 echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6
3110 ac_save_CFLAGS
="$CFLAGS"
3111 CFLAGS
="$CFLAGS -Wall"
3112 cat >conftest.
$ac_ext <<_ACEOF
3113 #line $LINENO "configure"
3114 #include "confdefs.h"
3116 #ifdef F77_DUMMY_MAIN
3120 int F77_DUMMY_MAIN() { return 1; }
3130 rm -f conftest.
$ac_objext
3131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3132 (eval $ac_compile) 2>&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } &&
3136 { ac_try
='test -s conftest.$ac_objext'
3137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; }; then
3142 WARNING_CFLAGS
="$WARNING_CFLAGS -Wall"
3143 echo "$as_me:$LINENO: result: yes" >&5
3144 echo "${ECHO_T}yes" >&6
3146 echo "$as_me: failed program was:" >&5
3147 cat conftest.
$ac_ext >&5
3148 echo "$as_me:$LINENO: result: no" >&5
3149 echo "${ECHO_T}no" >&6
3151 rm -f conftest.
$ac_objext conftest.
$ac_ext
3152 CFLAGS
="$ac_save_CFLAGS"
3153 echo "$as_me:$LINENO: checking whether compiler accepts -W" >&5
3154 echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6
3156 ac_save_CFLAGS
="$CFLAGS"
3158 cat >conftest.
$ac_ext <<_ACEOF
3159 #line $LINENO "configure"
3160 #include "confdefs.h"
3162 #ifdef F77_DUMMY_MAIN
3166 int F77_DUMMY_MAIN() { return 1; }
3176 rm -f conftest.
$ac_objext
3177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3178 (eval $ac_compile) 2>&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } &&
3182 { ac_try
='test -s conftest.$ac_objext'
3183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; }; then
3188 WARNING_CFLAGS
="$WARNING_CFLAGS -W"
3189 echo "$as_me:$LINENO: result: yes" >&5
3190 echo "${ECHO_T}yes" >&6
3192 echo "$as_me: failed program was:" >&5
3193 cat conftest.
$ac_ext >&5
3194 echo "$as_me:$LINENO: result: no" >&5
3195 echo "${ECHO_T}no" >&6
3197 rm -f conftest.
$ac_objext conftest.
$ac_ext
3198 CFLAGS
="$ac_save_CFLAGS"
3199 echo "$as_me:$LINENO: checking whether compiler accepts -Wbad-function-cast" >&5
3200 echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6
3202 ac_save_CFLAGS
="$CFLAGS"
3203 CFLAGS
="$CFLAGS -Wbad-function-cast"
3204 cat >conftest.
$ac_ext <<_ACEOF
3205 #line $LINENO "configure"
3206 #include "confdefs.h"
3208 #ifdef F77_DUMMY_MAIN
3212 int F77_DUMMY_MAIN() { return 1; }
3222 rm -f conftest.
$ac_objext
3223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3224 (eval $ac_compile) 2>&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); } &&
3228 { ac_try
='test -s conftest.$ac_objext'
3229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; }; then
3234 WARNING_CFLAGS
="$WARNING_CFLAGS -Wbad-function-cast"
3235 echo "$as_me:$LINENO: result: yes" >&5
3236 echo "${ECHO_T}yes" >&6
3238 echo "$as_me: failed program was:" >&5
3239 cat conftest.
$ac_ext >&5
3240 echo "$as_me:$LINENO: result: no" >&5
3241 echo "${ECHO_T}no" >&6
3243 rm -f conftest.
$ac_objext conftest.
$ac_ext
3244 CFLAGS
="$ac_save_CFLAGS"
3245 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-align" >&5
3246 echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6
3248 ac_save_CFLAGS
="$CFLAGS"
3249 CFLAGS
="$CFLAGS -Wcast-align"
3250 cat >conftest.
$ac_ext <<_ACEOF
3251 #line $LINENO "configure"
3252 #include "confdefs.h"
3254 #ifdef F77_DUMMY_MAIN
3258 int F77_DUMMY_MAIN() { return 1; }
3268 rm -f conftest.
$ac_objext
3269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3270 (eval $ac_compile) 2>&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } &&
3274 { ac_try
='test -s conftest.$ac_objext'
3275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }; }; then
3280 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-align"
3281 echo "$as_me:$LINENO: result: yes" >&5
3282 echo "${ECHO_T}yes" >&6
3284 echo "$as_me: failed program was:" >&5
3285 cat conftest.
$ac_ext >&5
3286 echo "$as_me:$LINENO: result: no" >&5
3287 echo "${ECHO_T}no" >&6
3289 rm -f conftest.
$ac_objext conftest.
$ac_ext
3290 CFLAGS
="$ac_save_CFLAGS"
3291 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-qual" >&5
3292 echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6
3294 ac_save_CFLAGS
="$CFLAGS"
3295 CFLAGS
="$CFLAGS -Wcast-qual"
3296 cat >conftest.
$ac_ext <<_ACEOF
3297 #line $LINENO "configure"
3298 #include "confdefs.h"
3300 #ifdef F77_DUMMY_MAIN
3304 int F77_DUMMY_MAIN() { return 1; }
3314 rm -f conftest.
$ac_objext
3315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3316 (eval $ac_compile) 2>&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); } &&
3320 { ac_try
='test -s conftest.$ac_objext'
3321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }; }; then
3326 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-qual"
3327 echo "$as_me:$LINENO: result: yes" >&5
3328 echo "${ECHO_T}yes" >&6
3330 echo "$as_me: failed program was:" >&5
3331 cat conftest.
$ac_ext >&5
3332 echo "$as_me:$LINENO: result: no" >&5
3333 echo "${ECHO_T}no" >&6
3335 rm -f conftest.
$ac_objext conftest.
$ac_ext
3336 CFLAGS
="$ac_save_CFLAGS"
3337 echo "$as_me:$LINENO: checking whether compiler accepts -Wformat" >&5
3338 echo $ECHO_N "checking whether compiler accepts -Wformat... $ECHO_C" >&6
3340 ac_save_CFLAGS
="$CFLAGS"
3341 CFLAGS
="$CFLAGS -Wformat"
3342 cat >conftest.
$ac_ext <<_ACEOF
3343 #line $LINENO "configure"
3344 #include "confdefs.h"
3346 #ifdef F77_DUMMY_MAIN
3350 int F77_DUMMY_MAIN() { return 1; }
3360 rm -f conftest.
$ac_objext
3361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3362 (eval $ac_compile) 2>&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } &&
3366 { ac_try
='test -s conftest.$ac_objext'
3367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; }; then
3372 WARNING_CFLAGS
="$WARNING_CFLAGS -Wformat"
3373 echo "$as_me:$LINENO: result: yes" >&5
3374 echo "${ECHO_T}yes" >&6
3376 echo "$as_me: failed program was:" >&5
3377 cat conftest.
$ac_ext >&5
3378 echo "$as_me:$LINENO: result: no" >&5
3379 echo "${ECHO_T}no" >&6
3381 rm -f conftest.
$ac_objext conftest.
$ac_ext
3382 CFLAGS
="$ac_save_CFLAGS"
3383 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-declarations" >&5
3384 echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6
3386 ac_save_CFLAGS
="$CFLAGS"
3387 CFLAGS
="$CFLAGS -Wmissing-declarations"
3388 cat >conftest.
$ac_ext <<_ACEOF
3389 #line $LINENO "configure"
3390 #include "confdefs.h"
3392 #ifdef F77_DUMMY_MAIN
3396 int F77_DUMMY_MAIN() { return 1; }
3406 rm -f conftest.
$ac_objext
3407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3408 (eval $ac_compile) 2>&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } &&
3412 { ac_try
='test -s conftest.$ac_objext'
3413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); }; }; then
3418 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-declarations"
3419 echo "$as_me:$LINENO: result: yes" >&5
3420 echo "${ECHO_T}yes" >&6
3422 echo "$as_me: failed program was:" >&5
3423 cat conftest.
$ac_ext >&5
3424 echo "$as_me:$LINENO: result: no" >&5
3425 echo "${ECHO_T}no" >&6
3427 rm -f conftest.
$ac_objext conftest.
$ac_ext
3428 CFLAGS
="$ac_save_CFLAGS"
3429 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-prototypes" >&5
3430 echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6
3432 ac_save_CFLAGS
="$CFLAGS"
3433 CFLAGS
="$CFLAGS -Wmissing-prototypes"
3434 cat >conftest.
$ac_ext <<_ACEOF
3435 #line $LINENO "configure"
3436 #include "confdefs.h"
3438 #ifdef F77_DUMMY_MAIN
3442 int F77_DUMMY_MAIN() { return 1; }
3452 rm -f conftest.
$ac_objext
3453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3454 (eval $ac_compile) 2>&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } &&
3458 { ac_try
='test -s conftest.$ac_objext'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; }; then
3464 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-prototypes"
3465 echo "$as_me:$LINENO: result: yes" >&5
3466 echo "${ECHO_T}yes" >&6
3468 echo "$as_me: failed program was:" >&5
3469 cat conftest.
$ac_ext >&5
3470 echo "$as_me:$LINENO: result: no" >&5
3471 echo "${ECHO_T}no" >&6
3473 rm -f conftest.
$ac_objext conftest.
$ac_ext
3474 CFLAGS
="$ac_save_CFLAGS"
3475 echo "$as_me:$LINENO: checking whether compiler accepts -Wnested-externs" >&5
3476 echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6
3478 ac_save_CFLAGS
="$CFLAGS"
3479 CFLAGS
="$CFLAGS -Wnested-externs"
3480 cat >conftest.
$ac_ext <<_ACEOF
3481 #line $LINENO "configure"
3482 #include "confdefs.h"
3484 #ifdef F77_DUMMY_MAIN
3488 int F77_DUMMY_MAIN() { return 1; }
3498 rm -f conftest.
$ac_objext
3499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3500 (eval $ac_compile) 2>&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); } &&
3504 { ac_try
='test -s conftest.$ac_objext'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; }; then
3510 WARNING_CFLAGS
="$WARNING_CFLAGS -Wnested-externs"
3511 echo "$as_me:$LINENO: result: yes" >&5
3512 echo "${ECHO_T}yes" >&6
3514 echo "$as_me: failed program was:" >&5
3515 cat conftest.
$ac_ext >&5
3516 echo "$as_me:$LINENO: result: no" >&5
3517 echo "${ECHO_T}no" >&6
3519 rm -f conftest.
$ac_objext conftest.
$ac_ext
3520 CFLAGS
="$ac_save_CFLAGS"
3521 echo "$as_me:$LINENO: checking whether compiler accepts -Wshadow" >&5
3522 echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6
3524 ac_save_CFLAGS
="$CFLAGS"
3525 CFLAGS
="$CFLAGS -Wshadow"
3526 cat >conftest.
$ac_ext <<_ACEOF
3527 #line $LINENO "configure"
3528 #include "confdefs.h"
3530 #ifdef F77_DUMMY_MAIN
3534 int F77_DUMMY_MAIN() { return 1; }
3544 rm -f conftest.
$ac_objext
3545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3546 (eval $ac_compile) 2>&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } &&
3550 { ac_try
='test -s conftest.$ac_objext'
3551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; }; then
3556 WARNING_CFLAGS
="$WARNING_CFLAGS -Wshadow"
3557 echo "$as_me:$LINENO: result: yes" >&5
3558 echo "${ECHO_T}yes" >&6
3560 echo "$as_me: failed program was:" >&5
3561 cat conftest.
$ac_ext >&5
3562 echo "$as_me:$LINENO: result: no" >&5
3563 echo "${ECHO_T}no" >&6
3565 rm -f conftest.
$ac_objext conftest.
$ac_ext
3566 CFLAGS
="$ac_save_CFLAGS"
3567 echo "$as_me:$LINENO: checking whether compiler accepts -Wstrict-prototypes" >&5
3568 echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6
3570 ac_save_CFLAGS
="$CFLAGS"
3571 CFLAGS
="$CFLAGS -Wstrict-prototypes"
3572 cat >conftest.
$ac_ext <<_ACEOF
3573 #line $LINENO "configure"
3574 #include "confdefs.h"
3576 #ifdef F77_DUMMY_MAIN
3580 int F77_DUMMY_MAIN() { return 1; }
3590 rm -f conftest.
$ac_objext
3591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3592 (eval $ac_compile) 2>&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); } &&
3596 { ac_try
='test -s conftest.$ac_objext'
3597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }; }; then
3602 WARNING_CFLAGS
="$WARNING_CFLAGS -Wstrict-prototypes"
3603 echo "$as_me:$LINENO: result: yes" >&5
3604 echo "${ECHO_T}yes" >&6
3606 echo "$as_me: failed program was:" >&5
3607 cat conftest.
$ac_ext >&5
3608 echo "$as_me:$LINENO: result: no" >&5
3609 echo "${ECHO_T}no" >&6
3611 rm -f conftest.
$ac_objext conftest.
$ac_ext
3612 CFLAGS
="$ac_save_CFLAGS"
3613 echo "$as_me:$LINENO: checking whether compiler accepts -Wwrite-strings" >&5
3614 echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6
3616 ac_save_CFLAGS
="$CFLAGS"
3617 CFLAGS
="$CFLAGS -Wwrite-strings"
3618 cat >conftest.
$ac_ext <<_ACEOF
3619 #line $LINENO "configure"
3620 #include "confdefs.h"
3622 #ifdef F77_DUMMY_MAIN
3626 int F77_DUMMY_MAIN() { return 1; }
3636 rm -f conftest.
$ac_objext
3637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3638 (eval $ac_compile) 2>&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); } &&
3642 { ac_try
='test -s conftest.$ac_objext'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; }; then
3648 WARNING_CFLAGS
="$WARNING_CFLAGS -Wwrite-strings"
3649 echo "$as_me:$LINENO: result: yes" >&5
3650 echo "${ECHO_T}yes" >&6
3652 echo "$as_me: failed program was:" >&5
3653 cat conftest.
$ac_ext >&5
3654 echo "$as_me:$LINENO: result: no" >&5
3655 echo "${ECHO_T}no" >&6
3657 rm -f conftest.
$ac_objext conftest.
$ac_ext
3658 CFLAGS
="$ac_save_CFLAGS"
3659 CFLAGS
="$CFLAGS $WARNING_CFLAGS"
3662 # Checks for libraries.
3664 cat >>confdefs.h
<<\_ACEOF
3665 #define _GNU_SOURCE 1
3668 # Checks for header files.
3669 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3670 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3671 if test "${ac_cv_header_stdc+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 cat >conftest.
$ac_ext <<_ACEOF
3675 #line $LINENO "configure"
3676 #include "confdefs.h"
3683 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3684 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3686 egrep -v '^ *\+' conftest.er1
>conftest.err
3688 cat conftest.err
>&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); } >/dev
/null
; then
3691 if test -s conftest.err
; then
3692 ac_cpp_err
=$ac_c_preproc_warn_flag
3699 if test -z "$ac_cpp_err"; then
3700 ac_cv_header_stdc
=yes
3702 echo "$as_me: failed program was:" >&5
3703 cat conftest.
$ac_ext >&5
3704 ac_cv_header_stdc
=no
3706 rm -f conftest.err conftest.
$ac_ext
3708 if test $ac_cv_header_stdc = yes; then
3709 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3710 cat >conftest.
$ac_ext <<_ACEOF
3711 #line $LINENO "configure"
3712 #include "confdefs.h"
3716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3717 egrep "memchr" >/dev
/null
2>&1; then
3720 ac_cv_header_stdc
=no
3726 if test $ac_cv_header_stdc = yes; then
3727 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3728 cat >conftest.
$ac_ext <<_ACEOF
3729 #line $LINENO "configure"
3730 #include "confdefs.h"
3734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3735 egrep "free" >/dev
/null
2>&1; then
3738 ac_cv_header_stdc
=no
3744 if test $ac_cv_header_stdc = yes; then
3745 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3746 if test "$cross_compiling" = yes; then
3749 cat >conftest.
$ac_ext <<_ACEOF
3750 #line $LINENO "configure"
3751 #include "confdefs.h"
3753 #if ((' ' & 0x0FF) == 0x020)
3754 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3755 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3757 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3758 || ('j' <= (c) && (c) <= 'r') \
3759 || ('s' <= (c) && (c) <= 'z'))
3760 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3763 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3768 for (i = 0; i < 256; i++)
3769 if (XOR (islower (i), ISLOWER (i))
3770 || toupper (i) != TOUPPER (i))
3775 rm -f conftest
$ac_exeext
3776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3777 (eval $ac_link) 2>&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); }; }; then
3788 echo "$as_me: program exited with status $ac_status" >&5
3789 echo "$as_me: failed program was:" >&5
3790 cat conftest.
$ac_ext >&5
3792 ac_cv_header_stdc
=no
3794 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3798 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3799 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3800 if test $ac_cv_header_stdc = yes; then
3802 cat >>confdefs.h
<<\_ACEOF
3803 #define STDC_HEADERS 1
3808 for ac_header
in ctype.h locale.h memory.h stdlib.h string.h unistd.h
3810 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3812 echo "$as_me:$LINENO: checking for $ac_header" >&5
3813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3815 echo $ECHO_N "(cached) $ECHO_C" >&6
3817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3820 # Is the header compilable?
3821 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3823 cat >conftest.
$ac_ext <<_ACEOF
3824 #line $LINENO "configure"
3825 #include "confdefs.h"
3826 $ac_includes_default
3827 #include <$ac_header>
3829 rm -f conftest.
$ac_objext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3831 (eval $ac_compile) 2>&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } &&
3835 { ac_try
='test -s conftest.$ac_objext'
3836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }; }; then
3841 ac_header_compiler
=yes
3843 echo "$as_me: failed program was:" >&5
3844 cat conftest.
$ac_ext >&5
3845 ac_header_compiler
=no
3847 rm -f conftest.
$ac_objext conftest.
$ac_ext
3848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3849 echo "${ECHO_T}$ac_header_compiler" >&6
3851 # Is the header present?
3852 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3854 cat >conftest.
$ac_ext <<_ACEOF
3855 #line $LINENO "configure"
3856 #include "confdefs.h"
3857 #include <$ac_header>
3859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3860 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3862 egrep -v '^ *\+' conftest.er1
>conftest.err
3864 cat conftest.err
>&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } >/dev
/null
; then
3867 if test -s conftest.err
; then
3868 ac_cpp_err
=$ac_c_preproc_warn_flag
3875 if test -z "$ac_cpp_err"; then
3876 ac_header_preproc
=yes
3878 echo "$as_me: failed program was:" >&5
3879 cat conftest.
$ac_ext >&5
3880 ac_header_preproc
=no
3882 rm -f conftest.err conftest.
$ac_ext
3883 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3884 echo "${ECHO_T}$ac_header_preproc" >&6
3886 # So? What about this header?
3887 case $ac_header_compiler:$ac_header_preproc in
3889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&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: WARNING: $ac_header: present but cannot be compiled." >&5
3895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
3896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3897 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3901 echo "$as_me:$LINENO: checking for $ac_header" >&5
3902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 eval "$as_ac_Header=$ac_header_preproc"
3908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3913 cat >>confdefs.h
<<_ACEOF
3914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3921 # Checks for typedefs.
3923 # Checks for structures.
3925 # Checks for compiler characteristics.
3926 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3927 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3928 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3931 ac_cv_prog_cc_stdc
=no
3933 cat >conftest.
$ac_ext <<_ACEOF
3934 #line $LINENO "configure"
3935 #include "confdefs.h"
3938 #include <sys/types.h>
3939 #include <sys/stat.h>
3940 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3941 struct buf { int x; };
3942 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3943 static char *e (p, i)
3949 static char *f (char * (*g) (char **, int), char **p, ...)
3954 s = g (p, va_arg (v,int));
3958 int test (int i, double x);
3959 struct s1 {int (*f) (int a);};
3960 struct s2 {int (*f) (double a);};
3961 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3964 #ifdef F77_DUMMY_MAIN
3968 int F77_DUMMY_MAIN() { return 1; }
3973 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3978 # Don't try gcc -ansi; that turns off useful extensions and
3979 # breaks some systems' header files.
3980 # AIX -qlanglvl=ansi
3981 # Ultrix and OSF/1 -std1
3982 # HP-UX 10.20 and later -Ae
3983 # HP-UX older versions -Aa -D_HPUX_SOURCE
3984 # SVR4 -Xc -D__EXTENSIONS__
3985 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3987 CC
="$ac_save_CC $ac_arg"
3988 rm -f conftest.
$ac_objext
3989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3990 (eval $ac_compile) 2>&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } &&
3994 { ac_try
='test -s conftest.$ac_objext'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; }; then
4000 ac_cv_prog_cc_stdc
=$ac_arg
4003 echo "$as_me: failed program was:" >&5
4004 cat conftest.
$ac_ext >&5
4006 rm -f conftest.
$ac_objext
4008 rm -f conftest.
$ac_ext conftest.
$ac_objext
4013 case "x$ac_cv_prog_cc_stdc" in
4015 echo "$as_me:$LINENO: result: none needed" >&5
4016 echo "${ECHO_T}none needed" >&6 ;;
4018 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4019 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4020 CC
="$CC $ac_cv_prog_cc_stdc" ;;
4023 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4024 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4025 if test "${ac_cv_c_const+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4028 cat >conftest.
$ac_ext <<_ACEOF
4029 #line $LINENO "configure"
4030 #include "confdefs.h"
4032 #ifdef F77_DUMMY_MAIN
4036 int F77_DUMMY_MAIN() { return 1; }
4041 /* FIXME: Include the comments suggested by Paul. */
4043 /* Ultrix mips cc rejects this. */
4044 typedef int charset[2];
4046 /* SunOS 4.1.1 cc rejects this. */
4047 char const *const *ccp;
4049 /* NEC SVR4.0.2 mips cc rejects this. */
4050 struct point {int x, y;};
4051 static struct point const zero = {0,0};
4052 /* AIX XL C 1.02.0.0 rejects this.
4053 It does not let you subtract one const X* pointer from another in
4054 an arm of an if-expression whose if-part is not a constant
4056 const char *g = "string";
4057 ccp = &g + (g ? g-g : 0);
4058 /* HPUX 7.0 cc rejects these. */
4061 ccp = (char const *const *) p;
4062 { /* SCO 3.2v4 cc rejects this. */
4064 char const *s = 0 ? (char *) 0 : (char const *) 0;
4068 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4070 const int *foo = &x[0];
4073 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4074 typedef const int *iptr;
4078 { /* AIX XL C 1.02.0.0 rejects this saying
4079 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4080 struct s { int j; const int *ap[3]; };
4081 struct s *b; b->j = 5;
4083 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4092 rm -f conftest.
$ac_objext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4094 (eval $ac_compile) 2>&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } &&
4098 { ac_try
='test -s conftest.$ac_objext'
4099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }; }; then
4106 echo "$as_me: failed program was:" >&5
4107 cat conftest.
$ac_ext >&5
4110 rm -f conftest.
$ac_objext conftest.
$ac_ext
4112 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4113 echo "${ECHO_T}$ac_cv_c_const" >&6
4114 if test $ac_cv_c_const = no
; then
4116 cat >>confdefs.h
<<\_ACEOF
4122 echo "$as_me:$LINENO: checking for inline" >&5
4123 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4124 if test "${ac_cv_c_inline+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 for ac_kw
in inline __inline__ __inline
; do
4129 cat >conftest.
$ac_ext <<_ACEOF
4130 #line $LINENO "configure"
4131 #include "confdefs.h"
4133 static $ac_kw int static_foo () {return 0; }
4134 $ac_kw int foo () {return 0; }
4138 rm -f conftest.
$ac_objext
4139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4140 (eval $ac_compile) 2>&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } &&
4144 { ac_try
='test -s conftest.$ac_objext'
4145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; }; then
4150 ac_cv_c_inline
=$ac_kw; break
4152 echo "$as_me: failed program was:" >&5
4153 cat conftest.
$ac_ext >&5
4155 rm -f conftest.
$ac_objext conftest.
$ac_ext
4159 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4160 echo "${ECHO_T}$ac_cv_c_inline" >&6
4161 case $ac_cv_c_inline in
4164 cat >>confdefs.h
<<\_ACEOF
4168 *) cat >>confdefs.h
<<_ACEOF
4169 #define inline $ac_cv_c_inline
4174 echo "$as_me:$LINENO: checking for function prototypes" >&5
4175 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4176 if test "$am_cv_prog_cc_stdc" != no
; then
4177 echo "$as_me:$LINENO: result: yes" >&5
4178 echo "${ECHO_T}yes" >&6
4180 cat >>confdefs.h
<<\_ACEOF
4181 #define PROTOTYPES 1
4186 echo "$as_me:$LINENO: result: no" >&5
4187 echo "${ECHO_T}no" >&6
4188 U
=_ ANSI2KNR
=.
/ansi2knr
4190 # Ensure some checks needed by ansi2knr itself.
4191 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4192 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4193 if test "${ac_cv_header_stdc+set}" = set; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 cat >conftest.
$ac_ext <<_ACEOF
4197 #line $LINENO "configure"
4198 #include "confdefs.h"
4205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4206 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4208 egrep -v '^ *\+' conftest.er1
>conftest.err
4210 cat conftest.err
>&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); } >/dev
/null
; then
4213 if test -s conftest.err
; then
4214 ac_cpp_err
=$ac_c_preproc_warn_flag
4221 if test -z "$ac_cpp_err"; then
4222 ac_cv_header_stdc
=yes
4224 echo "$as_me: failed program was:" >&5
4225 cat conftest.
$ac_ext >&5
4226 ac_cv_header_stdc
=no
4228 rm -f conftest.err conftest.
$ac_ext
4230 if test $ac_cv_header_stdc = yes; then
4231 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4232 cat >conftest.
$ac_ext <<_ACEOF
4233 #line $LINENO "configure"
4234 #include "confdefs.h"
4238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4239 egrep "memchr" >/dev
/null
2>&1; then
4242 ac_cv_header_stdc
=no
4248 if test $ac_cv_header_stdc = yes; then
4249 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4250 cat >conftest.
$ac_ext <<_ACEOF
4251 #line $LINENO "configure"
4252 #include "confdefs.h"
4256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4257 egrep "free" >/dev
/null
2>&1; then
4260 ac_cv_header_stdc
=no
4266 if test $ac_cv_header_stdc = yes; then
4267 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4268 if test "$cross_compiling" = yes; then
4271 cat >conftest.
$ac_ext <<_ACEOF
4272 #line $LINENO "configure"
4273 #include "confdefs.h"
4275 #if ((' ' & 0x0FF) == 0x020)
4276 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4277 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4279 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4280 || ('j' <= (c) && (c) <= 'r') \
4281 || ('s' <= (c) && (c) <= 'z'))
4282 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4285 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4290 for (i = 0; i < 256; i++)
4291 if (XOR (islower (i), ISLOWER (i))
4292 || toupper (i) != TOUPPER (i))
4297 rm -f conftest
$ac_exeext
4298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4299 (eval $ac_link) 2>&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }; }; then
4310 echo "$as_me: program exited with status $ac_status" >&5
4311 echo "$as_me: failed program was:" >&5
4312 cat conftest.
$ac_ext >&5
4314 ac_cv_header_stdc
=no
4316 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4320 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4321 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4322 if test $ac_cv_header_stdc = yes; then
4324 cat >>confdefs.h
<<\_ACEOF
4325 #define STDC_HEADERS 1
4330 for ac_header
in string.h
4332 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4334 echo "$as_me:$LINENO: checking for $ac_header" >&5
4335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4342 # Is the header compilable?
4343 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4345 cat >conftest.
$ac_ext <<_ACEOF
4346 #line $LINENO "configure"
4347 #include "confdefs.h"
4348 $ac_includes_default
4349 #include <$ac_header>
4351 rm -f conftest.
$ac_objext
4352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4353 (eval $ac_compile) 2>&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } &&
4357 { ac_try
='test -s conftest.$ac_objext'
4358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; }; then
4363 ac_header_compiler
=yes
4365 echo "$as_me: failed program was:" >&5
4366 cat conftest.
$ac_ext >&5
4367 ac_header_compiler
=no
4369 rm -f conftest.
$ac_objext conftest.
$ac_ext
4370 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4371 echo "${ECHO_T}$ac_header_compiler" >&6
4373 # Is the header present?
4374 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4376 cat >conftest.
$ac_ext <<_ACEOF
4377 #line $LINENO "configure"
4378 #include "confdefs.h"
4379 #include <$ac_header>
4381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4382 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4384 egrep -v '^ *\+' conftest.er1
>conftest.err
4386 cat conftest.err
>&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } >/dev
/null
; then
4389 if test -s conftest.err
; then
4390 ac_cpp_err
=$ac_c_preproc_warn_flag
4397 if test -z "$ac_cpp_err"; then
4398 ac_header_preproc
=yes
4400 echo "$as_me: failed program was:" >&5
4401 cat conftest.
$ac_ext >&5
4402 ac_header_preproc
=no
4404 rm -f conftest.err conftest.
$ac_ext
4405 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4406 echo "${ECHO_T}$ac_header_preproc" >&6
4408 # So? What about this header?
4409 case $ac_header_compiler:$ac_header_preproc in
4411 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4416 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
4417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
4418 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4419 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4423 echo "$as_me:$LINENO: checking for $ac_header" >&5
4424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4428 eval "$as_ac_Header=$ac_header_preproc"
4430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4435 cat >>confdefs.h
<<_ACEOF
4436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4443 # Checks for library functions.
4444 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4445 # for constant arguments. Useless!
4446 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4447 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4448 if test "${ac_cv_working_alloca_h+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 cat >conftest.
$ac_ext <<_ACEOF
4452 #line $LINENO "configure"
4453 #include "confdefs.h"
4455 #ifdef F77_DUMMY_MAIN
4459 int F77_DUMMY_MAIN() { return 1; }
4464 char *p = (char *) alloca (2 * sizeof (int));
4469 rm -f conftest.
$ac_objext conftest
$ac_exeext
4470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4471 (eval $ac_link) 2>&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); } &&
4475 { ac_try
='test -s conftest$ac_exeext'
4476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; }; then
4481 ac_cv_working_alloca_h
=yes
4483 echo "$as_me: failed program was:" >&5
4484 cat conftest.
$ac_ext >&5
4485 ac_cv_working_alloca_h
=no
4487 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4489 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4490 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4491 if test $ac_cv_working_alloca_h = yes; then
4493 cat >>confdefs.h
<<\_ACEOF
4494 #define HAVE_ALLOCA_H 1
4499 echo "$as_me:$LINENO: checking for alloca" >&5
4500 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4501 if test "${ac_cv_func_alloca_works+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 cat >conftest.
$ac_ext <<_ACEOF
4505 #line $LINENO "configure"
4506 #include "confdefs.h"
4508 # define alloca __builtin_alloca
4511 # include <malloc.h>
4512 # define alloca _alloca
4515 # include <alloca.h>
4520 # ifndef alloca /* predefined by HP cc +Olibcalls */
4528 #ifdef F77_DUMMY_MAIN
4532 int F77_DUMMY_MAIN() { return 1; }
4537 char *p = (char *) alloca (1);
4542 rm -f conftest.
$ac_objext conftest
$ac_exeext
4543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4544 (eval $ac_link) 2>&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); } &&
4548 { ac_try
='test -s conftest$ac_exeext'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; }; then
4554 ac_cv_func_alloca_works
=yes
4556 echo "$as_me: failed program was:" >&5
4557 cat conftest.
$ac_ext >&5
4558 ac_cv_func_alloca_works
=no
4560 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4562 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4563 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4565 if test $ac_cv_func_alloca_works = yes; then
4567 cat >>confdefs.h
<<\_ACEOF
4568 #define HAVE_ALLOCA 1
4572 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4573 # that cause trouble. Some versions do not even contain alloca or
4574 # contain a buggy version. If you still want to use their alloca,
4575 # use ar to extract alloca.o from them instead of compiling alloca.c.
4577 ALLOCA
=alloca.
$ac_objext
4579 cat >>confdefs.h
<<\_ACEOF
4583 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4584 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4585 if test "${ac_cv_os_cray+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 cat >conftest.
$ac_ext <<_ACEOF
4589 #line $LINENO "configure"
4590 #include "confdefs.h"
4591 #if defined(CRAY) && ! defined(CRAY2)
4598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4599 egrep "webecray" >/dev
/null
2>&1; then
4607 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4608 echo "${ECHO_T}$ac_cv_os_cray" >&6
4609 if test $ac_cv_os_cray = yes; then
4610 for ac_func
in _getb67 GETB67 getb67
; do
4611 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4612 echo "$as_me:$LINENO: checking for $ac_func" >&5
4613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4614 if eval "test \"\${$as_ac_var+set}\" = set"; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 cat >conftest.
$ac_ext <<_ACEOF
4618 #line $LINENO "configure"
4619 #include "confdefs.h"
4620 /* System header to define __stub macros and hopefully few prototypes,
4621 which can conflict with char $ac_func (); below. */
4623 /* Override any gcc2 internal prototype to avoid an error. */
4627 /* We use char because int might match the return type of a gcc2
4628 builtin and then its argument prototype would still apply. */
4632 #ifdef F77_DUMMY_MAIN
4636 int F77_DUMMY_MAIN() { return 1; }
4641 /* The GNU C library defines this for functions which it implements
4642 to always fail with ENOSYS. Some functions are actually named
4643 something starting with __ and the normal name is an alias. */
4644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4654 rm -f conftest.
$ac_objext conftest
$ac_exeext
4655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4656 (eval $ac_link) 2>&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } &&
4660 { ac_try
='test -s conftest$ac_exeext'
4661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); }; }; then
4666 eval "$as_ac_var=yes"
4668 echo "$as_me: failed program was:" >&5
4669 cat conftest.
$ac_ext >&5
4670 eval "$as_ac_var=no"
4672 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4675 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4676 if test `eval echo '${'$as_ac_var'}'` = yes; then
4678 cat >>confdefs.h
<<_ACEOF
4679 #define CRAY_STACKSEG_END $ac_func
4688 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4689 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4690 if test "${ac_cv_c_stack_direction+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 if test "$cross_compiling" = yes; then
4694 ac_cv_c_stack_direction
=0
4696 cat >conftest.
$ac_ext <<_ACEOF
4697 #line $LINENO "configure"
4698 #include "confdefs.h"
4700 find_stack_direction ()
4702 static char *addr = 0;
4707 return find_stack_direction ();
4710 return (&dummy > addr) ? 1 : -1;
4716 exit (find_stack_direction () < 0);
4719 rm -f conftest
$ac_exeext
4720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4721 (eval $ac_link) 2>&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }; }; then
4730 ac_cv_c_stack_direction
=1
4732 echo "$as_me: program exited with status $ac_status" >&5
4733 echo "$as_me: failed program was:" >&5
4734 cat conftest.
$ac_ext >&5
4736 ac_cv_c_stack_direction
=-1
4738 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4741 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4742 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4744 cat >>confdefs.h
<<_ACEOF
4745 #define STACK_DIRECTION $ac_cv_c_stack_direction
4750 for ac_func
in mkstemp setlocale
4752 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4753 echo "$as_me:$LINENO: checking for $ac_func" >&5
4754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4755 if eval "test \"\${$as_ac_var+set}\" = set"; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4758 cat >conftest.
$ac_ext <<_ACEOF
4759 #line $LINENO "configure"
4760 #include "confdefs.h"
4761 /* System header to define __stub macros and hopefully few prototypes,
4762 which can conflict with char $ac_func (); below. */
4764 /* Override any gcc2 internal prototype to avoid an error. */
4768 /* We use char because int might match the return type of a gcc2
4769 builtin and then its argument prototype would still apply. */
4773 #ifdef F77_DUMMY_MAIN
4777 int F77_DUMMY_MAIN() { return 1; }
4782 /* The GNU C library defines this for functions which it implements
4783 to always fail with ENOSYS. Some functions are actually named
4784 something starting with __ and the normal name is an alias. */
4785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4795 rm -f conftest.
$ac_objext conftest
$ac_exeext
4796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4797 (eval $ac_link) 2>&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try
='test -s conftest$ac_exeext'
4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; }; then
4807 eval "$as_ac_var=yes"
4809 echo "$as_me: failed program was:" >&5
4810 cat conftest.
$ac_ext >&5
4811 eval "$as_ac_var=no"
4813 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4816 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4817 if test `eval echo '${'$as_ac_var'}'` = yes; then
4818 cat >>confdefs.h
<<_ACEOF
4819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4825 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
4826 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
4827 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 cat >conftest.
$ac_ext <<_ACEOF
4831 #line $LINENO "configure"
4832 #include "confdefs.h"
4833 $ac_includes_default
4834 #ifdef F77_DUMMY_MAIN
4838 int F77_DUMMY_MAIN() { return 1; }
4844 char *p = (char *) stpcpy;
4851 rm -f conftest.
$ac_objext
4852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4853 (eval $ac_compile) 2>&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } &&
4857 { ac_try
='test -s conftest.$ac_objext'
4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; }; then
4863 ac_cv_have_decl_stpcpy
=yes
4865 echo "$as_me: failed program was:" >&5
4866 cat conftest.
$ac_ext >&5
4867 ac_cv_have_decl_stpcpy
=no
4869 rm -f conftest.
$ac_objext conftest.
$ac_ext
4871 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
4872 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
4873 if test $ac_cv_have_decl_stpcpy = yes; then
4875 cat >>confdefs.h
<<_ACEOF
4876 #define HAVE_DECL_STPCPY 1
4880 cat >>confdefs.h
<<_ACEOF
4881 #define HAVE_DECL_STPCPY 0
4885 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
4886 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
4887 if test "${ac_cv_have_decl_strndup+set}" = set; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
4890 cat >conftest.
$ac_ext <<_ACEOF
4891 #line $LINENO "configure"
4892 #include "confdefs.h"
4893 $ac_includes_default
4894 #ifdef F77_DUMMY_MAIN
4898 int F77_DUMMY_MAIN() { return 1; }
4904 char *p = (char *) strndup;
4911 rm -f conftest.
$ac_objext
4912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4913 (eval $ac_compile) 2>&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } &&
4917 { ac_try
='test -s conftest.$ac_objext'
4918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; }; then
4923 ac_cv_have_decl_strndup
=yes
4925 echo "$as_me: failed program was:" >&5
4926 cat conftest.
$ac_ext >&5
4927 ac_cv_have_decl_strndup
=no
4929 rm -f conftest.
$ac_objext conftest.
$ac_ext
4931 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
4932 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
4933 if test $ac_cv_have_decl_strndup = yes; then
4935 cat >>confdefs.h
<<_ACEOF
4936 #define HAVE_DECL_STRNDUP 1
4940 cat >>confdefs.h
<<_ACEOF
4941 #define HAVE_DECL_STRNDUP 0
4945 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
4946 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
4947 if test "${ac_cv_have_decl_strnlen+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 cat >conftest.
$ac_ext <<_ACEOF
4951 #line $LINENO "configure"
4952 #include "confdefs.h"
4953 $ac_includes_default
4954 #ifdef F77_DUMMY_MAIN
4958 int F77_DUMMY_MAIN() { return 1; }
4964 char *p = (char *) strnlen;
4971 rm -f conftest.
$ac_objext
4972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4973 (eval $ac_compile) 2>&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } &&
4977 { ac_try
='test -s conftest.$ac_objext'
4978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); }; }; then
4983 ac_cv_have_decl_strnlen
=yes
4985 echo "$as_me: failed program was:" >&5
4986 cat conftest.
$ac_ext >&5
4987 ac_cv_have_decl_strnlen
=no
4989 rm -f conftest.
$ac_objext conftest.
$ac_ext
4991 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
4992 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
4993 if test $ac_cv_have_decl_strnlen = yes; then
4995 cat >>confdefs.h
<<_ACEOF
4996 #define HAVE_DECL_STRNLEN 1
5000 cat >>confdefs.h
<<_ACEOF
5001 #define HAVE_DECL_STRNLEN 0
5005 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
5006 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
5007 if test "${ac_cv_have_decl_memchr+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 cat >conftest.
$ac_ext <<_ACEOF
5011 #line $LINENO "configure"
5012 #include "confdefs.h"
5013 $ac_includes_default
5014 #ifdef F77_DUMMY_MAIN
5018 int F77_DUMMY_MAIN() { return 1; }
5024 char *p = (char *) memchr;
5031 rm -f conftest.
$ac_objext
5032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5033 (eval $ac_compile) 2>&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } &&
5037 { ac_try
='test -s conftest.$ac_objext'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; }; then
5043 ac_cv_have_decl_memchr
=yes
5045 echo "$as_me: failed program was:" >&5
5046 cat conftest.
$ac_ext >&5
5047 ac_cv_have_decl_memchr
=no
5049 rm -f conftest.
$ac_objext conftest.
$ac_ext
5051 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
5052 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
5053 if test $ac_cv_have_decl_memchr = yes; then
5055 cat >>confdefs.h
<<_ACEOF
5056 #define HAVE_DECL_MEMCHR 1
5060 cat >>confdefs.h
<<_ACEOF
5061 #define HAVE_DECL_MEMCHR 0
5066 for ac_func
in stpcpy strndup strnlen strspn memchr
5068 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5069 echo "$as_me:$LINENO: checking for $ac_func" >&5
5070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5071 if eval "test \"\${$as_ac_var+set}\" = set"; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 cat >conftest.
$ac_ext <<_ACEOF
5075 #line $LINENO "configure"
5076 #include "confdefs.h"
5077 /* System header to define __stub macros and hopefully few prototypes,
5078 which can conflict with char $ac_func (); below. */
5080 /* Override any gcc2 internal prototype to avoid an error. */
5084 /* We use char because int might match the return type of a gcc2
5085 builtin and then its argument prototype would still apply. */
5089 #ifdef F77_DUMMY_MAIN
5093 int F77_DUMMY_MAIN() { return 1; }
5098 /* The GNU C library defines this for functions which it implements
5099 to always fail with ENOSYS. Some functions are actually named
5100 something starting with __ and the normal name is an alias. */
5101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5111 rm -f conftest.
$ac_objext conftest
$ac_exeext
5112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5113 (eval $ac_link) 2>&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } &&
5117 { ac_try
='test -s conftest$ac_exeext'
5118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); }; }; then
5123 eval "$as_ac_var=yes"
5125 echo "$as_me: failed program was:" >&5
5126 cat conftest.
$ac_ext >&5
5127 eval "$as_ac_var=no"
5129 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5132 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5133 if test `eval echo '${'$as_ac_var'}'` = yes; then
5134 cat >>confdefs.h
<<_ACEOF
5135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5139 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
5143 cat >>confdefs.h
<<_ACEOF
5144 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
5147 echo "$as_me:$LINENO: checking for working malloc" >&5
5148 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
5149 if test "${jm_cv_func_working_malloc+set}" = set; then
5150 echo $ECHO_N "(cached) $ECHO_C" >&6
5152 if test "$cross_compiling" = yes; then
5153 jm_cv_func_working_malloc
=no
5155 cat >conftest.
$ac_ext <<_ACEOF
5156 #line $LINENO "configure"
5157 #include "confdefs.h"
5163 exit (malloc (0) ? 0 : 1);
5167 rm -f conftest
$ac_exeext
5168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5169 (eval $ac_link) 2>&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); }; }; then
5178 jm_cv_func_working_malloc
=yes
5180 echo "$as_me: program exited with status $ac_status" >&5
5181 echo "$as_me: failed program was:" >&5
5182 cat conftest.
$ac_ext >&5
5184 jm_cv_func_working_malloc
=no
5186 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5190 echo "$as_me:$LINENO: result: $jm_cv_func_working_malloc" >&5
5191 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
5192 if test $jm_cv_func_working_malloc = no
; then
5194 LIBOBJS
="$LIBOBJS malloc.$ac_objext"
5196 cat >>confdefs.h
<<_ACEOF
5197 #define malloc rpl_malloc
5202 cat >>confdefs.h
<<_ACEOF
5203 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
5206 echo "$as_me:$LINENO: checking for working realloc" >&5
5207 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
5208 if test "${jm_cv_func_working_realloc+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 if test "$cross_compiling" = yes; then
5212 jm_cv_func_working_realloc
=no
5214 cat >conftest.
$ac_ext <<_ACEOF
5215 #line $LINENO "configure"
5216 #include "confdefs.h"
5222 exit (realloc (0, 0) ? 0 : 1);
5226 rm -f conftest
$ac_exeext
5227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5228 (eval $ac_link) 2>&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); }; }; then
5237 jm_cv_func_working_realloc
=yes
5239 echo "$as_me: program exited with status $ac_status" >&5
5240 echo "$as_me: failed program was:" >&5
5241 cat conftest.
$ac_ext >&5
5243 jm_cv_func_working_realloc
=no
5245 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5249 echo "$as_me:$LINENO: result: $jm_cv_func_working_realloc" >&5
5250 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
5251 if test $jm_cv_func_working_realloc = no
; then
5253 LIBOBJS
="$LIBOBJS realloc.$ac_objext"
5255 cat >>confdefs.h
<<_ACEOF
5256 #define realloc rpl_realloc
5261 for ac_func
in isascii iswprint mbsinit
5263 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5264 echo "$as_me:$LINENO: checking for $ac_func" >&5
5265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5266 if eval "test \"\${$as_ac_var+set}\" = set"; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5269 cat >conftest.
$ac_ext <<_ACEOF
5270 #line $LINENO "configure"
5271 #include "confdefs.h"
5272 /* System header to define __stub macros and hopefully few prototypes,
5273 which can conflict with char $ac_func (); below. */
5275 /* Override any gcc2 internal prototype to avoid an error. */
5279 /* We use char because int might match the return type of a gcc2
5280 builtin and then its argument prototype would still apply. */
5284 #ifdef F77_DUMMY_MAIN
5288 int F77_DUMMY_MAIN() { return 1; }
5293 /* The GNU C library defines this for functions which it implements
5294 to always fail with ENOSYS. Some functions are actually named
5295 something starting with __ and the normal name is an alias. */
5296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5306 rm -f conftest.
$ac_objext conftest
$ac_exeext
5307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5308 (eval $ac_link) 2>&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } &&
5312 { ac_try
='test -s conftest$ac_exeext'
5313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); }; }; then
5318 eval "$as_ac_var=yes"
5320 echo "$as_me: failed program was:" >&5
5321 cat conftest.
$ac_ext >&5
5322 eval "$as_ac_var=no"
5324 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5328 if test `eval echo '${'$as_ac_var'}'` = yes; then
5329 cat >>confdefs.h
<<_ACEOF
5330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5336 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
5337 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
5338 if test "${jm_cv_func_mbrtowc+set}" = set; then
5339 echo $ECHO_N "(cached) $ECHO_C" >&6
5341 cat >conftest.
$ac_ext <<_ACEOF
5342 #line $LINENO "configure"
5343 #include "confdefs.h"
5345 #ifdef F77_DUMMY_MAIN
5349 int F77_DUMMY_MAIN() { return 1; }
5354 mbstate_t state; return ! (sizeof state && mbrtowc);
5359 rm -f conftest.
$ac_objext conftest
$ac_exeext
5360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5361 (eval $ac_link) 2>&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } &&
5365 { ac_try
='test -s conftest$ac_exeext'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; }; then
5371 jm_cv_func_mbrtowc
=yes
5373 echo "$as_me: failed program was:" >&5
5374 cat conftest.
$ac_ext >&5
5375 jm_cv_func_mbrtowc
=no
5377 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5379 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
5380 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
5381 if test $jm_cv_func_mbrtowc = yes; then
5383 cat >>confdefs.h
<<\_ACEOF
5384 #define HAVE_MBRTOWC 1
5389 for ac_header
in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
5391 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5393 echo "$as_me:$LINENO: checking for $ac_header" >&5
5394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5401 # Is the header compilable?
5402 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5404 cat >conftest.
$ac_ext <<_ACEOF
5405 #line $LINENO "configure"
5406 #include "confdefs.h"
5407 $ac_includes_default
5408 #include <$ac_header>
5410 rm -f conftest.
$ac_objext
5411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5412 (eval $ac_compile) 2>&5
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); } &&
5416 { ac_try
='test -s conftest.$ac_objext'
5417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); }; }; then
5422 ac_header_compiler
=yes
5424 echo "$as_me: failed program was:" >&5
5425 cat conftest.
$ac_ext >&5
5426 ac_header_compiler
=no
5428 rm -f conftest.
$ac_objext conftest.
$ac_ext
5429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5430 echo "${ECHO_T}$ac_header_compiler" >&6
5432 # Is the header present?
5433 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5435 cat >conftest.
$ac_ext <<_ACEOF
5436 #line $LINENO "configure"
5437 #include "confdefs.h"
5438 #include <$ac_header>
5440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5441 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5443 egrep -v '^ *\+' conftest.er1
>conftest.err
5445 cat conftest.err
>&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } >/dev
/null
; then
5448 if test -s conftest.err
; then
5449 ac_cpp_err
=$ac_c_preproc_warn_flag
5456 if test -z "$ac_cpp_err"; then
5457 ac_header_preproc
=yes
5459 echo "$as_me: failed program was:" >&5
5460 cat conftest.
$ac_ext >&5
5461 ac_header_preproc
=no
5463 rm -f conftest.err conftest.
$ac_ext
5464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5465 echo "${ECHO_T}$ac_header_preproc" >&6
5467 # So? What about this header?
5468 case $ac_header_compiler:$ac_header_preproc in
5470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5478 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5482 echo "$as_me:$LINENO: checking for $ac_header" >&5
5483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5485 echo $ECHO_N "(cached) $ECHO_C" >&6
5487 eval "$as_ac_Header=$ac_header_preproc"
5489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5494 cat >>confdefs.h
<<_ACEOF
5495 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5502 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5503 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5504 if test "${ac_cv_header_stdc+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5507 cat >conftest.
$ac_ext <<_ACEOF
5508 #line $LINENO "configure"
5509 #include "confdefs.h"
5516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5517 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5519 egrep -v '^ *\+' conftest.er1
>conftest.err
5521 cat conftest.err
>&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } >/dev
/null
; then
5524 if test -s conftest.err
; then
5525 ac_cpp_err
=$ac_c_preproc_warn_flag
5532 if test -z "$ac_cpp_err"; then
5533 ac_cv_header_stdc
=yes
5535 echo "$as_me: failed program was:" >&5
5536 cat conftest.
$ac_ext >&5
5537 ac_cv_header_stdc
=no
5539 rm -f conftest.err conftest.
$ac_ext
5541 if test $ac_cv_header_stdc = yes; then
5542 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5543 cat >conftest.
$ac_ext <<_ACEOF
5544 #line $LINENO "configure"
5545 #include "confdefs.h"
5549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5550 egrep "memchr" >/dev
/null
2>&1; then
5553 ac_cv_header_stdc
=no
5559 if test $ac_cv_header_stdc = yes; then
5560 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5561 cat >conftest.
$ac_ext <<_ACEOF
5562 #line $LINENO "configure"
5563 #include "confdefs.h"
5567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5568 egrep "free" >/dev
/null
2>&1; then
5571 ac_cv_header_stdc
=no
5577 if test $ac_cv_header_stdc = yes; then
5578 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5579 if test "$cross_compiling" = yes; then
5582 cat >conftest.
$ac_ext <<_ACEOF
5583 #line $LINENO "configure"
5584 #include "confdefs.h"
5586 #if ((' ' & 0x0FF) == 0x020)
5587 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5588 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5590 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5591 || ('j' <= (c) && (c) <= 'r') \
5592 || ('s' <= (c) && (c) <= 'z'))
5593 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5596 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5601 for (i = 0; i < 256; i++)
5602 if (XOR (islower (i), ISLOWER (i))
5603 || toupper (i) != TOUPPER (i))
5608 rm -f conftest
$ac_exeext
5609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5610 (eval $ac_link) 2>&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); }; }; then
5621 echo "$as_me: program exited with status $ac_status" >&5
5622 echo "$as_me: failed program was:" >&5
5623 cat conftest.
$ac_ext >&5
5625 ac_cv_header_stdc
=no
5627 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5631 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5632 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5633 if test $ac_cv_header_stdc = yes; then
5635 cat >>confdefs.h
<<\_ACEOF
5636 #define STDC_HEADERS 1
5641 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
5642 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
5643 if test "${ac_cv_c_backslash_a+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 cat >conftest.
$ac_ext <<_ACEOF
5647 #line $LINENO "configure"
5648 #include "confdefs.h"
5650 #ifdef F77_DUMMY_MAIN
5654 int F77_DUMMY_MAIN() { return 1; }
5663 char buf['\a' == 'a' ? -1 : 1];
5665 return buf[0] != "\a"[0];
5671 rm -f conftest.
$ac_objext
5672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5673 (eval $ac_compile) 2>&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } &&
5677 { ac_try
='test -s conftest.$ac_objext'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; }; then
5683 ac_cv_c_backslash_a
=yes
5685 echo "$as_me: failed program was:" >&5
5686 cat conftest.
$ac_ext >&5
5687 ac_cv_c_backslash_a
=no
5689 rm -f conftest.
$ac_objext conftest.
$ac_ext
5691 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
5692 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
5693 if test $ac_cv_c_backslash_a = yes; then
5695 cat >>confdefs.h
<<\_ACEOF
5696 #define HAVE_C_BACKSLASH_A 1
5701 for ac_header
in stdlib.h
5703 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5705 echo "$as_me:$LINENO: checking for $ac_header" >&5
5706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5713 # Is the header compilable?
5714 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5716 cat >conftest.
$ac_ext <<_ACEOF
5717 #line $LINENO "configure"
5718 #include "confdefs.h"
5719 $ac_includes_default
5720 #include <$ac_header>
5722 rm -f conftest.
$ac_objext
5723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5724 (eval $ac_compile) 2>&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); } &&
5728 { ac_try
='test -s conftest.$ac_objext'
5729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; }; then
5734 ac_header_compiler
=yes
5736 echo "$as_me: failed program was:" >&5
5737 cat conftest.
$ac_ext >&5
5738 ac_header_compiler
=no
5740 rm -f conftest.
$ac_objext conftest.
$ac_ext
5741 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5742 echo "${ECHO_T}$ac_header_compiler" >&6
5744 # Is the header present?
5745 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5747 cat >conftest.
$ac_ext <<_ACEOF
5748 #line $LINENO "configure"
5749 #include "confdefs.h"
5750 #include <$ac_header>
5752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5753 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5755 egrep -v '^ *\+' conftest.er1
>conftest.err
5757 cat conftest.err
>&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } >/dev
/null
; then
5760 if test -s conftest.err
; then
5761 ac_cpp_err
=$ac_c_preproc_warn_flag
5768 if test -z "$ac_cpp_err"; then
5769 ac_header_preproc
=yes
5771 echo "$as_me: failed program was:" >&5
5772 cat conftest.
$ac_ext >&5
5773 ac_header_preproc
=no
5775 rm -f conftest.err conftest.
$ac_ext
5776 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5777 echo "${ECHO_T}$ac_header_preproc" >&6
5779 # So? What about this header?
5780 case $ac_header_compiler:$ac_header_preproc in
5782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5787 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5789 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5790 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5792 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5794 echo "$as_me:$LINENO: checking for $ac_header" >&5
5795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 eval "$as_ac_Header=$ac_header_preproc"
5801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5806 cat >>confdefs.h
<<_ACEOF
5807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5814 echo "$as_me:$LINENO: checking for mbstate_t" >&5
5815 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
5816 if test "${ac_cv_type_mbstate_t+set}" = set; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 cat >conftest.
$ac_ext <<_ACEOF
5820 #line $LINENO "configure"
5821 #include "confdefs.h"
5824 # include <stdlib.h>
5827 #ifdef F77_DUMMY_MAIN
5831 int F77_DUMMY_MAIN() { return 1; }
5836 mbstate_t x; return sizeof x;
5841 rm -f conftest.
$ac_objext
5842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5843 (eval $ac_compile) 2>&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); } &&
5847 { ac_try
='test -s conftest.$ac_objext'
5848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }; }; then
5853 ac_cv_type_mbstate_t
=yes
5855 echo "$as_me: failed program was:" >&5
5856 cat conftest.
$ac_ext >&5
5857 ac_cv_type_mbstate_t
=no
5859 rm -f conftest.
$ac_objext conftest.
$ac_ext
5861 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
5862 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
5863 if test $ac_cv_type_mbstate_t = no
; then
5865 cat >>confdefs.h
<<\_ACEOF
5866 #define mbstate_t int
5871 echo "$as_me:$LINENO: checking for function prototypes" >&5
5872 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5873 if test "$am_cv_prog_cc_stdc" != no
; then
5874 echo "$as_me:$LINENO: result: yes" >&5
5875 echo "${ECHO_T}yes" >&6
5877 cat >>confdefs.h
<<\_ACEOF
5878 #define PROTOTYPES 1
5883 echo "$as_me:$LINENO: result: no" >&5
5884 echo "${ECHO_T}no" >&6
5885 U
=_ ANSI2KNR
=.
/ansi2knr
5887 # Ensure some checks needed by ansi2knr itself.
5888 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5889 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5890 if test "${ac_cv_header_stdc+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 cat >conftest.
$ac_ext <<_ACEOF
5894 #line $LINENO "configure"
5895 #include "confdefs.h"
5902 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5903 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5905 egrep -v '^ *\+' conftest.er1
>conftest.err
5907 cat conftest.err
>&5
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); } >/dev
/null
; then
5910 if test -s conftest.err
; then
5911 ac_cpp_err
=$ac_c_preproc_warn_flag
5918 if test -z "$ac_cpp_err"; then
5919 ac_cv_header_stdc
=yes
5921 echo "$as_me: failed program was:" >&5
5922 cat conftest.
$ac_ext >&5
5923 ac_cv_header_stdc
=no
5925 rm -f conftest.err conftest.
$ac_ext
5927 if test $ac_cv_header_stdc = yes; then
5928 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5929 cat >conftest.
$ac_ext <<_ACEOF
5930 #line $LINENO "configure"
5931 #include "confdefs.h"
5935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5936 egrep "memchr" >/dev
/null
2>&1; then
5939 ac_cv_header_stdc
=no
5945 if test $ac_cv_header_stdc = yes; then
5946 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5947 cat >conftest.
$ac_ext <<_ACEOF
5948 #line $LINENO "configure"
5949 #include "confdefs.h"
5953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5954 egrep "free" >/dev
/null
2>&1; then
5957 ac_cv_header_stdc
=no
5963 if test $ac_cv_header_stdc = yes; then
5964 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5965 if test "$cross_compiling" = yes; then
5968 cat >conftest.
$ac_ext <<_ACEOF
5969 #line $LINENO "configure"
5970 #include "confdefs.h"
5972 #if ((' ' & 0x0FF) == 0x020)
5973 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5974 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5976 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5977 || ('j' <= (c) && (c) <= 'r') \
5978 || ('s' <= (c) && (c) <= 'z'))
5979 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5982 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5987 for (i = 0; i < 256; i++)
5988 if (XOR (islower (i), ISLOWER (i))
5989 || toupper (i) != TOUPPER (i))
5994 rm -f conftest
$ac_exeext
5995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5996 (eval $ac_link) 2>&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6007 echo "$as_me: program exited with status $ac_status" >&5
6008 echo "$as_me: failed program was:" >&5
6009 cat conftest.
$ac_ext >&5
6011 ac_cv_header_stdc
=no
6013 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6017 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6018 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6019 if test $ac_cv_header_stdc = yes; then
6021 cat >>confdefs.h
<<\_ACEOF
6022 #define STDC_HEADERS 1
6027 for ac_header
in string.h
6029 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6031 echo "$as_me:$LINENO: checking for $ac_header" >&5
6032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
6036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6039 # Is the header compilable?
6040 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6042 cat >conftest.
$ac_ext <<_ACEOF
6043 #line $LINENO "configure"
6044 #include "confdefs.h"
6045 $ac_includes_default
6046 #include <$ac_header>
6048 rm -f conftest.
$ac_objext
6049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6050 (eval $ac_compile) 2>&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } &&
6054 { ac_try
='test -s conftest.$ac_objext'
6055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; }; then
6060 ac_header_compiler
=yes
6062 echo "$as_me: failed program was:" >&5
6063 cat conftest.
$ac_ext >&5
6064 ac_header_compiler
=no
6066 rm -f conftest.
$ac_objext conftest.
$ac_ext
6067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6068 echo "${ECHO_T}$ac_header_compiler" >&6
6070 # Is the header present?
6071 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6073 cat >conftest.
$ac_ext <<_ACEOF
6074 #line $LINENO "configure"
6075 #include "confdefs.h"
6076 #include <$ac_header>
6078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6079 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6081 egrep -v '^ *\+' conftest.er1
>conftest.err
6083 cat conftest.err
>&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } >/dev
/null
; then
6086 if test -s conftest.err
; then
6087 ac_cpp_err
=$ac_c_preproc_warn_flag
6094 if test -z "$ac_cpp_err"; then
6095 ac_header_preproc
=yes
6097 echo "$as_me: failed program was:" >&5
6098 cat conftest.
$ac_ext >&5
6099 ac_header_preproc
=no
6101 rm -f conftest.err conftest.
$ac_ext
6102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6103 echo "${ECHO_T}$ac_header_preproc" >&6
6105 # So? What about this header?
6106 case $ac_header_compiler:$ac_header_preproc in
6108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6116 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6120 echo "$as_me:$LINENO: checking for $ac_header" >&5
6121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 eval "$as_ac_Header=$ac_header_preproc"
6127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6132 cat >>confdefs.h
<<_ACEOF
6133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6140 for ac_func
in strerror strerror_r vprintf doprnt
6142 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6143 echo "$as_me:$LINENO: checking for $ac_func" >&5
6144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6145 if eval "test \"\${$as_ac_var+set}\" = set"; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6148 cat >conftest.
$ac_ext <<_ACEOF
6149 #line $LINENO "configure"
6150 #include "confdefs.h"
6151 /* System header to define __stub macros and hopefully few prototypes,
6152 which can conflict with char $ac_func (); below. */
6154 /* Override any gcc2 internal prototype to avoid an error. */
6158 /* We use char because int might match the return type of a gcc2
6159 builtin and then its argument prototype would still apply. */
6163 #ifdef F77_DUMMY_MAIN
6167 int F77_DUMMY_MAIN() { return 1; }
6172 /* The GNU C library defines this for functions which it implements
6173 to always fail with ENOSYS. Some functions are actually named
6174 something starting with __ and the normal name is an alias. */
6175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6185 rm -f conftest.
$ac_objext conftest
$ac_exeext
6186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6187 (eval $ac_link) 2>&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); } &&
6191 { ac_try
='test -s conftest$ac_exeext'
6192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); }; }; then
6197 eval "$as_ac_var=yes"
6199 echo "$as_me: failed program was:" >&5
6200 cat conftest.
$ac_ext >&5
6201 eval "$as_ac_var=no"
6203 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6206 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6207 if test `eval echo '${'$as_ac_var'}'` = yes; then
6208 cat >>confdefs.h
<<_ACEOF
6209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6215 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6216 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6217 if test "${ac_cv_header_stdc+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6220 cat >conftest.
$ac_ext <<_ACEOF
6221 #line $LINENO "configure"
6222 #include "confdefs.h"
6229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6230 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6232 egrep -v '^ *\+' conftest.er1
>conftest.err
6234 cat conftest.err
>&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } >/dev
/null
; then
6237 if test -s conftest.err
; then
6238 ac_cpp_err
=$ac_c_preproc_warn_flag
6245 if test -z "$ac_cpp_err"; then
6246 ac_cv_header_stdc
=yes
6248 echo "$as_me: failed program was:" >&5
6249 cat conftest.
$ac_ext >&5
6250 ac_cv_header_stdc
=no
6252 rm -f conftest.err conftest.
$ac_ext
6254 if test $ac_cv_header_stdc = yes; then
6255 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6256 cat >conftest.
$ac_ext <<_ACEOF
6257 #line $LINENO "configure"
6258 #include "confdefs.h"
6262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6263 egrep "memchr" >/dev
/null
2>&1; then
6266 ac_cv_header_stdc
=no
6272 if test $ac_cv_header_stdc = yes; then
6273 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6274 cat >conftest.
$ac_ext <<_ACEOF
6275 #line $LINENO "configure"
6276 #include "confdefs.h"
6280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6281 egrep "free" >/dev
/null
2>&1; then
6284 ac_cv_header_stdc
=no
6290 if test $ac_cv_header_stdc = yes; then
6291 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6292 if test "$cross_compiling" = yes; then
6295 cat >conftest.
$ac_ext <<_ACEOF
6296 #line $LINENO "configure"
6297 #include "confdefs.h"
6299 #if ((' ' & 0x0FF) == 0x020)
6300 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6301 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6303 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6304 || ('j' <= (c) && (c) <= 'r') \
6305 || ('s' <= (c) && (c) <= 'z'))
6306 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6309 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6314 for (i = 0; i < 256; i++)
6315 if (XOR (islower (i), ISLOWER (i))
6316 || toupper (i) != TOUPPER (i))
6321 rm -f conftest
$ac_exeext
6322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6323 (eval $ac_link) 2>&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; }; then
6334 echo "$as_me: program exited with status $ac_status" >&5
6335 echo "$as_me: failed program was:" >&5
6336 cat conftest.
$ac_ext >&5
6338 ac_cv_header_stdc
=no
6340 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6344 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6345 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6346 if test $ac_cv_header_stdc = yes; then
6348 cat >>confdefs.h
<<\_ACEOF
6349 #define STDC_HEADERS 1
6354 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
6355 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
6356 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 cat >conftest.
$ac_ext <<_ACEOF
6360 #line $LINENO "configure"
6361 #include "confdefs.h"
6362 $ac_includes_default
6363 #ifdef F77_DUMMY_MAIN
6367 int F77_DUMMY_MAIN() { return 1; }
6373 char *p = (char *) strerror_r;
6380 rm -f conftest.
$ac_objext
6381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6382 (eval $ac_compile) 2>&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); } &&
6386 { ac_try
='test -s conftest.$ac_objext'
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; }; then
6392 ac_cv_have_decl_strerror_r
=yes
6394 echo "$as_me: failed program was:" >&5
6395 cat conftest.
$ac_ext >&5
6396 ac_cv_have_decl_strerror_r
=no
6398 rm -f conftest.
$ac_objext conftest.
$ac_ext
6400 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
6401 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
6402 if test $ac_cv_have_decl_strerror_r = yes; then
6404 cat >>confdefs.h
<<_ACEOF
6405 #define HAVE_DECL_STRERROR_R 1
6409 cat >>confdefs.h
<<_ACEOF
6410 #define HAVE_DECL_STRERROR_R 0
6415 for ac_func
in strerror_r
6417 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6418 echo "$as_me:$LINENO: checking for $ac_func" >&5
6419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6420 if eval "test \"\${$as_ac_var+set}\" = set"; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6423 cat >conftest.
$ac_ext <<_ACEOF
6424 #line $LINENO "configure"
6425 #include "confdefs.h"
6426 /* System header to define __stub macros and hopefully few prototypes,
6427 which can conflict with char $ac_func (); below. */
6429 /* Override any gcc2 internal prototype to avoid an error. */
6433 /* We use char because int might match the return type of a gcc2
6434 builtin and then its argument prototype would still apply. */
6438 #ifdef F77_DUMMY_MAIN
6442 int F77_DUMMY_MAIN() { return 1; }
6447 /* The GNU C library defines this for functions which it implements
6448 to always fail with ENOSYS. Some functions are actually named
6449 something starting with __ and the normal name is an alias. */
6450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6460 rm -f conftest.
$ac_objext conftest
$ac_exeext
6461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6462 (eval $ac_link) 2>&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } &&
6466 { ac_try
='test -s conftest$ac_exeext'
6467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; }; then
6472 eval "$as_ac_var=yes"
6474 echo "$as_me: failed program was:" >&5
6475 cat conftest.
$ac_ext >&5
6476 eval "$as_ac_var=no"
6478 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6482 if test `eval echo '${'$as_ac_var'}'` = yes; then
6483 cat >>confdefs.h
<<_ACEOF
6484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6490 if test $ac_cv_func_strerror_r = yes; then
6492 for ac_header
in string.h
6494 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6496 echo "$as_me:$LINENO: checking for $ac_header" >&5
6497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6499 echo $ECHO_N "(cached) $ECHO_C" >&6
6501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6504 # Is the header compilable?
6505 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6507 cat >conftest.
$ac_ext <<_ACEOF
6508 #line $LINENO "configure"
6509 #include "confdefs.h"
6510 $ac_includes_default
6511 #include <$ac_header>
6513 rm -f conftest.
$ac_objext
6514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6515 (eval $ac_compile) 2>&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); } &&
6519 { ac_try
='test -s conftest.$ac_objext'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; }; then
6525 ac_header_compiler
=yes
6527 echo "$as_me: failed program was:" >&5
6528 cat conftest.
$ac_ext >&5
6529 ac_header_compiler
=no
6531 rm -f conftest.
$ac_objext conftest.
$ac_ext
6532 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6533 echo "${ECHO_T}$ac_header_compiler" >&6
6535 # Is the header present?
6536 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6537 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6538 cat >conftest.
$ac_ext <<_ACEOF
6539 #line $LINENO "configure"
6540 #include "confdefs.h"
6541 #include <$ac_header>
6543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6544 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6546 egrep -v '^ *\+' conftest.er1
>conftest.err
6548 cat conftest.err
>&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } >/dev
/null
; then
6551 if test -s conftest.err
; then
6552 ac_cpp_err
=$ac_c_preproc_warn_flag
6559 if test -z "$ac_cpp_err"; then
6560 ac_header_preproc
=yes
6562 echo "$as_me: failed program was:" >&5
6563 cat conftest.
$ac_ext >&5
6564 ac_header_preproc
=no
6566 rm -f conftest.err conftest.
$ac_ext
6567 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6568 echo "${ECHO_T}$ac_header_preproc" >&6
6570 # So? What about this header?
6571 case $ac_header_compiler:$ac_header_preproc in
6573 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6574 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6585 echo "$as_me:$LINENO: checking for $ac_header" >&5
6586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6588 echo $ECHO_N "(cached) $ECHO_C" >&6
6590 eval "$as_ac_Header=$ac_header_preproc"
6592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6597 cat >>confdefs.h
<<_ACEOF
6598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6605 echo "$as_me:$LINENO: checking for working strerror_r" >&5
6606 echo $ECHO_N "checking for working strerror_r... $ECHO_C" >&6
6607 if test "${ac_cv_func_strerror_r_works+set}" = set; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6611 cat >conftest.
$ac_ext <<_ACEOF
6612 #line $LINENO "configure"
6613 #include "confdefs.h"
6617 # include <string.h>
6620 #ifdef F77_DUMMY_MAIN
6624 int F77_DUMMY_MAIN() { return 1; }
6631 char x = *strerror_r (0, buf, sizeof buf);
6637 rm -f conftest.
$ac_objext
6638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6639 (eval $ac_compile) 2>&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } &&
6643 { ac_try
='test -s conftest.$ac_objext'
6644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); }; }; then
6649 ac_cv_func_strerror_r_works
=yes
6651 echo "$as_me: failed program was:" >&5
6652 cat conftest.
$ac_ext >&5
6653 ac_cv_func_strerror_r_works
=no
6656 rm -f conftest.
$ac_objext conftest.
$ac_ext
6657 if test $ac_cv_func_strerror_r_works = no
; then
6658 # strerror_r seems not to work, but now we have to choose between
6659 # systems that have relatively inaccessible declarations for the
6660 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
6661 # former has a strerror_r that returns char*, while the latter
6662 # has a strerror_r that returns `int'.
6663 # This test should segfault on the DEC system.
6664 if test "$cross_compiling" = yes; then
6665 ac_cv_func_strerror_r_works
=no
6667 cat >conftest.
$ac_ext <<_ACEOF
6668 #line $LINENO "configure"
6669 #include "confdefs.h"
6672 # include <string.h>
6675 extern char *strerror_r ();
6681 char x = *strerror_r (0, buf, sizeof buf);
6682 exit (!isalpha (x));
6686 rm -f conftest
$ac_exeext
6687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6688 (eval $ac_link) 2>&5
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); }; }; then
6697 ac_cv_func_strerror_r_works
=yes
6699 echo "$as_me: program exited with status $ac_status" >&5
6700 echo "$as_me: failed program was:" >&5
6701 cat conftest.
$ac_ext >&5
6703 ac_cv_func_strerror_r_works
=no
6705 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6710 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_works" >&5
6711 echo "${ECHO_T}$ac_cv_func_strerror_r_works" >&6
6712 if test $ac_cv_func_strerror_r_works = yes; then
6714 cat >>confdefs.h
<<_ACEOF
6715 #define HAVE_WORKING_STRERROR_R 1
6721 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
6722 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
6724 # Check whether --with-dmalloc or --without-dmalloc was given.
6725 if test "${with_dmalloc+set}" = set; then
6726 withval
="$with_dmalloc"
6727 if test "$withval" = yes; then
6728 echo "$as_me:$LINENO: result: yes" >&5
6729 echo "${ECHO_T}yes" >&6
6731 cat >>confdefs.h
<<\_ACEOF
6732 #define WITH_DMALLOC 1
6735 LIBS
="$LIBS -ldmalloc"
6736 LDFLAGS
="$LDFLAGS -g"
6738 echo "$as_me:$LINENO: result: no" >&5
6739 echo "${ECHO_T}no" >&6
6742 echo "$as_me:$LINENO: result: no" >&5
6743 echo "${ECHO_T}no" >&6
6746 ALL_LINGUAS
="de es et fr ja nl tr ru"
6747 # Make sure we can run config.sub.
6748 $ac_config_sub sun4
>/dev
/null
2>&1 ||
6749 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6750 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6751 { (exit 1); exit 1; }; }
6753 echo "$as_me:$LINENO: checking build system type" >&5
6754 echo $ECHO_N "checking build system type... $ECHO_C" >&6
6755 if test "${ac_cv_build+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6758 ac_cv_build_alias
=$build_alias
6759 test -z "$ac_cv_build_alias" &&
6760 ac_cv_build_alias
=`$ac_config_guess`
6761 test -z "$ac_cv_build_alias" &&
6762 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6763 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6764 { (exit 1); exit 1; }; }
6765 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
6766 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed." >&5
6767 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
6768 { (exit 1); exit 1; }; }
6771 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6772 echo "${ECHO_T}$ac_cv_build" >&6
6774 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6775 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6776 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6778 echo "$as_me:$LINENO: checking host system type" >&5
6779 echo $ECHO_N "checking host system type... $ECHO_C" >&6
6780 if test "${ac_cv_host+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6783 ac_cv_host_alias
=$host_alias
6784 test -z "$ac_cv_host_alias" &&
6785 ac_cv_host_alias
=$ac_cv_build_alias
6786 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
6787 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6788 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6789 { (exit 1); exit 1; }; }
6792 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6793 echo "${ECHO_T}$ac_cv_host" >&6
6795 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6796 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6797 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6799 echo "$as_me:$LINENO: checking for off_t" >&5
6800 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6801 if test "${ac_cv_type_off_t+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6804 cat >conftest.
$ac_ext <<_ACEOF
6805 #line $LINENO "configure"
6806 #include "confdefs.h"
6807 $ac_includes_default
6808 #ifdef F77_DUMMY_MAIN
6812 int F77_DUMMY_MAIN() { return 1; }
6825 rm -f conftest.
$ac_objext
6826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6827 (eval $ac_compile) 2>&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } &&
6831 { ac_try
='test -s conftest.$ac_objext'
6832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; }; then
6837 ac_cv_type_off_t
=yes
6839 echo "$as_me: failed program was:" >&5
6840 cat conftest.
$ac_ext >&5
6843 rm -f conftest.
$ac_objext conftest.
$ac_ext
6845 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6846 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6847 if test $ac_cv_type_off_t = yes; then
6851 cat >>confdefs.h
<<_ACEOF
6857 echo "$as_me:$LINENO: checking for size_t" >&5
6858 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6859 if test "${ac_cv_type_size_t+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 cat >conftest.
$ac_ext <<_ACEOF
6863 #line $LINENO "configure"
6864 #include "confdefs.h"
6865 $ac_includes_default
6866 #ifdef F77_DUMMY_MAIN
6870 int F77_DUMMY_MAIN() { return 1; }
6877 if (sizeof (size_t))
6883 rm -f conftest.
$ac_objext
6884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6885 (eval $ac_compile) 2>&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); } &&
6889 { ac_try
='test -s conftest.$ac_objext'
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; }; then
6895 ac_cv_type_size_t
=yes
6897 echo "$as_me: failed program was:" >&5
6898 cat conftest.
$ac_ext >&5
6899 ac_cv_type_size_t
=no
6901 rm -f conftest.
$ac_objext conftest.
$ac_ext
6903 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6904 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6905 if test $ac_cv_type_size_t = yes; then
6909 cat >>confdefs.h
<<_ACEOF
6910 #define size_t unsigned
6915 for ac_header
in stdlib.h unistd.h
6917 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6919 echo "$as_me:$LINENO: checking for $ac_header" >&5
6920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6927 # Is the header compilable?
6928 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6930 cat >conftest.
$ac_ext <<_ACEOF
6931 #line $LINENO "configure"
6932 #include "confdefs.h"
6933 $ac_includes_default
6934 #include <$ac_header>
6936 rm -f conftest.
$ac_objext
6937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6938 (eval $ac_compile) 2>&5
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); } &&
6942 { ac_try
='test -s conftest.$ac_objext'
6943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; }; then
6948 ac_header_compiler
=yes
6950 echo "$as_me: failed program was:" >&5
6951 cat conftest.
$ac_ext >&5
6952 ac_header_compiler
=no
6954 rm -f conftest.
$ac_objext conftest.
$ac_ext
6955 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6956 echo "${ECHO_T}$ac_header_compiler" >&6
6958 # Is the header present?
6959 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6960 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6961 cat >conftest.
$ac_ext <<_ACEOF
6962 #line $LINENO "configure"
6963 #include "confdefs.h"
6964 #include <$ac_header>
6966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6967 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6969 egrep -v '^ *\+' conftest.er1
>conftest.err
6971 cat conftest.err
>&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } >/dev
/null
; then
6974 if test -s conftest.err
; then
6975 ac_cpp_err
=$ac_c_preproc_warn_flag
6982 if test -z "$ac_cpp_err"; then
6983 ac_header_preproc
=yes
6985 echo "$as_me: failed program was:" >&5
6986 cat conftest.
$ac_ext >&5
6987 ac_header_preproc
=no
6989 rm -f conftest.err conftest.
$ac_ext
6990 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6991 echo "${ECHO_T}$ac_header_preproc" >&6
6993 # So? What about this header?
6994 case $ac_header_compiler:$ac_header_preproc in
6996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6997 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7004 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7006 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7008 echo "$as_me:$LINENO: checking for $ac_header" >&5
7009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7013 eval "$as_ac_Header=$ac_header_preproc"
7015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7020 cat >>confdefs.h
<<_ACEOF
7021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7028 for ac_func
in getpagesize
7030 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7031 echo "$as_me:$LINENO: checking for $ac_func" >&5
7032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7033 if eval "test \"\${$as_ac_var+set}\" = set"; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 cat >conftest.
$ac_ext <<_ACEOF
7037 #line $LINENO "configure"
7038 #include "confdefs.h"
7039 /* System header to define __stub macros and hopefully few prototypes,
7040 which can conflict with char $ac_func (); below. */
7042 /* Override any gcc2 internal prototype to avoid an error. */
7046 /* We use char because int might match the return type of a gcc2
7047 builtin and then its argument prototype would still apply. */
7051 #ifdef F77_DUMMY_MAIN
7055 int F77_DUMMY_MAIN() { return 1; }
7060 /* The GNU C library defines this for functions which it implements
7061 to always fail with ENOSYS. Some functions are actually named
7062 something starting with __ and the normal name is an alias. */
7063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7073 rm -f conftest.
$ac_objext conftest
$ac_exeext
7074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7075 (eval $ac_link) 2>&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } &&
7079 { ac_try
='test -s conftest$ac_exeext'
7080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); }; }; then
7085 eval "$as_ac_var=yes"
7087 echo "$as_me: failed program was:" >&5
7088 cat conftest.
$ac_ext >&5
7089 eval "$as_ac_var=no"
7091 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7095 if test `eval echo '${'$as_ac_var'}'` = yes; then
7096 cat >>confdefs.h
<<_ACEOF
7097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7103 echo "$as_me:$LINENO: checking for working mmap" >&5
7104 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7105 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 if test "$cross_compiling" = yes; then
7109 ac_cv_func_mmap_fixed_mapped
=no
7111 cat >conftest.
$ac_ext <<_ACEOF
7112 #line $LINENO "configure"
7113 #include "confdefs.h"
7114 $ac_includes_default
7115 /* Thanks to Mike Haertel and Jim Avera for this test.
7116 Here is a matrix of mmap possibilities:
7117 mmap private not fixed
7118 mmap private fixed at somewhere currently unmapped
7119 mmap private fixed at somewhere already mapped
7120 mmap shared not fixed
7121 mmap shared fixed at somewhere currently unmapped
7122 mmap shared fixed at somewhere already mapped
7123 For private mappings, we should verify that changes cannot be read()
7124 back from the file, nor mmap's back from the file at a different
7125 address. (There have been systems where private was not correctly
7126 implemented like the infamous i386 svr4.0, and systems where the
7127 VM page cache was not coherent with the file system buffer cache
7128 like early versions of FreeBSD and possibly contemporary NetBSD.)
7129 For shared mappings, we should conversely verify that changes get
7130 propogated back to all the places they're supposed to be.
7132 Grep wants private fixed already mapped.
7133 The main things grep needs to know about mmap are:
7134 * does it exist and is it safe to write into the mmap'd area
7135 * how to use it (BSD variants) */
7138 #include <sys/mman.h>
7140 #if !STDC_HEADERS && !HAVE_STDLIB_H
7144 /* This mess was copied from the GNU getpagesize.h. */
7145 #if !HAVE_GETPAGESIZE
7146 /* Assume that all systems that can run configure have sys/param.h. */
7147 # if !HAVE_SYS_PARAM_H
7148 # define HAVE_SYS_PARAM_H 1
7151 # ifdef _SC_PAGESIZE
7152 # define getpagesize() sysconf(_SC_PAGESIZE)
7153 # else /* no _SC_PAGESIZE */
7154 # if HAVE_SYS_PARAM_H
7155 # include <sys/param.h>
7156 # ifdef EXEC_PAGESIZE
7157 # define getpagesize() EXEC_PAGESIZE
7158 # else /* no EXEC_PAGESIZE */
7160 # define getpagesize() NBPG * CLSIZE
7163 # endif /* no CLSIZE */
7164 # else /* no NBPG */
7166 # define getpagesize() NBPC
7167 # else /* no NBPC */
7169 # define getpagesize() PAGESIZE
7170 # endif /* PAGESIZE */
7171 # endif /* no NBPC */
7172 # endif /* no NBPG */
7173 # endif /* no EXEC_PAGESIZE */
7174 # else /* no HAVE_SYS_PARAM_H */
7175 # define getpagesize() 8192 /* punt totally */
7176 # endif /* no HAVE_SYS_PARAM_H */
7177 # endif /* no _SC_PAGESIZE */
7179 #endif /* no HAVE_GETPAGESIZE */
7184 char *data, *data2, *data3;
7188 pagesize = getpagesize ();
7190 /* First, make a file with some known garbage in it. */
7191 data = (char *) malloc (pagesize);
7194 for (i = 0; i < pagesize; ++i)
7195 *(data + i) = rand ();
7197 fd = creat ("conftest.mmap", 0600);
7200 if (write (fd, data, pagesize) != pagesize)
7204 /* Next, try to mmap the file at a fixed address which already has
7205 something else allocated at it. If we can, also make sure that
7206 we see the same garbage. */
7207 fd = open ("conftest.mmap", O_RDWR);
7210 data2 = (char *) malloc (2 * pagesize);
7213 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7214 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7215 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7217 for (i = 0; i < pagesize; ++i)
7218 if (*(data + i) != *(data2 + i))
7221 /* Finally, make sure that changes to the mapped area do not
7222 percolate back to the file as seen by read(). (This is a bug on
7223 some variants of i386 svr4.0.) */
7224 for (i = 0; i < pagesize; ++i)
7225 *(data2 + i) = *(data2 + i) + 1;
7226 data3 = (char *) malloc (pagesize);
7229 if (read (fd, data3, pagesize) != pagesize)
7231 for (i = 0; i < pagesize; ++i)
7232 if (*(data + i) != *(data3 + i))
7238 rm -f conftest
$ac_exeext
7239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7240 (eval $ac_link) 2>&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); }; }; then
7249 ac_cv_func_mmap_fixed_mapped
=yes
7251 echo "$as_me: program exited with status $ac_status" >&5
7252 echo "$as_me: failed program was:" >&5
7253 cat conftest.
$ac_ext >&5
7255 ac_cv_func_mmap_fixed_mapped
=no
7257 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7260 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7261 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7262 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7264 cat >>confdefs.h
<<\_ACEOF
7271 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7272 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7273 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7276 cat >conftest.
$ac_ext <<_ACEOF
7277 #line $LINENO "configure"
7278 #include "confdefs.h"
7280 #include <features.h>
7281 #ifdef __GNU_LIBRARY__
7282 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7289 egrep "Lucky GNU user" >/dev
/null
2>&1; then
7290 ac_cv_gnu_library_2_1
=yes
7292 ac_cv_gnu_library_2_1
=no
7297 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7298 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7300 GLIBC21
="$ac_cv_gnu_library_2_1"
7302 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7303 stdlib.h string.h unistd.h sys
/param.h
7305 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7307 echo "$as_me:$LINENO: checking for $ac_header" >&5
7308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7315 # Is the header compilable?
7316 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7318 cat >conftest.
$ac_ext <<_ACEOF
7319 #line $LINENO "configure"
7320 #include "confdefs.h"
7321 $ac_includes_default
7322 #include <$ac_header>
7324 rm -f conftest.
$ac_objext
7325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7326 (eval $ac_compile) 2>&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); } &&
7330 { ac_try
='test -s conftest.$ac_objext'
7331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); }; }; then
7336 ac_header_compiler
=yes
7338 echo "$as_me: failed program was:" >&5
7339 cat conftest.
$ac_ext >&5
7340 ac_header_compiler
=no
7342 rm -f conftest.
$ac_objext conftest.
$ac_ext
7343 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7344 echo "${ECHO_T}$ac_header_compiler" >&6
7346 # Is the header present?
7347 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7349 cat >conftest.
$ac_ext <<_ACEOF
7350 #line $LINENO "configure"
7351 #include "confdefs.h"
7352 #include <$ac_header>
7354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7355 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7357 egrep -v '^ *\+' conftest.er1
>conftest.err
7359 cat conftest.err
>&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } >/dev
/null
; then
7362 if test -s conftest.err
; then
7363 ac_cpp_err
=$ac_c_preproc_warn_flag
7370 if test -z "$ac_cpp_err"; then
7371 ac_header_preproc
=yes
7373 echo "$as_me: failed program was:" >&5
7374 cat conftest.
$ac_ext >&5
7375 ac_header_preproc
=no
7377 rm -f conftest.err conftest.
$ac_ext
7378 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7379 echo "${ECHO_T}$ac_header_preproc" >&6
7381 # So? What about this header?
7382 case $ac_header_compiler:$ac_header_preproc in
7384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7389 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7391 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7392 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7394 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7396 echo "$as_me:$LINENO: checking for $ac_header" >&5
7397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 eval "$as_ac_Header=$ac_header_preproc"
7403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7408 cat >>confdefs.h
<<_ACEOF
7409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7416 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
7417 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
7418 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
7420 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7421 echo "$as_me:$LINENO: checking for $ac_func" >&5
7422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7423 if eval "test \"\${$as_ac_var+set}\" = set"; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
7426 cat >conftest.
$ac_ext <<_ACEOF
7427 #line $LINENO "configure"
7428 #include "confdefs.h"
7429 /* System header to define __stub macros and hopefully few prototypes,
7430 which can conflict with char $ac_func (); below. */
7432 /* Override any gcc2 internal prototype to avoid an error. */
7436 /* We use char because int might match the return type of a gcc2
7437 builtin and then its argument prototype would still apply. */
7441 #ifdef F77_DUMMY_MAIN
7445 int F77_DUMMY_MAIN() { return 1; }
7450 /* The GNU C library defines this for functions which it implements
7451 to always fail with ENOSYS. Some functions are actually named
7452 something starting with __ and the normal name is an alias. */
7453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7463 rm -f conftest.
$ac_objext conftest
$ac_exeext
7464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7465 (eval $ac_link) 2>&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } &&
7469 { ac_try
='test -s conftest$ac_exeext'
7470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); }; }; then
7475 eval "$as_ac_var=yes"
7477 echo "$as_me: failed program was:" >&5
7478 cat conftest.
$ac_ext >&5
7479 eval "$as_ac_var=no"
7481 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7484 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7485 if test `eval echo '${'$as_ac_var'}'` = yes; then
7486 cat >>confdefs.h
<<_ACEOF
7487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7493 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7494 if test "${with_libiconv_prefix+set}" = set; then
7495 withval
="$with_libiconv_prefix"
7497 for dir
in `echo "$withval" | tr : ' '`; do
7498 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
7499 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
7504 echo "$as_me:$LINENO: checking for iconv" >&5
7505 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7506 if test "${am_cv_func_iconv+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 am_cv_func_iconv
="no, consider installing GNU libiconv"
7512 cat >conftest.
$ac_ext <<_ACEOF
7513 #line $LINENO "configure"
7514 #include "confdefs.h"
7517 #ifdef F77_DUMMY_MAIN
7521 int F77_DUMMY_MAIN() { return 1; }
7526 iconv_t cd = iconv_open("","");
7527 iconv(cd,NULL,NULL,NULL,NULL);
7533 rm -f conftest.
$ac_objext conftest
$ac_exeext
7534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7535 (eval $ac_link) 2>&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); } &&
7539 { ac_try
='test -s conftest$ac_exeext'
7540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); }; }; then
7545 am_cv_func_iconv
=yes
7547 echo "$as_me: failed program was:" >&5
7548 cat conftest.
$ac_ext >&5
7550 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7551 if test "$am_cv_func_iconv" != yes; then
7552 am_save_LIBS
="$LIBS"
7553 LIBS
="$LIBS -liconv"
7554 cat >conftest.
$ac_ext <<_ACEOF
7555 #line $LINENO "configure"
7556 #include "confdefs.h"
7559 #ifdef F77_DUMMY_MAIN
7563 int F77_DUMMY_MAIN() { return 1; }
7568 iconv_t cd = iconv_open("","");
7569 iconv(cd,NULL,NULL,NULL,NULL);
7575 rm -f conftest.
$ac_objext conftest
$ac_exeext
7576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7577 (eval $ac_link) 2>&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); } &&
7581 { ac_try
='test -s conftest$ac_exeext'
7582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); }; }; then
7588 am_cv_func_iconv
=yes
7590 echo "$as_me: failed program was:" >&5
7591 cat conftest.
$ac_ext >&5
7593 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7594 LIBS
="$am_save_LIBS"
7598 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7599 echo "${ECHO_T}$am_cv_func_iconv" >&6
7600 if test "$am_cv_func_iconv" = yes; then
7602 cat >>confdefs.h
<<\_ACEOF
7603 #define HAVE_ICONV 1
7606 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7607 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7608 if test "${am_cv_proto_iconv+set}" = set; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 cat >conftest.
$ac_ext <<_ACEOF
7613 #line $LINENO "configure"
7614 #include "confdefs.h"
7622 #if defined(__STDC__) || defined(__cplusplus)
7623 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7628 #ifdef F77_DUMMY_MAIN
7632 int F77_DUMMY_MAIN() { return 1; }
7642 rm -f conftest.
$ac_objext
7643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7644 (eval $ac_compile) 2>&5
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); } &&
7648 { ac_try
='test -s conftest.$ac_objext'
7649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; }; then
7654 am_cv_proto_iconv_arg1
=""
7656 echo "$as_me: failed program was:" >&5
7657 cat conftest.
$ac_ext >&5
7658 am_cv_proto_iconv_arg1
="const"
7660 rm -f conftest.
$ac_objext conftest.
$ac_ext
7661 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);"
7664 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7665 echo "$as_me:$LINENO: result: ${ac_t:-
7666 }$am_cv_proto_iconv" >&5
7667 echo "${ECHO_T}${ac_t:-
7668 }$am_cv_proto_iconv" >&6
7670 cat >>confdefs.h
<<_ACEOF
7671 #define ICONV_CONST $am_cv_proto_iconv_arg1
7676 if test "$am_cv_lib_iconv" = yes; then
7680 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7681 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7682 if test "${am_cv_langinfo_codeset+set}" = set; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
7685 cat >conftest.
$ac_ext <<_ACEOF
7686 #line $LINENO "configure"
7687 #include "confdefs.h"
7688 #include <langinfo.h>
7689 #ifdef F77_DUMMY_MAIN
7693 int F77_DUMMY_MAIN() { return 1; }
7698 char* cs = nl_langinfo(CODESET);
7703 rm -f conftest.
$ac_objext conftest
$ac_exeext
7704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7705 (eval $ac_link) 2>&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); } &&
7709 { ac_try
='test -s conftest$ac_exeext'
7710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; }; then
7715 am_cv_langinfo_codeset
=yes
7717 echo "$as_me: failed program was:" >&5
7718 cat conftest.
$ac_ext >&5
7719 am_cv_langinfo_codeset
=no
7721 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7724 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7725 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7726 if test $am_cv_langinfo_codeset = yes; then
7728 cat >>confdefs.h
<<\_ACEOF
7729 #define HAVE_LANGINFO_CODESET 1
7734 if test $ac_cv_header_locale_h = yes; then
7735 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7736 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7737 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7740 cat >conftest.
$ac_ext <<_ACEOF
7741 #line $LINENO "configure"
7742 #include "confdefs.h"
7744 #ifdef F77_DUMMY_MAIN
7748 int F77_DUMMY_MAIN() { return 1; }
7758 rm -f conftest.
$ac_objext conftest
$ac_exeext
7759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7760 (eval $ac_link) 2>&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } &&
7764 { ac_try
='test -s conftest$ac_exeext'
7765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; }; then
7770 am_cv_val_LC_MESSAGES
=yes
7772 echo "$as_me: failed program was:" >&5
7773 cat conftest.
$ac_ext >&5
7774 am_cv_val_LC_MESSAGES
=no
7776 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7778 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7779 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7780 if test $am_cv_val_LC_MESSAGES = yes; then
7782 cat >>confdefs.h
<<\_ACEOF
7783 #define HAVE_LC_MESSAGES 1
7788 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7789 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7790 # Check whether --enable-nls or --disable-nls was given.
7791 if test "${enable_nls+set}" = set; then
7792 enableval
="$enable_nls"
7797 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7798 echo "${ECHO_T}$USE_NLS" >&6
7800 BUILD_INCLUDED_LIBINTL
=no
7801 USE_INCLUDED_LIBINTL
=no
7804 if test "$USE_NLS" = "yes"; then
7806 cat >>confdefs.h
<<\_ACEOF
7807 #define ENABLE_NLS 1
7810 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7811 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7813 # Check whether --with-included-gettext or --without-included-gettext was given.
7814 if test "${with_included_gettext+set}" = set; then
7815 withval
="$with_included_gettext"
7816 nls_cv_force_use_gnu_gettext
=$withval
7818 nls_cv_force_use_gnu_gettext
=no
7820 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7821 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7823 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7824 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7827 if test "${ac_cv_header_libintl_h+set}" = set; then
7828 echo "$as_me:$LINENO: checking for libintl.h" >&5
7829 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7830 if test "${ac_cv_header_libintl_h+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7833 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7834 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7836 # Is the header compilable?
7837 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7838 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7839 cat >conftest.
$ac_ext <<_ACEOF
7840 #line $LINENO "configure"
7841 #include "confdefs.h"
7842 $ac_includes_default
7843 #include <libintl.h>
7845 rm -f conftest.
$ac_objext
7846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7847 (eval $ac_compile) 2>&5
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } &&
7851 { ac_try
='test -s conftest.$ac_objext'
7852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); }; }; then
7857 ac_header_compiler
=yes
7859 echo "$as_me: failed program was:" >&5
7860 cat conftest.
$ac_ext >&5
7861 ac_header_compiler
=no
7863 rm -f conftest.
$ac_objext conftest.
$ac_ext
7864 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7865 echo "${ECHO_T}$ac_header_compiler" >&6
7867 # Is the header present?
7868 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7869 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7870 cat >conftest.
$ac_ext <<_ACEOF
7871 #line $LINENO "configure"
7872 #include "confdefs.h"
7873 #include <libintl.h>
7875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7876 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7878 egrep -v '^ *\+' conftest.er1
>conftest.err
7880 cat conftest.err
>&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } >/dev
/null
; then
7883 if test -s conftest.err
; then
7884 ac_cpp_err
=$ac_c_preproc_warn_flag
7891 if test -z "$ac_cpp_err"; then
7892 ac_header_preproc
=yes
7894 echo "$as_me: failed program was:" >&5
7895 cat conftest.
$ac_ext >&5
7896 ac_header_preproc
=no
7898 rm -f conftest.err conftest.
$ac_ext
7899 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7900 echo "${ECHO_T}$ac_header_preproc" >&6
7902 # So? What about this header?
7903 case $ac_header_compiler:$ac_header_preproc in
7905 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7906 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7907 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7908 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7910 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled." >&5
7911 echo "$as_me: WARNING: libintl.h: present but cannot be compiled." >&2;}
7912 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7913 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7914 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7915 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7917 echo "$as_me:$LINENO: checking for libintl.h" >&5
7918 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7919 if test "${ac_cv_header_libintl_h+set}" = set; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 ac_cv_header_libintl_h
=$ac_header_preproc
7924 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7925 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7928 if test $ac_cv_header_libintl_h = yes; then
7929 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
7930 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
7931 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7934 cat >conftest.
$ac_ext <<_ACEOF
7935 #line $LINENO "configure"
7936 #include "confdefs.h"
7937 #include <libintl.h>
7938 extern int _nl_msg_cat_cntr;
7939 #ifdef F77_DUMMY_MAIN
7943 int F77_DUMMY_MAIN() { return 1; }
7948 bindtextdomain ("", "");
7949 return (int) gettext ("") + _nl_msg_cat_cntr
7954 rm -f conftest.
$ac_objext conftest
$ac_exeext
7955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7956 (eval $ac_link) 2>&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } &&
7960 { ac_try
='test -s conftest$ac_exeext'
7961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; }; then
7966 gt_cv_func_gnugettext1_libc
=yes
7968 echo "$as_me: failed program was:" >&5
7969 cat conftest.
$ac_ext >&5
7970 gt_cv_func_gnugettext1_libc
=no
7972 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7974 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
7975 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
7977 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
7978 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7979 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
7980 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 gt_save_LIBS
="$LIBS"
7984 LIBS
="$LIBS -lintl $LIBICONV"
7985 cat >conftest.
$ac_ext <<_ACEOF
7986 #line $LINENO "configure"
7987 #include "confdefs.h"
7988 #include <libintl.h>
7989 extern int _nl_msg_cat_cntr;
7990 #ifdef F77_DUMMY_MAIN
7994 int F77_DUMMY_MAIN() { return 1; }
7999 bindtextdomain ("", "");
8000 return (int) gettext ("") + _nl_msg_cat_cntr
8005 rm -f conftest.
$ac_objext conftest
$ac_exeext
8006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8007 (eval $ac_link) 2>&5
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); } &&
8011 { ac_try
='test -s conftest$ac_exeext'
8012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); }; }; then
8017 gt_cv_func_gnugettext1_libintl
=yes
8019 echo "$as_me: failed program was:" >&5
8020 cat conftest.
$ac_ext >&5
8021 gt_cv_func_gnugettext1_libintl
=no
8023 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8024 LIBS
="$gt_save_LIBS"
8026 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
8027 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
8030 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
8031 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
8032 && test "$PACKAGE" != gettext; }; then
8034 cat >>confdefs.h
<<\_ACEOF
8035 #define HAVE_GETTEXT 1
8038 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
8039 INTLLIBS
="-lintl $LIBICONV"
8042 gt_save_LIBS
="$LIBS"
8043 LIBS
="$LIBS $INTLLIBS"
8045 for ac_func
in dcgettext
8047 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8048 echo "$as_me:$LINENO: checking for $ac_func" >&5
8049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8050 if eval "test \"\${$as_ac_var+set}\" = set"; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8053 cat >conftest.
$ac_ext <<_ACEOF
8054 #line $LINENO "configure"
8055 #include "confdefs.h"
8056 /* System header to define __stub macros and hopefully few prototypes,
8057 which can conflict with char $ac_func (); below. */
8059 /* Override any gcc2 internal prototype to avoid an error. */
8063 /* We use char because int might match the return type of a gcc2
8064 builtin and then its argument prototype would still apply. */
8068 #ifdef F77_DUMMY_MAIN
8072 int F77_DUMMY_MAIN() { return 1; }
8077 /* The GNU C library defines this for functions which it implements
8078 to always fail with ENOSYS. Some functions are actually named
8079 something starting with __ and the normal name is an alias. */
8080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8090 rm -f conftest.
$ac_objext conftest
$ac_exeext
8091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8092 (eval $ac_link) 2>&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); } &&
8096 { ac_try
='test -s conftest$ac_exeext'
8097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); }; }; then
8102 eval "$as_ac_var=yes"
8104 echo "$as_me: failed program was:" >&5
8105 cat conftest.
$ac_ext >&5
8106 eval "$as_ac_var=no"
8108 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8111 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8112 if test `eval echo '${'$as_ac_var'}'` = yes; then
8113 cat >>confdefs.h
<<_ACEOF
8114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8120 LIBS
="$gt_save_LIBS"
8122 # Extract the first word of "msgfmt", so it can be a program name with args.
8123 set dummy msgfmt
; ac_word
=$2
8124 echo "$as_me:$LINENO: checking for $ac_word" >&5
8125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8126 if test "${ac_cv_path_MSGFMT+set}" = set; then
8127 echo $ECHO_N "(cached) $ECHO_C" >&6
8131 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8134 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8135 for ac_dir
in $PATH; do
8136 test -z "$ac_dir" && ac_dir
=.
8137 if test -f $ac_dir/$ac_word; then
8138 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8139 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8145 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8149 MSGFMT
="$ac_cv_path_MSGFMT"
8150 if test "$MSGFMT" != ":"; then
8151 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8152 echo "${ECHO_T}$MSGFMT" >&6
8154 echo "$as_me:$LINENO: result: no" >&5
8155 echo "${ECHO_T}no" >&6
8158 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8159 set dummy gmsgfmt
; ac_word
=$2
8160 echo "$as_me:$LINENO: checking for $ac_word" >&5
8161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8162 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
8167 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8170 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8174 test -z "$as_dir" && as_dir
=.
8175 for ac_exec_ext
in '' $ac_executable_extensions; do
8176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8177 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8184 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8188 GMSGFMT
=$ac_cv_path_GMSGFMT
8190 if test -n "$GMSGFMT"; then
8191 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8192 echo "${ECHO_T}$GMSGFMT" >&6
8194 echo "$as_me:$LINENO: result: no" >&5
8195 echo "${ECHO_T}no" >&6
8198 # Extract the first word of "xgettext", so it can be a program name with args.
8199 set dummy xgettext
; ac_word
=$2
8200 echo "$as_me:$LINENO: checking for $ac_word" >&5
8201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8202 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
8207 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8210 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8211 for ac_dir
in $PATH; do
8212 test -z "$ac_dir" && ac_dir
=.
8213 if test -f $ac_dir/$ac_word; then
8214 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8215 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8221 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8225 XGETTEXT
="$ac_cv_path_XGETTEXT"
8226 if test "$XGETTEXT" != ":"; then
8227 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8228 echo "${ECHO_T}$XGETTEXT" >&6
8230 echo "$as_me:$LINENO: result: no" >&5
8231 echo "${ECHO_T}no" >&6
8239 if test "$CATOBJEXT" = "NONE"; then
8240 nls_cv_use_gnu_gettext
=yes
8244 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8245 INTLOBJS
="\$(GETTOBJS)"
8246 # Extract the first word of "msgfmt", so it can be a program name with args.
8247 set dummy msgfmt
; ac_word
=$2
8248 echo "$as_me:$LINENO: checking for $ac_word" >&5
8249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8250 if test "${ac_cv_path_MSGFMT+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8255 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8258 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8259 for ac_dir
in $PATH; do
8260 test -z "$ac_dir" && ac_dir
=.
8261 if test -f $ac_dir/$ac_word; then
8262 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8263 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8269 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8273 MSGFMT
="$ac_cv_path_MSGFMT"
8274 if test "$MSGFMT" != ":"; then
8275 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8276 echo "${ECHO_T}$MSGFMT" >&6
8278 echo "$as_me:$LINENO: result: no" >&5
8279 echo "${ECHO_T}no" >&6
8282 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8283 set dummy gmsgfmt
; ac_word
=$2
8284 echo "$as_me:$LINENO: checking for $ac_word" >&5
8285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8286 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8287 echo $ECHO_N "(cached) $ECHO_C" >&6
8291 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8294 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8298 test -z "$as_dir" && as_dir
=.
8299 for ac_exec_ext
in '' $ac_executable_extensions; do
8300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8301 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8308 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8312 GMSGFMT
=$ac_cv_path_GMSGFMT
8314 if test -n "$GMSGFMT"; then
8315 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8316 echo "${ECHO_T}$GMSGFMT" >&6
8318 echo "$as_me:$LINENO: result: no" >&5
8319 echo "${ECHO_T}no" >&6
8322 # Extract the first word of "xgettext", so it can be a program name with args.
8323 set dummy xgettext
; ac_word
=$2
8324 echo "$as_me:$LINENO: checking for $ac_word" >&5
8325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8326 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8327 echo $ECHO_N "(cached) $ECHO_C" >&6
8331 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8334 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8335 for ac_dir
in $PATH; do
8336 test -z "$ac_dir" && ac_dir
=.
8337 if test -f $ac_dir/$ac_word; then
8338 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8339 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8345 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8349 XGETTEXT
="$ac_cv_path_XGETTEXT"
8350 if test "$XGETTEXT" != ":"; then
8351 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8352 echo "${ECHO_T}$XGETTEXT" >&6
8354 echo "$as_me:$LINENO: result: no" >&5
8355 echo "${ECHO_T}no" >&6
8358 BUILD_INCLUDED_LIBINTL
=yes
8359 USE_INCLUDED_LIBINTL
=yes
8361 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
8362 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8365 if test "$GMSGFMT" != ":"; then
8366 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
8369 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
8370 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
8375 if test "$XGETTEXT" != ":"; then
8376 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
8379 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8380 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8387 ac_config_commands
="$ac_config_commands default-2"
8389 if test "$PACKAGE" = gettext; then
8390 BUILD_INCLUDED_LIBINTL
=yes
8393 for ac_prog
in bison
8395 # Extract the first word of "$ac_prog", so it can be a program name with args.
8396 set dummy
$ac_prog; ac_word
=$2
8397 echo "$as_me:$LINENO: checking for $ac_word" >&5
8398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8399 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8402 if test -n "$INTLBISON"; then
8403 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
8405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8409 test -z "$as_dir" && as_dir
=.
8410 for ac_exec_ext
in '' $ac_executable_extensions; do
8411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8412 ac_cv_prog_INTLBISON
="$ac_prog"
8413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8421 INTLBISON
=$ac_cv_prog_INTLBISON
8422 if test -n "$INTLBISON"; then
8423 echo "$as_me:$LINENO: result: $INTLBISON" >&5
8424 echo "${ECHO_T}$INTLBISON" >&6
8426 echo "$as_me:$LINENO: result: no" >&5
8427 echo "${ECHO_T}no" >&6
8430 test -n "$INTLBISON" && break
8433 if test -z "$INTLBISON"; then
8436 echo "$as_me:$LINENO: checking version of bison" >&5
8437 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8438 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8439 case $ac_prog_version in
8440 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
8441 1.2[6-9]* | 1.
[3-9][0-9]* | [2-9].
*)
8442 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
8443 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
8445 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8446 echo "${ECHO_T}$ac_prog_version" >&6
8448 if test $ac_verc_fail = yes; then
8452 for lang
in $ALL_LINGUAS; do
8453 GMOFILES
="$GMOFILES $lang.gmo"
8454 POFILES
="$POFILES $lang.po"
8458 nls_cv_header_libgt
=
8466 if test "x$CATOBJEXT" != "x"; then
8467 if test "x$ALL_LINGUAS" = "x"; then
8470 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8471 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8473 for presentlang
in $ALL_LINGUAS; do
8475 for desiredlang
in ${LINGUAS-$ALL_LINGUAS}; do
8476 # Use the presentlang catalog if desiredlang is
8477 # a. equal to presentlang, or
8478 # b. a variant of presentlang (because in this case,
8479 # presentlang can be used as a fallback for messages
8480 # which are not translated in the desiredlang catalog).
8481 case "$desiredlang" in
8482 "$presentlang"*) useit
=yes;;
8485 if test $useit = yes; then
8486 NEW_LINGUAS
="$NEW_LINGUAS $presentlang"
8489 LINGUAS
=$NEW_LINGUAS
8490 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8491 echo "${ECHO_T}$LINGUAS" >&6
8494 if test -n "$LINGUAS"; then
8495 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8500 if test -n "$ac_aux_dir"; then
8501 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8503 if test -z "$MKINSTALLDIRS"; then
8504 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8507 INTL_LIBTOOL_SUFFIX_PREFIX
=
8509 # This is necessary so that .o files in LIBOBJS are also built via
8510 # the ANSI2KNR-filtering rules.
8511 LIBOBJS
=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
8513 ac_config_files
="$ac_config_files Makefile config/Makefile intl/Makefile po/Makefile.in lib/Makefile src/Makefile doc/Makefile m4/Makefile tests/Makefile"
8514 cat >confcache
<<\_ACEOF
8515 # This file is a shell script that caches the results of configure
8516 # tests run on this system so they can be shared between configure
8517 # scripts and configure runs, see configure's option --config-cache.
8518 # It is not useful on other systems. If it contains results you don't
8519 # want to keep, you may remove or edit it.
8521 # config.status only pays attention to the cache file if you give it
8522 # the --recheck option to rerun configure.
8524 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8525 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8530 # The following way of writing the cache mishandles newlines in values,
8531 # but we know of no workaround that is simple, portable, and efficient.
8532 # So, don't put newlines in cache variables' values.
8533 # Ultrix sh set writes to stderr and can't be redirected directly,
8534 # and sets the high bit in the cache file unless we assign to the vars.
8537 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8539 # `set' does not quote correctly, so add quotes (double-quote
8540 # substitution turns \\\\ into \\, and sed turns \\ into \).
8543 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8546 # `set' quotes correctly as required by POSIX, so do not add quotes.
8548 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8555 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8557 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8559 if cmp -s $cache_file confcache
; then :; else
8560 if test -w $cache_file; then
8561 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8562 cat confcache
>$cache_file
8564 echo "not updating unwritable cache $cache_file"
8569 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8570 # Let make expand exec_prefix.
8571 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8573 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8574 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8575 # trailing colons and then remove the whole line if VPATH becomes empty
8576 # (actually we leave an empty line to preserve line numbers).
8577 if test "x$srcdir" = x.
; then
8578 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8579 s/:*\$(srcdir):*/:/;
8580 s/:*\${srcdir}:*/:/;
8582 s/^\([^=]*=[ ]*\):*/\1/;
8588 DEFS
=-DHAVE_CONFIG_H
8590 : ${CONFIG_STATUS=./config.status}
8591 ac_clean_files_save
=$ac_clean_files
8592 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8593 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8594 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8595 cat >$CONFIG_STATUS <<_ACEOF
8597 # Generated automatically by $as_me.
8598 # Run this file to recreate the current configuration.
8599 # Compiler output produced by configure, useful for debugging
8600 # configure, is in config.log if it exists.
8603 SHELL=\${CONFIG_SHELL-$SHELL}
8606 cat >>$CONFIG_STATUS <<\_ACEOF
8608 ## --------------------- ##
8609 ## M4sh Initialization. ##
8610 ## --------------------- ##
8612 # Be Bourne compatible
8613 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8616 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8620 # Name of the executable.
8621 as_me
=`echo "$0" |sed 's,\(.*[\\/]\+\)\?\([^\\/]\+\)[\\/]*,\2,'`
8623 # If LINENO is not supported by the shell, produce a version of this
8624 # script where LINENO is hard coded. Rewrite if not up to date only.
8625 # Comparing LINENO against _oline_ is not a good solution, since in
8626 # the case of embedded executables (such as config.status within
8627 # configure) you'd compare LINENO wrt config.status vs. _oline_ vs
8628 # configure. Hence a useless rewrite (not to mention the risk of
8629 # ``infinite'' rewrites. Merely check that LINENO is incremented
8630 # between two lines, which is a property guaranteed for _oline_, hence
8631 # it protects us from repetitive rewrites. Be sure to have a test
8632 # that does detect non LINENO support...
8635 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev
/null
`
8636 if test "x$as_lineno_1" = "x$as_lineno_2" ||
8637 test "x$as_lineno_3" != "x$as_lineno_2";
8641 *[\\/]* | ?:[\\/]* ) as_myself=$0 ;;
8642 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8646 test -z "$as_dir" && as_dir=.
8647 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8652 if test ! -f $as_myself; then
8653 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8654 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8655 { (exit 1); exit 1; }; }
8657 if test ! -f $as_me.lineno ||
8658 test x`ls -1dt $as_me.lineno
$as_myself 2>/dev
/null
| sed 1q
` \
8659 != x$as_me.lineno; then
8660 # Be sure to write the pattern so that it doesn't replace itself:
8661 # it must not match itself.
8663 if ($0 ~ /[$]LINENO/)
8664 while (sub (/[$]LINENO/, NR))
8667 }' <$as_myself >$as_me.lineno
8668 chmod +x $as_me.lineno
8671 # Don't try to exec as it changes $[0], causing all sort of problems
8672 # (the dirname of $[0] is not the place where we might find the
8673 # original and so on. Autoconf is especially sensible to this).
8674 source ./$as_me.lineno
8678 # Avoid depending upon Character Ranges.
8679 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8680 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8681 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8682 as_cr_digits='0123456789'
8683 as_cr_alnum=$as_cr_Letters$as_cr_digits
8685 case `echo "testing\c"; echo 1,2,3`,`echo -n testing
; echo 1,2,3` in
8686 *c*,-n*) ECHO_N= ECHO_C='
8688 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8689 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8692 if expr a : '\(a\)' >/dev/null 2>&1; then
8698 rm -f conf$$ conf$$.exe conf$$.file
8700 if ln -s conf$$.file conf$$ 2>/dev/null; then
8701 # We could just check for DJGPP; but this test a) works b) is more generic
8702 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8703 if test -f conf$$.exe; then
8704 # Don't use ln at all; we don't have any links
8709 elif ln conf$$.file conf$$ 2>/dev/null; then
8714 rm -f conf$$ conf$$.exe conf$$.file
8716 # The user is always right.
8717 if test "${PATH_SEPARATOR+set}" != set; then
8718 echo "#! $SHELL" >conftest.sh
8719 echo "exit 0" >>conftest.sh
8720 chmod +x conftest.sh
8721 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
8729 as_executable_p="test -f"
8731 # Sed expression to map a string onto a valid CPP name.
8732 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8734 # Sed expression to map a string onto a valid variable name.
8735 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8737 # Support unset when possible.
8738 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8745 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
8746 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
8747 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
8748 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
8749 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
8750 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
8751 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
8752 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
8755 # We need space, tab and new line, in precisely that order.
8761 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
8765 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8766 # report actual input values of CONFIG_FILES etc. instead of their
8767 # values after options handling. Logging --version etc. is OK.
8771 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8772 ## Running $as_me. ##
8777 This file was extended by GNU Bison $as_me 1.29c, which was
8778 generated by GNU Autoconf 2.52e. Invocation command line was
8780 CONFIG_FILES = $CONFIG_FILES
8781 CONFIG_HEADERS = $CONFIG_HEADERS
8782 CONFIG_LINKS = $CONFIG_LINKS
8783 CONFIG_COMMANDS = $CONFIG_COMMANDS
8787 echo "on `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`" >&5
8791 # Files that config.status was made for.
8792 if test -n "$ac_config_files"; then
8793 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8796 if test -n "$ac_config_headers"; then
8797 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8800 if test -n "$ac_config_links"; then
8801 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8804 if test -n "$ac_config_commands"; then
8805 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8808 cat >>$CONFIG_STATUS <<\_ACEOF
8811 \`$as_me' instantiates files from templates according to the
8812 current configuration.
8814 Usage: $0 [OPTIONS] [FILE]...
8816 -h, --help print this help, then exit
8817 -V, --version print version number, then exit
8818 -d, --debug don't remove temporary files
8819 --recheck update
$as_me by reconfiguring
in the same conditions
8820 --file=FILE
[:TEMPLATE
]
8821 instantiate the configuration
file FILE
8822 --header=FILE
[:TEMPLATE
]
8823 instantiate the configuration header FILE
8825 Configuration files
:
8828 Configuration headers
:
8831 Configuration commands
:
8834 Report bugs to
<bug
-autoconf@gnu.org
>.
"
8837 cat >>$CONFIG_STATUS <<_ACEOF
8839 GNU Bison config.status
1.29c
8840 configured by
$0, generated by GNU Autoconf
2.52e
,
8841 with options
\\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8843 Copyright
1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8844 Free Software Foundation
, Inc.
8845 This config.status
script is free software
; the Free Software Foundation
8846 gives unlimited permission to copy
, distribute and modify it.
"
8851 cat >>$CONFIG_STATUS <<\_ACEOF
8852 # If no file are specified by the user, then we need to provide default
8853 # value. By we need to know if files were specified by the user.
8859 ac_option=`expr "x
$1" : 'x\([^=]*\)='`
8860 ac_optarg=`expr "x
$1" : 'x[^=]*=\(.*\)'`
8862 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
8866 *) # This is not an option, so the user has probably given explicit
8868 ac_need_defaults=false;;
8872 # Handling of the options.
8874 cat >>$CONFIG_STATUS <<_ACEOF
8875 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8876 echo "running
$SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8877 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8879 cat >>$CONFIG_STATUS <<\_ACEOF
8880 --version | --vers* | -V )
8881 echo "$ac_cs_version"; exit 0 ;;
8883 # Conflict between --help and --header
8884 { { echo "$as_me:$LINENO: error
: ambiguous option
: $1
8885 Try \
`$0 --help' for more information." >&5
8886 echo "$as_me: error: ambiguous option: $1
8887 Try \`$0 --help' for more information." >&2;}
8888 { (exit 1); exit 1; }; };;
8889 --help | --hel | -h )
8890 echo "$ac_cs_usage"; exit 0 ;;
8891 --debug | --d* | -d )
8893 --file | --fil | --fi | --f )
8895 CONFIG_FILES="$CONFIG_FILES $1"
8896 ac_need_defaults=false;;
8897 --header | --heade | --head | --hea )
8899 CONFIG_HEADERS="$CONFIG_HEADERS $1"
8900 ac_need_defaults=false;;
8903 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8904 Try \`$0 --help' for more information.
" >&5
8905 echo "$as_me: error
: unrecognized option
: $1
8906 Try \
`$0 --help' for more information." >&2;}
8907 { (exit 1); exit 1; }; } ;;
8909 *) ac_config_targets="$ac_config_targets $1" ;;
8917 cat >>$CONFIG_STATUS <<_ACEOF
8919 # INIT-COMMANDS section.
8922 PACKAGE_NAME='$PACKAGE_NAME'
8923 PACKAGE_TARNAME='$PACKAGE_TARNAME'
8924 PACKAGE_VERSION='$PACKAGE_VERSION'
8925 PACKAGE_STRING='$PACKAGE_STRING'
8926 PACKAGE_BUGREPORT='$PACKAGE_BUGREPORT'
8928 AMDEP_TRUE="$AMDEP_TRUE"
8929 ac_aux_dir="$ac_aux_dir"
8933 cat >>$CONFIG_STATUS <<\_ACEOF
8934 for ac_config_target in $ac_config_targets
8936 case "$ac_config_target" in
8937 # Handling of arguments.
8938 "tests/atlocal" ) CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
8939 "tests/bison" ) CONFIG_FILES="$CONFIG_FILES tests/bison" ;;
8940 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8941 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
8942 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
8943 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8944 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
8945 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8946 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8947 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
8948 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
8949 "tests/package.m4" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tests/package.m4" ;;
8950 "tests/atconfig" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
8951 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8952 "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
8953 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
8954 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8955 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8956 { (exit 1); exit 1; }; };;
8960 # If the user did not use the arguments to specify the items to instantiate,
8961 # then the envvar interface is used. Set only those that are not.
8962 # We use the long form for the default assignment because of an extremely
8963 # bizarre bug on SunOS 4.1.3.
8964 if $ac_need_defaults; then
8965 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8966 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8967 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8970 # Create a temporary directory, and hook for its removal unless debugging.
8973 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8974 trap '{ (exit 1); exit 1; }' 1 2 13 15
8977 # Create a (secure) tmp directory for tmp files.
8980 tmp=`(umask 077 && mktemp
-d -q "$TMPDIR/csXXXXXX") 2>/dev
/null
` &&
8981 test -n "$tmp" && test -d "$tmp"
8984 tmp=$TMPDIR/cs$$-$RANDOM
8985 (umask 077 && mkdir $tmp)
8988 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8989 { (exit 1); exit 1; }
8994 cat >>$CONFIG_STATUS <<_ACEOF
8997 # CONFIG_FILES section.
9000 # No need to generate the scripts if there are no CONFIG_FILES.
9001 # This happens for instance when ./config.status config.h
9002 if test -n "\$CONFIG_FILES"; then
9003 # Protect against being on the right side of a sed subst in config.status.
9004 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9005 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9006 s,@SHELL@,$SHELL,;t t
9007 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9008 s,@exec_prefix@,$exec_prefix,;t t
9009 s,@prefix@,$prefix,;t t
9010 s,@program_transform_name@,$program_transform_name,;t t
9011 s,@bindir@,$bindir,;t t
9012 s,@sbindir@,$sbindir,;t t
9013 s,@libexecdir@,$libexecdir,;t t
9014 s,@datadir@,$datadir,;t t
9015 s,@sysconfdir@,$sysconfdir,;t t
9016 s,@sharedstatedir@,$sharedstatedir,;t t
9017 s,@localstatedir@,$localstatedir,;t t
9018 s,@libdir@,$libdir,;t t
9019 s,@includedir@,$includedir,;t t
9020 s,@oldincludedir@,$oldincludedir,;t t
9021 s,@infodir@,$infodir,;t t
9022 s,@mandir@,$mandir,;t t
9023 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9024 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9025 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9026 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9027 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9028 s,@build_alias@,$build_alias,;t t
9029 s,@host_alias@,$host_alias,;t t
9030 s,@target_alias@,$target_alias,;t t
9032 s,@ECHO_C@,$ECHO_C,;t t
9033 s,@ECHO_N@,$ECHO_N,;t t
9034 s,@ECHO_T@,$ECHO_T,;t t
9036 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9037 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9038 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9039 s,@PACKAGE@,$PACKAGE,;t t
9040 s,@VERSION@,$VERSION,;t t
9041 s,@EXEEXT@,$EXEEXT,;t t
9042 s,@OBJEXT@,$OBJEXT,;t t
9043 s,@ACLOCAL@,$ACLOCAL,;t t
9044 s,@AUTOCONF@,$AUTOCONF,;t t
9045 s,@AUTOMAKE@,$AUTOMAKE,;t t
9046 s,@AUTOHEADER@,$AUTOHEADER,;t t
9047 s,@MAKEINFO@,$MAKEINFO,;t t
9048 s,@AMTAR@,$AMTAR,;t t
9049 s,@install_sh@,$install_sh,;t t
9050 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9052 s,@SET_MAKE@,$SET_MAKE,;t t
9053 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9054 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9055 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9056 s,@DEPDIR@,$DEPDIR,;t t
9058 s,@CFLAGS@,$CFLAGS,;t t
9059 s,@LDFLAGS@,$LDFLAGS,;t t
9060 s,@CPPFLAGS@,$CPPFLAGS,;t t
9061 s,@ac_ct_CC@,$ac_ct_CC,;t t
9062 s,@am__include@,$am__include,;t t
9063 s,@am__quote@,$am__quote,;t t
9064 s,@CCDEPMODE@,$CCDEPMODE,;t t
9066 s,@RANLIB@,$RANLIB,;t t
9067 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9069 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
9071 s,@ANSI2KNR@,$ANSI2KNR,;t t
9072 s,@ALLOCA@,$ALLOCA,;t t
9073 s,@LIBOBJS@,$LIBOBJS,;t t
9074 s,@build@,$build,;t t
9075 s,@build_cpu@,$build_cpu,;t t
9076 s,@build_vendor@,$build_vendor,;t t
9077 s,@build_os@,$build_os,;t t
9079 s,@host_cpu@,$host_cpu,;t t
9080 s,@host_vendor@,$host_vendor,;t t
9081 s,@host_os@,$host_os,;t t
9082 s,@GLIBC21@,$GLIBC21,;t t
9083 s,@LIBICONV@,$LIBICONV,;t t
9084 s,@USE_NLS@,$USE_NLS,;t t
9085 s,@MSGFMT@,$MSGFMT,;t t
9086 s,@GMSGFMT@,$GMSGFMT,;t t
9087 s,@XGETTEXT@,$XGETTEXT,;t t
9088 s,@INTLBISON@,$INTLBISON,;t t
9089 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
9090 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9091 s,@CATALOGS@,$CATALOGS,;t t
9092 s,@CATOBJEXT@,$CATOBJEXT,;t t
9093 s,@GMOFILES@,$GMOFILES,;t t
9094 s,@INTLLIBS@,$INTLLIBS,;t t
9095 s,@INTLOBJS@,$INTLOBJS,;t t
9096 s,@POFILES@,$POFILES,;t t
9097 s,@POSUB@,$POSUB,;t t
9098 s,@DATADIRNAME@,$DATADIRNAME,;t t
9099 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9100 s,@GENCAT@,$GENCAT,;t t
9101 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9102 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
9107 cat >>$CONFIG_STATUS <<\_ACEOF
9108 # Split the substitutions into bite-sized pieces for seds with
9109 # small command number limits, like on Digital OSF/1 and HP-UX.
9111 ac_sed_frag=1 # Number of current file.
9112 ac_beg=1 # First line for current file.
9113 ac_end=$ac_max_sed_lines # Line after last line for current file.
9116 while $ac_more_lines; do
9117 if test $ac_beg -gt 1; then
9118 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9120 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9122 if test ! -s $tmp/subs.frag; then
9125 # The purpose of the label and of the branching condition is to
9126 # speed up the sed processing (if there are no `@
' at all, there
9127 # is no need to browse any of the substitutions).
9128 # These are the two extra sed commands mentioned above.
9130 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9131 if test -z "$ac_sed_cmds"; then
9132 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9134 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9136 ac_sed_frag=`expr $ac_sed_frag + 1`
9138 ac_end=`expr $ac_end + $ac_max_sed_lines`
9141 if test -z "$ac_sed_cmds"; then
9144 fi # test -n "$CONFIG_FILES"
9147 cat >>$CONFIG_STATUS <<\_ACEOF
9148 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9149 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9151 - | *:- | *:-:* ) # input from stdin
9153 ac_file_in=`echo "$ac_file" | sed 's
,[^
:]*:,,'`
9154 ac_file=`echo "$ac_file" | sed 's
,:.
*,,'` ;;
9155 *:* ) ac_file_in=`echo "$ac_file" | sed 's
,[^
:]*:,,'`
9156 ac_file=`echo "$ac_file" | sed 's
,:.
*,,'` ;;
9157 * ) ac_file_in=$ac_file.in ;;
9160 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9161 ac_dir=`$as_expr X"$ac_file" : 'X\
(.
*[^/]\)//*[^/][^/]*/*$
' \
| \
9162 X
"$ac_file" : 'X\(//\)[^/]' \
| \
9163 X
"$ac_file" : 'X\(//\)$' \
| \
9164 X
"$ac_file" : 'X\(/\)' \
| \
9165 .
: '\(.\)' 2>/dev
/null
||
9167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9168 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9169 /^X\(\/\/\)$/{ s//\1/; q; }
9170 /^X\(\/\).*/{ s//\1/; q; }
9173 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9177 for as_mkdir_dir in `IFS
='/\\'; set X
$as_dummy; shift; echo "$@"`; do
9178 case $as_mkdir_dir in
9179 # Skip DOS drivespec
9180 ?:) as_incr_dir=$as_mkdir_dir ;;
9182 as_incr_dir=$as_incr_dir/$as_mkdir_dir
9183 test -d "$as_incr_dir" ||
9184 mkdir "$as_incr_dir" ||
9185 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9186 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9187 { (exit 1); exit 1; }; }
9194 if test "$ac_dir" != .; then
9195 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9196 # A "../" for each directory in $ac_dir_suffix.
9197 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9199 ac_dir_suffix= ac_top_builddir=
9203 .) # No --srcdir option. We are building in place.
9205 if test -z "$ac_top_builddir"; then
9208 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9210 [\\/]* | ?:[\\/]* ) # Absolute path.
9211 ac_srcdir=$srcdir$ac_dir_suffix;
9212 ac_top_srcdir=$srcdir ;;
9214 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9215 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9217 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9219 ac_buildpath=`cd "$ac_dir" && cd $ac_builddir && pwd`
9220 ac_top_buildpath=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9221 ac_srcpath=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9222 ac_top_srcpath=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9225 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9226 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9229 if test x"$ac_file" != x-; then
9230 { echo "$as_me:$LINENO: creating $ac_file" >&5
9231 echo "$as_me: creating $ac_file" >&6;}
9234 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9235 # use $as_me), people would be surprised to read:
9236 # /* config.h. Generated automatically by config.status. */
9237 configure_input
="Generated automatically from `echo $ac_file_in |
9238 sed 's,.*/,,'` by configure."
9240 # First look for the input files in the build tree, otherwise in the
9242 ac_file_inputs
=`IFS=:
9243 for f in $ac_file_in; do
9245 -) echo $tmp/stdin ;;
9247 # Absolute (can't be DOS-style, as IFS=:)
9248 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9249 echo "$as_me: error: cannot find input file: $f" >&2;}
9250 { (exit 1); exit 1; }; }
9253 if test -f "$f"; then
9256 elif test -f "$srcdir/$f"; then
9261 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9262 echo "$as_me: error: cannot find input file: $f" >&2;}
9263 { (exit 1); exit 1; }; }
9266 done` || { (exit 1); exit 1; }
9268 cat >>$CONFIG_STATUS <<_ACEOF
9272 cat >>$CONFIG_STATUS <<\_ACEOF
9274 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
9275 s
,@configure_input@
,$configure_input,;t t
9276 s
,@srcdir@
,$ac_srcdir,;t t
9277 s
,@srcpath@
,$ac_srcpath,;t t
9278 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9279 s
,@top_srcpath@
,$ac_top_srcpath,;t t
9280 s
,@builddir@
,$ac_builddir,;t t
9281 s
,@buildpath@
,$ac_buildpath,;t t
9282 s
,@top_builddir@
,$ac_top_builddir,;t t
9283 s
,@top_buildpath@
,$ac_top_buildpath,;t t
9284 s
,@INSTALL@
,$ac_INSTALL,;t t
9285 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9287 if test x"$ac_file" != x-; then
9288 mv $tmp/out $ac_file
9294 # Run the commands associated with the file.
9296 tests/bison ) chmod +x tests/bison ;;
9300 cat >>$CONFIG_STATUS <<\_ACEOF
9303 # CONFIG_HEADER section.
9306 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9307 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9309 # ac_d sets the value in "#define NAME VALUE" lines.
9310 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9311 ac_dB
='[ ].*$,\1#\2'
9314 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9315 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9316 ac_uB
='$,\1#\2define\3'
9320 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9321 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9323 - | *:- | *:-:* ) # input from stdin
9325 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9326 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9327 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9328 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9329 * ) ac_file_in
=$ac_file.
in ;;
9332 test x
"$ac_file" != x
- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9333 echo "$as_me: creating $ac_file" >&6;}
9335 # First look for the input files in the build tree, otherwise in the
9337 ac_file_inputs
=`IFS=:
9338 for f in $ac_file_in; do
9340 -) echo $tmp/stdin ;;
9342 # Absolute (can't be DOS-style, as IFS=:)
9343 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9344 echo "$as_me: error: cannot find input file: $f" >&2;}
9345 { (exit 1); exit 1; }; }
9348 if test -f "$f"; then
9351 elif test -f "$srcdir/$f"; then
9356 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9357 echo "$as_me: error: cannot find input file: $f" >&2;}
9358 { (exit 1); exit 1; }; }
9361 done` || { (exit 1); exit 1; }
9362 # Remove the trailing spaces.
9363 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9367 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9368 # `conftest.undefs', that substitutes the proper values into
9369 # config.h.in to produce config.h. The first handles `#define'
9370 # templates, and the second `#undef' templates.
9371 # And first: Protect against being on the right side of a sed subst in
9372 # config.status. Protect against being in an unquoted here document
9374 rm -f conftest.defines conftest.undefs
9375 # Using a here document instead of a string reduces the quoting nightmare.
9376 # Putting comments in sed scripts is not portable.
9378 # `end' is used to avoid that the second main sed command (meant for
9379 # 0-ary CPP macros) applies to n-ary macro definitions.
9380 # See the Autoconf documentation for `clear'.
9381 cat >confdef2sed.
sed <<\_ACEOF
9386 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9388 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9391 # If some macros were called several times there might be several times
9392 # the same #defines, which is useless. Nevertheless, we may not want to
9393 # sort them, since we want the *last* AC-DEFINE to be honored.
9394 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9395 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9396 rm -f confdef2sed.sed
9398 # This sed command replaces #undef with comments. This is necessary, for
9399 # example, in the case of _POSIX_SOURCE, which is predefined and required
9400 # on some systems where configure will not decide to define it.
9401 cat >>conftest.undefs <<\_ACEOF
9402 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9405 # Break up conftest.defines because some shells have a limit on the size
9406 # of here documents, and old seds have small limits too (100 cmds).
9407 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9408 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9409 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9410 echo ' :' >>$CONFIG_STATUS
9412 while grep . conftest.defines >/dev/null
9414 # Write a limited-size here document to $tmp/defines.sed.
9415 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9416 # Speed up: don't consider the non `#define' lines.
9417 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9418 # Work around the forget-to-reset-the-flag bug.
9419 echo 't clr' >>$CONFIG_STATUS
9420 echo ': clr' >>$CONFIG_STATUS
9421 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9423 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9427 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9428 rm -f conftest.defines
9429 mv conftest.
tail conftest.defines
9431 rm -f conftest.defines
9432 echo ' fi # egrep' >>$CONFIG_STATUS
9433 echo >>$CONFIG_STATUS
9435 # Break up conftest.undefs because some shells have a limit on the size
9436 # of here documents, and old seds have small limits too (100 cmds).
9437 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9439 while grep . conftest.undefs
>/dev
/null
9441 # Write a limited-size here document to $tmp/undefs.sed.
9442 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9443 # Speed up: don't consider the non
`#undef'
9444 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9445 # Work around the forget-to-reset-the-flag bug.
9446 echo 't clr' >>$CONFIG_STATUS
9447 echo ': clr' >>$CONFIG_STATUS
9448 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9450 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9454 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9455 rm -f conftest.undefs
9456 mv conftest.tail conftest.undefs
9458 rm -f conftest.undefs
9460 cat >>$CONFIG_STATUS <<\_ACEOF
9461 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9462 # use $as_me), people would be surprised to read:
9463 # /* config.h. Generated automatically by config.status. */
9464 if test x
"$ac_file" = x
-; then
9465 echo "/* Generated automatically by configure. */" >$tmp/config.h
9467 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
9469 cat $tmp/in >>$tmp/config.h
9471 if test x
"$ac_file" != x
-; then
9472 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
9473 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9474 echo "$as_me: $ac_file is unchanged" >&6;}
9476 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9477 X"$ac_file" : 'X\(//\)[^/]' \| \
9478 X"$ac_file" : 'X\(//\)$' \| \
9479 X"$ac_file" : 'X\(/\)' \| \
9480 . : '\(.\)' 2>/dev/null ||
9482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9483 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9484 /^X\(\/\/\)$/{ s//\1/; q; }
9485 /^X\(\/\).*/{ s//\1/; q; }
9488 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9492 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9493 case $as_mkdir_dir in
9494 # Skip DOS drivespec
9495 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9497 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9498 test -d "$as_incr_dir" ||
9499 mkdir "$as_incr_dir" ||
9500 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9501 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9502 { (exit 1); exit 1; }; }
9508 mv $tmp/config.h
$ac_file
9514 # Run the commands associated with the file.
9516 config.h
) # update the timestamp
9517 echo timestamp
>"./stamp-h1"
9522 cat >>$CONFIG_STATUS <<\_ACEOF
9525 # CONFIG_COMMANDS section.
9527 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9528 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9529 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9530 ac_dir
=`$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9531 X"$ac_dest" : 'X\(//\)[^/]' \| \
9532 X"$ac_dest" : 'X\(//\)$' \| \
9533 X"$ac_dest" : 'X\(/\)' \| \
9534 . : '\(.\)' 2>/dev/null ||
9536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9537 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9538 /^X\(\/\/\)$/{ s//\1/; q; }
9539 /^X\(\/\).*/{ s//\1/; q; }
9543 if test "$ac_dir" != .
; then
9544 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9545 # A "../" for each directory in $ac_dir_suffix.
9546 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9548 ac_dir_suffix
= ac_top_builddir
=
9552 .
) # No --srcdir option. We are building in place.
9554 if test -z "$ac_top_builddir"; then
9557 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9559 [\\/]* | ?
:[\\/]* ) # Absolute path.
9560 ac_srcdir
=$srcdir$ac_dir_suffix;
9561 ac_top_srcdir
=$srcdir ;;
9563 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9564 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9566 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9568 ac_buildpath
=`cd "$ac_dir" && cd $ac_builddir && pwd`
9569 ac_top_buildpath
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9570 ac_srcpath
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9571 ac_top_srcpath
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9573 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9574 echo "$as_me: executing $ac_dest commands" >&6;}
9576 tests
/package.
m4 ) cat >tests
/package.
m4 <<ATEOF
9577 # Signature of the current package.
9578 m4_define([PACKAGE_NAME], [$PACKAGE_NAME])
9579 m4_define([PACKAGE_TARNAME], [$PACKAGE_TARNAME])
9580 m4_define([PACKAGE_VERSION], [$PACKAGE_VERSION])
9581 m4_define([PACKAGE_STRING], [$PACKAGE_STRING])
9582 m4_define([PACKAGE_BUGREPORT], [$PACKAGE_BUGREPORT])
9585 tests
/atconfig
) cat >tests
/atconfig
<<ATEOF
9586 # Configurable variable values for building test suites.
9588 # Copyright 2000, 2001 Free Software Foundation, Inc.
9591 buildpath='$ac_buildpath'
9593 srcpath='$ac_srcpath'
9594 top_srcdir='$ac_top_srcdir'
9595 top_srcpath='$ac_top_srcpath'
9596 top_builddir='$ac_top_builddir'
9597 top_buildpath='$ac_top_buildpath'
9599 AUTOTEST_PATH='tests'
9601 SHELL=\${CONFIG_SHELL-'$SHELL'}
9605 test x
"$AMDEP_TRUE" != x
"" ||
9606 for mf
in $CONFIG_FILES; do
9608 Makefile
) dirpart
=.
;;
9609 */Makefile
) dirpart
=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
9612 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null
|| continue
9613 # Extract the definition of DEP_FILES from the Makefile without
9615 DEPDIR
=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9616 test -z "$DEPDIR" && continue
9617 # When using ansi2knr, U may be empty or an underscore; expand it
9618 U
=`sed -n -e '/^U = / s///p' < "$mf"`
9619 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9620 # We invoke sed twice because it is the simplest approach to
9621 # changing $(DEPDIR) to its actual value in the expansion.
9622 for file in `sed -n -e '
9623 /^DEP_FILES = .*\\\\$/ {
9632 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9633 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9634 # Make sure the directory exists.
9635 test -f "$dirpart/$file" && continue
9636 fdir
=`echo "$file" | sed -e 's|/[^/]*$||'`
9637 $ac_aux_dir/mkinstalldirs
"$dirpart/$fdir" > /dev
/null
2>&1
9638 # echo "creating $dirpart/$file"
9639 echo '# dummy' > "$dirpart/$file"
9643 default
-2 ) for ac_file
in $CONFIG_FILES; do
9644 # Support "outfile[:infile[:infile...]]"
9646 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9648 # PO directories have a Makefile.in generated from Makefile.in.in.
9649 case "$ac_file" in */Makefile.
in)
9650 # Adjust a relative srcdir.
9651 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9652 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
9653 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9654 # In autoconf-2.13 it is called $ac_given_srcdir.
9655 # In autoconf-2.50 it is called $srcdir.
9656 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
9657 case "$ac_given_srcdir" in
9658 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
9659 /*) top_srcdir
="$ac_given_srcdir" ;;
9660 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9662 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9663 rm -f "$ac_dir/POTFILES"
9664 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9665 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9666 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9667 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9676 cat >>$CONFIG_STATUS <<\_ACEOF
9678 { (exit 0); exit 0; }
9680 chmod +x
$CONFIG_STATUS
9681 ac_clean_files
=$ac_clean_files_save
9683 # configure is writing to config.log, and then calls config.status.
9684 # config.status does its own redirection, appending to config.log.
9685 # Unfortunately, on DOS this fails, as config.log is still kept open
9686 # by configure, so config.status won't be able to write to it; its
9687 # output is simply discarded. So we exec the FD to /dev/null,
9688 # effectively closing config.log, so it can be properly (re)opened and
9689 # appended to by config.status. When coming back to configure, we
9690 # need to make the FD available again.
9691 if test "$no_create" != yes; then
9694 $SHELL $CONFIG_STATUS || ac_cs_success
=false
9696 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9697 # would make configure fail if this is the last instruction.
9698 $ac_cs_success || { (exit 1); exit 1; }