2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.52e for GNU Bison 1.29b.
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.
38 # Compute as_lineno_1 in two steps: some shells restart LINENO for
40 as_lineno_1=`(expr $as_lineno_1 + 1) 2>/dev
/null
`
41 if test "x$as_lineno_1" != "x$as_lineno_2"; then
42 if test ! -f $as_me.lineno ||
43 test x`ls -1dt $as_me.lineno
$as_me 2>/dev
/null
| sed 1q
` \
44 != x$as_me.lineno; then
45 # Be sure to write the pattern so that it doesn't replace itself:
46 # it must not match itself.
49 while (sub (/[$]LINENO/, NR))
52 }' <$as_me >$as_me.lineno
53 chmod +x $as_me.lineno
55 exec ${SHELL-/bin/sh} ./$as_me.lineno
58 # Avoid depending upon Character Ranges.
59 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
60 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
61 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
62 as_cr_digits='0123456789'
63 as_cr_alnum=$as_cr_Letters$as_cr_digits
65 case `echo "testing\c"; echo 1,2,3`,`echo -n testing
; echo 1,2,3` in
66 *c*,-n*) ECHO_N= ECHO_C='
68 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
69 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
72 if expr a : '\(a\)' >/dev/null 2>&1; then
78 rm -f conf$$ conf$$.exe conf$$.file
80 if ln -s conf$$.file conf$$ 2>/dev/null; then
81 # We could just check for DJGPP; but this test a) works b) is more generic
82 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
83 if test -f conf$$.exe; then
84 # Don't use ln at all; we don't have any links
89 elif ln conf$$.file conf$$ 2>/dev/null; then
94 rm -f conf$$ conf$$.exe conf$$.file
96 # The user is always right.
97 if test "${PATH_SEPARATOR+set}" != set; then
98 echo "#! $SHELL" >conftest.sh
99 echo "exit 0" >>conftest.sh
101 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
109 as_executable_p="test -f"
111 # Sed expression to map a string onto a valid CPP name.
112 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
114 # Sed expression to map a string onto a valid variable name.
115 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
117 # Support unset when possible.
118 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
125 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
126 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
127 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
128 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
129 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
130 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
131 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
132 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
135 # We need space, tab and new line, in precisely that order.
141 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
144 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
145 # so uname gets run too.
146 ac_hostname=`(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
153 ac_default_prefix=/usr/local
158 SHELL=${CONFIG_SHELL-/bin/sh}
160 # Maximum number of lines to put in a shell here document.
161 # This variable seems obsolete. It should probably be removed, and
162 # only ac_max_sed_lines should be used.
163 : ${ac_max_here_lines=38}
165 # Factoring default headers for most tests.
166 ac_includes_default="\
169 # include <sys/types.h>
172 # include <sys/stat.h>
183 # if !STDC_HEADERS && HAVE_MEMORY_H
189 # include <strings.h>
192 # include <inttypes.h>
202 # Initialize some variables set by options.
204 ac_init_version=false
205 # The variables have the same names as the options, with
206 # dashes changed to underlines.
214 program_transform_name=s,x,x,
222 # Installation directory options.
223 # These are left unexpanded so users can "make install exec_prefix=/foo"
224 # and all the variables that are supposed to be based on exec_prefix
225 # by default will actually change.
226 # Use braces instead of parens because sh, perl, etc. also accept them.
227 bindir='${exec_prefix}/bin'
228 sbindir='${exec_prefix}/sbin'
229 libexecdir='${exec_prefix}/libexec'
230 datadir='${prefix}/share'
231 sysconfdir='${prefix}/etc'
232 sharedstatedir='${prefix}/com'
233 localstatedir='${prefix}/var'
234 libdir='${exec_prefix}/lib'
235 includedir='${prefix}/include'
236 oldincludedir='/usr/include'
237 infodir='${prefix}/info'
238 mandir='${prefix}/man'
240 # Identity of this package.
241 PACKAGE_NAME='GNU Bison'
242 PACKAGE_TARNAME='bison'
243 PACKAGE_VERSION='1.29b'
244 PACKAGE_STRING='GNU Bison 1.29b'
245 PACKAGE_BUGREPORT='bug-bison@gnu.org'
250 # If the previous option needs an argument, assign it.
251 if test -n "$ac_prev"; then
252 eval "$ac_prev=\$ac_option"
257 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
259 # Accept the important Cygnus configure options, so we can diagnose typos.
263 -bindir | --bindir | --bindi | --bind | --bin | --bi)
265 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
268 -build | --build | --buil | --bui | --bu)
269 ac_prev=build_alias ;;
270 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
271 build_alias=$ac_optarg ;;
273 -cache-file | --cache-file | --cache-fil | --cache-fi \
274 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
275 ac_prev=cache_file ;;
276 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
277 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
278 cache_file=$ac_optarg ;;
281 cache_file=config.cache ;;
283 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
285 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
287 datadir=$ac_optarg ;;
289 -disable-* | --disable-*)
290 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
291 # Reject names that are not valid shell variable names.
292 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
293 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
294 { (exit 1); exit 1; }; }
295 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
296 eval "enable_$ac_feature=no" ;;
298 -enable-* | --enable-*)
299 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
300 # Reject names that are not valid shell variable names.
301 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
302 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
303 { (exit 1); exit 1; }; }
304 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
306 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
309 eval "enable_$ac_feature='$ac_optarg'" ;;
311 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
312 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
313 | --exec | --exe | --ex)
314 ac_prev=exec_prefix ;;
315 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
316 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
317 | --exec=* | --exe=* | --ex=*)
318 exec_prefix=$ac_optarg ;;
320 -gas | --gas | --ga | --g)
321 # Obsolete; use --with-gas.
324 -help | --help | --hel | --he | -h)
326 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
327 ac_init_help=recursive ;;
328 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
329 ac_init_help=short ;;
331 -host | --host | --hos | --ho)
332 ac_prev=host_alias ;;
333 -host=* | --host=* | --hos=* | --ho=*)
334 host_alias=$ac_optarg ;;
336 -includedir | --includedir | --includedi | --included | --include \
337 | --includ | --inclu | --incl | --inc)
338 ac_prev=includedir ;;
339 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
340 | --includ=* | --inclu=* | --incl=* | --inc=*)
341 includedir=$ac_optarg ;;
343 -infodir | --infodir | --infodi | --infod | --info | --inf)
345 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
346 infodir=$ac_optarg ;;
348 -libdir | --libdir | --libdi | --libd)
350 -libdir=* | --libdir=* | --libdi=* | --libd=*)
353 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
354 | --libexe | --libex | --libe)
355 ac_prev=libexecdir ;;
356 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
357 | --libexe=* | --libex=* | --libe=*)
358 libexecdir=$ac_optarg ;;
360 -localstatedir | --localstatedir | --localstatedi | --localstated \
361 | --localstate | --localstat | --localsta | --localst \
362 | --locals | --local | --loca | --loc | --lo)
363 ac_prev=localstatedir ;;
364 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
365 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
366 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
367 localstatedir=$ac_optarg ;;
369 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
371 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
375 # Obsolete; use --without-fp.
378 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
382 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
383 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
386 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
387 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
388 | --oldin | --oldi | --old | --ol | --o)
389 ac_prev=oldincludedir ;;
390 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
391 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
392 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
393 oldincludedir=$ac_optarg ;;
395 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
397 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
400 -program-prefix | --program-prefix | --program-prefi | --program-pref \
401 | --program-pre | --program-pr | --program-p)
402 ac_prev=program_prefix ;;
403 -program-prefix=* | --program-prefix=* | --program-prefi=* \
404 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
405 program_prefix=$ac_optarg ;;
407 -program-suffix | --program-suffix | --program-suffi | --program-suff \
408 | --program-suf | --program-su | --program-s)
409 ac_prev=program_suffix ;;
410 -program-suffix=* | --program-suffix=* | --program-suffi=* \
411 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
412 program_suffix=$ac_optarg ;;
414 -program-transform-name | --program-transform-name \
415 | --program-transform-nam | --program-transform-na \
416 | --program-transform-n | --program-transform- \
417 | --program-transform | --program-transfor \
418 | --program-transfo | --program-transf \
419 | --program-trans | --program-tran \
420 | --progr-tra | --program-tr | --program-t)
421 ac_prev=program_transform_name ;;
422 -program-transform-name=* | --program-transform-name=* \
423 | --program-transform-nam=* | --program-transform-na=* \
424 | --program-transform-n=* | --program-transform-=* \
425 | --program-transform=* | --program-transfor=* \
426 | --program-transfo=* | --program-transf=* \
427 | --program-trans=* | --program-tran=* \
428 | --progr-tra=* | --program-tr=* | --program-t=*)
429 program_transform_name=$ac_optarg ;;
431 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
432 | -silent | --silent | --silen | --sile | --sil)
435 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
437 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
439 sbindir=$ac_optarg ;;
441 -sharedstatedir | --sharedstatedir | --sharedstatedi \
442 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
443 | --sharedst | --shareds | --shared | --share | --shar \
445 ac_prev=sharedstatedir ;;
446 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
447 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
448 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
450 sharedstatedir=$ac_optarg ;;
452 -site | --site | --sit)
454 -site=* | --site=* | --sit=*)
457 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
459 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
462 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
463 | --syscon | --sysco | --sysc | --sys | --sy)
464 ac_prev=sysconfdir ;;
465 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
466 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
467 sysconfdir=$ac_optarg ;;
469 -target | --target | --targe | --targ | --tar | --ta | --t)
470 ac_prev=target_alias ;;
471 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
472 target_alias=$ac_optarg ;;
474 -v | -verbose | --verbose | --verbos | --verbo | --verb)
477 -version | --version | --versio | --versi | --vers | -V)
481 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
482 # Reject names that are not valid shell variable names.
483 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
484 { echo "$as_me: error: invalid package name: $ac_package" >&2
485 { (exit 1); exit 1; }; }
486 ac_package=`echo $ac_package| sed 's/-/_/g'`
488 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
491 eval "with_$ac_package='$ac_optarg'" ;;
493 -without-* | --without-*)
494 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
495 # Reject names that are not valid shell variable names.
496 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
497 { echo "$as_me: error: invalid package name: $ac_package" >&2
498 { (exit 1); exit 1; }; }
499 ac_package=`echo $ac_package | sed 's/-/_/g'`
500 eval "with_$ac_package=no" ;;
503 # Obsolete; use --with-x.
506 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
507 | --x-incl | --x-inc | --x-in | --x-i)
508 ac_prev=x_includes ;;
509 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
510 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
511 x_includes=$ac_optarg ;;
513 -x-libraries | --x-libraries | --x-librarie | --x-librari \
514 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
515 ac_prev=x_libraries ;;
516 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
517 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
518 x_libraries=$ac_optarg ;;
520 -*) { echo "$as_me: error: unrecognized option: $ac_option
521 Try \`$0 --help' for more information." >&2
522 { (exit 1); exit 1; }; }
526 ac_envvar=`expr "x$ac_option" : 'x\
([^
=]*\
)='`
527 # Reject names that are not valid shell variable names.
528 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
529 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
530 { (exit 1); exit 1; }; }
531 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
532 eval "$ac_envvar='$ac_optarg'"
536 # FIXME: should be removed in autoconf 3.0.
537 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
538 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
539 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
540 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
546 if test -n "$ac_prev"; then
547 ac_option=--`echo $ac_prev | sed 's
/_
/-/g
'`
548 { echo "$as_me: error: missing argument to $ac_option" >&2
549 { (exit 1); exit 1; }; }
552 # Be sure to have absolute paths.
553 for ac_var in exec_prefix prefix
555 eval ac_val=$`echo $ac_var`
557 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
558 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
559 { (exit 1); exit 1; }; };;
563 # Be sure to have absolute paths.
564 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
565 localstatedir libdir includedir oldincludedir infodir mandir
567 eval ac_val=$`echo $ac_var`
569 [\\/$]* | ?:[\\/]* ) ;;
570 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
571 { (exit 1); exit 1; }; };;
575 # There might be people who depend on the old broken behavior: `$host'
576 # used to hold the argument of --host etc.
581 # FIXME: should be removed in autoconf 3.0.
582 if test "x$host_alias" != x
; then
583 if test "x$build_alias" = x
; then
584 cross_compiling
=maybe
585 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
586 If a cross compiler is detected then cross compile mode will be used." >&2
587 elif test "x$build_alias" != "x$host_alias"; then
593 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
595 test "$silent" = yes && exec 6>/dev
/null
597 # Find the source files, if location was not specified.
598 if test -z "$srcdir"; then
599 ac_srcdir_defaulted
=yes
600 # Try the directory containing this script, then its parent.
602 ac_confdir
=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
603 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
605 if test ! -r $srcdir/$ac_unique_file; then
609 ac_srcdir_defaulted
=no
611 if test ! -r $srcdir/$ac_unique_file; then
612 if test "$ac_srcdir_defaulted" = yes; then
613 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
614 { (exit 1); exit 1; }; }
616 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
617 { (exit 1); exit 1; }; }
620 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
621 ac_env_build_alias_set
=${build_alias+set}
622 ac_env_build_alias_value
=$build_alias
623 ac_cv_env_build_alias_set
=${build_alias+set}
624 ac_cv_env_build_alias_value
=$build_alias
625 ac_env_host_alias_set
=${host_alias+set}
626 ac_env_host_alias_value
=$host_alias
627 ac_cv_env_host_alias_set
=${host_alias+set}
628 ac_cv_env_host_alias_value
=$host_alias
629 ac_env_target_alias_set
=${target_alias+set}
630 ac_env_target_alias_value
=$target_alias
631 ac_cv_env_target_alias_set
=${target_alias+set}
632 ac_cv_env_target_alias_value
=$target_alias
633 ac_env_CC_set
=${CC+set}
635 ac_cv_env_CC_set
=${CC+set}
636 ac_cv_env_CC_value
=$CC
637 ac_env_CFLAGS_set
=${CFLAGS+set}
638 ac_env_CFLAGS_value
=$CFLAGS
639 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
640 ac_cv_env_CFLAGS_value
=$CFLAGS
641 ac_env_LDFLAGS_set
=${LDFLAGS+set}
642 ac_env_LDFLAGS_value
=$LDFLAGS
643 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
644 ac_cv_env_LDFLAGS_value
=$LDFLAGS
645 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
646 ac_env_CPPFLAGS_value
=$CPPFLAGS
647 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
648 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
649 ac_env_CPP_set
=${CPP+set}
650 ac_env_CPP_value
=$CPP
651 ac_cv_env_CPP_set
=${CPP+set}
652 ac_cv_env_CPP_value
=$CPP
655 # Report the --help message.
657 if test "$ac_init_help" = "long"; then
658 # Omit some internal or obsolete options to make the list less imposing.
659 # This message is too long to be a string in the A/UX 3.1 sh.
661 \`configure' configures GNU Bison 1.29b to adapt to many kinds of systems.
663 Usage: $0 [OPTION]... [VAR=VALUE]...
665 To assign environment variables (e.g., CC, CFLAGS...), specify them as
666 VAR=VALUE. See below for descriptions of some of the useful variables.
668 Defaults for the options are specified in brackets.
671 -h, --help display this help and exit
672 --help=short display options specific to this package
673 --help=recursive display the short help of all the included packages
674 -V, --version display version information and exit
675 -q, --quiet, --silent do not print \`checking...' messages
676 --cache-file=FILE cache test results in FILE [disabled]
677 -C, --config-cache alias for \`--cache-file=config.cache'
678 -n, --no-create do not create output files
679 --srcdir=DIR find the sources in DIR [configure dir or \`..']
684 Installation directories:
685 --prefix=PREFIX install architecture-independent files in PREFIX
687 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
690 By default, \`make install' will install all the files in
691 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
692 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
693 for instance \`--prefix=\$HOME'.
695 For better control, use the options below.
697 Fine tuning of the installation directories:
698 --bindir=DIR user executables [EPREFIX/bin]
699 --sbindir=DIR system admin executables [EPREFIX/sbin]
700 --libexecdir=DIR program executables [EPREFIX/libexec]
701 --datadir=DIR read-only architecture-independent data [PREFIX/share]
702 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
703 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
704 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
705 --libdir=DIR object code libraries [EPREFIX/lib]
706 --includedir=DIR C header files [PREFIX/include]
707 --oldincludedir=DIR C header files for non-gcc [/usr/include]
708 --infodir=DIR info documentation [PREFIX/info]
709 --mandir=DIR man documentation [PREFIX/man]
715 --program-prefix=PREFIX prepend PREFIX to installed program names
716 --program-suffix=SUFFIX append SUFFIX to installed program names
717 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
720 --build=BUILD configure
for building on BUILD
[guessed
]
721 --host=HOST build programs to run on HOST
[BUILD
]
725 if test -n "$ac_init_help"; then
726 case $ac_init_help in
727 short
| recursive
) echo "Configuration of GNU Bison 1.29b:";;
732 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
733 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
734 --disable-dependency-tracking Speeds up one
-time builds
735 --enable-dependency-tracking Do not reject slow dependency extractors
736 --enable-gcc-warnings turn on lots of GCC warnings
(not recommended
)
737 --disable-nls do not use Native Language Support
740 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
741 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
742 --with-dmalloc use dmalloc
, as
in
743 http
://www.dmalloc.com
/dmalloc.
tar.gz
744 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
745 --with-included-gettext use the GNU
gettext library included here
747 Some influential environment variables
:
748 CC C compiler
command
749 CFLAGS C compiler flags
750 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
751 nonstandard directory
<lib dir
>
752 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
753 headers
in a nonstandard directory
<include dir
>
756 Use these variables to override the choices made by
`configure' or to help
757 it to find libraries and programs with nonstandard names/locations.
759 Report bugs to <bug-bison@gnu.org>.
763 if test "$ac_init_help" = "recursive"; then
764 # If there are subdirs, report their specific --help.
766 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
768 if test "$ac_dir" != .; then
769 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
770 # A "../" for each directory in $ac_dir_suffix.
771 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
773 ac_dir_suffix= ac_top_builddir=
777 .) # No --srcdir option. We are building in place.
779 if test -z "$ac_top_builddir"; then
782 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
784 [\\/]* | ?:[\\/]* ) # Absolute path.
785 ac_srcdir=$srcdir$ac_dir_suffix;
786 ac_top_srcdir=$srcdir ;;
788 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
789 ac_top_srcdir=$ac_top_builddir$srcdir ;;
792 # Check for guested configure; otherwise get Cygnus style configure.
793 if test -f $ac_srcdir/configure.gnu; then
795 $SHELL $ac_srcdir/configure.gnu --help=recursive
796 elif test -f $ac_srcdir/configure; then
798 $SHELL $ac_srcdir/configure --help=recursive
799 elif test -f $ac_srcdir/configure.ac ||
800 test -f $ac_srcdir/configure.in; then
804 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
810 test -n "$ac_init_help" && exit 0
811 if $ac_init_version; then
813 GNU Bison configure 1.29b
814 generated by GNU Autoconf 2.52e
816 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
817 Free Software Foundation, Inc.
818 This configure script is free software; the Free Software Foundation
819 gives unlimited permission to copy, distribute and modify it.
825 This file contains any messages produced by compilers while
826 running configure, to aid debugging if configure makes a mistake.
828 It was created by GNU Bison $as_me 1.29b, which was
829 generated by GNU Autoconf 2.52e. Invocation command line was
840 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
841 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
842 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
843 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
844 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
846 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
847 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
849 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
850 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
851 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
852 hostinfo = `(hostinfo
) 2>/dev
/null
|| echo unknown
`
853 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
854 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
855 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
863 test -z "$as_dir" && as_dir=.
877 # Keep a trace of the command line.
878 # Strip out --no-create and --no-recursion so they do not pile up.
879 # Also quote any args containing shell meta-characters.
885 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
886 | --no-cr | --no-c) ;;
887 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
888 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
889 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
890 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
891 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
893 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
896 # Get rid of the leading space.
899 # When interrupted or exit'd, cleanup temporary files, and complete
900 # config.log. We remove comments because anyway the quotes in there
901 # would cause problems or look ugly.
902 # WARNING: Be sure not to use single quotes in there, as some shells,
903 # such as our DU 5.0 friend, will then `close
' the trap.
905 # Save into config.log some information that might help in debugging.
909 ## ---------------- ##
910 ## Cache variables. ##
911 ## ---------------- ##
914 # The following way of writing the cache mishandles newlines in values,
917 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
920 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
921 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
925 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
930 if test -s confdefs.h
; then
937 sed "/^$/d" confdefs.h
940 test "$ac_signal" != 0 &&
941 echo "$as_me: caught signal $ac_signal"
942 echo "$as_me: exit $exit_status"
944 rm -rf conftest
* confdefs
* core core.
* *.core conf$$
* $ac_clean_files &&
947 for ac_signal in 1 2 13 15; do
948 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
952 # confdefs.h avoids OS command line length limits that DEFS can exceed.
953 rm -rf conftest* confdefs.h
954 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
957 # Let the site file select an alternate cache file if it wants to.
958 # Prefer explicitly selected file to automatically selected ones.
959 if test -z "$CONFIG_SITE"; then
960 if test "x$prefix" != xNONE; then
961 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
963 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
966 for ac_site_file in $CONFIG_SITE; do
967 if test -r "$ac_site_file"; then
968 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
969 echo "$as_me: loading site script $ac_site_file" >&6;}
970 sed 's
/^
/| /' "$ac_site_file" >&5
975 if test -r "$cache_file"; then
976 # Some versions of bash will fail to source /dev/null (special
977 # files actually), so we avoid doing that.
978 if test -f "$cache_file"; then
979 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
980 echo "$as_me: loading cache $cache_file" >&6;}
982 [\\/]* | ?:[\\/]* ) . $cache_file;;
987 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
988 echo "$as_me: creating cache $cache_file" >&6;}
992 # Check that the precious variables saved in the cache have kept the same
994 ac_cache_corrupted=false
995 for ac_var in `(set) 2>&1 |
996 sed -n 's
/^ac_env_\
([a
-zA-Z_0-9]*\
)_set
=.
*/\
1/p
'`; do
997 eval ac_old_set=\$ac_cv_env_${ac_var}_set
998 eval ac_new_set=\$ac_env_${ac_var}_set
999 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1000 eval ac_new_val="\$ac_env_${ac_var}_value"
1001 case $ac_old_set,$ac_new_set in
1003 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1004 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1005 ac_cache_corrupted=: ;;
1007 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1008 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1009 ac_cache_corrupted=: ;;
1012 if test "x$ac_old_val" != "x$ac_new_val"; then
1013 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1014 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1015 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1016 echo "$as_me: former value: $ac_old_val" >&2;}
1017 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1018 echo "$as_me: current value: $ac_new_val" >&2;}
1019 ac_cache_corrupted=:
1022 # Pass precious variables to config.status. It doesn't matter if
1023 # we pass some twice (in addition to the command line arguments).
1024 if test "$ac_new_set" = set; then
1026 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1027 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1028 ac_configure_args="$ac_configure_args '$ac_arg'"
1030 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1035 if $ac_cache_corrupted; then
1036 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1037 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1038 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1039 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1040 { (exit 1); exit 1; }; }
1044 ac_cpp='$CPP $CPPFLAGS'
1045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1046 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1050 for ac_dir in config $srcdir/config; do
1051 if test -f $ac_dir/install-sh; then
1053 ac_install_sh="$ac_aux_dir/install-sh -c"
1055 elif test -f $ac_dir/install.sh; then
1057 ac_install_sh="$ac_aux_dir/install.sh -c"
1059 elif test -f $ac_dir/shtool; then
1061 ac_install_sh="$ac_aux_dir/shtool install -c"
1065 if test -z "$ac_aux_dir"; then
1066 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1067 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1068 { (exit 1); exit 1; }; }
1070 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1071 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1072 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1074 # Find a good install program. We prefer a C program (faster),
1075 # so one script is as good as another. But avoid the broken or
1076 # incompatible versions:
1077 # SysV /etc/install, /usr/sbin/install
1078 # SunOS /usr/etc/install
1079 # IRIX /sbin/install
1081 # AmigaOS /C/install, which installs bootblocks on floppy discs
1082 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1083 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1084 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1085 # ./install, which can be erroneously created by make from ./install.sh.
1086 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
1087 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1088 if test -z "$INSTALL"; then
1089 if test "${ac_cv_path_install+set}" = set; then
1090 echo $ECHO_N "(cached) $ECHO_C" >&6
1092 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1096 test -z "$as_dir" && as_dir
=.
1097 # Account for people who put trailing slashes in PATH elements.
1099 .
/ | .
// | /cC
/* | \
1100 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
1103 # OSF1 and SCO ODT 3.0 have their own names for install.
1104 # Don't use installbsd from OSF since it installs stuff as root
1106 for ac_prog
in ginstall scoinst
install; do
1107 for ac_exec_ext
in '' $ac_executable_extensions; do
1108 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1109 if test $ac_prog = install &&
1110 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1111 # AIX install. It has an incompatible calling convention.
1113 elif test $ac_prog = install &&
1114 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1115 # program-specific install script used by HP pwplus--don't use.
1118 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1129 if test "${ac_cv_path_install+set}" = set; then
1130 INSTALL
=$ac_cv_path_install
1132 # As a last resort, use the slow shell script. We don't cache a
1133 # path for INSTALL within a source directory, because that will
1134 # break other packages using the cache if that directory is
1135 # removed, or if the path is relative.
1136 INSTALL
=$ac_install_sh
1139 echo "$as_me:$LINENO: result: $INSTALL" >&5
1140 echo "${ECHO_T}$INSTALL" >&6
1142 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1143 # It thinks the first close brace ends the variable substitution.
1144 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1146 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1148 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1150 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1151 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1154 echo timestamp
> conftest.
file
1155 # Do `set' in a subshell so we don't clobber the current shell's
1156 # arguments. Must try -L first in case configure is actually a
1157 # symlink; some systems play weird games with the mod time of symlinks
1158 # (eg FreeBSD returns the mod time of the symlink's containing
1161 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1162 if test "$*" = "X"; then
1164 set X
`ls -t $srcdir/configure conftest.file`
1167 if test "$*" != "X $srcdir/configure conftest.file" \
1168 && test "$*" != "X conftest.file $srcdir/configure"; then
1170 # If neither matched, then we have a broken ls. This can happen
1171 # if, for instance, CONFIG_SHELL is bash and it inherits a
1172 # broken ls alias from the environment. This has actually
1173 # happened. Such a system could not be considered "sane".
1174 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1175 alias in your environment" >&5
1176 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1177 alias in your environment" >&2;}
1178 { (exit 1); exit 1; }; }
1181 test "$2" = conftest.
file
1187 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1188 Check your system clock" >&5
1189 echo "$as_me: error: newly created file is older than distributed files!
1190 Check your system clock" >&2;}
1191 { (exit 1); exit 1; }; }
1193 echo "$as_me:$LINENO: result: yes" >&5
1194 echo "${ECHO_T}yes" >&6
1195 test "$program_prefix" != NONE
&&
1196 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1197 # Use a double $ so make ignores it.
1198 test "$program_suffix" != NONE
&&
1199 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1200 # Double any \ or $. echo might interpret backslashes.
1201 # By default was `s,x,x', remove it if useless.
1202 cat <<\_ACEOF
>conftest.
sed
1203 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1205 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1208 # expand $ac_aux_dir to an absolute path
1209 am_aux_dir
=`CDPATH=:; cd $ac_aux_dir && pwd`
1211 test x
"${MISSING+set}" = xset
|| MISSING
="\${SHELL} $am_aux_dir/missing"
1212 # Use eval to expand $SHELL
1213 if eval "$MISSING --run true"; then
1214 am_missing_run
="$MISSING --run "
1218 { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1219 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1222 for ac_prog
in mawk gawk nawk
awk
1224 # Extract the first word of "$ac_prog", so it can be a program name with args.
1225 set dummy
$ac_prog; ac_word
=$2
1226 echo "$as_me:$LINENO: checking for $ac_word" >&5
1227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1228 if test "${ac_cv_prog_AWK+set}" = set; then
1229 echo $ECHO_N "(cached) $ECHO_C" >&6
1231 if test -n "$AWK"; then
1232 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1238 test -z "$as_dir" && as_dir
=.
1239 for ac_exec_ext
in '' $ac_executable_extensions; do
1240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1241 ac_cv_prog_AWK
="$ac_prog"
1242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1251 if test -n "$AWK"; then
1252 echo "$as_me:$LINENO: result: $AWK" >&5
1253 echo "${ECHO_T}$AWK" >&6
1255 echo "$as_me:$LINENO: result: no" >&5
1256 echo "${ECHO_T}no" >&6
1259 test -n "$AWK" && break
1262 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1263 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1264 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
1265 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1266 echo $ECHO_N "(cached) $ECHO_C" >&6
1268 cat >conftest.
make <<\_ACEOF
1270 @
echo 'ac_maketemp="${MAKE}"'
1272 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1273 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1274 if test -n "$ac_maketemp"; then
1275 eval ac_cv_prog_make_
${ac_make}_set
=yes
1277 eval ac_cv_prog_make_
${ac_make}_set
=no
1281 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1282 echo "$as_me:$LINENO: result: yes" >&5
1283 echo "${ECHO_T}yes" >&6
1286 echo "$as_me:$LINENO: result: no" >&5
1287 echo "${ECHO_T}no" >&6
1288 SET_MAKE
="MAKE=${MAKE-make}"
1291 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1292 if test "${enable_dependency_tracking+set}" = set; then
1293 enableval
="$enable_dependency_tracking"
1296 if test "x$enable_dependency_tracking" != xno
; then
1297 am_depcomp
="$ac_aux_dir/depcomp"
1301 if test "x$enable_dependency_tracking" != xno; then
1309 rm -f .deps
2>/dev
/null
1310 mkdir .deps
2>/dev
/null
1311 if test -d .deps
; then
1314 # MS-DOS does not allow filenames that begin with a dot.
1317 rmdir .deps
2>/dev
/null
1319 # test to see if srcdir already configured
1320 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1321 test -f $srcdir/config.status
; then
1322 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1323 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1324 { (exit 1); exit 1; }; }
1327 # Define the identity of the package.
1331 cat >>confdefs.h
<<_ACEOF
1332 #define PACKAGE "$PACKAGE"
1335 cat >>confdefs.h
<<_ACEOF
1336 #define VERSION "$VERSION"
1339 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1340 # the ones we care about.
1342 # Autoconf 2.50 always computes EXEEXT. However we need to be
1343 # compatible with 2.13, for now. So we always define EXEEXT, but we
1346 # Similar for OBJEXT -- only we only use OBJEXT if the user actually
1347 # requests that it be used. This is a bit dumb.
1350 # Some tools Automake needs.
1352 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal"}
1354 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1356 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake"}
1358 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1360 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1362 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1364 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1366 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1368 # We need awk for the "check" target. The system "awk" is bad on
1371 ac_config_headers
="$ac_config_headers config.h:config.hin"
1373 # Initialize the test suite.
1374 ac_config_commands
="$ac_config_commands tests/package.m4"
1376 ac_config_commands
="$ac_config_commands tests/atconfig"
1378 if test -f $srcdir/tests
/atlocal.
in; then
1379 ac_config_files
="$ac_config_files tests/atlocal"
1383 # Checks for programs.
1385 ac_cpp
='$CPP $CPPFLAGS'
1386 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1387 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1388 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1389 if test -n "$ac_tool_prefix"; then
1390 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1391 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1392 echo "$as_me:$LINENO: checking for $ac_word" >&5
1393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1394 if test "${ac_cv_prog_CC+set}" = set; then
1395 echo $ECHO_N "(cached) $ECHO_C" >&6
1397 if test -n "$CC"; then
1398 ac_cv_prog_CC
="$CC" # Let the user override the test.
1400 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1404 test -z "$as_dir" && as_dir
=.
1405 for ac_exec_ext
in '' $ac_executable_extensions; do
1406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1407 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1417 if test -n "$CC"; then
1418 echo "$as_me:$LINENO: result: $CC" >&5
1419 echo "${ECHO_T}$CC" >&6
1421 echo "$as_me:$LINENO: result: no" >&5
1422 echo "${ECHO_T}no" >&6
1426 if test -z "$ac_cv_prog_CC"; then
1428 # Extract the first word of "gcc", so it can be a program name with args.
1429 set dummy gcc
; ac_word
=$2
1430 echo "$as_me:$LINENO: checking for $ac_word" >&5
1431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1432 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 if test -n "$ac_ct_CC"; then
1436 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1438 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1442 test -z "$as_dir" && as_dir
=.
1443 for ac_exec_ext
in '' $ac_executable_extensions; do
1444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1445 ac_cv_prog_ac_ct_CC
="gcc"
1446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1454 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1455 if test -n "$ac_ct_CC"; then
1456 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1457 echo "${ECHO_T}$ac_ct_CC" >&6
1459 echo "$as_me:$LINENO: result: no" >&5
1460 echo "${ECHO_T}no" >&6
1468 if test -z "$CC"; then
1469 if test -n "$ac_tool_prefix"; then
1470 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1471 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1472 echo "$as_me:$LINENO: checking for $ac_word" >&5
1473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1474 if test "${ac_cv_prog_CC+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1477 if test -n "$CC"; then
1478 ac_cv_prog_CC
="$CC" # Let the user override the test.
1480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1484 test -z "$as_dir" && as_dir
=.
1485 for ac_exec_ext
in '' $ac_executable_extensions; do
1486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1487 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497 if test -n "$CC"; then
1498 echo "$as_me:$LINENO: result: $CC" >&5
1499 echo "${ECHO_T}$CC" >&6
1501 echo "$as_me:$LINENO: result: no" >&5
1502 echo "${ECHO_T}no" >&6
1506 if test -z "$ac_cv_prog_CC"; then
1508 # Extract the first word of "cc", so it can be a program name with args.
1509 set dummy cc
; ac_word
=$2
1510 echo "$as_me:$LINENO: checking for $ac_word" >&5
1511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1512 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1513 echo $ECHO_N "(cached) $ECHO_C" >&6
1515 if test -n "$ac_ct_CC"; then
1516 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1522 test -z "$as_dir" && as_dir
=.
1523 for ac_exec_ext
in '' $ac_executable_extensions; do
1524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1525 ac_cv_prog_ac_ct_CC
="cc"
1526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1535 if test -n "$ac_ct_CC"; then
1536 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1537 echo "${ECHO_T}$ac_ct_CC" >&6
1539 echo "$as_me:$LINENO: result: no" >&5
1540 echo "${ECHO_T}no" >&6
1549 if test -z "$CC"; then
1550 # Extract the first word of "cc", so it can be a program name with args.
1551 set dummy cc
; ac_word
=$2
1552 echo "$as_me:$LINENO: checking for $ac_word" >&5
1553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1554 if test "${ac_cv_prog_CC+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1557 if test -n "$CC"; then
1558 ac_cv_prog_CC
="$CC" # Let the user override the test.
1561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1565 test -z "$as_dir" && as_dir
=.
1566 for ac_exec_ext
in '' $ac_executable_extensions; do
1567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1568 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1569 ac_prog_rejected
=yes
1573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1579 if test $ac_prog_rejected = yes; then
1580 # We found a bogon in the path, so make sure we never use it.
1581 set dummy
$ac_cv_prog_CC
1583 if test $# != 0; then
1584 # We chose a different compiler from the bogus one.
1585 # However, it has the same basename, so the bogon will be chosen
1586 # first if we set CC to just the basename; use the full file name.
1588 set dummy
"$as_dir/$ac_word" ${1+"$@"}
1596 if test -n "$CC"; then
1597 echo "$as_me:$LINENO: result: $CC" >&5
1598 echo "${ECHO_T}$CC" >&6
1600 echo "$as_me:$LINENO: result: no" >&5
1601 echo "${ECHO_T}no" >&6
1605 if test -z "$CC"; then
1606 if test -n "$ac_tool_prefix"; then
1609 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1610 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1611 echo "$as_me:$LINENO: checking for $ac_word" >&5
1612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613 if test "${ac_cv_prog_CC+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1616 if test -n "$CC"; then
1617 ac_cv_prog_CC
="$CC" # Let the user override the test.
1619 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1623 test -z "$as_dir" && as_dir
=.
1624 for ac_exec_ext
in '' $ac_executable_extensions; do
1625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1636 if test -n "$CC"; then
1637 echo "$as_me:$LINENO: result: $CC" >&5
1638 echo "${ECHO_T}$CC" >&6
1640 echo "$as_me:$LINENO: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1644 test -n "$CC" && break
1647 if test -z "$CC"; then
1651 # Extract the first word of "$ac_prog", so it can be a program name with args.
1652 set dummy
$ac_prog; ac_word
=$2
1653 echo "$as_me:$LINENO: checking for $ac_word" >&5
1654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1655 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1658 if test -n "$ac_ct_CC"; then
1659 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1665 test -z "$as_dir" && as_dir
=.
1666 for ac_exec_ext
in '' $ac_executable_extensions; do
1667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1668 ac_cv_prog_ac_ct_CC
="$ac_prog"
1669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1677 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1678 if test -n "$ac_ct_CC"; then
1679 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1680 echo "${ECHO_T}$ac_ct_CC" >&6
1682 echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1686 test -n "$ac_ct_CC" && break
1694 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
1695 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1696 { (exit 1); exit 1; }; }
1698 # Provide some information about the compiler.
1699 echo "$as_me:$LINENO:" \
1700 "checking for C compiler version" >&5
1701 ac_compiler
=`set X $ac_compile; echo $2`
1702 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1703 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1706 (exit $ac_status); }
1707 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1708 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1711 (exit $ac_status); }
1712 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1713 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1716 (exit $ac_status); }
1718 cat >conftest.
$ac_ext <<_ACEOF
1719 #line $LINENO "configure"
1720 #include "confdefs.h"
1722 #ifdef F77_DUMMY_MAIN
1726 int F77_DUMMY_MAIN() { return 1; }
1736 ac_clean_files_save
=$ac_clean_files
1737 ac_clean_files
="$ac_clean_files a.out a.exe"
1738 # Try to create an executable without -o first, disregard a.out.
1739 # It will help us diagnose broken compilers, and finding out an intuition
1741 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1742 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1743 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1744 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1745 (eval $ac_link_default) 2>&5
1747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1748 (exit $ac_status); }; then
1749 # Find the output, starting from the most likely. This scheme is
1750 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1752 for ac_file
in `ls a.exe conftest.exe 2>/dev/null;
1753 ls a.out conftest 2>/dev/null;
1754 ls a.* conftest.* 2>/dev/null`; do
1756 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
) ;;
1757 a.out
) # We found the default executable, but exeext='' is most
1760 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1761 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1768 echo "$as_me: failed program was:" >&5
1769 cat conftest.
$ac_ext >&5
1770 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1771 echo "$as_me: error: C compiler cannot create executables" >&2;}
1772 { (exit 77); exit 77; }; }
1775 ac_exeext
=$ac_cv_exeext
1776 echo "$as_me:$LINENO: result: $ac_file" >&5
1777 echo "${ECHO_T}$ac_file" >&6
1779 # Check the compiler produces executables we can run. If not, either
1780 # the compiler is broken, or we cross compile.
1781 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1782 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1783 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1784 # If not cross compiling, check that we can run a simple program.
1785 if test "$cross_compiling" != yes; then
1786 if { ac_try
='./$ac_file'
1787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }; }; then
1794 if test "$cross_compiling" = maybe
; then
1797 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1798 If you meant to cross compile, use \`--host'." >&5
1799 echo "$as_me: error: cannot run C compiled programs.
1800 If you meant to cross compile, use \`--host'." >&2;}
1801 { (exit 1); exit 1; }; }
1805 echo "$as_me:$LINENO: result: yes" >&5
1806 echo "${ECHO_T}yes" >&6
1808 rm -f a.out a.exe conftest
$ac_cv_exeext
1809 ac_clean_files
=$ac_clean_files_save
1810 # Check the compiler produces executables we can run. If not, either
1811 # the compiler is broken, or we cross compile.
1812 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1813 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1814 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1815 echo "${ECHO_T}$cross_compiling" >&6
1817 echo "$as_me:$LINENO: checking for executable suffix" >&5
1818 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1820 (eval $ac_link) 2>&5
1822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1823 (exit $ac_status); }; then
1824 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1825 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1826 # work properly (i.e., refer to `conftest.exe'), while it won't with
1828 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1830 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1831 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1838 { { echo "$as_me:$LINENO: error: cannot compute EXEEXT: cannot compile and link" >&5
1839 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1840 { (exit 1); exit 1; }; }
1843 rm -f conftest
$ac_cv_exeext
1844 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1845 echo "${ECHO_T}$ac_cv_exeext" >&6
1847 rm -f conftest.
$ac_ext
1848 EXEEXT
=$ac_cv_exeext
1850 echo "$as_me:$LINENO: checking for object suffix" >&5
1851 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1852 if test "${ac_cv_objext+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 cat >conftest.
$ac_ext <<_ACEOF
1856 #line $LINENO "configure"
1857 #include "confdefs.h"
1859 #ifdef F77_DUMMY_MAIN
1863 int F77_DUMMY_MAIN() { return 1; }
1873 rm -f conftest.o conftest.obj
1874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1875 (eval $ac_compile) 2>&5
1877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1878 (exit $ac_status); }; then
1879 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1881 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1882 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1887 echo "$as_me: failed program was:" >&5
1888 cat conftest.
$ac_ext >&5
1889 { { echo "$as_me:$LINENO: error: cannot compute OBJEXT: cannot compile" >&5
1890 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1891 { (exit 1); exit 1; }; }
1894 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1896 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1897 echo "${ECHO_T}$ac_cv_objext" >&6
1898 OBJEXT
=$ac_cv_objext
1900 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1901 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1902 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1905 cat >conftest.
$ac_ext <<_ACEOF
1906 #line $LINENO "configure"
1907 #include "confdefs.h"
1909 #ifdef F77_DUMMY_MAIN
1913 int F77_DUMMY_MAIN() { return 1; }
1926 rm -f conftest.
$ac_objext
1927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1928 (eval $ac_compile) 2>&5
1930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931 (exit $ac_status); } &&
1932 { ac_try
='test -s conftest.$ac_objext'
1933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); }; }; then
1940 echo "$as_me: failed program was:" >&5
1941 cat conftest.
$ac_ext >&5
1944 rm -f conftest.
$ac_objext conftest.
$ac_ext
1945 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1948 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1949 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1950 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1951 ac_test_CFLAGS
=${CFLAGS+set}
1952 ac_save_CFLAGS
=$CFLAGS
1954 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1955 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1956 if test "${ac_cv_prog_cc_g+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 cat >conftest.
$ac_ext <<_ACEOF
1960 #line $LINENO "configure"
1961 #include "confdefs.h"
1963 #ifdef F77_DUMMY_MAIN
1967 int F77_DUMMY_MAIN() { return 1; }
1977 rm -f conftest.
$ac_objext
1978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1979 (eval $ac_compile) 2>&5
1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982 (exit $ac_status); } &&
1983 { ac_try
='test -s conftest.$ac_objext'
1984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988 (exit $ac_status); }; }; then
1991 echo "$as_me: failed program was:" >&5
1992 cat conftest.
$ac_ext >&5
1995 rm -f conftest.
$ac_objext conftest.
$ac_ext
1997 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1998 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1999 if test "$ac_test_CFLAGS" = set; then
2000 CFLAGS
=$ac_save_CFLAGS
2001 elif test $ac_cv_prog_cc_g = yes; then
2002 if test "$GCC" = yes; then
2008 if test "$GCC" = yes; then
2014 # Some people use a C++ compiler to compile C. Since we use `exit',
2015 # in C++ we need to declare it. In case someone uses the same compiler
2016 # for both compiling C and C++ we need to have the C++ compiler decide
2017 # the declaration of exit, since it's the most demanding environment.
2018 cat >conftest.
$ac_ext <<_ACEOF
2023 rm -f conftest.
$ac_objext
2024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2025 (eval $ac_compile) 2>&5
2027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028 (exit $ac_status); } &&
2029 { ac_try
='test -s conftest.$ac_objext'
2030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }; }; then
2035 for ac_declaration
in \
2037 '#include <stdlib.h>' \
2038 'extern "C" void std::exit (int) throw (); using std::exit;' \
2039 'extern "C" void std::exit (int); using std::exit;' \
2040 'extern "C" void exit (int) throw ();' \
2041 'extern "C" void exit (int);' \
2044 cat >conftest.
$ac_ext <<_ACEOF
2045 #line $LINENO "configure"
2046 #include "confdefs.h"
2049 #ifdef F77_DUMMY_MAIN
2053 int F77_DUMMY_MAIN() { return 1; }
2063 rm -f conftest.
$ac_objext
2064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2065 (eval $ac_compile) 2>&5
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); } &&
2069 { ac_try
='test -s conftest.$ac_objext'
2070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074 (exit $ac_status); }; }; then
2077 echo "$as_me: failed program was:" >&5
2078 cat conftest.
$ac_ext >&5
2081 rm -f conftest.
$ac_objext conftest.
$ac_ext
2082 cat >conftest.
$ac_ext <<_ACEOF
2083 #line $LINENO "configure"
2084 #include "confdefs.h"
2086 #ifdef F77_DUMMY_MAIN
2090 int F77_DUMMY_MAIN() { return 1; }
2100 rm -f conftest.
$ac_objext
2101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2102 (eval $ac_compile) 2>&5
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); } &&
2106 { ac_try
='test -s conftest.$ac_objext'
2107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); }; }; then
2114 echo "$as_me: failed program was:" >&5
2115 cat conftest.
$ac_ext >&5
2117 rm -f conftest.
$ac_objext conftest.
$ac_ext
2120 if test -n "$ac_declaration"; then
2121 echo '#ifdef __cplusplus' >>confdefs.h
2122 echo $ac_declaration >>confdefs.h
2123 echo '#endif' >>confdefs.h
2127 echo "$as_me: failed program was:" >&5
2128 cat conftest.
$ac_ext >&5
2130 rm -f conftest.
$ac_objext conftest.
$ac_ext
2132 ac_cpp
='$CPP $CPPFLAGS'
2133 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2134 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2135 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2137 ac_config_commands
="$ac_config_commands default-1"
2139 am_make
=${MAKE-make}
2140 cat > confinc
<< 'END'
2144 # If we don't find an include directive, just comment out the code.
2145 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2146 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2150 # First try GNU make style include.
2151 echo "include confinc" > confmf
2152 # We grep out `Entering directory' and `Leaving directory'
2153 # messages which can occur if `w' ends up in MAKEFLAGS.
2154 # In particular we don't look at `^make:' because GNU make might
2155 # be invoked under some other name (usually "gmake"), in which
2156 # case it prints its new name instead of `make'.
2157 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2162 # Now try BSD make style include.
2163 if test "$am__include" = "#"; then
2164 echo '.include "confinc"' > confmf
2165 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2166 am__include
=.include
2172 echo "$as_me:$LINENO: result: $_am_result" >&5
2173 echo "${ECHO_T}$_am_result" >&6
2174 rm -f confinc confmf
2176 depcc
="$CC" am_compiler_list
=
2178 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2179 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2180 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2183 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2184 # We make a subdir and do the tests there. Otherwise we can end up
2185 # making bogus files that we don't know about and never remove. For
2186 # instance it was reported that on HP-UX the gcc test will end up
2187 # making a dummy file named `D' -- because `-MD' means `put the output
2190 # Copy depcomp to subdir because otherwise we won't find it if we're
2191 # using a relative directory.
2192 cp "$am_depcomp" conftest.dir
2195 am_cv_CC_dependencies_compiler_type
=none
2196 if test "$am_compiler_list" = ""; then
2197 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2199 for depmode
in $am_compiler_list; do
2200 # We need to recreate these files for each test, as the compiler may
2201 # overwrite some of them when testing with obscure command lines.
2202 # This happens at least with the AIX C compiler.
2203 echo '#include "conftest.h"' > conftest.c
2204 echo 'int i;' > conftest.h
2205 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2209 # after this tag, mechanisms are not by side-effect, so they'll
2210 # only be used when explicitly requested
2211 if test "x$enable_dependency_tracking" = xyes
; then
2219 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2220 # mode. It turns out that the SunPro C++ compiler does not properly
2221 # handle `-M -o', and we need to detect this.
2222 if depmode
=$depmode \
2223 source=conftest.c object
=conftest.o \
2224 depfile
=conftest.Po tmpdepfile
=conftest.TPo \
2225 $SHELL .
/depcomp
$depcc -c conftest.c
-o conftest.o
>/dev
/null
2>&1 &&
2226 grep conftest.h conftest.Po
> /dev
/null
2>&1 &&
2227 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2228 am_cv_CC_dependencies_compiler_type
=$depmode
2236 am_cv_CC_dependencies_compiler_type
=none
2240 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2241 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2242 CCDEPMODE
="depmode=$am_cv_CC_dependencies_compiler_type"
2245 ac_cpp
='$CPP $CPPFLAGS'
2246 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2247 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2248 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2249 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2250 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2251 # On Suns, sometimes $CPP names a directory.
2252 if test -n "$CPP" && test -d "$CPP"; then
2255 if test -z "$CPP"; then
2256 if test "${ac_cv_prog_CPP+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 # Double quotes because CPP needs to be expanded
2260 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2263 for ac_c_preproc_warn_flag
in '' yes
2265 # Use a header file that comes with gcc, so configuring glibc
2266 # with a fresh cross-compiler works.
2267 # On the NeXT, cc -E runs the code through the compiler's parser,
2268 # not just through cpp. "Syntax error" is here to catch this case.
2269 cat >conftest.
$ac_ext <<_ACEOF
2270 #line $LINENO "configure"
2271 #include "confdefs.h"
2275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2276 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2278 egrep -v '^ *\+' conftest.er1
>conftest.err
2280 cat conftest.err
>&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); } >/dev
/null
; then
2283 if test -s conftest.err
; then
2284 ac_cpp_err
=$ac_c_preproc_warn_flag
2291 if test -z "$ac_cpp_err"; then
2294 echo "$as_me: failed program was:" >&5
2295 cat conftest.
$ac_ext >&5
2296 # Broken: fails on valid input.
2299 rm -f conftest.err conftest.
$ac_ext
2301 # OK, works on sane cases. Now check whether non-existent headers
2302 # can be detected and how.
2303 cat >conftest.
$ac_ext <<_ACEOF
2304 #line $LINENO "configure"
2305 #include "confdefs.h"
2306 #include <ac_nonexistent.h>
2308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2309 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2311 egrep -v '^ *\+' conftest.er1
>conftest.err
2313 cat conftest.err
>&5
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); } >/dev
/null
; then
2316 if test -s conftest.err
; then
2317 ac_cpp_err
=$ac_c_preproc_warn_flag
2324 if test -z "$ac_cpp_err"; then
2325 # Broken: success on invalid input.
2328 echo "$as_me: failed program was:" >&5
2329 cat conftest.
$ac_ext >&5
2330 # Passes both tests.
2334 rm -f conftest.err conftest.
$ac_ext
2337 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2338 rm -f conftest.err conftest.
$ac_ext
2339 if $ac_preproc_ok; then
2351 echo "$as_me:$LINENO: result: $CPP" >&5
2352 echo "${ECHO_T}$CPP" >&6
2354 for ac_c_preproc_warn_flag
in '' yes
2356 # Use a header file that comes with gcc, so configuring glibc
2357 # with a fresh cross-compiler works.
2358 # On the NeXT, cc -E runs the code through the compiler's parser,
2359 # not just through cpp. "Syntax error" is here to catch this case.
2360 cat >conftest.
$ac_ext <<_ACEOF
2361 #line $LINENO "configure"
2362 #include "confdefs.h"
2366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2367 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2369 egrep -v '^ *\+' conftest.er1
>conftest.err
2371 cat conftest.err
>&5
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); } >/dev
/null
; then
2374 if test -s conftest.err
; then
2375 ac_cpp_err
=$ac_c_preproc_warn_flag
2382 if test -z "$ac_cpp_err"; then
2385 echo "$as_me: failed program was:" >&5
2386 cat conftest.
$ac_ext >&5
2387 # Broken: fails on valid input.
2390 rm -f conftest.err conftest.
$ac_ext
2392 # OK, works on sane cases. Now check whether non-existent headers
2393 # can be detected and how.
2394 cat >conftest.
$ac_ext <<_ACEOF
2395 #line $LINENO "configure"
2396 #include "confdefs.h"
2397 #include <ac_nonexistent.h>
2399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2400 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2402 egrep -v '^ *\+' conftest.er1
>conftest.err
2404 cat conftest.err
>&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } >/dev
/null
; then
2407 if test -s conftest.err
; then
2408 ac_cpp_err
=$ac_c_preproc_warn_flag
2415 if test -z "$ac_cpp_err"; then
2416 # Broken: success on invalid input.
2419 echo "$as_me: failed program was:" >&5
2420 cat conftest.
$ac_ext >&5
2421 # Passes both tests.
2425 rm -f conftest.err conftest.
$ac_ext
2428 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2429 rm -f conftest.err conftest.
$ac_ext
2430 if $ac_preproc_ok; then
2433 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2434 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2435 { (exit 1); exit 1; }; }
2439 ac_cpp
='$CPP $CPPFLAGS'
2440 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2441 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2442 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2444 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2445 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2446 if test "${ac_cv_header_stdc+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2449 cat >conftest.
$ac_ext <<_ACEOF
2450 #line $LINENO "configure"
2451 #include "confdefs.h"
2458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2459 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2461 egrep -v '^ *\+' conftest.er1
>conftest.err
2463 cat conftest.err
>&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); } >/dev
/null
; then
2466 if test -s conftest.err
; then
2467 ac_cpp_err
=$ac_c_preproc_warn_flag
2474 if test -z "$ac_cpp_err"; then
2475 ac_cv_header_stdc
=yes
2477 echo "$as_me: failed program was:" >&5
2478 cat conftest.
$ac_ext >&5
2479 ac_cv_header_stdc
=no
2481 rm -f conftest.err conftest.
$ac_ext
2483 if test $ac_cv_header_stdc = yes; then
2484 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2485 cat >conftest.
$ac_ext <<_ACEOF
2486 #line $LINENO "configure"
2487 #include "confdefs.h"
2491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2492 egrep "memchr" >/dev
/null
2>&1; then
2495 ac_cv_header_stdc
=no
2501 if test $ac_cv_header_stdc = yes; then
2502 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2503 cat >conftest.
$ac_ext <<_ACEOF
2504 #line $LINENO "configure"
2505 #include "confdefs.h"
2509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2510 egrep "free" >/dev
/null
2>&1; then
2513 ac_cv_header_stdc
=no
2519 if test $ac_cv_header_stdc = yes; then
2520 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2521 if test "$cross_compiling" = yes; then
2524 cat >conftest.
$ac_ext <<_ACEOF
2525 #line $LINENO "configure"
2526 #include "confdefs.h"
2528 #if ((' ' & 0x0FF) == 0x020)
2529 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2530 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2532 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2533 || ('j' <= (c) && (c) <= 'r') \
2534 || ('s' <= (c) && (c) <= 'z'))
2535 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2543 for (i = 0; i < 256; i++)
2544 if (XOR (islower (i), ISLOWER (i))
2545 || toupper (i) != TOUPPER (i))
2550 rm -f conftest
$ac_exeext
2551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2552 (eval $ac_link) 2>&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; }; then
2563 echo "$as_me: program exited with status $ac_status" >&5
2564 echo "$as_me: failed program was:" >&5
2565 cat conftest.
$ac_ext >&5
2566 ac_cv_header_stdc
=no
2568 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2572 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2573 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2574 if test $ac_cv_header_stdc = yes; then
2576 cat >>confdefs.h
<<\_ACEOF
2577 #define STDC_HEADERS 1
2582 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2584 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2585 inttypes.h stdint.h unistd.h
2587 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2588 echo "$as_me:$LINENO: checking for $ac_header" >&5
2589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2593 cat >conftest.
$ac_ext <<_ACEOF
2594 #line $LINENO "configure"
2595 #include "confdefs.h"
2596 $ac_includes_default
2598 #include <$ac_header>
2600 rm -f conftest.
$ac_objext
2601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602 (eval $ac_compile) 2>&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } &&
2606 { ac_try
='test -s conftest.$ac_objext'
2607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; }; then
2612 eval "$as_ac_Header=yes"
2614 echo "$as_me: failed program was:" >&5
2615 cat conftest.
$ac_ext >&5
2616 eval "$as_ac_Header=no"
2618 rm -f conftest.
$ac_objext conftest.
$ac_ext
2620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2623 cat >>confdefs.h
<<_ACEOF
2624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2631 if test "${ac_cv_header_minix_config_h+set}" = set; then
2632 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2633 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2634 if test "${ac_cv_header_minix_config_h+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2637 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2638 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2640 # Is the header compilable?
2641 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2642 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2643 cat >conftest.
$ac_ext <<_ACEOF
2644 #line $LINENO "configure"
2645 #include "confdefs.h"
2646 $ac_includes_default
2647 #include <minix/config.h>
2649 rm -f conftest.
$ac_objext
2650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2651 (eval $ac_compile) 2>&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } &&
2655 { ac_try
='test -s conftest.$ac_objext'
2656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; }; then
2661 ac_header_compiler
=yes
2663 echo "$as_me: failed program was:" >&5
2664 cat conftest.
$ac_ext >&5
2665 ac_header_compiler
=no
2667 rm -f conftest.
$ac_objext conftest.
$ac_ext
2668 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2669 echo "${ECHO_T}$ac_header_compiler" >&6
2671 # Is the header present?
2672 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2673 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2674 cat >conftest.
$ac_ext <<_ACEOF
2675 #line $LINENO "configure"
2676 #include "confdefs.h"
2677 #include <minix/config.h>
2679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2680 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2682 egrep -v '^ *\+' conftest.er1
>conftest.err
2684 cat conftest.err
>&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); } >/dev
/null
; then
2687 if test -s conftest.err
; then
2688 ac_cpp_err
=$ac_c_preproc_warn_flag
2695 if test -z "$ac_cpp_err"; then
2696 ac_header_preproc
=yes
2698 echo "$as_me: failed program was:" >&5
2699 cat conftest.
$ac_ext >&5
2700 ac_header_preproc
=no
2702 rm -f conftest.err conftest.
$ac_ext
2703 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2704 echo "${ECHO_T}$ac_header_preproc" >&6
2706 # So? What about this header?
2707 case $ac_header_compiler:$ac_header_preproc in
2709 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
2710 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2711 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2712 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2714 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled." >&5
2715 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled." >&2;}
2716 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
2717 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
2718 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2719 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2721 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2722 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2723 if test "${ac_cv_header_minix_config_h+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 ac_cv_header_minix_config_h
=$ac_header_preproc
2728 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2729 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2732 if test $ac_cv_header_minix_config_h = yes; then
2738 if test "$MINIX" = yes; then
2740 cat >>confdefs.h
<<\_ACEOF
2741 #define _POSIX_SOURCE 1
2744 cat >>confdefs.h
<<\_ACEOF
2745 #define _POSIX_1_SOURCE 2
2748 cat >>confdefs.h
<<\_ACEOF
2754 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2755 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2756 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 ac_check_lib_save_LIBS
=$LIBS
2760 LIBS
="-lcposix $LIBS"
2761 cat >conftest.
$ac_ext <<_ACEOF
2762 #line $LINENO "configure"
2763 #include "confdefs.h"
2765 /* Override any gcc2 internal prototype to avoid an error. */
2769 /* We use char because int might match the return type of a gcc2
2770 builtin and then its argument prototype would still apply. */
2772 #ifdef F77_DUMMY_MAIN
2776 int F77_DUMMY_MAIN() { return 1; }
2786 rm -f conftest.
$ac_objext conftest
$ac_exeext
2787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2788 (eval $ac_link) 2>&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } &&
2792 { ac_try
='test -s conftest$ac_exeext'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; }; then
2798 ac_cv_lib_cposix_strerror
=yes
2800 echo "$as_me: failed program was:" >&5
2801 cat conftest.
$ac_ext >&5
2802 ac_cv_lib_cposix_strerror
=no
2804 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2805 LIBS
=$ac_check_lib_save_LIBS
2807 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2808 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2809 if test $ac_cv_lib_cposix_strerror = yes; then
2810 LIBS
="$LIBS -lcposix"
2813 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2814 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2815 if test "${am_cv_prog_cc_stdc+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 am_cv_prog_cc_stdc
=no
2820 # Don't try gcc -ansi; that turns off useful extensions and
2821 # breaks some systems' header files.
2822 # AIX -qlanglvl=ansi
2823 # Ultrix and OSF/1 -std1
2824 # HP-UX 10.20 and later -Ae
2825 # HP-UX older versions -Aa -D_HPUX_SOURCE
2826 # SVR4 -Xc -D__EXTENSIONS__
2827 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2829 CC
="$ac_save_CC $ac_arg"
2830 cat >conftest.
$ac_ext <<_ACEOF
2831 #line $LINENO "configure"
2832 #include "confdefs.h"
2835 #include <sys/types.h>
2836 #include <sys/stat.h>
2837 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2838 struct buf { int x; };
2839 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2840 static char *e (p, i)
2846 static char *f (char * (*g) (char **, int), char **p, ...)
2851 s = g (p, va_arg (v,int));
2855 int test (int i, double x);
2856 struct s1 {int (*f) (int a);};
2857 struct s2 {int (*f) (double a);};
2858 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2862 #ifdef F77_DUMMY_MAIN
2866 int F77_DUMMY_MAIN() { return 1; }
2872 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2878 rm -f conftest.
$ac_objext
2879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880 (eval $ac_compile) 2>&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); } &&
2884 { ac_try
='test -s conftest.$ac_objext'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; }; then
2890 am_cv_prog_cc_stdc
="$ac_arg"; break
2892 echo "$as_me: failed program was:" >&5
2893 cat conftest.
$ac_ext >&5
2895 rm -f conftest.
$ac_objext conftest.
$ac_ext
2901 if test -z "$am_cv_prog_cc_stdc"; then
2902 echo "$as_me:$LINENO: result: none needed" >&5
2903 echo "${ECHO_T}none needed" >&6
2905 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2906 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2908 case "x$am_cv_prog_cc_stdc" in
2910 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
2913 if test -n "$ac_tool_prefix"; then
2914 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2915 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2916 echo "$as_me:$LINENO: checking for $ac_word" >&5
2917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2918 if test "${ac_cv_prog_RANLIB+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2921 if test -n "$RANLIB"; then
2922 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2928 test -z "$as_dir" && as_dir
=.
2929 for ac_exec_ext
in '' $ac_executable_extensions; do
2930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2931 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2940 RANLIB
=$ac_cv_prog_RANLIB
2941 if test -n "$RANLIB"; then
2942 echo "$as_me:$LINENO: result: $RANLIB" >&5
2943 echo "${ECHO_T}$RANLIB" >&6
2945 echo "$as_me:$LINENO: result: no" >&5
2946 echo "${ECHO_T}no" >&6
2950 if test -z "$ac_cv_prog_RANLIB"; then
2951 ac_ct_RANLIB
=$RANLIB
2952 # Extract the first word of "ranlib", so it can be a program name with args.
2953 set dummy ranlib
; ac_word
=$2
2954 echo "$as_me:$LINENO: checking for $ac_word" >&5
2955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2956 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 if test -n "$ac_ct_RANLIB"; then
2960 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2962 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2966 test -z "$as_dir" && as_dir
=.
2967 for ac_exec_ext
in '' $ac_executable_extensions; do
2968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2969 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
2979 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2980 if test -n "$ac_ct_RANLIB"; then
2981 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2982 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2984 echo "$as_me:$LINENO: result: no" >&5
2985 echo "${ECHO_T}no" >&6
2988 RANLIB
=$ac_ct_RANLIB
2990 RANLIB
="$ac_cv_prog_RANLIB"
2993 # GNU M4 is needed to build the testsuite.
2994 for ac_prog
in gm4 gnum4
m4
2996 # Extract the first word of "$ac_prog", so it can be a program name with args.
2997 set dummy
$ac_prog; ac_word
=$2
2998 echo "$as_me:$LINENO: checking for $ac_word" >&5
2999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3000 if test "${ac_cv_path_M4+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 ac_cv_path_M4
="$M4" # Let the user override the test with a path.
3008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3012 test -z "$as_dir" && as_dir
=.
3013 for ac_exec_ext
in '' $ac_executable_extensions; do
3014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3015 ac_cv_path_M4
="$as_dir/$ac_word$ac_exec_ext"
3016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 if test -n "$M4"; then
3028 echo "$as_me:$LINENO: result: $M4" >&5
3029 echo "${ECHO_T}$M4" >&6
3031 echo "$as_me:$LINENO: result: no" >&5
3032 echo "${ECHO_T}no" >&6
3035 test -n "$M4" && break
3037 test -n "$M4" || M4
="m4"
3039 echo "$as_me:$LINENO: checking whether m4 supports frozen files" >&5
3040 echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" >&6
3041 if test "${ac_cv_prog_gnu_m4+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
3044 ac_cv_prog_gnu_m4
=no
3045 if test x
"$M4" != x
; then
3046 case `$M4 --help < /dev/null 2>&1` in
3047 *reload
-state*) ac_cv_prog_gnu_m4
=yes ;;
3051 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_m4" >&5
3052 echo "${ECHO_T}$ac_cv_prog_gnu_m4" >&6
3054 if test "$ac_cv_prog_gnu_m4" != yes; then
3055 missing_dir
=`cd $ac_aux_dir && pwd`
3056 M4
="$missing_dir/missing m4"
3059 # Check whether --enable-gcc-warnings or --disable-gcc-warnings was given.
3060 if test "${enable_gcc_warnings+set}" = set; then
3061 enableval
="$enable_gcc_warnings"
3062 case "${enableval}" in
3064 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for gcc-warnings option" >&5
3065 echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;}
3066 { (exit 1); exit 1; }; } ;;
3071 if test "${enableval}" = yes; then
3072 echo "$as_me:$LINENO: checking whether compiler accepts -Wall" >&5
3073 echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6
3075 ac_save_CFLAGS
="$CFLAGS"
3076 CFLAGS
="$CFLAGS -Wall"
3077 cat >conftest.
$ac_ext <<_ACEOF
3078 #line $LINENO "configure"
3079 #include "confdefs.h"
3081 #ifdef F77_DUMMY_MAIN
3085 int F77_DUMMY_MAIN() { return 1; }
3095 rm -f conftest.
$ac_objext
3096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3097 (eval $ac_compile) 2>&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); } &&
3101 { ac_try
='test -s conftest.$ac_objext'
3102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }; }; then
3107 WARNING_CFLAGS
="$WARNING_CFLAGS -Wall"
3108 echo "$as_me:$LINENO: result: yes" >&5
3109 echo "${ECHO_T}yes" >&6
3111 echo "$as_me: failed program was:" >&5
3112 cat conftest.
$ac_ext >&5
3113 echo "$as_me:$LINENO: result: no" >&5
3114 echo "${ECHO_T}no" >&6
3116 rm -f conftest.
$ac_objext conftest.
$ac_ext
3117 CFLAGS
="$ac_save_CFLAGS"
3118 echo "$as_me:$LINENO: checking whether compiler accepts -W" >&5
3119 echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6
3121 ac_save_CFLAGS
="$CFLAGS"
3123 cat >conftest.
$ac_ext <<_ACEOF
3124 #line $LINENO "configure"
3125 #include "confdefs.h"
3127 #ifdef F77_DUMMY_MAIN
3131 int F77_DUMMY_MAIN() { return 1; }
3141 rm -f conftest.
$ac_objext
3142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3143 (eval $ac_compile) 2>&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } &&
3147 { ac_try
='test -s conftest.$ac_objext'
3148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; }; then
3153 WARNING_CFLAGS
="$WARNING_CFLAGS -W"
3154 echo "$as_me:$LINENO: result: yes" >&5
3155 echo "${ECHO_T}yes" >&6
3157 echo "$as_me: failed program was:" >&5
3158 cat conftest.
$ac_ext >&5
3159 echo "$as_me:$LINENO: result: no" >&5
3160 echo "${ECHO_T}no" >&6
3162 rm -f conftest.
$ac_objext conftest.
$ac_ext
3163 CFLAGS
="$ac_save_CFLAGS"
3164 echo "$as_me:$LINENO: checking whether compiler accepts -Wbad-function-cast" >&5
3165 echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6
3167 ac_save_CFLAGS
="$CFLAGS"
3168 CFLAGS
="$CFLAGS -Wbad-function-cast"
3169 cat >conftest.
$ac_ext <<_ACEOF
3170 #line $LINENO "configure"
3171 #include "confdefs.h"
3173 #ifdef F77_DUMMY_MAIN
3177 int F77_DUMMY_MAIN() { return 1; }
3187 rm -f conftest.
$ac_objext
3188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3189 (eval $ac_compile) 2>&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); } &&
3193 { ac_try
='test -s conftest.$ac_objext'
3194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; }; then
3199 WARNING_CFLAGS
="$WARNING_CFLAGS -Wbad-function-cast"
3200 echo "$as_me:$LINENO: result: yes" >&5
3201 echo "${ECHO_T}yes" >&6
3203 echo "$as_me: failed program was:" >&5
3204 cat conftest.
$ac_ext >&5
3205 echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6
3208 rm -f conftest.
$ac_objext conftest.
$ac_ext
3209 CFLAGS
="$ac_save_CFLAGS"
3210 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-align" >&5
3211 echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6
3213 ac_save_CFLAGS
="$CFLAGS"
3214 CFLAGS
="$CFLAGS -Wcast-align"
3215 cat >conftest.
$ac_ext <<_ACEOF
3216 #line $LINENO "configure"
3217 #include "confdefs.h"
3219 #ifdef F77_DUMMY_MAIN
3223 int F77_DUMMY_MAIN() { return 1; }
3233 rm -f conftest.
$ac_objext
3234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3235 (eval $ac_compile) 2>&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } &&
3239 { ac_try
='test -s conftest.$ac_objext'
3240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; }; then
3245 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-align"
3246 echo "$as_me:$LINENO: result: yes" >&5
3247 echo "${ECHO_T}yes" >&6
3249 echo "$as_me: failed program was:" >&5
3250 cat conftest.
$ac_ext >&5
3251 echo "$as_me:$LINENO: result: no" >&5
3252 echo "${ECHO_T}no" >&6
3254 rm -f conftest.
$ac_objext conftest.
$ac_ext
3255 CFLAGS
="$ac_save_CFLAGS"
3256 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-qual" >&5
3257 echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6
3259 ac_save_CFLAGS
="$CFLAGS"
3260 CFLAGS
="$CFLAGS -Wcast-qual"
3261 cat >conftest.
$ac_ext <<_ACEOF
3262 #line $LINENO "configure"
3263 #include "confdefs.h"
3265 #ifdef F77_DUMMY_MAIN
3269 int F77_DUMMY_MAIN() { return 1; }
3279 rm -f conftest.
$ac_objext
3280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3281 (eval $ac_compile) 2>&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } &&
3285 { ac_try
='test -s conftest.$ac_objext'
3286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }; }; then
3291 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-qual"
3292 echo "$as_me:$LINENO: result: yes" >&5
3293 echo "${ECHO_T}yes" >&6
3295 echo "$as_me: failed program was:" >&5
3296 cat conftest.
$ac_ext >&5
3297 echo "$as_me:$LINENO: result: no" >&5
3298 echo "${ECHO_T}no" >&6
3300 rm -f conftest.
$ac_objext conftest.
$ac_ext
3301 CFLAGS
="$ac_save_CFLAGS"
3302 echo "$as_me:$LINENO: checking whether compiler accepts -Wformat" >&5
3303 echo $ECHO_N "checking whether compiler accepts -Wformat... $ECHO_C" >&6
3305 ac_save_CFLAGS
="$CFLAGS"
3306 CFLAGS
="$CFLAGS -Wformat"
3307 cat >conftest.
$ac_ext <<_ACEOF
3308 #line $LINENO "configure"
3309 #include "confdefs.h"
3311 #ifdef F77_DUMMY_MAIN
3315 int F77_DUMMY_MAIN() { return 1; }
3325 rm -f conftest.
$ac_objext
3326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3327 (eval $ac_compile) 2>&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } &&
3331 { ac_try
='test -s conftest.$ac_objext'
3332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }; }; then
3337 WARNING_CFLAGS
="$WARNING_CFLAGS -Wformat"
3338 echo "$as_me:$LINENO: result: yes" >&5
3339 echo "${ECHO_T}yes" >&6
3341 echo "$as_me: failed program was:" >&5
3342 cat conftest.
$ac_ext >&5
3343 echo "$as_me:$LINENO: result: no" >&5
3344 echo "${ECHO_T}no" >&6
3346 rm -f conftest.
$ac_objext conftest.
$ac_ext
3347 CFLAGS
="$ac_save_CFLAGS"
3348 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-declarations" >&5
3349 echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6
3351 ac_save_CFLAGS
="$CFLAGS"
3352 CFLAGS
="$CFLAGS -Wmissing-declarations"
3353 cat >conftest.
$ac_ext <<_ACEOF
3354 #line $LINENO "configure"
3355 #include "confdefs.h"
3357 #ifdef F77_DUMMY_MAIN
3361 int F77_DUMMY_MAIN() { return 1; }
3371 rm -f conftest.
$ac_objext
3372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3373 (eval $ac_compile) 2>&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } &&
3377 { ac_try
='test -s conftest.$ac_objext'
3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; }; then
3383 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-declarations"
3384 echo "$as_me:$LINENO: result: yes" >&5
3385 echo "${ECHO_T}yes" >&6
3387 echo "$as_me: failed program was:" >&5
3388 cat conftest.
$ac_ext >&5
3389 echo "$as_me:$LINENO: result: no" >&5
3390 echo "${ECHO_T}no" >&6
3392 rm -f conftest.
$ac_objext conftest.
$ac_ext
3393 CFLAGS
="$ac_save_CFLAGS"
3394 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-prototypes" >&5
3395 echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6
3397 ac_save_CFLAGS
="$CFLAGS"
3398 CFLAGS
="$CFLAGS -Wmissing-prototypes"
3399 cat >conftest.
$ac_ext <<_ACEOF
3400 #line $LINENO "configure"
3401 #include "confdefs.h"
3403 #ifdef F77_DUMMY_MAIN
3407 int F77_DUMMY_MAIN() { return 1; }
3417 rm -f conftest.
$ac_objext
3418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3419 (eval $ac_compile) 2>&5
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); } &&
3423 { ac_try
='test -s conftest.$ac_objext'
3424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); }; }; then
3429 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-prototypes"
3430 echo "$as_me:$LINENO: result: yes" >&5
3431 echo "${ECHO_T}yes" >&6
3433 echo "$as_me: failed program was:" >&5
3434 cat conftest.
$ac_ext >&5
3435 echo "$as_me:$LINENO: result: no" >&5
3436 echo "${ECHO_T}no" >&6
3438 rm -f conftest.
$ac_objext conftest.
$ac_ext
3439 CFLAGS
="$ac_save_CFLAGS"
3440 echo "$as_me:$LINENO: checking whether compiler accepts -Wnested-externs" >&5
3441 echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6
3443 ac_save_CFLAGS
="$CFLAGS"
3444 CFLAGS
="$CFLAGS -Wnested-externs"
3445 cat >conftest.
$ac_ext <<_ACEOF
3446 #line $LINENO "configure"
3447 #include "confdefs.h"
3449 #ifdef F77_DUMMY_MAIN
3453 int F77_DUMMY_MAIN() { return 1; }
3463 rm -f conftest.
$ac_objext
3464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3465 (eval $ac_compile) 2>&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } &&
3469 { ac_try
='test -s conftest.$ac_objext'
3470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; }; then
3475 WARNING_CFLAGS
="$WARNING_CFLAGS -Wnested-externs"
3476 echo "$as_me:$LINENO: result: yes" >&5
3477 echo "${ECHO_T}yes" >&6
3479 echo "$as_me: failed program was:" >&5
3480 cat conftest.
$ac_ext >&5
3481 echo "$as_me:$LINENO: result: no" >&5
3482 echo "${ECHO_T}no" >&6
3484 rm -f conftest.
$ac_objext conftest.
$ac_ext
3485 CFLAGS
="$ac_save_CFLAGS"
3486 echo "$as_me:$LINENO: checking whether compiler accepts -Wshadow" >&5
3487 echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6
3489 ac_save_CFLAGS
="$CFLAGS"
3490 CFLAGS
="$CFLAGS -Wshadow"
3491 cat >conftest.
$ac_ext <<_ACEOF
3492 #line $LINENO "configure"
3493 #include "confdefs.h"
3495 #ifdef F77_DUMMY_MAIN
3499 int F77_DUMMY_MAIN() { return 1; }
3509 rm -f conftest.
$ac_objext
3510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3511 (eval $ac_compile) 2>&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } &&
3515 { ac_try
='test -s conftest.$ac_objext'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; }; then
3521 WARNING_CFLAGS
="$WARNING_CFLAGS -Wshadow"
3522 echo "$as_me:$LINENO: result: yes" >&5
3523 echo "${ECHO_T}yes" >&6
3525 echo "$as_me: failed program was:" >&5
3526 cat conftest.
$ac_ext >&5
3527 echo "$as_me:$LINENO: result: no" >&5
3528 echo "${ECHO_T}no" >&6
3530 rm -f conftest.
$ac_objext conftest.
$ac_ext
3531 CFLAGS
="$ac_save_CFLAGS"
3532 echo "$as_me:$LINENO: checking whether compiler accepts -Wstrict-prototypes" >&5
3533 echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6
3535 ac_save_CFLAGS
="$CFLAGS"
3536 CFLAGS
="$CFLAGS -Wstrict-prototypes"
3537 cat >conftest.
$ac_ext <<_ACEOF
3538 #line $LINENO "configure"
3539 #include "confdefs.h"
3541 #ifdef F77_DUMMY_MAIN
3545 int F77_DUMMY_MAIN() { return 1; }
3555 rm -f conftest.
$ac_objext
3556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3557 (eval $ac_compile) 2>&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); } &&
3561 { ac_try
='test -s conftest.$ac_objext'
3562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); }; }; then
3567 WARNING_CFLAGS
="$WARNING_CFLAGS -Wstrict-prototypes"
3568 echo "$as_me:$LINENO: result: yes" >&5
3569 echo "${ECHO_T}yes" >&6
3571 echo "$as_me: failed program was:" >&5
3572 cat conftest.
$ac_ext >&5
3573 echo "$as_me:$LINENO: result: no" >&5
3574 echo "${ECHO_T}no" >&6
3576 rm -f conftest.
$ac_objext conftest.
$ac_ext
3577 CFLAGS
="$ac_save_CFLAGS"
3578 echo "$as_me:$LINENO: checking whether compiler accepts -Wwrite-strings" >&5
3579 echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6
3581 ac_save_CFLAGS
="$CFLAGS"
3582 CFLAGS
="$CFLAGS -Wwrite-strings"
3583 cat >conftest.
$ac_ext <<_ACEOF
3584 #line $LINENO "configure"
3585 #include "confdefs.h"
3587 #ifdef F77_DUMMY_MAIN
3591 int F77_DUMMY_MAIN() { return 1; }
3601 rm -f conftest.
$ac_objext
3602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3603 (eval $ac_compile) 2>&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } &&
3607 { ac_try
='test -s conftest.$ac_objext'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; }; then
3613 WARNING_CFLAGS
="$WARNING_CFLAGS -Wwrite-strings"
3614 echo "$as_me:$LINENO: result: yes" >&5
3615 echo "${ECHO_T}yes" >&6
3617 echo "$as_me: failed program was:" >&5
3618 cat conftest.
$ac_ext >&5
3619 echo "$as_me:$LINENO: result: no" >&5
3620 echo "${ECHO_T}no" >&6
3622 rm -f conftest.
$ac_objext conftest.
$ac_ext
3623 CFLAGS
="$ac_save_CFLAGS"
3624 CFLAGS
="$CFLAGS $WARNING_CFLAGS"
3627 # Checks for libraries.
3629 cat >>confdefs.h
<<\_ACEOF
3630 #define _GNU_SOURCE 1
3633 # Checks for header files.
3634 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3635 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3636 if test "${ac_cv_header_stdc+set}" = set; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 cat >conftest.
$ac_ext <<_ACEOF
3640 #line $LINENO "configure"
3641 #include "confdefs.h"
3648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3649 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3651 egrep -v '^ *\+' conftest.er1
>conftest.err
3653 cat conftest.err
>&5
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); } >/dev
/null
; then
3656 if test -s conftest.err
; then
3657 ac_cpp_err
=$ac_c_preproc_warn_flag
3664 if test -z "$ac_cpp_err"; then
3665 ac_cv_header_stdc
=yes
3667 echo "$as_me: failed program was:" >&5
3668 cat conftest.
$ac_ext >&5
3669 ac_cv_header_stdc
=no
3671 rm -f conftest.err conftest.
$ac_ext
3673 if test $ac_cv_header_stdc = yes; then
3674 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3675 cat >conftest.
$ac_ext <<_ACEOF
3676 #line $LINENO "configure"
3677 #include "confdefs.h"
3681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3682 egrep "memchr" >/dev
/null
2>&1; then
3685 ac_cv_header_stdc
=no
3691 if test $ac_cv_header_stdc = yes; then
3692 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3693 cat >conftest.
$ac_ext <<_ACEOF
3694 #line $LINENO "configure"
3695 #include "confdefs.h"
3699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3700 egrep "free" >/dev
/null
2>&1; then
3703 ac_cv_header_stdc
=no
3709 if test $ac_cv_header_stdc = yes; then
3710 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3711 if test "$cross_compiling" = yes; then
3714 cat >conftest.
$ac_ext <<_ACEOF
3715 #line $LINENO "configure"
3716 #include "confdefs.h"
3718 #if ((' ' & 0x0FF) == 0x020)
3719 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3720 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3722 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3723 || ('j' <= (c) && (c) <= 'r') \
3724 || ('s' <= (c) && (c) <= 'z'))
3725 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3728 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3733 for (i = 0; i < 256; i++)
3734 if (XOR (islower (i), ISLOWER (i))
3735 || toupper (i) != TOUPPER (i))
3740 rm -f conftest
$ac_exeext
3741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3742 (eval $ac_link) 2>&5
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; }; then
3753 echo "$as_me: program exited with status $ac_status" >&5
3754 echo "$as_me: failed program was:" >&5
3755 cat conftest.
$ac_ext >&5
3756 ac_cv_header_stdc
=no
3758 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3762 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3763 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3764 if test $ac_cv_header_stdc = yes; then
3766 cat >>confdefs.h
<<\_ACEOF
3767 #define STDC_HEADERS 1
3772 for ac_header
in ctype.h locale.h memory.h stdlib.h string.h unistd.h
3774 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3776 echo "$as_me:$LINENO: checking for $ac_header" >&5
3777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3784 # Is the header compilable?
3785 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3787 cat >conftest.
$ac_ext <<_ACEOF
3788 #line $LINENO "configure"
3789 #include "confdefs.h"
3790 $ac_includes_default
3791 #include <$ac_header>
3793 rm -f conftest.
$ac_objext
3794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3795 (eval $ac_compile) 2>&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } &&
3799 { ac_try
='test -s conftest.$ac_objext'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; }; then
3805 ac_header_compiler
=yes
3807 echo "$as_me: failed program was:" >&5
3808 cat conftest.
$ac_ext >&5
3809 ac_header_compiler
=no
3811 rm -f conftest.
$ac_objext conftest.
$ac_ext
3812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3813 echo "${ECHO_T}$ac_header_compiler" >&6
3815 # Is the header present?
3816 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3818 cat >conftest.
$ac_ext <<_ACEOF
3819 #line $LINENO "configure"
3820 #include "confdefs.h"
3821 #include <$ac_header>
3823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3824 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3826 egrep -v '^ *\+' conftest.er1
>conftest.err
3828 cat conftest.err
>&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } >/dev
/null
; then
3831 if test -s conftest.err
; then
3832 ac_cpp_err
=$ac_c_preproc_warn_flag
3839 if test -z "$ac_cpp_err"; then
3840 ac_header_preproc
=yes
3842 echo "$as_me: failed program was:" >&5
3843 cat conftest.
$ac_ext >&5
3844 ac_header_preproc
=no
3846 rm -f conftest.err conftest.
$ac_ext
3847 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3848 echo "${ECHO_T}$ac_header_preproc" >&6
3850 # So? What about this header?
3851 case $ac_header_compiler:$ac_header_preproc in
3853 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
3859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
3860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3865 echo "$as_me:$LINENO: checking for $ac_header" >&5
3866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3870 eval "$as_ac_Header=$ac_header_preproc"
3872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3877 cat >>confdefs.h
<<_ACEOF
3878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3885 # Checks for typedefs.
3887 # Checks for structures.
3889 # Checks for compiler characteristics.
3890 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3891 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3892 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 ac_cv_prog_cc_stdc
=no
3897 cat >conftest.
$ac_ext <<_ACEOF
3898 #line $LINENO "configure"
3899 #include "confdefs.h"
3902 #include <sys/types.h>
3903 #include <sys/stat.h>
3904 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3905 struct buf { int x; };
3906 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3907 static char *e (p, i)
3913 static char *f (char * (*g) (char **, int), char **p, ...)
3918 s = g (p, va_arg (v,int));
3922 int test (int i, double x);
3923 struct s1 {int (*f) (int a);};
3924 struct s2 {int (*f) (double a);};
3925 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3928 #ifdef F77_DUMMY_MAIN
3932 int F77_DUMMY_MAIN() { return 1; }
3937 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3942 # Don't try gcc -ansi; that turns off useful extensions and
3943 # breaks some systems' header files.
3944 # AIX -qlanglvl=ansi
3945 # Ultrix and OSF/1 -std1
3946 # HP-UX 10.20 and later -Ae
3947 # HP-UX older versions -Aa -D_HPUX_SOURCE
3948 # SVR4 -Xc -D__EXTENSIONS__
3949 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3951 CC
="$ac_save_CC $ac_arg"
3952 rm -f conftest.
$ac_objext
3953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3954 (eval $ac_compile) 2>&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } &&
3958 { ac_try
='test -s conftest.$ac_objext'
3959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); }; }; then
3964 ac_cv_prog_cc_stdc
=$ac_arg
3967 echo "$as_me: failed program was:" >&5
3968 cat conftest.
$ac_ext >&5
3970 rm -f conftest.
$ac_objext
3972 rm -f conftest.
$ac_ext conftest.
$ac_objext
3977 case "x$ac_cv_prog_cc_stdc" in
3979 echo "$as_me:$LINENO: result: none needed" >&5
3980 echo "${ECHO_T}none needed" >&6 ;;
3982 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3983 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3984 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3987 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3988 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3989 if test "${ac_cv_c_const+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 cat >conftest.
$ac_ext <<_ACEOF
3993 #line $LINENO "configure"
3994 #include "confdefs.h"
3996 #ifdef F77_DUMMY_MAIN
4000 int F77_DUMMY_MAIN() { return 1; }
4005 /* FIXME: Include the comments suggested by Paul. */
4007 /* Ultrix mips cc rejects this. */
4008 typedef int charset[2];
4010 /* SunOS 4.1.1 cc rejects this. */
4011 char const *const *ccp;
4013 /* NEC SVR4.0.2 mips cc rejects this. */
4014 struct point {int x, y;};
4015 static struct point const zero = {0,0};
4016 /* AIX XL C 1.02.0.0 rejects this.
4017 It does not let you subtract one const X* pointer from another in
4018 an arm of an if-expression whose if-part is not a constant
4020 const char *g = "string";
4021 ccp = &g + (g ? g-g : 0);
4022 /* HPUX 7.0 cc rejects these. */
4025 ccp = (char const *const *) p;
4026 { /* SCO 3.2v4 cc rejects this. */
4028 char const *s = 0 ? (char *) 0 : (char const *) 0;
4032 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4034 const int *foo = &x[0];
4037 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4038 typedef const int *iptr;
4042 { /* AIX XL C 1.02.0.0 rejects this saying
4043 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4044 struct s { int j; const int *ap[3]; };
4045 struct s *b; b->j = 5;
4047 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4056 rm -f conftest.
$ac_objext
4057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058 (eval $ac_compile) 2>&5
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); } &&
4062 { ac_try
='test -s conftest.$ac_objext'
4063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; }; then
4070 echo "$as_me: failed program was:" >&5
4071 cat conftest.
$ac_ext >&5
4074 rm -f conftest.
$ac_objext conftest.
$ac_ext
4076 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4077 echo "${ECHO_T}$ac_cv_c_const" >&6
4078 if test $ac_cv_c_const = no
; then
4080 cat >>confdefs.h
<<\_ACEOF
4086 echo "$as_me:$LINENO: checking for inline" >&5
4087 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4088 if test "${ac_cv_c_inline+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4092 for ac_kw
in inline __inline__ __inline
; do
4093 cat >conftest.
$ac_ext <<_ACEOF
4094 #line $LINENO "configure"
4095 #include "confdefs.h"
4097 static $ac_kw int static_foo () {return 0; }
4098 $ac_kw int foo () {return 0; }
4102 rm -f conftest.
$ac_objext
4103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104 (eval $ac_compile) 2>&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try
='test -s conftest.$ac_objext'
4109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); }; }; then
4114 ac_cv_c_inline
=$ac_kw; break
4116 echo "$as_me: failed program was:" >&5
4117 cat conftest.
$ac_ext >&5
4119 rm -f conftest.
$ac_objext conftest.
$ac_ext
4123 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4124 echo "${ECHO_T}$ac_cv_c_inline" >&6
4125 case $ac_cv_c_inline in
4128 cat >>confdefs.h
<<\_ACEOF
4132 *) cat >>confdefs.h
<<_ACEOF
4133 #define inline $ac_cv_c_inline
4138 echo "$as_me:$LINENO: checking for function prototypes" >&5
4139 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4140 if test "$am_cv_prog_cc_stdc" != no
; then
4141 echo "$as_me:$LINENO: result: yes" >&5
4142 echo "${ECHO_T}yes" >&6
4144 cat >>confdefs.h
<<\_ACEOF
4145 #define PROTOTYPES 1
4150 echo "$as_me:$LINENO: result: no" >&5
4151 echo "${ECHO_T}no" >&6
4152 U
=_ ANSI2KNR
=.
/ansi2knr
4154 # Ensure some checks needed by ansi2knr itself.
4155 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4156 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4157 if test "${ac_cv_header_stdc+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 cat >conftest.
$ac_ext <<_ACEOF
4161 #line $LINENO "configure"
4162 #include "confdefs.h"
4169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4170 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4172 egrep -v '^ *\+' conftest.er1
>conftest.err
4174 cat conftest.err
>&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } >/dev
/null
; then
4177 if test -s conftest.err
; then
4178 ac_cpp_err
=$ac_c_preproc_warn_flag
4185 if test -z "$ac_cpp_err"; then
4186 ac_cv_header_stdc
=yes
4188 echo "$as_me: failed program was:" >&5
4189 cat conftest.
$ac_ext >&5
4190 ac_cv_header_stdc
=no
4192 rm -f conftest.err conftest.
$ac_ext
4194 if test $ac_cv_header_stdc = yes; then
4195 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4196 cat >conftest.
$ac_ext <<_ACEOF
4197 #line $LINENO "configure"
4198 #include "confdefs.h"
4202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4203 egrep "memchr" >/dev
/null
2>&1; then
4206 ac_cv_header_stdc
=no
4212 if test $ac_cv_header_stdc = yes; then
4213 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4214 cat >conftest.
$ac_ext <<_ACEOF
4215 #line $LINENO "configure"
4216 #include "confdefs.h"
4220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4221 egrep "free" >/dev
/null
2>&1; then
4224 ac_cv_header_stdc
=no
4230 if test $ac_cv_header_stdc = yes; then
4231 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4232 if test "$cross_compiling" = yes; then
4235 cat >conftest.
$ac_ext <<_ACEOF
4236 #line $LINENO "configure"
4237 #include "confdefs.h"
4239 #if ((' ' & 0x0FF) == 0x020)
4240 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4241 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4243 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4244 || ('j' <= (c) && (c) <= 'r') \
4245 || ('s' <= (c) && (c) <= 'z'))
4246 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4249 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4254 for (i = 0; i < 256; i++)
4255 if (XOR (islower (i), ISLOWER (i))
4256 || toupper (i) != TOUPPER (i))
4261 rm -f conftest
$ac_exeext
4262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4263 (eval $ac_link) 2>&5
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; }; then
4274 echo "$as_me: program exited with status $ac_status" >&5
4275 echo "$as_me: failed program was:" >&5
4276 cat conftest.
$ac_ext >&5
4277 ac_cv_header_stdc
=no
4279 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4283 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4284 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4285 if test $ac_cv_header_stdc = yes; then
4287 cat >>confdefs.h
<<\_ACEOF
4288 #define STDC_HEADERS 1
4293 for ac_header
in string.h
4295 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4297 echo "$as_me:$LINENO: checking for $ac_header" >&5
4298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4305 # Is the header compilable?
4306 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4308 cat >conftest.
$ac_ext <<_ACEOF
4309 #line $LINENO "configure"
4310 #include "confdefs.h"
4311 $ac_includes_default
4312 #include <$ac_header>
4314 rm -f conftest.
$ac_objext
4315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4316 (eval $ac_compile) 2>&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); } &&
4320 { ac_try
='test -s conftest.$ac_objext'
4321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; }; then
4326 ac_header_compiler
=yes
4328 echo "$as_me: failed program was:" >&5
4329 cat conftest.
$ac_ext >&5
4330 ac_header_compiler
=no
4332 rm -f conftest.
$ac_objext conftest.
$ac_ext
4333 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4334 echo "${ECHO_T}$ac_header_compiler" >&6
4336 # Is the header present?
4337 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4339 cat >conftest.
$ac_ext <<_ACEOF
4340 #line $LINENO "configure"
4341 #include "confdefs.h"
4342 #include <$ac_header>
4344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4345 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4347 egrep -v '^ *\+' conftest.er1
>conftest.err
4349 cat conftest.err
>&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } >/dev
/null
; then
4352 if test -s conftest.err
; then
4353 ac_cpp_err
=$ac_c_preproc_warn_flag
4360 if test -z "$ac_cpp_err"; then
4361 ac_header_preproc
=yes
4363 echo "$as_me: failed program was:" >&5
4364 cat conftest.
$ac_ext >&5
4365 ac_header_preproc
=no
4367 rm -f conftest.err conftest.
$ac_ext
4368 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4369 echo "${ECHO_T}$ac_header_preproc" >&6
4371 # So? What about this header?
4372 case $ac_header_compiler:$ac_header_preproc in
4374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4379 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
4380 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
4381 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4382 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4386 echo "$as_me:$LINENO: checking for $ac_header" >&5
4387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 eval "$as_ac_Header=$ac_header_preproc"
4393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4398 cat >>confdefs.h
<<_ACEOF
4399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4406 # Checks for library functions.
4407 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4408 # for constant arguments. Useless!
4409 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4410 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4411 if test "${ac_cv_working_alloca_h+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 cat >conftest.
$ac_ext <<_ACEOF
4415 #line $LINENO "configure"
4416 #include "confdefs.h"
4418 #ifdef F77_DUMMY_MAIN
4422 int F77_DUMMY_MAIN() { return 1; }
4427 char *p = (char *) alloca (2 * sizeof (int));
4432 rm -f conftest.
$ac_objext conftest
$ac_exeext
4433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4434 (eval $ac_link) 2>&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); } &&
4438 { ac_try
='test -s conftest$ac_exeext'
4439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); }; }; then
4444 ac_cv_working_alloca_h
=yes
4446 echo "$as_me: failed program was:" >&5
4447 cat conftest.
$ac_ext >&5
4448 ac_cv_working_alloca_h
=no
4450 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4452 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4453 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4454 if test $ac_cv_working_alloca_h = yes; then
4456 cat >>confdefs.h
<<\_ACEOF
4457 #define HAVE_ALLOCA_H 1
4462 echo "$as_me:$LINENO: checking for alloca" >&5
4463 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4464 if test "${ac_cv_func_alloca_works+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 cat >conftest.
$ac_ext <<_ACEOF
4468 #line $LINENO "configure"
4469 #include "confdefs.h"
4471 # define alloca __builtin_alloca
4474 # include <malloc.h>
4475 # define alloca _alloca
4478 # include <alloca.h>
4483 # ifndef alloca /* predefined by HP cc +Olibcalls */
4491 #ifdef F77_DUMMY_MAIN
4495 int F77_DUMMY_MAIN() { return 1; }
4500 char *p = (char *) alloca (1);
4505 rm -f conftest.
$ac_objext conftest
$ac_exeext
4506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4507 (eval $ac_link) 2>&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } &&
4511 { ac_try
='test -s conftest$ac_exeext'
4512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; }; then
4517 ac_cv_func_alloca_works
=yes
4519 echo "$as_me: failed program was:" >&5
4520 cat conftest.
$ac_ext >&5
4521 ac_cv_func_alloca_works
=no
4523 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4525 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4526 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4528 if test $ac_cv_func_alloca_works = yes; then
4530 cat >>confdefs.h
<<\_ACEOF
4531 #define HAVE_ALLOCA 1
4535 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4536 # that cause trouble. Some versions do not even contain alloca or
4537 # contain a buggy version. If you still want to use their alloca,
4538 # use ar to extract alloca.o from them instead of compiling alloca.c.
4540 ALLOCA
=alloca.
$ac_objext
4542 cat >>confdefs.h
<<\_ACEOF
4546 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4547 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4548 if test "${ac_cv_os_cray+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4551 cat >conftest.
$ac_ext <<_ACEOF
4552 #line $LINENO "configure"
4553 #include "confdefs.h"
4554 #if defined(CRAY) && ! defined(CRAY2)
4561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4562 egrep "webecray" >/dev
/null
2>&1; then
4570 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4571 echo "${ECHO_T}$ac_cv_os_cray" >&6
4572 if test $ac_cv_os_cray = yes; then
4573 for ac_func
in _getb67 GETB67 getb67
; do
4574 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4575 echo "$as_me:$LINENO: checking for $ac_func" >&5
4576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4577 if eval "test \"\${$as_ac_var+set}\" = set"; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 cat >conftest.
$ac_ext <<_ACEOF
4581 #line $LINENO "configure"
4582 #include "confdefs.h"
4583 /* System header to define __stub macros and hopefully few prototypes,
4584 which can conflict with char $ac_func (); below. */
4586 /* Override any gcc2 internal prototype to avoid an error. */
4590 /* We use char because int might match the return type of a gcc2
4591 builtin and then its argument prototype would still apply. */
4595 #ifdef F77_DUMMY_MAIN
4599 int F77_DUMMY_MAIN() { return 1; }
4604 /* The GNU C library defines this for functions which it implements
4605 to always fail with ENOSYS. Some functions are actually named
4606 something starting with __ and the normal name is an alias. */
4607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4617 rm -f conftest.
$ac_objext conftest
$ac_exeext
4618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4619 (eval $ac_link) 2>&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); } &&
4623 { ac_try
='test -s conftest$ac_exeext'
4624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }; }; then
4629 eval "$as_ac_var=yes"
4631 echo "$as_me: failed program was:" >&5
4632 cat conftest.
$ac_ext >&5
4633 eval "$as_ac_var=no"
4635 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4638 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4639 if test `eval echo '${'$as_ac_var'}'` = yes; then
4641 cat >>confdefs.h
<<_ACEOF
4642 #define CRAY_STACKSEG_END $ac_func
4651 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4652 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4653 if test "${ac_cv_c_stack_direction+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 if test "$cross_compiling" = yes; then
4657 ac_cv_c_stack_direction
=0
4659 cat >conftest.
$ac_ext <<_ACEOF
4660 #line $LINENO "configure"
4661 #include "confdefs.h"
4663 find_stack_direction ()
4665 static char *addr = 0;
4670 return find_stack_direction ();
4673 return (&dummy > addr) ? 1 : -1;
4679 exit (find_stack_direction () < 0);
4682 rm -f conftest
$ac_exeext
4683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4684 (eval $ac_link) 2>&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }; }; then
4693 ac_cv_c_stack_direction
=1
4695 echo "$as_me: program exited with status $ac_status" >&5
4696 echo "$as_me: failed program was:" >&5
4697 cat conftest.
$ac_ext >&5
4698 ac_cv_c_stack_direction
=-1
4700 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4703 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4704 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4706 cat >>confdefs.h
<<_ACEOF
4707 #define STACK_DIRECTION $ac_cv_c_stack_direction
4712 for ac_func
in mkstemp setlocale
4714 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4715 echo "$as_me:$LINENO: checking for $ac_func" >&5
4716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4717 if eval "test \"\${$as_ac_var+set}\" = set"; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 cat >conftest.
$ac_ext <<_ACEOF
4721 #line $LINENO "configure"
4722 #include "confdefs.h"
4723 /* System header to define __stub macros and hopefully few prototypes,
4724 which can conflict with char $ac_func (); below. */
4726 /* Override any gcc2 internal prototype to avoid an error. */
4730 /* We use char because int might match the return type of a gcc2
4731 builtin and then its argument prototype would still apply. */
4735 #ifdef F77_DUMMY_MAIN
4739 int F77_DUMMY_MAIN() { return 1; }
4744 /* The GNU C library defines this for functions which it implements
4745 to always fail with ENOSYS. Some functions are actually named
4746 something starting with __ and the normal name is an alias. */
4747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4757 rm -f conftest.
$ac_objext conftest
$ac_exeext
4758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4759 (eval $ac_link) 2>&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } &&
4763 { ac_try
='test -s conftest$ac_exeext'
4764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; }; then
4769 eval "$as_ac_var=yes"
4771 echo "$as_me: failed program was:" >&5
4772 cat conftest.
$ac_ext >&5
4773 eval "$as_ac_var=no"
4775 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4778 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4779 if test `eval echo '${'$as_ac_var'}'` = yes; then
4780 cat >>confdefs.h
<<_ACEOF
4781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4787 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
4788 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
4789 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4792 cat >conftest.
$ac_ext <<_ACEOF
4793 #line $LINENO "configure"
4794 #include "confdefs.h"
4795 $ac_includes_default
4796 #ifdef F77_DUMMY_MAIN
4800 int F77_DUMMY_MAIN() { return 1; }
4806 char *p = (char *) stpcpy;
4813 rm -f conftest.
$ac_objext
4814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4815 (eval $ac_compile) 2>&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } &&
4819 { ac_try
='test -s conftest.$ac_objext'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; }; then
4825 ac_cv_have_decl_stpcpy
=yes
4827 echo "$as_me: failed program was:" >&5
4828 cat conftest.
$ac_ext >&5
4829 ac_cv_have_decl_stpcpy
=no
4831 rm -f conftest.
$ac_objext conftest.
$ac_ext
4833 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
4834 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
4835 if test $ac_cv_have_decl_stpcpy = yes; then
4837 cat >>confdefs.h
<<_ACEOF
4838 #define HAVE_DECL_STPCPY 1
4842 cat >>confdefs.h
<<_ACEOF
4843 #define HAVE_DECL_STPCPY 0
4847 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
4848 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
4849 if test "${ac_cv_have_decl_strndup+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 cat >conftest.
$ac_ext <<_ACEOF
4853 #line $LINENO "configure"
4854 #include "confdefs.h"
4855 $ac_includes_default
4856 #ifdef F77_DUMMY_MAIN
4860 int F77_DUMMY_MAIN() { return 1; }
4866 char *p = (char *) strndup;
4873 rm -f conftest.
$ac_objext
4874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4875 (eval $ac_compile) 2>&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); } &&
4879 { ac_try
='test -s conftest.$ac_objext'
4880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; }; then
4885 ac_cv_have_decl_strndup
=yes
4887 echo "$as_me: failed program was:" >&5
4888 cat conftest.
$ac_ext >&5
4889 ac_cv_have_decl_strndup
=no
4891 rm -f conftest.
$ac_objext conftest.
$ac_ext
4893 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
4894 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
4895 if test $ac_cv_have_decl_strndup = yes; then
4897 cat >>confdefs.h
<<_ACEOF
4898 #define HAVE_DECL_STRNDUP 1
4902 cat >>confdefs.h
<<_ACEOF
4903 #define HAVE_DECL_STRNDUP 0
4907 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
4908 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
4909 if test "${ac_cv_have_decl_strnlen+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 cat >conftest.
$ac_ext <<_ACEOF
4913 #line $LINENO "configure"
4914 #include "confdefs.h"
4915 $ac_includes_default
4916 #ifdef F77_DUMMY_MAIN
4920 int F77_DUMMY_MAIN() { return 1; }
4926 char *p = (char *) strnlen;
4933 rm -f conftest.
$ac_objext
4934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4935 (eval $ac_compile) 2>&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } &&
4939 { ac_try
='test -s conftest.$ac_objext'
4940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); }; }; then
4945 ac_cv_have_decl_strnlen
=yes
4947 echo "$as_me: failed program was:" >&5
4948 cat conftest.
$ac_ext >&5
4949 ac_cv_have_decl_strnlen
=no
4951 rm -f conftest.
$ac_objext conftest.
$ac_ext
4953 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
4954 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
4955 if test $ac_cv_have_decl_strnlen = yes; then
4957 cat >>confdefs.h
<<_ACEOF
4958 #define HAVE_DECL_STRNLEN 1
4962 cat >>confdefs.h
<<_ACEOF
4963 #define HAVE_DECL_STRNLEN 0
4967 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
4968 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
4969 if test "${ac_cv_have_decl_memchr+set}" = set; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 cat >conftest.
$ac_ext <<_ACEOF
4973 #line $LINENO "configure"
4974 #include "confdefs.h"
4975 $ac_includes_default
4976 #ifdef F77_DUMMY_MAIN
4980 int F77_DUMMY_MAIN() { return 1; }
4986 char *p = (char *) memchr;
4993 rm -f conftest.
$ac_objext
4994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4995 (eval $ac_compile) 2>&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); } &&
4999 { ac_try
='test -s conftest.$ac_objext'
5000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }; }; then
5005 ac_cv_have_decl_memchr
=yes
5007 echo "$as_me: failed program was:" >&5
5008 cat conftest.
$ac_ext >&5
5009 ac_cv_have_decl_memchr
=no
5011 rm -f conftest.
$ac_objext conftest.
$ac_ext
5013 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
5014 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
5015 if test $ac_cv_have_decl_memchr = yes; then
5017 cat >>confdefs.h
<<_ACEOF
5018 #define HAVE_DECL_MEMCHR 1
5022 cat >>confdefs.h
<<_ACEOF
5023 #define HAVE_DECL_MEMCHR 0
5028 for ac_func
in stpcpy strndup strnlen strspn memchr
5030 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5031 echo "$as_me:$LINENO: checking for $ac_func" >&5
5032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5033 if eval "test \"\${$as_ac_var+set}\" = set"; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 cat >conftest.
$ac_ext <<_ACEOF
5037 #line $LINENO "configure"
5038 #include "confdefs.h"
5039 /* System header to define __stub macros and hopefully few prototypes,
5040 which can conflict with char $ac_func (); below. */
5042 /* Override any gcc2 internal prototype to avoid an error. */
5046 /* We use char because int might match the return type of a gcc2
5047 builtin and then its argument prototype would still apply. */
5051 #ifdef F77_DUMMY_MAIN
5055 int F77_DUMMY_MAIN() { return 1; }
5060 /* The GNU C library defines this for functions which it implements
5061 to always fail with ENOSYS. Some functions are actually named
5062 something starting with __ and the normal name is an alias. */
5063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5073 rm -f conftest.
$ac_objext conftest
$ac_exeext
5074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5075 (eval $ac_link) 2>&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } &&
5079 { ac_try
='test -s conftest$ac_exeext'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; }; then
5085 eval "$as_ac_var=yes"
5087 echo "$as_me: failed program was:" >&5
5088 cat conftest.
$ac_ext >&5
5089 eval "$as_ac_var=no"
5091 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5095 if test `eval echo '${'$as_ac_var'}'` = yes; then
5096 cat >>confdefs.h
<<_ACEOF
5097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5101 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
5105 cat >>confdefs.h
<<_ACEOF
5106 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
5109 echo "$as_me:$LINENO: checking for working malloc" >&5
5110 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
5111 if test "${jm_cv_func_working_malloc+set}" = set; then
5112 echo $ECHO_N "(cached) $ECHO_C" >&6
5114 if test "$cross_compiling" = yes; then
5115 jm_cv_func_working_malloc
=no
5117 cat >conftest.
$ac_ext <<_ACEOF
5118 #line $LINENO "configure"
5119 #include "confdefs.h"
5125 exit (malloc (0) ? 0 : 1);
5129 rm -f conftest
$ac_exeext
5130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5131 (eval $ac_link) 2>&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); }; }; then
5140 jm_cv_func_working_malloc
=yes
5142 echo "$as_me: program exited with status $ac_status" >&5
5143 echo "$as_me: failed program was:" >&5
5144 cat conftest.
$ac_ext >&5
5145 jm_cv_func_working_malloc
=no
5147 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5151 echo "$as_me:$LINENO: result: $jm_cv_func_working_malloc" >&5
5152 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
5153 if test $jm_cv_func_working_malloc = no
; then
5155 LIBOBJS
="$LIBOBJS malloc.$ac_objext"
5157 cat >>confdefs.h
<<_ACEOF
5158 #define malloc rpl_malloc
5163 cat >>confdefs.h
<<_ACEOF
5164 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
5167 echo "$as_me:$LINENO: checking for working realloc" >&5
5168 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
5169 if test "${jm_cv_func_working_realloc+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5172 if test "$cross_compiling" = yes; then
5173 jm_cv_func_working_realloc
=no
5175 cat >conftest.
$ac_ext <<_ACEOF
5176 #line $LINENO "configure"
5177 #include "confdefs.h"
5183 exit (realloc (0, 0) ? 0 : 1);
5187 rm -f conftest
$ac_exeext
5188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5189 (eval $ac_link) 2>&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }; }; then
5198 jm_cv_func_working_realloc
=yes
5200 echo "$as_me: program exited with status $ac_status" >&5
5201 echo "$as_me: failed program was:" >&5
5202 cat conftest.
$ac_ext >&5
5203 jm_cv_func_working_realloc
=no
5205 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5209 echo "$as_me:$LINENO: result: $jm_cv_func_working_realloc" >&5
5210 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
5211 if test $jm_cv_func_working_realloc = no
; then
5213 LIBOBJS
="$LIBOBJS realloc.$ac_objext"
5215 cat >>confdefs.h
<<_ACEOF
5216 #define realloc rpl_realloc
5221 for ac_func
in isascii iswprint mbrtowc
5223 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5224 echo "$as_me:$LINENO: checking for $ac_func" >&5
5225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5226 if eval "test \"\${$as_ac_var+set}\" = set"; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 cat >conftest.
$ac_ext <<_ACEOF
5230 #line $LINENO "configure"
5231 #include "confdefs.h"
5232 /* System header to define __stub macros and hopefully few prototypes,
5233 which can conflict with char $ac_func (); below. */
5235 /* Override any gcc2 internal prototype to avoid an error. */
5239 /* We use char because int might match the return type of a gcc2
5240 builtin and then its argument prototype would still apply. */
5244 #ifdef F77_DUMMY_MAIN
5248 int F77_DUMMY_MAIN() { return 1; }
5253 /* The GNU C library defines this for functions which it implements
5254 to always fail with ENOSYS. Some functions are actually named
5255 something starting with __ and the normal name is an alias. */
5256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5266 rm -f conftest.
$ac_objext conftest
$ac_exeext
5267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5268 (eval $ac_link) 2>&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } &&
5272 { ac_try
='test -s conftest$ac_exeext'
5273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }; }; then
5278 eval "$as_ac_var=yes"
5280 echo "$as_me: failed program was:" >&5
5281 cat conftest.
$ac_ext >&5
5282 eval "$as_ac_var=no"
5284 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5287 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5288 if test `eval echo '${'$as_ac_var'}'` = yes; then
5289 cat >>confdefs.h
<<_ACEOF
5290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5296 for ac_header
in limits.h stdlib.h string.h wchar.h wctype.h
5298 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5300 echo "$as_me:$LINENO: checking for $ac_header" >&5
5301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5308 # Is the header compilable?
5309 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5311 cat >conftest.
$ac_ext <<_ACEOF
5312 #line $LINENO "configure"
5313 #include "confdefs.h"
5314 $ac_includes_default
5315 #include <$ac_header>
5317 rm -f conftest.
$ac_objext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319 (eval $ac_compile) 2>&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); } &&
5323 { ac_try
='test -s conftest.$ac_objext'
5324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; }; then
5329 ac_header_compiler
=yes
5331 echo "$as_me: failed program was:" >&5
5332 cat conftest.
$ac_ext >&5
5333 ac_header_compiler
=no
5335 rm -f conftest.
$ac_objext conftest.
$ac_ext
5336 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5337 echo "${ECHO_T}$ac_header_compiler" >&6
5339 # Is the header present?
5340 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5341 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5342 cat >conftest.
$ac_ext <<_ACEOF
5343 #line $LINENO "configure"
5344 #include "confdefs.h"
5345 #include <$ac_header>
5347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5348 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5350 egrep -v '^ *\+' conftest.er1
>conftest.err
5352 cat conftest.err
>&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); } >/dev
/null
; then
5355 if test -s conftest.err
; then
5356 ac_cpp_err
=$ac_c_preproc_warn_flag
5363 if test -z "$ac_cpp_err"; then
5364 ac_header_preproc
=yes
5366 echo "$as_me: failed program was:" >&5
5367 cat conftest.
$ac_ext >&5
5368 ac_header_preproc
=no
5370 rm -f conftest.err conftest.
$ac_ext
5371 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5372 echo "${ECHO_T}$ac_header_preproc" >&6
5374 # So? What about this header?
5375 case $ac_header_compiler:$ac_header_preproc in
5377 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5378 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5382 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5384 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5385 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5389 echo "$as_me:$LINENO: checking for $ac_header" >&5
5390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5394 eval "$as_ac_Header=$ac_header_preproc"
5396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5401 cat >>confdefs.h
<<_ACEOF
5402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5409 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5410 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5411 if test "${ac_cv_header_stdc+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5414 cat >conftest.
$ac_ext <<_ACEOF
5415 #line $LINENO "configure"
5416 #include "confdefs.h"
5423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5424 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5426 egrep -v '^ *\+' conftest.er1
>conftest.err
5428 cat conftest.err
>&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } >/dev
/null
; then
5431 if test -s conftest.err
; then
5432 ac_cpp_err
=$ac_c_preproc_warn_flag
5439 if test -z "$ac_cpp_err"; then
5440 ac_cv_header_stdc
=yes
5442 echo "$as_me: failed program was:" >&5
5443 cat conftest.
$ac_ext >&5
5444 ac_cv_header_stdc
=no
5446 rm -f conftest.err conftest.
$ac_ext
5448 if test $ac_cv_header_stdc = yes; then
5449 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5450 cat >conftest.
$ac_ext <<_ACEOF
5451 #line $LINENO "configure"
5452 #include "confdefs.h"
5456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5457 egrep "memchr" >/dev
/null
2>&1; then
5460 ac_cv_header_stdc
=no
5466 if test $ac_cv_header_stdc = yes; then
5467 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5468 cat >conftest.
$ac_ext <<_ACEOF
5469 #line $LINENO "configure"
5470 #include "confdefs.h"
5474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5475 egrep "free" >/dev
/null
2>&1; then
5478 ac_cv_header_stdc
=no
5484 if test $ac_cv_header_stdc = yes; then
5485 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5486 if test "$cross_compiling" = yes; then
5489 cat >conftest.
$ac_ext <<_ACEOF
5490 #line $LINENO "configure"
5491 #include "confdefs.h"
5493 #if ((' ' & 0x0FF) == 0x020)
5494 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5495 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5497 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5498 || ('j' <= (c) && (c) <= 'r') \
5499 || ('s' <= (c) && (c) <= 'z'))
5500 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5503 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5508 for (i = 0; i < 256; i++)
5509 if (XOR (islower (i), ISLOWER (i))
5510 || toupper (i) != TOUPPER (i))
5515 rm -f conftest
$ac_exeext
5516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5517 (eval $ac_link) 2>&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); }; }; then
5528 echo "$as_me: program exited with status $ac_status" >&5
5529 echo "$as_me: failed program was:" >&5
5530 cat conftest.
$ac_ext >&5
5531 ac_cv_header_stdc
=no
5533 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5537 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5538 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5539 if test $ac_cv_header_stdc = yes; then
5541 cat >>confdefs.h
<<\_ACEOF
5542 #define STDC_HEADERS 1
5547 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
5548 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
5549 if test "${ac_cv_c_backslash_a+set}" = set; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 cat >conftest.
$ac_ext <<_ACEOF
5553 #line $LINENO "configure"
5554 #include "confdefs.h"
5556 #ifdef F77_DUMMY_MAIN
5560 int F77_DUMMY_MAIN() { return 1; }
5569 char buf['\a' == 'a' ? -1 : 1];
5571 return buf[0] != "\a"[0];
5577 rm -f conftest.
$ac_objext
5578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5579 (eval $ac_compile) 2>&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } &&
5583 { ac_try
='test -s conftest.$ac_objext'
5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; }; then
5589 ac_cv_c_backslash_a
=yes
5591 echo "$as_me: failed program was:" >&5
5592 cat conftest.
$ac_ext >&5
5593 ac_cv_c_backslash_a
=no
5595 rm -f conftest.
$ac_objext conftest.
$ac_ext
5597 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
5598 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
5599 if test $ac_cv_c_backslash_a = yes; then
5601 cat >>confdefs.h
<<\_ACEOF
5602 #define HAVE_C_BACKSLASH_A 1
5607 for ac_header
in stdlib.h
5609 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5611 echo "$as_me:$LINENO: checking for $ac_header" >&5
5612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5619 # Is the header compilable?
5620 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5621 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5622 cat >conftest.
$ac_ext <<_ACEOF
5623 #line $LINENO "configure"
5624 #include "confdefs.h"
5625 $ac_includes_default
5626 #include <$ac_header>
5628 rm -f conftest.
$ac_objext
5629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5630 (eval $ac_compile) 2>&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } &&
5634 { ac_try
='test -s conftest.$ac_objext'
5635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; }; then
5640 ac_header_compiler
=yes
5642 echo "$as_me: failed program was:" >&5
5643 cat conftest.
$ac_ext >&5
5644 ac_header_compiler
=no
5646 rm -f conftest.
$ac_objext conftest.
$ac_ext
5647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5648 echo "${ECHO_T}$ac_header_compiler" >&6
5650 # Is the header present?
5651 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5653 cat >conftest.
$ac_ext <<_ACEOF
5654 #line $LINENO "configure"
5655 #include "confdefs.h"
5656 #include <$ac_header>
5658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5659 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5661 egrep -v '^ *\+' conftest.er1
>conftest.err
5663 cat conftest.err
>&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); } >/dev
/null
; then
5666 if test -s conftest.err
; then
5667 ac_cpp_err
=$ac_c_preproc_warn_flag
5674 if test -z "$ac_cpp_err"; then
5675 ac_header_preproc
=yes
5677 echo "$as_me: failed program was:" >&5
5678 cat conftest.
$ac_ext >&5
5679 ac_header_preproc
=no
5681 rm -f conftest.err conftest.
$ac_ext
5682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5683 echo "${ECHO_T}$ac_header_preproc" >&6
5685 # So? What about this header?
5686 case $ac_header_compiler:$ac_header_preproc in
5688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5700 echo "$as_me:$LINENO: checking for $ac_header" >&5
5701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
5705 eval "$as_ac_Header=$ac_header_preproc"
5707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5712 cat >>confdefs.h
<<_ACEOF
5713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5720 echo "$as_me:$LINENO: checking for mbstate_t" >&5
5721 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
5722 if test "${ac_cv_type_mbstate_t+set}" = set; then
5723 echo $ECHO_N "(cached) $ECHO_C" >&6
5725 cat >conftest.
$ac_ext <<_ACEOF
5726 #line $LINENO "configure"
5727 #include "confdefs.h"
5730 # include <stdlib.h>
5733 #ifdef F77_DUMMY_MAIN
5737 int F77_DUMMY_MAIN() { return 1; }
5742 mbstate_t x; return sizeof x;
5747 rm -f conftest.
$ac_objext
5748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5749 (eval $ac_compile) 2>&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } &&
5753 { ac_try
='test -s conftest.$ac_objext'
5754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; }; then
5759 ac_cv_type_mbstate_t
=yes
5761 echo "$as_me: failed program was:" >&5
5762 cat conftest.
$ac_ext >&5
5763 ac_cv_type_mbstate_t
=no
5765 rm -f conftest.
$ac_objext conftest.
$ac_ext
5767 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
5768 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
5769 if test $ac_cv_type_mbstate_t = no
; then
5771 cat >>confdefs.h
<<\_ACEOF
5772 #define mbstate_t int
5777 echo "$as_me:$LINENO: checking for function prototypes" >&5
5778 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5779 if test "$am_cv_prog_cc_stdc" != no
; then
5780 echo "$as_me:$LINENO: result: yes" >&5
5781 echo "${ECHO_T}yes" >&6
5783 cat >>confdefs.h
<<\_ACEOF
5784 #define PROTOTYPES 1
5789 echo "$as_me:$LINENO: result: no" >&5
5790 echo "${ECHO_T}no" >&6
5791 U
=_ ANSI2KNR
=.
/ansi2knr
5793 # Ensure some checks needed by ansi2knr itself.
5794 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5795 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5796 if test "${ac_cv_header_stdc+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 cat >conftest.
$ac_ext <<_ACEOF
5800 #line $LINENO "configure"
5801 #include "confdefs.h"
5808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5809 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5811 egrep -v '^ *\+' conftest.er1
>conftest.err
5813 cat conftest.err
>&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } >/dev
/null
; then
5816 if test -s conftest.err
; then
5817 ac_cpp_err
=$ac_c_preproc_warn_flag
5824 if test -z "$ac_cpp_err"; then
5825 ac_cv_header_stdc
=yes
5827 echo "$as_me: failed program was:" >&5
5828 cat conftest.
$ac_ext >&5
5829 ac_cv_header_stdc
=no
5831 rm -f conftest.err conftest.
$ac_ext
5833 if test $ac_cv_header_stdc = yes; then
5834 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5835 cat >conftest.
$ac_ext <<_ACEOF
5836 #line $LINENO "configure"
5837 #include "confdefs.h"
5841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5842 egrep "memchr" >/dev
/null
2>&1; then
5845 ac_cv_header_stdc
=no
5851 if test $ac_cv_header_stdc = yes; then
5852 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5853 cat >conftest.
$ac_ext <<_ACEOF
5854 #line $LINENO "configure"
5855 #include "confdefs.h"
5859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5860 egrep "free" >/dev
/null
2>&1; then
5863 ac_cv_header_stdc
=no
5869 if test $ac_cv_header_stdc = yes; then
5870 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5871 if test "$cross_compiling" = yes; then
5874 cat >conftest.
$ac_ext <<_ACEOF
5875 #line $LINENO "configure"
5876 #include "confdefs.h"
5878 #if ((' ' & 0x0FF) == 0x020)
5879 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5880 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5882 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5883 || ('j' <= (c) && (c) <= 'r') \
5884 || ('s' <= (c) && (c) <= 'z'))
5885 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5888 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5893 for (i = 0; i < 256; i++)
5894 if (XOR (islower (i), ISLOWER (i))
5895 || toupper (i) != TOUPPER (i))
5900 rm -f conftest
$ac_exeext
5901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5902 (eval $ac_link) 2>&5
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; }; then
5913 echo "$as_me: program exited with status $ac_status" >&5
5914 echo "$as_me: failed program was:" >&5
5915 cat conftest.
$ac_ext >&5
5916 ac_cv_header_stdc
=no
5918 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5922 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5923 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5924 if test $ac_cv_header_stdc = yes; then
5926 cat >>confdefs.h
<<\_ACEOF
5927 #define STDC_HEADERS 1
5932 for ac_header
in string.h
5934 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5936 echo "$as_me:$LINENO: checking for $ac_header" >&5
5937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5944 # Is the header compilable?
5945 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5946 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5947 cat >conftest.
$ac_ext <<_ACEOF
5948 #line $LINENO "configure"
5949 #include "confdefs.h"
5950 $ac_includes_default
5951 #include <$ac_header>
5953 rm -f conftest.
$ac_objext
5954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5955 (eval $ac_compile) 2>&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } &&
5959 { ac_try
='test -s conftest.$ac_objext'
5960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; }; then
5965 ac_header_compiler
=yes
5967 echo "$as_me: failed program was:" >&5
5968 cat conftest.
$ac_ext >&5
5969 ac_header_compiler
=no
5971 rm -f conftest.
$ac_objext conftest.
$ac_ext
5972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5973 echo "${ECHO_T}$ac_header_compiler" >&6
5975 # Is the header present?
5976 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5978 cat >conftest.
$ac_ext <<_ACEOF
5979 #line $LINENO "configure"
5980 #include "confdefs.h"
5981 #include <$ac_header>
5983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5984 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5986 egrep -v '^ *\+' conftest.er1
>conftest.err
5988 cat conftest.err
>&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } >/dev
/null
; then
5991 if test -s conftest.err
; then
5992 ac_cpp_err
=$ac_c_preproc_warn_flag
5999 if test -z "$ac_cpp_err"; then
6000 ac_header_preproc
=yes
6002 echo "$as_me: failed program was:" >&5
6003 cat conftest.
$ac_ext >&5
6004 ac_header_preproc
=no
6006 rm -f conftest.err conftest.
$ac_ext
6007 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6008 echo "${ECHO_T}$ac_header_preproc" >&6
6010 # So? What about this header?
6011 case $ac_header_compiler:$ac_header_preproc in
6013 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6014 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6016 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6021 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6023 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6025 echo "$as_me:$LINENO: checking for $ac_header" >&5
6026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6030 eval "$as_ac_Header=$ac_header_preproc"
6032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6037 cat >>confdefs.h
<<_ACEOF
6038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6045 for ac_func
in strerror strerror_r vprintf doprnt
6047 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6048 echo "$as_me:$LINENO: checking for $ac_func" >&5
6049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6050 if eval "test \"\${$as_ac_var+set}\" = set"; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 cat >conftest.
$ac_ext <<_ACEOF
6054 #line $LINENO "configure"
6055 #include "confdefs.h"
6056 /* System header to define __stub macros and hopefully few prototypes,
6057 which can conflict with char $ac_func (); below. */
6059 /* Override any gcc2 internal prototype to avoid an error. */
6063 /* We use char because int might match the return type of a gcc2
6064 builtin and then its argument prototype would still apply. */
6068 #ifdef F77_DUMMY_MAIN
6072 int F77_DUMMY_MAIN() { return 1; }
6077 /* The GNU C library defines this for functions which it implements
6078 to always fail with ENOSYS. Some functions are actually named
6079 something starting with __ and the normal name is an alias. */
6080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6090 rm -f conftest.
$ac_objext conftest
$ac_exeext
6091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6092 (eval $ac_link) 2>&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); } &&
6096 { ac_try
='test -s conftest$ac_exeext'
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; }; then
6102 eval "$as_ac_var=yes"
6104 echo "$as_me: failed program was:" >&5
6105 cat conftest.
$ac_ext >&5
6106 eval "$as_ac_var=no"
6108 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6111 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6112 if test `eval echo '${'$as_ac_var'}'` = yes; then
6113 cat >>confdefs.h
<<_ACEOF
6114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6120 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6121 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6122 if test "${ac_cv_header_stdc+set}" = set; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 cat >conftest.
$ac_ext <<_ACEOF
6126 #line $LINENO "configure"
6127 #include "confdefs.h"
6134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6135 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6137 egrep -v '^ *\+' conftest.er1
>conftest.err
6139 cat conftest.err
>&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); } >/dev
/null
; then
6142 if test -s conftest.err
; then
6143 ac_cpp_err
=$ac_c_preproc_warn_flag
6150 if test -z "$ac_cpp_err"; then
6151 ac_cv_header_stdc
=yes
6153 echo "$as_me: failed program was:" >&5
6154 cat conftest.
$ac_ext >&5
6155 ac_cv_header_stdc
=no
6157 rm -f conftest.err conftest.
$ac_ext
6159 if test $ac_cv_header_stdc = yes; then
6160 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6161 cat >conftest.
$ac_ext <<_ACEOF
6162 #line $LINENO "configure"
6163 #include "confdefs.h"
6167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6168 egrep "memchr" >/dev
/null
2>&1; then
6171 ac_cv_header_stdc
=no
6177 if test $ac_cv_header_stdc = yes; then
6178 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6179 cat >conftest.
$ac_ext <<_ACEOF
6180 #line $LINENO "configure"
6181 #include "confdefs.h"
6185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6186 egrep "free" >/dev
/null
2>&1; then
6189 ac_cv_header_stdc
=no
6195 if test $ac_cv_header_stdc = yes; then
6196 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6197 if test "$cross_compiling" = yes; then
6200 cat >conftest.
$ac_ext <<_ACEOF
6201 #line $LINENO "configure"
6202 #include "confdefs.h"
6204 #if ((' ' & 0x0FF) == 0x020)
6205 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6206 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6208 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6209 || ('j' <= (c) && (c) <= 'r') \
6210 || ('s' <= (c) && (c) <= 'z'))
6211 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6214 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6219 for (i = 0; i < 256; i++)
6220 if (XOR (islower (i), ISLOWER (i))
6221 || toupper (i) != TOUPPER (i))
6226 rm -f conftest
$ac_exeext
6227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6228 (eval $ac_link) 2>&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; }; then
6239 echo "$as_me: program exited with status $ac_status" >&5
6240 echo "$as_me: failed program was:" >&5
6241 cat conftest.
$ac_ext >&5
6242 ac_cv_header_stdc
=no
6244 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6248 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6249 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6250 if test $ac_cv_header_stdc = yes; then
6252 cat >>confdefs.h
<<\_ACEOF
6253 #define STDC_HEADERS 1
6258 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
6259 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
6260 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
6263 cat >conftest.
$ac_ext <<_ACEOF
6264 #line $LINENO "configure"
6265 #include "confdefs.h"
6266 $ac_includes_default
6267 #ifdef F77_DUMMY_MAIN
6271 int F77_DUMMY_MAIN() { return 1; }
6277 char *p = (char *) strerror_r;
6284 rm -f conftest.
$ac_objext
6285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6286 (eval $ac_compile) 2>&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } &&
6290 { ac_try
='test -s conftest.$ac_objext'
6291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; }; then
6296 ac_cv_have_decl_strerror_r
=yes
6298 echo "$as_me: failed program was:" >&5
6299 cat conftest.
$ac_ext >&5
6300 ac_cv_have_decl_strerror_r
=no
6302 rm -f conftest.
$ac_objext conftest.
$ac_ext
6304 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
6305 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
6306 if test $ac_cv_have_decl_strerror_r = yes; then
6308 cat >>confdefs.h
<<_ACEOF
6309 #define HAVE_DECL_STRERROR_R 1
6313 cat >>confdefs.h
<<_ACEOF
6314 #define HAVE_DECL_STRERROR_R 0
6319 for ac_func
in strerror_r
6321 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6322 echo "$as_me:$LINENO: checking for $ac_func" >&5
6323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6324 if eval "test \"\${$as_ac_var+set}\" = set"; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 cat >conftest.
$ac_ext <<_ACEOF
6328 #line $LINENO "configure"
6329 #include "confdefs.h"
6330 /* System header to define __stub macros and hopefully few prototypes,
6331 which can conflict with char $ac_func (); below. */
6333 /* Override any gcc2 internal prototype to avoid an error. */
6337 /* We use char because int might match the return type of a gcc2
6338 builtin and then its argument prototype would still apply. */
6342 #ifdef F77_DUMMY_MAIN
6346 int F77_DUMMY_MAIN() { return 1; }
6351 /* The GNU C library defines this for functions which it implements
6352 to always fail with ENOSYS. Some functions are actually named
6353 something starting with __ and the normal name is an alias. */
6354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6364 rm -f conftest.
$ac_objext conftest
$ac_exeext
6365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6366 (eval $ac_link) 2>&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); } &&
6370 { ac_try
='test -s conftest$ac_exeext'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; }; then
6376 eval "$as_ac_var=yes"
6378 echo "$as_me: failed program was:" >&5
6379 cat conftest.
$ac_ext >&5
6380 eval "$as_ac_var=no"
6382 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6385 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6386 if test `eval echo '${'$as_ac_var'}'` = yes; then
6387 cat >>confdefs.h
<<_ACEOF
6388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6394 if test $ac_cv_func_strerror_r = yes; then
6396 for ac_header
in string.h
6398 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6400 echo "$as_me:$LINENO: checking for $ac_header" >&5
6401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
6405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6408 # Is the header compilable?
6409 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6411 cat >conftest.
$ac_ext <<_ACEOF
6412 #line $LINENO "configure"
6413 #include "confdefs.h"
6414 $ac_includes_default
6415 #include <$ac_header>
6417 rm -f conftest.
$ac_objext
6418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6419 (eval $ac_compile) 2>&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } &&
6423 { ac_try
='test -s conftest.$ac_objext'
6424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; }; then
6429 ac_header_compiler
=yes
6431 echo "$as_me: failed program was:" >&5
6432 cat conftest.
$ac_ext >&5
6433 ac_header_compiler
=no
6435 rm -f conftest.
$ac_objext conftest.
$ac_ext
6436 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6437 echo "${ECHO_T}$ac_header_compiler" >&6
6439 # Is the header present?
6440 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6441 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6442 cat >conftest.
$ac_ext <<_ACEOF
6443 #line $LINENO "configure"
6444 #include "confdefs.h"
6445 #include <$ac_header>
6447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6448 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6450 egrep -v '^ *\+' conftest.er1
>conftest.err
6452 cat conftest.err
>&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); } >/dev
/null
; then
6455 if test -s conftest.err
; then
6456 ac_cpp_err
=$ac_c_preproc_warn_flag
6463 if test -z "$ac_cpp_err"; then
6464 ac_header_preproc
=yes
6466 echo "$as_me: failed program was:" >&5
6467 cat conftest.
$ac_ext >&5
6468 ac_header_preproc
=no
6470 rm -f conftest.err conftest.
$ac_ext
6471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6472 echo "${ECHO_T}$ac_header_preproc" >&6
6474 # So? What about this header?
6475 case $ac_header_compiler:$ac_header_preproc in
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6485 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6489 echo "$as_me:$LINENO: checking for $ac_header" >&5
6490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6494 eval "$as_ac_Header=$ac_header_preproc"
6496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6501 cat >>confdefs.h
<<_ACEOF
6502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6509 echo "$as_me:$LINENO: checking for working strerror_r" >&5
6510 echo $ECHO_N "checking for working strerror_r... $ECHO_C" >&6
6511 if test "${ac_cv_func_strerror_r_works+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 cat >conftest.
$ac_ext <<_ACEOF
6516 #line $LINENO "configure"
6517 #include "confdefs.h"
6521 # include <string.h>
6524 #ifdef F77_DUMMY_MAIN
6528 int F77_DUMMY_MAIN() { return 1; }
6535 char x = *strerror_r (0, buf, sizeof buf);
6541 rm -f conftest.
$ac_objext
6542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6543 (eval $ac_compile) 2>&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } &&
6547 { ac_try
='test -s conftest.$ac_objext'
6548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); }; }; then
6553 ac_cv_func_strerror_r_works
=yes
6555 echo "$as_me: failed program was:" >&5
6556 cat conftest.
$ac_ext >&5
6557 ac_cv_func_strerror_r_works
=no
6560 rm -f conftest.
$ac_objext conftest.
$ac_ext
6561 if test $ac_cv_func_strerror_r_works = no
; then
6562 # strerror_r seems not to work, but now we have to choose between
6563 # systems that have relatively inaccessible declarations for the
6564 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
6565 # former has a strerror_r that returns char*, while the latter
6566 # has a strerror_r that returns `int'.
6567 # This test should segfault on the DEC system.
6568 if test "$cross_compiling" = yes; then
6569 ac_cv_func_strerror_r_works
=no
6571 cat >conftest.
$ac_ext <<_ACEOF
6572 #line $LINENO "configure"
6573 #include "confdefs.h"
6576 # include <string.h>
6579 extern char *strerror_r ();
6585 char x = *strerror_r (0, buf, sizeof buf);
6586 exit (!isalpha (x));
6590 rm -f conftest
$ac_exeext
6591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6592 (eval $ac_link) 2>&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); }; }; then
6601 ac_cv_func_strerror_r_works
=yes
6603 echo "$as_me: program exited with status $ac_status" >&5
6604 echo "$as_me: failed program was:" >&5
6605 cat conftest.
$ac_ext >&5
6606 ac_cv_func_strerror_r_works
=no
6608 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6613 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_works" >&5
6614 echo "${ECHO_T}$ac_cv_func_strerror_r_works" >&6
6615 if test $ac_cv_func_strerror_r_works = yes; then
6617 cat >>confdefs.h
<<_ACEOF
6618 #define HAVE_WORKING_STRERROR_R 1
6624 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
6625 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
6627 # Check whether --with-dmalloc or --without-dmalloc was given.
6628 if test "${with_dmalloc+set}" = set; then
6629 withval
="$with_dmalloc"
6630 if test "$withval" = yes; then
6631 echo "$as_me:$LINENO: result: yes" >&5
6632 echo "${ECHO_T}yes" >&6
6634 cat >>confdefs.h
<<\_ACEOF
6635 #define WITH_DMALLOC 1
6638 LIBS
="$LIBS -ldmalloc"
6639 LDFLAGS
="$LDFLAGS -g"
6641 echo "$as_me:$LINENO: result: no" >&5
6642 echo "${ECHO_T}no" >&6
6645 echo "$as_me:$LINENO: result: no" >&5
6646 echo "${ECHO_T}no" >&6
6649 ALL_LINGUAS
="de es et fr ja nl tr ru"
6650 # Make sure we can run config.sub.
6651 $ac_config_sub sun4
>/dev
/null
2>&1 ||
6652 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6653 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6654 { (exit 1); exit 1; }; }
6656 echo "$as_me:$LINENO: checking build system type" >&5
6657 echo $ECHO_N "checking build system type... $ECHO_C" >&6
6658 if test "${ac_cv_build+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6661 ac_cv_build_alias
=$build_alias
6662 test -z "$ac_cv_build_alias" &&
6663 ac_cv_build_alias
=`$ac_config_guess`
6664 test -z "$ac_cv_build_alias" &&
6665 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6666 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6667 { (exit 1); exit 1; }; }
6668 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
6669 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed." >&5
6670 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
6671 { (exit 1); exit 1; }; }
6674 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6675 echo "${ECHO_T}$ac_cv_build" >&6
6677 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6678 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6679 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6681 echo "$as_me:$LINENO: checking host system type" >&5
6682 echo $ECHO_N "checking host system type... $ECHO_C" >&6
6683 if test "${ac_cv_host+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 ac_cv_host_alias
=$host_alias
6687 test -z "$ac_cv_host_alias" &&
6688 ac_cv_host_alias
=$ac_cv_build_alias
6689 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
6690 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6691 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6692 { (exit 1); exit 1; }; }
6695 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6696 echo "${ECHO_T}$ac_cv_host" >&6
6698 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6699 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6700 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6702 echo "$as_me:$LINENO: checking for off_t" >&5
6703 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6704 if test "${ac_cv_type_off_t+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 cat >conftest.
$ac_ext <<_ACEOF
6708 #line $LINENO "configure"
6709 #include "confdefs.h"
6710 $ac_includes_default
6711 #ifdef F77_DUMMY_MAIN
6715 int F77_DUMMY_MAIN() { return 1; }
6728 rm -f conftest.
$ac_objext
6729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6730 (eval $ac_compile) 2>&5
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } &&
6734 { ac_try
='test -s conftest.$ac_objext'
6735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); }; }; then
6740 ac_cv_type_off_t
=yes
6742 echo "$as_me: failed program was:" >&5
6743 cat conftest.
$ac_ext >&5
6746 rm -f conftest.
$ac_objext conftest.
$ac_ext
6748 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6749 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6750 if test $ac_cv_type_off_t = yes; then
6754 cat >>confdefs.h
<<_ACEOF
6760 echo "$as_me:$LINENO: checking for size_t" >&5
6761 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6762 if test "${ac_cv_type_size_t+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 cat >conftest.
$ac_ext <<_ACEOF
6766 #line $LINENO "configure"
6767 #include "confdefs.h"
6768 $ac_includes_default
6769 #ifdef F77_DUMMY_MAIN
6773 int F77_DUMMY_MAIN() { return 1; }
6780 if (sizeof (size_t))
6786 rm -f conftest.
$ac_objext
6787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6788 (eval $ac_compile) 2>&5
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } &&
6792 { ac_try
='test -s conftest.$ac_objext'
6793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); }; }; then
6798 ac_cv_type_size_t
=yes
6800 echo "$as_me: failed program was:" >&5
6801 cat conftest.
$ac_ext >&5
6802 ac_cv_type_size_t
=no
6804 rm -f conftest.
$ac_objext conftest.
$ac_ext
6806 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6807 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6808 if test $ac_cv_type_size_t = yes; then
6812 cat >>confdefs.h
<<_ACEOF
6813 #define size_t unsigned
6818 for ac_header
in stdlib.h unistd.h
6820 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6822 echo "$as_me:$LINENO: checking for $ac_header" >&5
6823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6830 # Is the header compilable?
6831 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6833 cat >conftest.
$ac_ext <<_ACEOF
6834 #line $LINENO "configure"
6835 #include "confdefs.h"
6836 $ac_includes_default
6837 #include <$ac_header>
6839 rm -f conftest.
$ac_objext
6840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6841 (eval $ac_compile) 2>&5
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); } &&
6845 { ac_try
='test -s conftest.$ac_objext'
6846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); }; }; then
6851 ac_header_compiler
=yes
6853 echo "$as_me: failed program was:" >&5
6854 cat conftest.
$ac_ext >&5
6855 ac_header_compiler
=no
6857 rm -f conftest.
$ac_objext conftest.
$ac_ext
6858 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6859 echo "${ECHO_T}$ac_header_compiler" >&6
6861 # Is the header present?
6862 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6864 cat >conftest.
$ac_ext <<_ACEOF
6865 #line $LINENO "configure"
6866 #include "confdefs.h"
6867 #include <$ac_header>
6869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6870 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6872 egrep -v '^ *\+' conftest.er1
>conftest.err
6874 cat conftest.err
>&5
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); } >/dev
/null
; then
6877 if test -s conftest.err
; then
6878 ac_cpp_err
=$ac_c_preproc_warn_flag
6885 if test -z "$ac_cpp_err"; then
6886 ac_header_preproc
=yes
6888 echo "$as_me: failed program was:" >&5
6889 cat conftest.
$ac_ext >&5
6890 ac_header_preproc
=no
6892 rm -f conftest.err conftest.
$ac_ext
6893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6894 echo "${ECHO_T}$ac_header_preproc" >&6
6896 # So? What about this header?
6897 case $ac_header_compiler:$ac_header_preproc in
6899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6907 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6911 echo "$as_me:$LINENO: checking for $ac_header" >&5
6912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
6916 eval "$as_ac_Header=$ac_header_preproc"
6918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6923 cat >>confdefs.h
<<_ACEOF
6924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6931 for ac_func
in getpagesize
6933 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6934 echo "$as_me:$LINENO: checking for $ac_func" >&5
6935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6936 if eval "test \"\${$as_ac_var+set}\" = set"; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6939 cat >conftest.
$ac_ext <<_ACEOF
6940 #line $LINENO "configure"
6941 #include "confdefs.h"
6942 /* System header to define __stub macros and hopefully few prototypes,
6943 which can conflict with char $ac_func (); below. */
6945 /* Override any gcc2 internal prototype to avoid an error. */
6949 /* We use char because int might match the return type of a gcc2
6950 builtin and then its argument prototype would still apply. */
6954 #ifdef F77_DUMMY_MAIN
6958 int F77_DUMMY_MAIN() { return 1; }
6963 /* The GNU C library defines this for functions which it implements
6964 to always fail with ENOSYS. Some functions are actually named
6965 something starting with __ and the normal name is an alias. */
6966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6976 rm -f conftest.
$ac_objext conftest
$ac_exeext
6977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6978 (eval $ac_link) 2>&5
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); } &&
6982 { ac_try
='test -s conftest$ac_exeext'
6983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); }; }; then
6988 eval "$as_ac_var=yes"
6990 echo "$as_me: failed program was:" >&5
6991 cat conftest.
$ac_ext >&5
6992 eval "$as_ac_var=no"
6994 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6997 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6998 if test `eval echo '${'$as_ac_var'}'` = yes; then
6999 cat >>confdefs.h
<<_ACEOF
7000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7006 echo "$as_me:$LINENO: checking for working mmap" >&5
7007 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7008 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7011 if test "$cross_compiling" = yes; then
7012 ac_cv_func_mmap_fixed_mapped
=no
7014 cat >conftest.
$ac_ext <<_ACEOF
7015 #line $LINENO "configure"
7016 #include "confdefs.h"
7017 $ac_includes_default
7018 /* Thanks to Mike Haertel and Jim Avera for this test.
7019 Here is a matrix of mmap possibilities:
7020 mmap private not fixed
7021 mmap private fixed at somewhere currently unmapped
7022 mmap private fixed at somewhere already mapped
7023 mmap shared not fixed
7024 mmap shared fixed at somewhere currently unmapped
7025 mmap shared fixed at somewhere already mapped
7026 For private mappings, we should verify that changes cannot be read()
7027 back from the file, nor mmap's back from the file at a different
7028 address. (There have been systems where private was not correctly
7029 implemented like the infamous i386 svr4.0, and systems where the
7030 VM page cache was not coherent with the file system buffer cache
7031 like early versions of FreeBSD and possibly contemporary NetBSD.)
7032 For shared mappings, we should conversely verify that changes get
7033 propogated back to all the places they're supposed to be.
7035 Grep wants private fixed already mapped.
7036 The main things grep needs to know about mmap are:
7037 * does it exist and is it safe to write into the mmap'd area
7038 * how to use it (BSD variants) */
7041 #include <sys/mman.h>
7043 #if !STDC_HEADERS && !HAVE_STDLIB_H
7047 /* This mess was copied from the GNU getpagesize.h. */
7048 #if !HAVE_GETPAGESIZE
7049 /* Assume that all systems that can run configure have sys/param.h. */
7050 # if !HAVE_SYS_PARAM_H
7051 # define HAVE_SYS_PARAM_H 1
7054 # ifdef _SC_PAGESIZE
7055 # define getpagesize() sysconf(_SC_PAGESIZE)
7056 # else /* no _SC_PAGESIZE */
7057 # if HAVE_SYS_PARAM_H
7058 # include <sys/param.h>
7059 # ifdef EXEC_PAGESIZE
7060 # define getpagesize() EXEC_PAGESIZE
7061 # else /* no EXEC_PAGESIZE */
7063 # define getpagesize() NBPG * CLSIZE
7066 # endif /* no CLSIZE */
7067 # else /* no NBPG */
7069 # define getpagesize() NBPC
7070 # else /* no NBPC */
7072 # define getpagesize() PAGESIZE
7073 # endif /* PAGESIZE */
7074 # endif /* no NBPC */
7075 # endif /* no NBPG */
7076 # endif /* no EXEC_PAGESIZE */
7077 # else /* no HAVE_SYS_PARAM_H */
7078 # define getpagesize() 8192 /* punt totally */
7079 # endif /* no HAVE_SYS_PARAM_H */
7080 # endif /* no _SC_PAGESIZE */
7082 #endif /* no HAVE_GETPAGESIZE */
7087 char *data, *data2, *data3;
7091 pagesize = getpagesize ();
7093 /* First, make a file with some known garbage in it. */
7094 data = (char *) malloc (pagesize);
7097 for (i = 0; i < pagesize; ++i)
7098 *(data + i) = rand ();
7100 fd = creat ("conftest.mmap", 0600);
7103 if (write (fd, data, pagesize) != pagesize)
7107 /* Next, try to mmap the file at a fixed address which already has
7108 something else allocated at it. If we can, also make sure that
7109 we see the same garbage. */
7110 fd = open ("conftest.mmap", O_RDWR);
7113 data2 = (char *) malloc (2 * pagesize);
7116 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7117 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7118 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7120 for (i = 0; i < pagesize; ++i)
7121 if (*(data + i) != *(data2 + i))
7124 /* Finally, make sure that changes to the mapped area do not
7125 percolate back to the file as seen by read(). (This is a bug on
7126 some variants of i386 svr4.0.) */
7127 for (i = 0; i < pagesize; ++i)
7128 *(data2 + i) = *(data2 + i) + 1;
7129 data3 = (char *) malloc (pagesize);
7132 if (read (fd, data3, pagesize) != pagesize)
7134 for (i = 0; i < pagesize; ++i)
7135 if (*(data + i) != *(data3 + i))
7141 rm -f conftest
$ac_exeext
7142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7143 (eval $ac_link) 2>&5
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); }; }; then
7152 ac_cv_func_mmap_fixed_mapped
=yes
7154 echo "$as_me: program exited with status $ac_status" >&5
7155 echo "$as_me: failed program was:" >&5
7156 cat conftest.
$ac_ext >&5
7157 ac_cv_func_mmap_fixed_mapped
=no
7159 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7162 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7163 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7164 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7166 cat >>confdefs.h
<<\_ACEOF
7173 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7174 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7175 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7178 cat >conftest.
$ac_ext <<_ACEOF
7179 #line $LINENO "configure"
7180 #include "confdefs.h"
7182 #include <features.h>
7183 #ifdef __GNU_LIBRARY__
7184 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7191 egrep "Lucky GNU user" >/dev
/null
2>&1; then
7192 ac_cv_gnu_library_2_1
=yes
7194 ac_cv_gnu_library_2_1
=no
7199 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7200 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7202 GLIBC21
="$ac_cv_gnu_library_2_1"
7204 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7205 stdlib.h string.h unistd.h sys
/param.h
7207 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7209 echo "$as_me:$LINENO: checking for $ac_header" >&5
7210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7217 # Is the header compilable?
7218 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7219 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7220 cat >conftest.
$ac_ext <<_ACEOF
7221 #line $LINENO "configure"
7222 #include "confdefs.h"
7223 $ac_includes_default
7224 #include <$ac_header>
7226 rm -f conftest.
$ac_objext
7227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7228 (eval $ac_compile) 2>&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); } &&
7232 { ac_try
='test -s conftest.$ac_objext'
7233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; }; then
7238 ac_header_compiler
=yes
7240 echo "$as_me: failed program was:" >&5
7241 cat conftest.
$ac_ext >&5
7242 ac_header_compiler
=no
7244 rm -f conftest.
$ac_objext conftest.
$ac_ext
7245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7246 echo "${ECHO_T}$ac_header_compiler" >&6
7248 # Is the header present?
7249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7251 cat >conftest.
$ac_ext <<_ACEOF
7252 #line $LINENO "configure"
7253 #include "confdefs.h"
7254 #include <$ac_header>
7256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7257 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7259 egrep -v '^ *\+' conftest.er1
>conftest.err
7261 cat conftest.err
>&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } >/dev
/null
; then
7264 if test -s conftest.err
; then
7265 ac_cpp_err
=$ac_c_preproc_warn_flag
7272 if test -z "$ac_cpp_err"; then
7273 ac_header_preproc
=yes
7275 echo "$as_me: failed program was:" >&5
7276 cat conftest.
$ac_ext >&5
7277 ac_header_preproc
=no
7279 rm -f conftest.err conftest.
$ac_ext
7280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7281 echo "${ECHO_T}$ac_header_preproc" >&6
7283 # So? What about this header?
7284 case $ac_header_compiler:$ac_header_preproc in
7286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7294 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7298 echo "$as_me:$LINENO: checking for $ac_header" >&5
7299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7303 eval "$as_ac_Header=$ac_header_preproc"
7305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7310 cat >>confdefs.h
<<_ACEOF
7311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7318 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
7319 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
7320 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
7322 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7323 echo "$as_me:$LINENO: checking for $ac_func" >&5
7324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7325 if eval "test \"\${$as_ac_var+set}\" = set"; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7328 cat >conftest.
$ac_ext <<_ACEOF
7329 #line $LINENO "configure"
7330 #include "confdefs.h"
7331 /* System header to define __stub macros and hopefully few prototypes,
7332 which can conflict with char $ac_func (); below. */
7334 /* Override any gcc2 internal prototype to avoid an error. */
7338 /* We use char because int might match the return type of a gcc2
7339 builtin and then its argument prototype would still apply. */
7343 #ifdef F77_DUMMY_MAIN
7347 int F77_DUMMY_MAIN() { return 1; }
7352 /* The GNU C library defines this for functions which it implements
7353 to always fail with ENOSYS. Some functions are actually named
7354 something starting with __ and the normal name is an alias. */
7355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7365 rm -f conftest.
$ac_objext conftest
$ac_exeext
7366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7367 (eval $ac_link) 2>&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); } &&
7371 { ac_try
='test -s conftest$ac_exeext'
7372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); }; }; then
7377 eval "$as_ac_var=yes"
7379 echo "$as_me: failed program was:" >&5
7380 cat conftest.
$ac_ext >&5
7381 eval "$as_ac_var=no"
7383 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7387 if test `eval echo '${'$as_ac_var'}'` = yes; then
7388 cat >>confdefs.h
<<_ACEOF
7389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7395 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7396 if test "${with_libiconv_prefix+set}" = set; then
7397 withval
="$with_libiconv_prefix"
7399 for dir
in `echo "$withval" | tr : ' '`; do
7400 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
7401 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
7406 echo "$as_me:$LINENO: checking for iconv" >&5
7407 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7408 if test "${am_cv_func_iconv+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7412 am_cv_func_iconv
="no, consider installing GNU libiconv"
7414 cat >conftest.
$ac_ext <<_ACEOF
7415 #line $LINENO "configure"
7416 #include "confdefs.h"
7419 #ifdef F77_DUMMY_MAIN
7423 int F77_DUMMY_MAIN() { return 1; }
7428 iconv_t cd = iconv_open("","");
7429 iconv(cd,NULL,NULL,NULL,NULL);
7435 rm -f conftest.
$ac_objext conftest
$ac_exeext
7436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7437 (eval $ac_link) 2>&5
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); } &&
7441 { ac_try
='test -s conftest$ac_exeext'
7442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); }; }; then
7447 am_cv_func_iconv
=yes
7449 echo "$as_me: failed program was:" >&5
7450 cat conftest.
$ac_ext >&5
7452 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7453 if test "$am_cv_func_iconv" != yes; then
7454 am_save_LIBS
="$LIBS"
7455 LIBS
="$LIBS -liconv"
7456 cat >conftest.
$ac_ext <<_ACEOF
7457 #line $LINENO "configure"
7458 #include "confdefs.h"
7461 #ifdef F77_DUMMY_MAIN
7465 int F77_DUMMY_MAIN() { return 1; }
7470 iconv_t cd = iconv_open("","");
7471 iconv(cd,NULL,NULL,NULL,NULL);
7477 rm -f conftest.
$ac_objext conftest
$ac_exeext
7478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7479 (eval $ac_link) 2>&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } &&
7483 { ac_try
='test -s conftest$ac_exeext'
7484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); }; }; then
7490 am_cv_func_iconv
=yes
7492 echo "$as_me: failed program was:" >&5
7493 cat conftest.
$ac_ext >&5
7495 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7496 LIBS
="$am_save_LIBS"
7500 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7501 echo "${ECHO_T}$am_cv_func_iconv" >&6
7502 if test "$am_cv_func_iconv" = yes; then
7504 cat >>confdefs.h
<<\_ACEOF
7505 #define HAVE_ICONV 1
7508 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7509 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7510 if test "${am_cv_proto_iconv+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 cat >conftest.
$ac_ext <<_ACEOF
7515 #line $LINENO "configure"
7516 #include "confdefs.h"
7524 #if defined(__STDC__) || defined(__cplusplus)
7525 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7530 #ifdef F77_DUMMY_MAIN
7534 int F77_DUMMY_MAIN() { return 1; }
7544 rm -f conftest.
$ac_objext
7545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7546 (eval $ac_compile) 2>&5
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); } &&
7550 { ac_try
='test -s conftest.$ac_objext'
7551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); }; }; then
7556 am_cv_proto_iconv_arg1
=""
7558 echo "$as_me: failed program was:" >&5
7559 cat conftest.
$ac_ext >&5
7560 am_cv_proto_iconv_arg1
="const"
7562 rm -f conftest.
$ac_objext conftest.
$ac_ext
7563 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);"
7566 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7567 echo "$as_me:$LINENO: result: ${ac_t:-
7568 }$am_cv_proto_iconv" >&5
7569 echo "${ECHO_T}${ac_t:-
7570 }$am_cv_proto_iconv" >&6
7572 cat >>confdefs.h
<<_ACEOF
7573 #define ICONV_CONST $am_cv_proto_iconv_arg1
7578 if test "$am_cv_lib_iconv" = yes; then
7582 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7583 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7584 if test "${am_cv_langinfo_codeset+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7587 cat >conftest.
$ac_ext <<_ACEOF
7588 #line $LINENO "configure"
7589 #include "confdefs.h"
7590 #include <langinfo.h>
7591 #ifdef F77_DUMMY_MAIN
7595 int F77_DUMMY_MAIN() { return 1; }
7600 char* cs = nl_langinfo(CODESET);
7605 rm -f conftest.
$ac_objext conftest
$ac_exeext
7606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7607 (eval $ac_link) 2>&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); } &&
7611 { ac_try
='test -s conftest$ac_exeext'
7612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); }; }; then
7617 am_cv_langinfo_codeset
=yes
7619 echo "$as_me: failed program was:" >&5
7620 cat conftest.
$ac_ext >&5
7621 am_cv_langinfo_codeset
=no
7623 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7626 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7627 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7628 if test $am_cv_langinfo_codeset = yes; then
7630 cat >>confdefs.h
<<\_ACEOF
7631 #define HAVE_LANGINFO_CODESET 1
7636 if test $ac_cv_header_locale_h = yes; then
7637 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7638 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7639 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 cat >conftest.
$ac_ext <<_ACEOF
7643 #line $LINENO "configure"
7644 #include "confdefs.h"
7646 #ifdef F77_DUMMY_MAIN
7650 int F77_DUMMY_MAIN() { return 1; }
7660 rm -f conftest.
$ac_objext conftest
$ac_exeext
7661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7662 (eval $ac_link) 2>&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } &&
7666 { ac_try
='test -s conftest$ac_exeext'
7667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); }; }; then
7672 am_cv_val_LC_MESSAGES
=yes
7674 echo "$as_me: failed program was:" >&5
7675 cat conftest.
$ac_ext >&5
7676 am_cv_val_LC_MESSAGES
=no
7678 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7680 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7681 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7682 if test $am_cv_val_LC_MESSAGES = yes; then
7684 cat >>confdefs.h
<<\_ACEOF
7685 #define HAVE_LC_MESSAGES 1
7690 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7691 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7692 # Check whether --enable-nls or --disable-nls was given.
7693 if test "${enable_nls+set}" = set; then
7694 enableval
="$enable_nls"
7699 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7700 echo "${ECHO_T}$USE_NLS" >&6
7702 BUILD_INCLUDED_LIBINTL
=no
7703 USE_INCLUDED_LIBINTL
=no
7706 if test "$USE_NLS" = "yes"; then
7708 cat >>confdefs.h
<<\_ACEOF
7709 #define ENABLE_NLS 1
7712 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7713 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7715 # Check whether --with-included-gettext or --without-included-gettext was given.
7716 if test "${with_included_gettext+set}" = set; then
7717 withval
="$with_included_gettext"
7718 nls_cv_force_use_gnu_gettext
=$withval
7720 nls_cv_force_use_gnu_gettext
=no
7722 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7723 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7725 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7726 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7729 if test "${ac_cv_header_libintl_h+set}" = set; then
7730 echo "$as_me:$LINENO: checking for libintl.h" >&5
7731 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7732 if test "${ac_cv_header_libintl_h+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7735 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7736 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7738 # Is the header compilable?
7739 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7740 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7741 cat >conftest.
$ac_ext <<_ACEOF
7742 #line $LINENO "configure"
7743 #include "confdefs.h"
7744 $ac_includes_default
7745 #include <libintl.h>
7747 rm -f conftest.
$ac_objext
7748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7749 (eval $ac_compile) 2>&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } &&
7753 { ac_try
='test -s conftest.$ac_objext'
7754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); }; }; then
7759 ac_header_compiler
=yes
7761 echo "$as_me: failed program was:" >&5
7762 cat conftest.
$ac_ext >&5
7763 ac_header_compiler
=no
7765 rm -f conftest.
$ac_objext conftest.
$ac_ext
7766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7767 echo "${ECHO_T}$ac_header_compiler" >&6
7769 # Is the header present?
7770 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7771 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7772 cat >conftest.
$ac_ext <<_ACEOF
7773 #line $LINENO "configure"
7774 #include "confdefs.h"
7775 #include <libintl.h>
7777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7778 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7780 egrep -v '^ *\+' conftest.er1
>conftest.err
7782 cat conftest.err
>&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); } >/dev
/null
; then
7785 if test -s conftest.err
; then
7786 ac_cpp_err
=$ac_c_preproc_warn_flag
7793 if test -z "$ac_cpp_err"; then
7794 ac_header_preproc
=yes
7796 echo "$as_me: failed program was:" >&5
7797 cat conftest.
$ac_ext >&5
7798 ac_header_preproc
=no
7800 rm -f conftest.err conftest.
$ac_ext
7801 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7802 echo "${ECHO_T}$ac_header_preproc" >&6
7804 # So? What about this header?
7805 case $ac_header_compiler:$ac_header_preproc in
7807 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7808 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7809 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7810 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7812 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled." >&5
7813 echo "$as_me: WARNING: libintl.h: present but cannot be compiled." >&2;}
7814 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7815 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7816 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7817 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7819 echo "$as_me:$LINENO: checking for libintl.h" >&5
7820 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7821 if test "${ac_cv_header_libintl_h+set}" = set; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7824 ac_cv_header_libintl_h
=$ac_header_preproc
7826 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7827 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7830 if test $ac_cv_header_libintl_h = yes; then
7831 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
7832 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
7833 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 cat >conftest.
$ac_ext <<_ACEOF
7837 #line $LINENO "configure"
7838 #include "confdefs.h"
7839 #include <libintl.h>
7840 extern int _nl_msg_cat_cntr;
7841 #ifdef F77_DUMMY_MAIN
7845 int F77_DUMMY_MAIN() { return 1; }
7850 bindtextdomain ("", "");
7851 return (int) gettext ("") + _nl_msg_cat_cntr
7856 rm -f conftest.
$ac_objext conftest
$ac_exeext
7857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7858 (eval $ac_link) 2>&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } &&
7862 { ac_try
='test -s conftest$ac_exeext'
7863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }; }; then
7868 gt_cv_func_gnugettext1_libc
=yes
7870 echo "$as_me: failed program was:" >&5
7871 cat conftest.
$ac_ext >&5
7872 gt_cv_func_gnugettext1_libc
=no
7874 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7876 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
7877 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
7879 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
7880 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7881 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
7882 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
7885 gt_save_LIBS
="$LIBS"
7886 LIBS
="$LIBS -lintl $LIBICONV"
7887 cat >conftest.
$ac_ext <<_ACEOF
7888 #line $LINENO "configure"
7889 #include "confdefs.h"
7890 #include <libintl.h>
7891 extern int _nl_msg_cat_cntr;
7892 #ifdef F77_DUMMY_MAIN
7896 int F77_DUMMY_MAIN() { return 1; }
7901 bindtextdomain ("", "");
7902 return (int) gettext ("") + _nl_msg_cat_cntr
7907 rm -f conftest.
$ac_objext conftest
$ac_exeext
7908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7909 (eval $ac_link) 2>&5
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); } &&
7913 { ac_try
='test -s conftest$ac_exeext'
7914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); }; }; then
7919 gt_cv_func_gnugettext1_libintl
=yes
7921 echo "$as_me: failed program was:" >&5
7922 cat conftest.
$ac_ext >&5
7923 gt_cv_func_gnugettext1_libintl
=no
7925 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7926 LIBS
="$gt_save_LIBS"
7928 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7929 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
7932 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7933 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7934 && test "$PACKAGE" != gettext; }; then
7936 cat >>confdefs.h
<<\_ACEOF
7937 #define HAVE_GETTEXT 1
7940 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7941 INTLLIBS
="-lintl $LIBICONV"
7944 gt_save_LIBS
="$LIBS"
7945 LIBS
="$LIBS $INTLLIBS"
7947 for ac_func
in dcgettext
7949 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7950 echo "$as_me:$LINENO: checking for $ac_func" >&5
7951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7952 if eval "test \"\${$as_ac_var+set}\" = set"; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 cat >conftest.
$ac_ext <<_ACEOF
7956 #line $LINENO "configure"
7957 #include "confdefs.h"
7958 /* System header to define __stub macros and hopefully few prototypes,
7959 which can conflict with char $ac_func (); below. */
7961 /* Override any gcc2 internal prototype to avoid an error. */
7965 /* We use char because int might match the return type of a gcc2
7966 builtin and then its argument prototype would still apply. */
7970 #ifdef F77_DUMMY_MAIN
7974 int F77_DUMMY_MAIN() { return 1; }
7979 /* The GNU C library defines this for functions which it implements
7980 to always fail with ENOSYS. Some functions are actually named
7981 something starting with __ and the normal name is an alias. */
7982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7992 rm -f conftest.
$ac_objext conftest
$ac_exeext
7993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7994 (eval $ac_link) 2>&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); } &&
7998 { ac_try
='test -s conftest$ac_exeext'
7999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; }; then
8004 eval "$as_ac_var=yes"
8006 echo "$as_me: failed program was:" >&5
8007 cat conftest.
$ac_ext >&5
8008 eval "$as_ac_var=no"
8010 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8013 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8014 if test `eval echo '${'$as_ac_var'}'` = yes; then
8015 cat >>confdefs.h
<<_ACEOF
8016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8022 LIBS
="$gt_save_LIBS"
8024 # Extract the first word of "msgfmt", so it can be a program name with args.
8025 set dummy msgfmt
; ac_word
=$2
8026 echo "$as_me:$LINENO: checking for $ac_word" >&5
8027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8028 if test "${ac_cv_path_MSGFMT+set}" = set; then
8029 echo $ECHO_N "(cached) $ECHO_C" >&6
8033 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8036 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8037 for ac_dir
in $PATH; do
8038 test -z "$ac_dir" && ac_dir
=.
8039 if test -f $ac_dir/$ac_word; then
8040 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8041 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8047 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8051 MSGFMT
="$ac_cv_path_MSGFMT"
8052 if test "$MSGFMT" != ":"; then
8053 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8054 echo "${ECHO_T}$MSGFMT" >&6
8056 echo "$as_me:$LINENO: result: no" >&5
8057 echo "${ECHO_T}no" >&6
8060 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8061 set dummy gmsgfmt
; ac_word
=$2
8062 echo "$as_me:$LINENO: checking for $ac_word" >&5
8063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8064 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8065 echo $ECHO_N "(cached) $ECHO_C" >&6
8069 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8072 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8076 test -z "$as_dir" && as_dir
=.
8077 for ac_exec_ext
in '' $ac_executable_extensions; do
8078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8079 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8086 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8090 GMSGFMT
=$ac_cv_path_GMSGFMT
8092 if test -n "$GMSGFMT"; then
8093 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8094 echo "${ECHO_T}$GMSGFMT" >&6
8096 echo "$as_me:$LINENO: result: no" >&5
8097 echo "${ECHO_T}no" >&6
8100 # Extract the first word of "xgettext", so it can be a program name with args.
8101 set dummy xgettext
; ac_word
=$2
8102 echo "$as_me:$LINENO: checking for $ac_word" >&5
8103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8104 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8109 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8112 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8113 for ac_dir
in $PATH; do
8114 test -z "$ac_dir" && ac_dir
=.
8115 if test -f $ac_dir/$ac_word; then
8116 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8117 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8123 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8127 XGETTEXT
="$ac_cv_path_XGETTEXT"
8128 if test "$XGETTEXT" != ":"; then
8129 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8130 echo "${ECHO_T}$XGETTEXT" >&6
8132 echo "$as_me:$LINENO: result: no" >&5
8133 echo "${ECHO_T}no" >&6
8141 if test "$CATOBJEXT" = "NONE"; then
8142 nls_cv_use_gnu_gettext
=yes
8146 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8147 INTLOBJS
="\$(GETTOBJS)"
8148 # Extract the first word of "msgfmt", so it can be a program name with args.
8149 set dummy msgfmt
; ac_word
=$2
8150 echo "$as_me:$LINENO: checking for $ac_word" >&5
8151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8152 if test "${ac_cv_path_MSGFMT+set}" = set; then
8153 echo $ECHO_N "(cached) $ECHO_C" >&6
8157 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8160 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8161 for ac_dir
in $PATH; do
8162 test -z "$ac_dir" && ac_dir
=.
8163 if test -f $ac_dir/$ac_word; then
8164 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8165 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8171 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8175 MSGFMT
="$ac_cv_path_MSGFMT"
8176 if test "$MSGFMT" != ":"; then
8177 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8178 echo "${ECHO_T}$MSGFMT" >&6
8180 echo "$as_me:$LINENO: result: no" >&5
8181 echo "${ECHO_T}no" >&6
8184 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8185 set dummy gmsgfmt
; ac_word
=$2
8186 echo "$as_me:$LINENO: checking for $ac_word" >&5
8187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8188 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8193 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8196 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8200 test -z "$as_dir" && as_dir
=.
8201 for ac_exec_ext
in '' $ac_executable_extensions; do
8202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8203 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8210 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8214 GMSGFMT
=$ac_cv_path_GMSGFMT
8216 if test -n "$GMSGFMT"; then
8217 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8218 echo "${ECHO_T}$GMSGFMT" >&6
8220 echo "$as_me:$LINENO: result: no" >&5
8221 echo "${ECHO_T}no" >&6
8224 # Extract the first word of "xgettext", so it can be a program name with args.
8225 set dummy xgettext
; ac_word
=$2
8226 echo "$as_me:$LINENO: checking for $ac_word" >&5
8227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8228 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8233 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8236 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8237 for ac_dir
in $PATH; do
8238 test -z "$ac_dir" && ac_dir
=.
8239 if test -f $ac_dir/$ac_word; then
8240 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8241 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8247 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8251 XGETTEXT
="$ac_cv_path_XGETTEXT"
8252 if test "$XGETTEXT" != ":"; then
8253 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8254 echo "${ECHO_T}$XGETTEXT" >&6
8256 echo "$as_me:$LINENO: result: no" >&5
8257 echo "${ECHO_T}no" >&6
8260 BUILD_INCLUDED_LIBINTL
=yes
8261 USE_INCLUDED_LIBINTL
=yes
8263 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
8264 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8267 if test "$GMSGFMT" != ":"; then
8268 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
8271 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
8272 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
8277 if test "$XGETTEXT" != ":"; then
8278 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
8281 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8282 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8289 ac_config_commands
="$ac_config_commands default-2"
8291 if test "$PACKAGE" = gettext; then
8292 BUILD_INCLUDED_LIBINTL
=yes
8295 for ac_prog
in bison
8297 # Extract the first word of "$ac_prog", so it can be a program name with args.
8298 set dummy
$ac_prog; ac_word
=$2
8299 echo "$as_me:$LINENO: checking for $ac_word" >&5
8300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8301 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8304 if test -n "$INTLBISON"; then
8305 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
8307 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8311 test -z "$as_dir" && as_dir
=.
8312 for ac_exec_ext
in '' $ac_executable_extensions; do
8313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8314 ac_cv_prog_INTLBISON
="$ac_prog"
8315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8323 INTLBISON
=$ac_cv_prog_INTLBISON
8324 if test -n "$INTLBISON"; then
8325 echo "$as_me:$LINENO: result: $INTLBISON" >&5
8326 echo "${ECHO_T}$INTLBISON" >&6
8328 echo "$as_me:$LINENO: result: no" >&5
8329 echo "${ECHO_T}no" >&6
8332 test -n "$INTLBISON" && break
8335 if test -z "$INTLBISON"; then
8338 echo "$as_me:$LINENO: checking version of bison" >&5
8339 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8340 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8341 case $ac_prog_version in
8342 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
8343 1.2[6-9]* | 1.
[3-9][0-9]* | [2-9].
*)
8344 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
8345 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
8347 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8348 echo "${ECHO_T}$ac_prog_version" >&6
8350 if test $ac_verc_fail = yes; then
8354 for lang
in $ALL_LINGUAS; do
8355 GMOFILES
="$GMOFILES $lang.gmo"
8356 POFILES
="$POFILES $lang.po"
8360 nls_cv_header_libgt
=
8368 if test "x$CATOBJEXT" != "x"; then
8369 if test "x$ALL_LINGUAS" = "x"; then
8372 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8373 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8375 for presentlang
in $ALL_LINGUAS; do
8377 for desiredlang
in ${LINGUAS-$ALL_LINGUAS}; do
8378 # Use the presentlang catalog if desiredlang is
8379 # a. equal to presentlang, or
8380 # b. a variant of presentlang (because in this case,
8381 # presentlang can be used as a fallback for messages
8382 # which are not translated in the desiredlang catalog).
8383 case "$desiredlang" in
8384 "$presentlang"*) useit
=yes;;
8387 if test $useit = yes; then
8388 NEW_LINGUAS
="$NEW_LINGUAS $presentlang"
8391 LINGUAS
=$NEW_LINGUAS
8392 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8393 echo "${ECHO_T}$LINGUAS" >&6
8396 if test -n "$LINGUAS"; then
8397 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8402 if test -n "$ac_aux_dir"; then
8403 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8405 if test -z "$MKINSTALLDIRS"; then
8406 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8409 INTL_LIBTOOL_SUFFIX_PREFIX
=
8411 # This is necessary so that .o files in LIBOBJS are also built via
8412 # the ANSI2KNR-filtering rules.
8413 LIBOBJS
=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
8415 ac_config_files
="$ac_config_files Makefile config/Makefile intl/Makefile po/Makefile.in lib/Makefile src/Makefile doc/Makefile m4/Makefile tests/Makefile"
8416 cat >confcache
<<\_ACEOF
8417 # This file is a shell script that caches the results of configure
8418 # tests run on this system so they can be shared between configure
8419 # scripts and configure runs, see configure's option --config-cache.
8420 # It is not useful on other systems. If it contains results you don't
8421 # want to keep, you may remove or edit it.
8423 # config.status only pays attention to the cache file if you give it
8424 # the --recheck option to rerun configure.
8426 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8427 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8432 # The following way of writing the cache mishandles newlines in values,
8433 # but we know of no workaround that is simple, portable, and efficient.
8434 # So, don't put newlines in cache variables' values.
8435 # Ultrix sh set writes to stderr and can't be redirected directly,
8436 # and sets the high bit in the cache file unless we assign to the vars.
8439 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8441 # `set' does not quote correctly, so add quotes (double-quote
8442 # substitution turns \\\\ into \\, and sed turns \\ into \).
8445 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8448 # `set' quotes correctly as required by POSIX, so do not add quotes.
8450 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8457 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8459 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8461 if cmp -s $cache_file confcache
; then :; else
8462 if test -w $cache_file; then
8463 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8464 cat confcache
>$cache_file
8466 echo "not updating unwritable cache $cache_file"
8471 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8472 # Let make expand exec_prefix.
8473 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8475 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8476 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8477 # trailing colons and then remove the whole line if VPATH becomes empty
8478 # (actually we leave an empty line to preserve line numbers).
8479 if test "x$srcdir" = x.
; then
8480 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8481 s/:*\$(srcdir):*/:/;
8482 s/:*\${srcdir}:*/:/;
8484 s/^\([^=]*=[ ]*\):*/\1/;
8490 DEFS
=-DHAVE_CONFIG_H
8492 : ${CONFIG_STATUS=./config.status}
8493 ac_clean_files_save
=$ac_clean_files
8494 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8495 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8496 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8497 cat >$CONFIG_STATUS <<_ACEOF
8499 # Generated automatically by $as_me.
8500 # Run this file to recreate the current configuration.
8501 # Compiler output produced by configure, useful for debugging
8502 # configure, is in config.log if it exists.
8505 SHELL=\${CONFIG_SHELL-$SHELL}
8508 cat >>$CONFIG_STATUS <<\_ACEOF
8510 ## --------------------- ##
8511 ## M4sh Initialization. ##
8512 ## --------------------- ##
8514 # Be Bourne compatible
8515 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8518 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8522 # Name of the executable.
8523 as_me
=`echo "$0" |sed 's,\(.*[\\/]\+\)\?\([^\\/]\+\)[\\/]*,\2,'`
8525 # If LINENO is not supported by the shell, produce a version of this
8526 # script where LINENO is hard coded. Rewrite if not up to date only.
8527 # Comparing LINENO against _oline_ is not a good solution, since in
8528 # the case of embedded executables (such as config.status within
8529 # configure) you'd compare LINENO wrt config.status vs. _oline_ vs
8530 # configure. Hence a useless rewrite (not to mention the risk of
8531 # ``infinite'' rewrites. Merely check that LINENO is incremented
8532 # between two lines, which is a property guaranteed for _oline_, hence
8533 # it protects us from repetitive rewrites.
8536 # Compute as_lineno_1 in two steps: some shells restart LINENO for
8538 as_lineno_1=`(expr $as_lineno_1 + 1) 2>/dev
/null
`
8539 if test "x$as_lineno_1" != "x$as_lineno_2"; then
8540 if test ! -f $as_me.lineno ||
8541 test x`ls -1dt $as_me.lineno
$as_me 2>/dev
/null
| sed 1q
` \
8542 != x$as_me.lineno; then
8543 # Be sure to write the pattern so that it doesn't replace itself:
8544 # it must not match itself.
8546 if ($0 ~ /[$]LINENO/)
8547 while (sub (/[$]LINENO/, NR))
8550 }' <$as_me >$as_me.lineno
8551 chmod +x $as_me.lineno
8553 exec ${SHELL-/bin/sh} ./$as_me.lineno
8556 # Avoid depending upon Character Ranges.
8557 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8558 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8559 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8560 as_cr_digits='0123456789'
8561 as_cr_alnum=$as_cr_Letters$as_cr_digits
8563 case `echo "testing\c"; echo 1,2,3`,`echo -n testing
; echo 1,2,3` in
8564 *c*,-n*) ECHO_N= ECHO_C='
8566 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8567 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8570 if expr a : '\(a\)' >/dev/null 2>&1; then
8576 rm -f conf$$ conf$$.exe conf$$.file
8578 if ln -s conf$$.file conf$$ 2>/dev/null; then
8579 # We could just check for DJGPP; but this test a) works b) is more generic
8580 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8581 if test -f conf$$.exe; then
8582 # Don't use ln at all; we don't have any links
8587 elif ln conf$$.file conf$$ 2>/dev/null; then
8592 rm -f conf$$ conf$$.exe conf$$.file
8594 # The user is always right.
8595 if test "${PATH_SEPARATOR+set}" != set; then
8596 echo "#! $SHELL" >conftest.sh
8597 echo "exit 0" >>conftest.sh
8598 chmod +x conftest.sh
8599 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
8607 as_executable_p="test -f"
8609 # Sed expression to map a string onto a valid CPP name.
8610 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8612 # Sed expression to map a string onto a valid variable name.
8613 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8615 # Support unset when possible.
8616 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8623 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
8624 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
8625 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
8626 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
8627 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
8628 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
8629 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
8630 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
8633 # We need space, tab and new line, in precisely that order.
8639 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
8643 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8644 # report actual input values of CONFIG_FILES etc. instead of their
8645 # values after options handling. Logging --version etc. is OK.
8649 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8650 ## Running \$as_me. ##
8655 This file was extended by GNU Bison $as_me 1.29b, which was
8656 generated by GNU Autoconf 2.52e. Invocation command line was
8658 CONFIG_FILES = $CONFIG_FILES
8659 CONFIG_HEADERS = $CONFIG_HEADERS
8660 CONFIG_LINKS = $CONFIG_LINKS
8661 CONFIG_COMMANDS = $CONFIG_COMMANDS
8665 echo "on `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`" >&5
8669 # Files that config.status was made for.
8670 if test -n "$ac_config_files"; then
8671 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8674 if test -n "$ac_config_headers"; then
8675 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8678 if test -n "$ac_config_links"; then
8679 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8682 if test -n "$ac_config_commands"; then
8683 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8686 cat >>$CONFIG_STATUS <<\_ACEOF
8689 \`$as_me' instantiates files from templates according to the
8690 current configuration.
8692 Usage: $0 [OPTIONS] [FILE]...
8694 -h, --help print this help, then exit
8695 -V, --version print version number, then exit
8696 -d, --debug don't remove temporary files
8697 --recheck update
$as_me by reconfiguring
in the same conditions
8698 --file=FILE
[:TEMPLATE
]
8699 instantiate the configuration
file FILE
8700 --header=FILE
[:TEMPLATE
]
8701 instantiate the configuration header FILE
8703 Configuration files
:
8706 Configuration headers
:
8709 Configuration commands
:
8712 Report bugs to
<bug
-autoconf@gnu.org
>.
"
8715 cat >>$CONFIG_STATUS <<_ACEOF
8717 GNU Bison config.status
1.29b
8718 configured by
$0, generated by GNU Autoconf
2.52e
,
8719 with options
\\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8721 Copyright
1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8722 Free Software Foundation
, Inc.
8723 This config.status
script is free software
; the Free Software Foundation
8724 gives unlimited permission to copy
, distribute and modify it.
"
8729 cat >>$CONFIG_STATUS <<\_ACEOF
8730 # If no file are specified by the user, then we need to provide default
8731 # value. By we need to know if files were specified by the user.
8737 ac_option=`expr "x
$1" : 'x\([^=]*\)='`
8738 ac_optarg=`expr "x
$1" : 'x[^=]*=\(.*\)'`
8740 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
8744 *) # This is not an option, so the user has probably given explicit
8746 ac_need_defaults=false;;
8750 # Handling of the options.
8752 cat >>$CONFIG_STATUS <<_ACEOF
8753 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8754 echo "running
$SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8755 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8757 cat >>$CONFIG_STATUS <<\_ACEOF
8758 --version | --vers* | -V )
8759 echo "$ac_cs_version"; exit 0 ;;
8761 # Conflict between --help and --header
8762 { { echo "$as_me:$LINENO: error
: ambiguous option
: $1
8763 Try \
`$0 --help' for more information." >&5
8764 echo "$as_me: error: ambiguous option: $1
8765 Try \`$0 --help' for more information." >&2;}
8766 { (exit 1); exit 1; }; };;
8767 --help | --hel | -h )
8768 echo "$ac_cs_usage"; exit 0 ;;
8769 --debug | --d* | -d )
8771 --file | --fil | --fi | --f )
8773 CONFIG_FILES="$CONFIG_FILES $1"
8774 ac_need_defaults=false;;
8775 --header | --heade | --head | --hea )
8777 CONFIG_HEADERS="$CONFIG_HEADERS $1"
8778 ac_need_defaults=false;;
8781 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8782 Try \`$0 --help' for more information.
" >&5
8783 echo "$as_me: error
: unrecognized option
: $1
8784 Try \
`$0 --help' for more information." >&2;}
8785 { (exit 1); exit 1; }; } ;;
8787 *) ac_config_targets="$ac_config_targets $1" ;;
8795 cat >>$CONFIG_STATUS <<_ACEOF
8797 # INIT-COMMANDS section.
8800 PACKAGE_NAME='$PACKAGE_NAME'
8801 PACKAGE_TARNAME='$PACKAGE_TARNAME'
8802 PACKAGE_VERSION='$PACKAGE_VERSION'
8803 PACKAGE_STRING='$PACKAGE_STRING'
8804 PACKAGE_BUGREPORT='$PACKAGE_BUGREPORT'
8806 AMDEP_TRUE="$AMDEP_TRUE"
8807 ac_aux_dir="$ac_aux_dir"
8811 cat >>$CONFIG_STATUS <<\_ACEOF
8812 for ac_config_target in $ac_config_targets
8814 case "$ac_config_target" in
8815 # Handling of arguments.
8816 "tests/atlocal" ) CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
8817 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8818 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
8819 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
8820 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8821 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
8822 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8823 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8824 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
8825 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
8826 "tests/package.m4" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tests/package.m4" ;;
8827 "tests/atconfig" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
8828 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8829 "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
8830 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
8831 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8832 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8833 { (exit 1); exit 1; }; };;
8837 # If the user did not use the arguments to specify the items to instantiate,
8838 # then the envvar interface is used. Set only those that are not.
8839 # We use the long form for the default assignment because of an extremely
8840 # bizarre bug on SunOS 4.1.3.
8841 if $ac_need_defaults; then
8842 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8843 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8844 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8847 # Create a temporary directory, and hook for its removal unless debugging.
8850 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8851 trap '{ (exit 1); exit 1; }' 1 2 13 15
8854 # Create a (secure) tmp directory for tmp files.
8857 tmp=`(umask 077 && mktemp
-d -q "$TMPDIR/csXXXXXX") 2>/dev
/null
` &&
8858 test -n "$tmp" && test -d "$tmp"
8861 tmp=$TMPDIR/cs$$-$RANDOM
8862 (umask 077 && mkdir $tmp)
8865 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8866 { (exit 1); exit 1; }
8871 cat >>$CONFIG_STATUS <<_ACEOF
8874 # CONFIG_FILES section.
8877 # No need to generate the scripts if there are no CONFIG_FILES.
8878 # This happens for instance when ./config.status config.h
8879 if test -n "\$CONFIG_FILES"; then
8880 # Protect against being on the right side of a sed subst in config.status.
8881 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8882 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8883 s,@SHELL@,$SHELL,;t t
8884 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8885 s,@exec_prefix@,$exec_prefix,;t t
8886 s,@prefix@,$prefix,;t t
8887 s,@program_transform_name@,$program_transform_name,;t t
8888 s,@bindir@,$bindir,;t t
8889 s,@sbindir@,$sbindir,;t t
8890 s,@libexecdir@,$libexecdir,;t t
8891 s,@datadir@,$datadir,;t t
8892 s,@sysconfdir@,$sysconfdir,;t t
8893 s,@sharedstatedir@,$sharedstatedir,;t t
8894 s,@localstatedir@,$localstatedir,;t t
8895 s,@libdir@,$libdir,;t t
8896 s,@includedir@,$includedir,;t t
8897 s,@oldincludedir@,$oldincludedir,;t t
8898 s,@infodir@,$infodir,;t t
8899 s,@mandir@,$mandir,;t t
8900 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8901 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8902 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8903 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8904 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8905 s,@build_alias@,$build_alias,;t t
8906 s,@host_alias@,$host_alias,;t t
8907 s,@target_alias@,$target_alias,;t t
8909 s,@ECHO_C@,$ECHO_C,;t t
8910 s,@ECHO_N@,$ECHO_N,;t t
8911 s,@ECHO_T@,$ECHO_T,;t t
8913 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8914 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8915 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8916 s,@PACKAGE@,$PACKAGE,;t t
8917 s,@VERSION@,$VERSION,;t t
8918 s,@EXEEXT@,$EXEEXT,;t t
8919 s,@OBJEXT@,$OBJEXT,;t t
8920 s,@ACLOCAL@,$ACLOCAL,;t t
8921 s,@AUTOCONF@,$AUTOCONF,;t t
8922 s,@AUTOMAKE@,$AUTOMAKE,;t t
8923 s,@AUTOHEADER@,$AUTOHEADER,;t t
8924 s,@MAKEINFO@,$MAKEINFO,;t t
8925 s,@AMTAR@,$AMTAR,;t t
8926 s,@install_sh@,$install_sh,;t t
8927 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8929 s,@SET_MAKE@,$SET_MAKE,;t t
8930 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8931 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8932 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8933 s,@DEPDIR@,$DEPDIR,;t t
8935 s,@CFLAGS@,$CFLAGS,;t t
8936 s,@LDFLAGS@,$LDFLAGS,;t t
8937 s,@CPPFLAGS@,$CPPFLAGS,;t t
8938 s,@ac_ct_CC@,$ac_ct_CC,;t t
8939 s,@am__include@,$am__include,;t t
8940 s,@am__quote@,$am__quote,;t t
8941 s,@CCDEPMODE@,$CCDEPMODE,;t t
8943 s,@RANLIB@,$RANLIB,;t t
8944 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8946 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
8948 s,@ANSI2KNR@,$ANSI2KNR,;t t
8949 s,@ALLOCA@,$ALLOCA,;t t
8950 s,@LIBOBJS@,$LIBOBJS,;t t
8951 s,@build@,$build,;t t
8952 s,@build_cpu@,$build_cpu,;t t
8953 s,@build_vendor@,$build_vendor,;t t
8954 s,@build_os@,$build_os,;t t
8956 s,@host_cpu@,$host_cpu,;t t
8957 s,@host_vendor@,$host_vendor,;t t
8958 s,@host_os@,$host_os,;t t
8959 s,@GLIBC21@,$GLIBC21,;t t
8960 s,@LIBICONV@,$LIBICONV,;t t
8961 s,@USE_NLS@,$USE_NLS,;t t
8962 s,@MSGFMT@,$MSGFMT,;t t
8963 s,@GMSGFMT@,$GMSGFMT,;t t
8964 s,@XGETTEXT@,$XGETTEXT,;t t
8965 s,@INTLBISON@,$INTLBISON,;t t
8966 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
8967 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
8968 s,@CATALOGS@,$CATALOGS,;t t
8969 s,@CATOBJEXT@,$CATOBJEXT,;t t
8970 s,@GMOFILES@,$GMOFILES,;t t
8971 s,@INTLLIBS@,$INTLLIBS,;t t
8972 s,@INTLOBJS@,$INTLOBJS,;t t
8973 s,@POFILES@,$POFILES,;t t
8974 s,@POSUB@,$POSUB,;t t
8975 s,@DATADIRNAME@,$DATADIRNAME,;t t
8976 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8977 s,@GENCAT@,$GENCAT,;t t
8978 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8979 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
8984 cat >>$CONFIG_STATUS <<\_ACEOF
8985 # Split the substitutions into bite-sized pieces for seds with
8986 # small command number limits, like on Digital OSF/1 and HP-UX.
8988 ac_sed_frag=1 # Number of current file.
8989 ac_beg=1 # First line for current file.
8990 ac_end=$ac_max_sed_lines # Line after last line for current file.
8993 while $ac_more_lines; do
8994 if test $ac_beg -gt 1; then
8995 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8997 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8999 if test ! -s $tmp/subs.frag; then
9002 # The purpose of the label and of the branching condition is to
9003 # speed up the sed processing (if there are no `@
' at all, there
9004 # is no need to browse any of the substitutions).
9005 # These are the two extra sed commands mentioned above.
9007 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9008 if test -z "$ac_sed_cmds"; then
9009 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9011 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9013 ac_sed_frag=`expr $ac_sed_frag + 1`
9015 ac_end=`expr $ac_end + $ac_max_sed_lines`
9018 if test -z "$ac_sed_cmds"; then
9021 fi # test -n "$CONFIG_FILES"
9024 cat >>$CONFIG_STATUS <<\_ACEOF
9025 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9026 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9028 - | *:- | *:-:* ) # input from stdin
9030 ac_file_in=`echo "$ac_file" | sed 's
,[^
:]*:,,'`
9031 ac_file=`echo "$ac_file" | sed 's
,:.
*,,'` ;;
9032 *:* ) ac_file_in=`echo "$ac_file" | sed 's
,[^
:]*:,,'`
9033 ac_file=`echo "$ac_file" | sed 's
,:.
*,,'` ;;
9034 * ) ac_file_in=$ac_file.in ;;
9037 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9038 ac_dir=`$as_expr X"$ac_file" : 'X\
(.
*[^/]\)//*[^/][^/]*/*$
' \
| \
9039 X
"$ac_file" : 'X\(//\)[^/]' \
| \
9040 X
"$ac_file" : 'X\(//\)$' \
| \
9041 X
"$ac_file" : 'X\(/\)' \
| \
9042 .
: '\(.\)' 2>/dev
/null
||
9044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9045 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9046 /^X\(\/\/\)$/{ s//\1/; q; }
9047 /^X\(\/\).*/{ s//\1/; q; }
9050 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9054 for as_mkdir_dir in `IFS
='/\\'; set X
$as_dummy; shift; echo "$@"`; do
9055 case $as_mkdir_dir in
9056 # Skip DOS drivespec
9057 ?:) as_incr_dir=$as_mkdir_dir ;;
9059 as_incr_dir=$as_incr_dir/$as_mkdir_dir
9060 test -d "$as_incr_dir" ||
9061 mkdir "$as_incr_dir" ||
9062 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9063 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9064 { (exit 1); exit 1; }; }
9069 if test "$ac_dir" != .; then
9070 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9071 # A "../" for each directory in $ac_dir_suffix.
9072 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9074 ac_dir_suffix= ac_top_builddir=
9078 .) # No --srcdir option. We are building in place.
9080 if test -z "$ac_top_builddir"; then
9083 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9085 [\\/]* | ?:[\\/]* ) # Absolute path.
9086 ac_srcdir=$srcdir$ac_dir_suffix;
9087 ac_top_srcdir=$srcdir ;;
9089 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9090 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9094 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9095 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9098 if test x"$ac_file" != x-; then
9099 { echo "$as_me:$LINENO: creating $ac_file" >&5
9100 echo "$as_me: creating $ac_file" >&6;}
9103 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9104 # use $as_me), people would be surprised to read:
9105 # /* config.h. Generated automatically by config.status. */
9106 configure_input
="Generated automatically from `echo $ac_file_in |
9107 sed 's,.*/,,'` by configure."
9109 # First look for the input files in the build tree, otherwise in the
9111 ac_file_inputs
=`IFS=:
9112 for f in $ac_file_in; do
9114 -) echo $tmp/stdin ;;
9116 # Absolute (can't be DOS-style, as IFS=:)
9117 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9118 echo "$as_me: error: cannot find input file: $f" >&2;}
9119 { (exit 1); exit 1; }; }
9122 if test -f "$f"; then
9125 elif test -f "$srcdir/$f"; then
9130 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9131 echo "$as_me: error: cannot find input file: $f" >&2;}
9132 { (exit 1); exit 1; }; }
9135 done` || { (exit 1); exit 1; }
9137 cat >>$CONFIG_STATUS <<_ACEOF
9141 cat >>$CONFIG_STATUS <<\_ACEOF
9143 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
9144 s
,@configure_input@
,$configure_input,;t t
9145 s
,@srcdir@
,$ac_srcdir,;t t
9146 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9147 s
,@INSTALL@
,$ac_INSTALL,;t t
9148 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9150 if test x"$ac_file" != x-; then
9151 mv $tmp/out $ac_file
9159 cat >>$CONFIG_STATUS <<\_ACEOF
9162 # CONFIG_HEADER section.
9165 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9166 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9168 # ac_d sets the value in "#define NAME VALUE" lines.
9169 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9170 ac_dB
='[ ].*$,\1#\2'
9173 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9174 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9175 ac_uB
='$,\1#\2define\3'
9179 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9180 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9182 - | *:- | *:-:* ) # input from stdin
9184 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9185 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9186 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9187 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9188 * ) ac_file_in
=$ac_file.
in ;;
9191 test x
"$ac_file" != x
- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9192 echo "$as_me: creating $ac_file" >&6;}
9194 # First look for the input files in the build tree, otherwise in the
9196 ac_file_inputs
=`IFS=:
9197 for f in $ac_file_in; do
9199 -) echo $tmp/stdin ;;
9201 # Absolute (can't be DOS-style, as IFS=:)
9202 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9203 echo "$as_me: error: cannot find input file: $f" >&2;}
9204 { (exit 1); exit 1; }; }
9207 if test -f "$f"; then
9210 elif test -f "$srcdir/$f"; then
9215 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9216 echo "$as_me: error: cannot find input file: $f" >&2;}
9217 { (exit 1); exit 1; }; }
9220 done` || { (exit 1); exit 1; }
9221 # Remove the trailing spaces.
9222 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9226 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9227 # `conftest.undefs', that substitutes the proper values into
9228 # config.h.in to produce config.h. The first handles `#define'
9229 # templates, and the second `#undef' templates.
9230 # And first: Protect against being on the right side of a sed subst in
9231 # config.status. Protect against being in an unquoted here document
9233 rm -f conftest.defines conftest.undefs
9234 # Using a here document instead of a string reduces the quoting nightmare.
9235 # Putting comments in sed scripts is not portable.
9237 # `end' is used to avoid that the second main sed command (meant for
9238 # 0-ary CPP macros) applies to n-ary macro definitions.
9239 # See the Autoconf documentation for `clear'.
9240 cat >confdef2sed.
sed <<\_ACEOF
9245 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
9247 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9250 # If some macros were called several times there might be several times
9251 # the same #defines, which is useless. Nevertheless, we may not want to
9252 # sort them, since we want the *last* AC-DEFINE to be honored.
9253 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9254 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9255 rm -f confdef2sed.sed
9257 # This sed command replaces #undef with comments. This is necessary, for
9258 # example, in the case of _POSIX_SOURCE, which is predefined and required
9259 # on some systems where configure will not decide to define it.
9260 cat >>conftest.undefs <<\_ACEOF
9261 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9264 # Break up conftest.defines because some shells have a limit on the size
9265 # of here documents, and old seds have small limits too (100 cmds).
9266 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9267 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9268 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9269 echo ' :' >>$CONFIG_STATUS
9271 while grep . conftest.defines >/dev/null
9273 # Write a limited-size here document to $tmp/defines.sed.
9274 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9275 # Speed up: don't consider the non `#define' lines.
9276 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9277 # Work around the forget-to-reset-the-flag bug.
9278 echo 't clr' >>$CONFIG_STATUS
9279 echo ': clr' >>$CONFIG_STATUS
9280 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9282 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9286 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9287 rm -f conftest.defines
9288 mv conftest.
tail conftest.defines
9290 rm -f conftest.defines
9291 echo ' fi # egrep' >>$CONFIG_STATUS
9292 echo >>$CONFIG_STATUS
9294 # Break up conftest.undefs because some shells have a limit on the size
9295 # of here documents, and old seds have small limits too (100 cmds).
9296 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9298 while grep . conftest.undefs
>/dev
/null
9300 # Write a limited-size here document to $tmp/undefs.sed.
9301 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9302 # Speed up: don't consider the non
`#undef'
9303 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9304 # Work around the forget-to-reset-the-flag bug.
9305 echo 't clr' >>$CONFIG_STATUS
9306 echo ': clr' >>$CONFIG_STATUS
9307 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9309 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9313 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9314 rm -f conftest.undefs
9315 mv conftest.tail conftest.undefs
9317 rm -f conftest.undefs
9319 cat >>$CONFIG_STATUS <<\_ACEOF
9320 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9321 # use $as_me), people would be surprised to read:
9322 # /* config.h. Generated automatically by config.status. */
9323 if test x
"$ac_file" = x
-; then
9324 echo "/* Generated automatically by configure. */" >$tmp/config.h
9326 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
9328 cat $tmp/in >>$tmp/config.h
9330 if test x
"$ac_file" != x
-; then
9331 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
9332 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9333 echo "$as_me: $ac_file is unchanged" >&6;}
9335 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9336 X"$ac_file" : 'X\(//\)[^/]' \| \
9337 X"$ac_file" : 'X\(//\)$' \| \
9338 X"$ac_file" : 'X\(/\)' \| \
9339 . : '\(.\)' 2>/dev/null ||
9341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9342 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9343 /^X\(\/\/\)$/{ s//\1/; q; }
9344 /^X\(\/\).*/{ s//\1/; q; }
9347 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9351 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9352 case $as_mkdir_dir in
9353 # Skip DOS drivespec
9354 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9356 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9357 test -d "$as_incr_dir" ||
9358 mkdir "$as_incr_dir" ||
9359 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9360 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9361 { (exit 1); exit 1; }; }
9367 mv $tmp/config.h
$ac_file
9373 # Run the commands associated with the file.
9375 config.h
) # update the timestamp
9376 echo timestamp
>"./stamp-h1"
9381 cat >>$CONFIG_STATUS <<\_ACEOF
9384 # CONFIG_COMMANDS section.
9386 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9387 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9388 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9389 ac_dir
=`$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9390 X"$ac_dest" : 'X\(//\)[^/]' \| \
9391 X"$ac_dest" : 'X\(//\)$' \| \
9392 X"$ac_dest" : 'X\(/\)' \| \
9393 . : '\(.\)' 2>/dev/null ||
9395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9396 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9397 /^X\(\/\/\)$/{ s//\1/; q; }
9398 /^X\(\/\).*/{ s//\1/; q; }
9400 if test "$ac_dir" != .
; then
9401 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9402 # A "../" for each directory in $ac_dir_suffix.
9403 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9405 ac_dir_suffix
= ac_top_builddir
=
9409 .
) # No --srcdir option. We are building in place.
9411 if test -z "$ac_top_builddir"; then
9414 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9416 [\\/]* | ?
:[\\/]* ) # Absolute path.
9417 ac_srcdir
=$srcdir$ac_dir_suffix;
9418 ac_top_srcdir
=$srcdir ;;
9420 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9421 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9424 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9425 echo "$as_me: executing $ac_dest commands" >&6;}
9427 tests
/package.
m4 ) cat >tests
/package.
m4 <<ATEOF
9428 # Signature of the current package.
9429 m4_define([PACKAGE_NAME], [$PACKAGE_NAME])
9430 m4_define([PACKAGE_TARNAME], [$PACKAGE_TARNAME])
9431 m4_define([PACKAGE_VERSION], [$PACKAGE_VERSION])
9432 m4_define([PACKAGE_STRING], [$PACKAGE_STRING])
9433 m4_define([PACKAGE_BUGREPORT], [$PACKAGE_BUGREPORT])
9436 tests
/atconfig
) cat >tests
/atconfig
<<ATEOF
9437 # Configurable variable values for building test suites.
9439 # Copyright 2000, 2001 Free Software Foundation, Inc.
9443 top_srcdir='$ac_top_srcdir'
9444 top_builddir='$ac_top_builddir'
9446 AUTOTEST_PATH='tests'
9448 SHELL=\${CONFIG_SHELL-'$SHELL'}
9452 test x
"$AMDEP_TRUE" != x
"" ||
9453 for mf
in $CONFIG_FILES; do
9455 Makefile
) dirpart
=.
;;
9456 */Makefile
) dirpart
=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
9459 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null
|| continue
9460 # Extract the definition of DEP_FILES from the Makefile without
9462 DEPDIR
=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9463 test -z "$DEPDIR" && continue
9464 # When using ansi2knr, U may be empty or an underscore; expand it
9465 U
=`sed -n -e '/^U = / s///p' < "$mf"`
9466 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9467 # We invoke sed twice because it is the simplest approach to
9468 # changing $(DEPDIR) to its actual value in the expansion.
9469 for file in `sed -n -e '
9470 /^DEP_FILES = .*\\\\$/ {
9479 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9480 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9481 # Make sure the directory exists.
9482 test -f "$dirpart/$file" && continue
9483 fdir
=`echo "$file" | sed -e 's|/[^/]*$||'`
9484 $ac_aux_dir/mkinstalldirs
"$dirpart/$fdir" > /dev
/null
2>&1
9485 # echo "creating $dirpart/$file"
9486 echo '# dummy' > "$dirpart/$file"
9490 default
-2 ) for ac_file
in $CONFIG_FILES; do
9491 # Support "outfile[:infile[:infile...]]"
9493 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9495 # PO directories have a Makefile.in generated from Makefile.in.in.
9496 case "$ac_file" in */Makefile.
in)
9497 # Adjust a relative srcdir.
9498 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9499 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
9500 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9501 # In autoconf-2.13 it is called $ac_given_srcdir.
9502 # In autoconf-2.50 it is called $srcdir.
9503 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
9504 case "$ac_given_srcdir" in
9505 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
9506 /*) top_srcdir
="$ac_given_srcdir" ;;
9507 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9509 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9510 rm -f "$ac_dir/POTFILES"
9511 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9512 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9513 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9514 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9523 cat >>$CONFIG_STATUS <<\_ACEOF
9525 { (exit 0); exit 0; }
9527 chmod +x
$CONFIG_STATUS
9528 ac_clean_files
=$ac_clean_files_save
9530 # configure is writing to config.log, and then calls config.status.
9531 # config.status does its own redirection, appending to config.log.
9532 # Unfortunately, on DOS this fails, as config.log is still kept open
9533 # by configure, so config.status won't be able to write to it; its
9534 # output is simply discarded. So we exec the FD to /dev/null,
9535 # effectively closing config.log, so it can be properly (re)opened and
9536 # appended to by config.status. When coming back to configure, we
9537 # need to make the FD available again.
9538 if test "$no_create" != yes; then
9541 $SHELL $CONFIG_STATUS || ac_cs_success
=false
9543 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9544 # would make configure fail if this is the last instruction.
9545 $ac_cs_success || { (exit 1); exit 1; }