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-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
743 --with-included-gettext use the GNU
gettext library included here
745 Some influential environment variables
:
746 CC C compiler
command
747 CFLAGS C compiler flags
748 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
749 nonstandard directory
<lib dir
>
750 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
751 headers
in a nonstandard directory
<include dir
>
754 Use these variables to override the choices made by
`configure' or to help
755 it to find libraries and programs with nonstandard names/locations.
757 Report bugs to <bug-bison@gnu.org>.
761 if test "$ac_init_help" = "recursive"; then
762 # If there are subdirs, report their specific --help.
764 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
766 if test "$ac_dir" != .; then
767 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
768 # A "../" for each directory in $ac_dir_suffix.
769 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
771 ac_dir_suffix= ac_top_builddir=
775 .) # No --srcdir option. We are building in place.
777 if test -z "$ac_top_builddir"; then
780 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
782 [\\/]* | ?:[\\/]* ) # Absolute path.
783 ac_srcdir=$srcdir$ac_dir_suffix;
784 ac_top_srcdir=$srcdir ;;
786 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
787 ac_top_srcdir=$ac_top_builddir$srcdir ;;
790 # Check for guested configure; otherwise get Cygnus style configure.
791 if test -f $ac_srcdir/configure.gnu; then
793 $SHELL $ac_srcdir/configure.gnu --help=recursive
794 elif test -f $ac_srcdir/configure; then
796 $SHELL $ac_srcdir/configure --help=recursive
797 elif test -f $ac_srcdir/configure.ac ||
798 test -f $ac_srcdir/configure.in; then
802 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
808 test -n "$ac_init_help" && exit 0
809 if $ac_init_version; then
811 GNU Bison configure 1.29b
812 generated by GNU Autoconf 2.52e
814 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
815 Free Software Foundation, Inc.
816 This configure script is free software; the Free Software Foundation
817 gives unlimited permission to copy, distribute and modify it.
823 This file contains any messages produced by compilers while
824 running configure, to aid debugging if configure makes a mistake.
826 It was created by GNU Bison $as_me 1.29b, which was
827 generated by GNU Autoconf 2.52e. Invocation command line was
838 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
839 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
840 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
841 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
842 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
844 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
845 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
847 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
848 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
849 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
850 hostinfo = `(hostinfo
) 2>/dev
/null
|| echo unknown
`
851 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
852 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
853 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
861 test -z "$as_dir" && as_dir=.
875 # Keep a trace of the command line.
876 # Strip out --no-create and --no-recursion so they do not pile up.
877 # Also quote any args containing shell meta-characters.
883 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
884 | --no-cr | --no-c) ;;
885 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
886 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
887 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
888 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
889 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
891 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
894 # Get rid of the leading space.
897 # When interrupted or exit'd, cleanup temporary files, and complete
898 # config.log. We remove comments because anyway the quotes in there
899 # would cause problems or look ugly.
900 # WARNING: Be sure not to use single quotes in there, as some shells,
901 # such as our DU 5.0 friend, will then `close
' the trap.
903 # Save into config.log some information that might help in debugging.
907 ## ---------------- ##
908 ## Cache variables. ##
909 ## ---------------- ##
912 # The following way of writing the cache mishandles newlines in values,
915 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
918 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
919 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
923 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
928 if test -s confdefs.h
; then
935 sed "/^$/d" confdefs.h
938 test "$ac_signal" != 0 &&
939 echo "$as_me: caught signal $ac_signal"
940 echo "$as_me: exit $exit_status"
942 rm -rf conftest
* confdefs
* core core.
* *.core conf$$
* $ac_clean_files &&
945 for ac_signal in 1 2 13 15; do
946 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
950 # confdefs.h avoids OS command line length limits that DEFS can exceed.
951 rm -rf conftest* confdefs.h
952 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
955 # Let the site file select an alternate cache file if it wants to.
956 # Prefer explicitly selected file to automatically selected ones.
957 if test -z "$CONFIG_SITE"; then
958 if test "x$prefix" != xNONE; then
959 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
961 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
964 for ac_site_file in $CONFIG_SITE; do
965 if test -r "$ac_site_file"; then
966 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
967 echo "$as_me: loading site script $ac_site_file" >&6;}
968 sed 's
/^
/| /' "$ac_site_file" >&5
973 if test -r "$cache_file"; then
974 # Some versions of bash will fail to source /dev/null (special
975 # files actually), so we avoid doing that.
976 if test -f "$cache_file"; then
977 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
978 echo "$as_me: loading cache $cache_file" >&6;}
980 [\\/]* | ?:[\\/]* ) . $cache_file;;
985 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
986 echo "$as_me: creating cache $cache_file" >&6;}
990 # Check that the precious variables saved in the cache have kept the same
992 ac_cache_corrupted=false
993 for ac_var in `(set) 2>&1 |
994 sed -n 's
/^ac_env_\
([a
-zA-Z_0-9]*\
)_set
=.
*/\
1/p
'`; do
995 eval ac_old_set=\$ac_cv_env_${ac_var}_set
996 eval ac_new_set=\$ac_env_${ac_var}_set
997 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
998 eval ac_new_val="\$ac_env_${ac_var}_value"
999 case $ac_old_set,$ac_new_set in
1001 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1002 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1003 ac_cache_corrupted=: ;;
1005 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1006 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1007 ac_cache_corrupted=: ;;
1010 if test "x$ac_old_val" != "x$ac_new_val"; then
1011 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1012 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1013 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1014 echo "$as_me: former value: $ac_old_val" >&2;}
1015 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1016 echo "$as_me: current value: $ac_new_val" >&2;}
1017 ac_cache_corrupted=:
1020 # Pass precious variables to config.status. It doesn't matter if
1021 # we pass some twice (in addition to the command line arguments).
1022 if test "$ac_new_set" = set; then
1024 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1025 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1026 ac_configure_args="$ac_configure_args '$ac_arg'"
1028 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1033 if $ac_cache_corrupted; then
1034 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1035 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1036 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1037 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1038 { (exit 1); exit 1; }; }
1042 ac_cpp='$CPP $CPPFLAGS'
1043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1044 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1048 for ac_dir in config $srcdir/config; do
1049 if test -f $ac_dir/install-sh; then
1051 ac_install_sh="$ac_aux_dir/install-sh -c"
1053 elif test -f $ac_dir/install.sh; then
1055 ac_install_sh="$ac_aux_dir/install.sh -c"
1057 elif test -f $ac_dir/shtool; then
1059 ac_install_sh="$ac_aux_dir/shtool install -c"
1063 if test -z "$ac_aux_dir"; then
1064 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1065 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1066 { (exit 1); exit 1; }; }
1068 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1069 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1070 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1072 # Find a good install program. We prefer a C program (faster),
1073 # so one script is as good as another. But avoid the broken or
1074 # incompatible versions:
1075 # SysV /etc/install, /usr/sbin/install
1076 # SunOS /usr/etc/install
1077 # IRIX /sbin/install
1079 # AmigaOS /C/install, which installs bootblocks on floppy discs
1080 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1081 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1082 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1083 # ./install, which can be erroneously created by make from ./install.sh.
1084 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
1085 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1086 if test -z "$INSTALL"; then
1087 if test "${ac_cv_path_install+set}" = set; then
1088 echo $ECHO_N "(cached) $ECHO_C" >&6
1090 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1094 test -z "$as_dir" && as_dir
=.
1095 # Account for people who put trailing slashes in PATH elements.
1097 .
/ | .
// | /cC
/* | \
1098 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
1101 # OSF1 and SCO ODT 3.0 have their own names for install.
1102 # Don't use installbsd from OSF since it installs stuff as root
1104 for ac_prog
in ginstall scoinst
install; do
1105 for ac_exec_ext
in '' $ac_executable_extensions; do
1106 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1107 if test $ac_prog = install &&
1108 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1109 # AIX install. It has an incompatible calling convention.
1111 elif test $ac_prog = install &&
1112 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1113 # program-specific install script used by HP pwplus--don't use.
1116 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1127 if test "${ac_cv_path_install+set}" = set; then
1128 INSTALL
=$ac_cv_path_install
1130 # As a last resort, use the slow shell script. We don't cache a
1131 # path for INSTALL within a source directory, because that will
1132 # break other packages using the cache if that directory is
1133 # removed, or if the path is relative.
1134 INSTALL
=$ac_install_sh
1137 echo "$as_me:$LINENO: result: $INSTALL" >&5
1138 echo "${ECHO_T}$INSTALL" >&6
1140 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1141 # It thinks the first close brace ends the variable substitution.
1142 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1144 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1146 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1148 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1149 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1152 echo timestamp
> conftest.
file
1153 # Do `set' in a subshell so we don't clobber the current shell's
1154 # arguments. Must try -L first in case configure is actually a
1155 # symlink; some systems play weird games with the mod time of symlinks
1156 # (eg FreeBSD returns the mod time of the symlink's containing
1159 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1160 if test "$*" = "X"; then
1162 set X
`ls -t $srcdir/configure conftest.file`
1165 if test "$*" != "X $srcdir/configure conftest.file" \
1166 && test "$*" != "X conftest.file $srcdir/configure"; then
1168 # If neither matched, then we have a broken ls. This can happen
1169 # if, for instance, CONFIG_SHELL is bash and it inherits a
1170 # broken ls alias from the environment. This has actually
1171 # happened. Such a system could not be considered "sane".
1172 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1173 alias in your environment" >&5
1174 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1175 alias in your environment" >&2;}
1176 { (exit 1); exit 1; }; }
1179 test "$2" = conftest.
file
1185 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1186 Check your system clock" >&5
1187 echo "$as_me: error: newly created file is older than distributed files!
1188 Check your system clock" >&2;}
1189 { (exit 1); exit 1; }; }
1191 echo "$as_me:$LINENO: result: yes" >&5
1192 echo "${ECHO_T}yes" >&6
1193 test "$program_prefix" != NONE
&&
1194 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1195 # Use a double $ so make ignores it.
1196 test "$program_suffix" != NONE
&&
1197 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1198 # Double any \ or $. echo might interpret backslashes.
1199 # By default was `s,x,x', remove it if useless.
1200 cat <<\_ACEOF
>conftest.
sed
1201 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1203 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1206 # expand $ac_aux_dir to an absolute path
1207 am_aux_dir
=`CDPATH=:; cd $ac_aux_dir && pwd`
1209 test x
"${MISSING+set}" = xset
|| MISSING
="\${SHELL} $am_aux_dir/missing"
1210 # Use eval to expand $SHELL
1211 if eval "$MISSING --run true"; then
1212 am_missing_run
="$MISSING --run "
1216 { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1217 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1220 for ac_prog
in mawk gawk nawk
awk
1222 # Extract the first word of "$ac_prog", so it can be a program name with args.
1223 set dummy
$ac_prog; ac_word
=$2
1224 echo "$as_me:$LINENO: checking for $ac_word" >&5
1225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1226 if test "${ac_cv_prog_AWK+set}" = set; then
1227 echo $ECHO_N "(cached) $ECHO_C" >&6
1229 if test -n "$AWK"; then
1230 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1232 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1236 test -z "$as_dir" && as_dir
=.
1237 for ac_exec_ext
in '' $ac_executable_extensions; do
1238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1239 ac_cv_prog_AWK
="$ac_prog"
1240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1249 if test -n "$AWK"; then
1250 echo "$as_me:$LINENO: result: $AWK" >&5
1251 echo "${ECHO_T}$AWK" >&6
1253 echo "$as_me:$LINENO: result: no" >&5
1254 echo "${ECHO_T}no" >&6
1257 test -n "$AWK" && break
1260 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1261 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1262 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
1263 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1264 echo $ECHO_N "(cached) $ECHO_C" >&6
1266 cat >conftest.
make <<\_ACEOF
1268 @
echo 'ac_maketemp="${MAKE}"'
1270 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1271 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1272 if test -n "$ac_maketemp"; then
1273 eval ac_cv_prog_make_
${ac_make}_set
=yes
1275 eval ac_cv_prog_make_
${ac_make}_set
=no
1279 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1280 echo "$as_me:$LINENO: result: yes" >&5
1281 echo "${ECHO_T}yes" >&6
1284 echo "$as_me:$LINENO: result: no" >&5
1285 echo "${ECHO_T}no" >&6
1286 SET_MAKE
="MAKE=${MAKE-make}"
1289 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1290 if test "${enable_dependency_tracking+set}" = set; then
1291 enableval
="$enable_dependency_tracking"
1294 if test "x$enable_dependency_tracking" != xno
; then
1295 am_depcomp
="$ac_aux_dir/depcomp"
1299 if test "x$enable_dependency_tracking" != xno; then
1307 rm -f .deps
2>/dev
/null
1308 mkdir .deps
2>/dev
/null
1309 if test -d .deps
; then
1312 # MS-DOS does not allow filenames that begin with a dot.
1315 rmdir .deps
2>/dev
/null
1317 # test to see if srcdir already configured
1318 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1319 test -f $srcdir/config.status
; then
1320 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1321 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1322 { (exit 1); exit 1; }; }
1325 # Define the identity of the package.
1329 cat >>confdefs.h
<<_ACEOF
1330 #define PACKAGE "$PACKAGE"
1333 cat >>confdefs.h
<<_ACEOF
1334 #define VERSION "$VERSION"
1337 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1338 # the ones we care about.
1340 # Autoconf 2.50 always computes EXEEXT. However we need to be
1341 # compatible with 2.13, for now. So we always define EXEEXT, but we
1344 # Similar for OBJEXT -- only we only use OBJEXT if the user actually
1345 # requests that it be used. This is a bit dumb.
1348 # Some tools Automake needs.
1350 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal"}
1352 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1354 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake"}
1356 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1358 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1360 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1362 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1364 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1366 # We need awk for the "check" target. The system "awk" is bad on
1369 ac_config_headers
="$ac_config_headers config.h:config.hin"
1371 # Initialize the test suite.
1372 ac_config_commands
="$ac_config_commands tests/package.m4"
1374 ac_config_commands
="$ac_config_commands tests/atconfig"
1376 if test -f $srcdir/tests
/atlocal.
in; then
1377 ac_config_files
="$ac_config_files tests/atlocal"
1381 # Checks for programs.
1383 ac_cpp
='$CPP $CPPFLAGS'
1384 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1385 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1386 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1387 if test -n "$ac_tool_prefix"; then
1388 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1389 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1390 echo "$as_me:$LINENO: checking for $ac_word" >&5
1391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1392 if test "${ac_cv_prog_CC+set}" = set; then
1393 echo $ECHO_N "(cached) $ECHO_C" >&6
1395 if test -n "$CC"; then
1396 ac_cv_prog_CC
="$CC" # Let the user override the test.
1398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1402 test -z "$as_dir" && as_dir
=.
1403 for ac_exec_ext
in '' $ac_executable_extensions; do
1404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1405 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1415 if test -n "$CC"; then
1416 echo "$as_me:$LINENO: result: $CC" >&5
1417 echo "${ECHO_T}$CC" >&6
1419 echo "$as_me:$LINENO: result: no" >&5
1420 echo "${ECHO_T}no" >&6
1424 if test -z "$ac_cv_prog_CC"; then
1426 # Extract the first word of "gcc", so it can be a program name with args.
1427 set dummy gcc
; ac_word
=$2
1428 echo "$as_me:$LINENO: checking for $ac_word" >&5
1429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1430 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1431 echo $ECHO_N "(cached) $ECHO_C" >&6
1433 if test -n "$ac_ct_CC"; then
1434 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1440 test -z "$as_dir" && as_dir
=.
1441 for ac_exec_ext
in '' $ac_executable_extensions; do
1442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1443 ac_cv_prog_ac_ct_CC
="gcc"
1444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1452 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1453 if test -n "$ac_ct_CC"; then
1454 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1455 echo "${ECHO_T}$ac_ct_CC" >&6
1457 echo "$as_me:$LINENO: result: no" >&5
1458 echo "${ECHO_T}no" >&6
1466 if test -z "$CC"; then
1467 if test -n "$ac_tool_prefix"; then
1468 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1469 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1470 echo "$as_me:$LINENO: checking for $ac_word" >&5
1471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1472 if test "${ac_cv_prog_CC+set}" = set; then
1473 echo $ECHO_N "(cached) $ECHO_C" >&6
1475 if test -n "$CC"; then
1476 ac_cv_prog_CC
="$CC" # Let the user override the test.
1478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1482 test -z "$as_dir" && as_dir
=.
1483 for ac_exec_ext
in '' $ac_executable_extensions; do
1484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1485 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495 if test -n "$CC"; then
1496 echo "$as_me:$LINENO: result: $CC" >&5
1497 echo "${ECHO_T}$CC" >&6
1499 echo "$as_me:$LINENO: result: no" >&5
1500 echo "${ECHO_T}no" >&6
1504 if test -z "$ac_cv_prog_CC"; then
1506 # Extract the first word of "cc", so it can be a program name with args.
1507 set dummy cc
; ac_word
=$2
1508 echo "$as_me:$LINENO: checking for $ac_word" >&5
1509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1510 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1511 echo $ECHO_N "(cached) $ECHO_C" >&6
1513 if test -n "$ac_ct_CC"; then
1514 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1516 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1520 test -z "$as_dir" && as_dir
=.
1521 for ac_exec_ext
in '' $ac_executable_extensions; do
1522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1523 ac_cv_prog_ac_ct_CC
="cc"
1524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1532 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1533 if test -n "$ac_ct_CC"; then
1534 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1535 echo "${ECHO_T}$ac_ct_CC" >&6
1537 echo "$as_me:$LINENO: result: no" >&5
1538 echo "${ECHO_T}no" >&6
1547 if test -z "$CC"; then
1548 # Extract the first word of "cc", so it can be a program name with args.
1549 set dummy cc
; ac_word
=$2
1550 echo "$as_me:$LINENO: checking for $ac_word" >&5
1551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1552 if test "${ac_cv_prog_CC+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 if test -n "$CC"; then
1556 ac_cv_prog_CC
="$CC" # Let the user override the test.
1559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1563 test -z "$as_dir" && as_dir
=.
1564 for ac_exec_ext
in '' $ac_executable_extensions; do
1565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1566 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1567 ac_prog_rejected
=yes
1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1577 if test $ac_prog_rejected = yes; then
1578 # We found a bogon in the path, so make sure we never use it.
1579 set dummy
$ac_cv_prog_CC
1581 if test $# != 0; then
1582 # We chose a different compiler from the bogus one.
1583 # However, it has the same basename, so the bogon will be chosen
1584 # first if we set CC to just the basename; use the full file name.
1586 set dummy
"$as_dir/$ac_word" ${1+"$@"}
1594 if test -n "$CC"; then
1595 echo "$as_me:$LINENO: result: $CC" >&5
1596 echo "${ECHO_T}$CC" >&6
1598 echo "$as_me:$LINENO: result: no" >&5
1599 echo "${ECHO_T}no" >&6
1603 if test -z "$CC"; then
1604 if test -n "$ac_tool_prefix"; then
1607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1608 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1609 echo "$as_me:$LINENO: checking for $ac_word" >&5
1610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611 if test "${ac_cv_prog_CC+set}" = set; then
1612 echo $ECHO_N "(cached) $ECHO_C" >&6
1614 if test -n "$CC"; then
1615 ac_cv_prog_CC
="$CC" # Let the user override the test.
1617 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1621 test -z "$as_dir" && as_dir
=.
1622 for ac_exec_ext
in '' $ac_executable_extensions; do
1623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1624 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1634 if test -n "$CC"; then
1635 echo "$as_me:$LINENO: result: $CC" >&5
1636 echo "${ECHO_T}$CC" >&6
1638 echo "$as_me:$LINENO: result: no" >&5
1639 echo "${ECHO_T}no" >&6
1642 test -n "$CC" && break
1645 if test -z "$CC"; then
1649 # Extract the first word of "$ac_prog", so it can be a program name with args.
1650 set dummy
$ac_prog; ac_word
=$2
1651 echo "$as_me:$LINENO: checking for $ac_word" >&5
1652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1656 if test -n "$ac_ct_CC"; then
1657 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1659 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1663 test -z "$as_dir" && as_dir
=.
1664 for ac_exec_ext
in '' $ac_executable_extensions; do
1665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1666 ac_cv_prog_ac_ct_CC
="$ac_prog"
1667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1676 if test -n "$ac_ct_CC"; then
1677 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1678 echo "${ECHO_T}$ac_ct_CC" >&6
1680 echo "$as_me:$LINENO: result: no" >&5
1681 echo "${ECHO_T}no" >&6
1684 test -n "$ac_ct_CC" && break
1692 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
1693 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1694 { (exit 1); exit 1; }; }
1696 # Provide some information about the compiler.
1697 echo "$as_me:$LINENO:" \
1698 "checking for C compiler version" >&5
1699 ac_compiler
=`set X $ac_compile; echo $2`
1700 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1701 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1704 (exit $ac_status); }
1705 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1706 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1709 (exit $ac_status); }
1710 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1711 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1714 (exit $ac_status); }
1716 cat >conftest.
$ac_ext <<_ACEOF
1717 #line $LINENO "configure"
1718 #include "confdefs.h"
1720 #ifdef F77_DUMMY_MAIN
1724 int F77_DUMMY_MAIN() { return 1; }
1734 ac_clean_files_save
=$ac_clean_files
1735 ac_clean_files
="$ac_clean_files a.out a.exe"
1736 # Try to create an executable without -o first, disregard a.out.
1737 # It will help us diagnose broken compilers, and finding out an intuition
1739 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1740 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1741 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1742 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1743 (eval $ac_link_default) 2>&5
1745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1746 (exit $ac_status); }; then
1747 # Find the output, starting from the most likely. This scheme is
1748 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1750 for ac_file
in `ls a.exe conftest.exe 2>/dev/null;
1751 ls a.out conftest 2>/dev/null;
1752 ls a.* conftest.* 2>/dev/null`; do
1754 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
) ;;
1755 a.out
) # We found the default executable, but exeext='' is most
1758 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1759 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1766 echo "$as_me: failed program was:" >&5
1767 cat conftest.
$ac_ext >&5
1768 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1769 echo "$as_me: error: C compiler cannot create executables" >&2;}
1770 { (exit 77); exit 77; }; }
1773 ac_exeext
=$ac_cv_exeext
1774 echo "$as_me:$LINENO: result: $ac_file" >&5
1775 echo "${ECHO_T}$ac_file" >&6
1777 # Check the compiler produces executables we can run. If not, either
1778 # the compiler is broken, or we cross compile.
1779 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1780 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1781 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1782 # If not cross compiling, check that we can run a simple program.
1783 if test "$cross_compiling" != yes; then
1784 if { ac_try
='./$ac_file'
1785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1789 (exit $ac_status); }; }; then
1792 if test "$cross_compiling" = maybe
; then
1795 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1796 If you meant to cross compile, use \`--host'." >&5
1797 echo "$as_me: error: cannot run C compiled programs.
1798 If you meant to cross compile, use \`--host'." >&2;}
1799 { (exit 1); exit 1; }; }
1803 echo "$as_me:$LINENO: result: yes" >&5
1804 echo "${ECHO_T}yes" >&6
1806 rm -f a.out a.exe conftest
$ac_cv_exeext
1807 ac_clean_files
=$ac_clean_files_save
1808 # Check the compiler produces executables we can run. If not, either
1809 # the compiler is broken, or we cross compile.
1810 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1811 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1812 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1813 echo "${ECHO_T}$cross_compiling" >&6
1815 echo "$as_me:$LINENO: checking for executable suffix" >&5
1816 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1818 (eval $ac_link) 2>&5
1820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1821 (exit $ac_status); }; then
1822 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1823 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1824 # work properly (i.e., refer to `conftest.exe'), while it won't with
1826 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1828 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1829 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1836 { { echo "$as_me:$LINENO: error: cannot compute EXEEXT: cannot compile and link" >&5
1837 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1838 { (exit 1); exit 1; }; }
1841 rm -f conftest
$ac_cv_exeext
1842 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1843 echo "${ECHO_T}$ac_cv_exeext" >&6
1845 rm -f conftest.
$ac_ext
1846 EXEEXT
=$ac_cv_exeext
1848 echo "$as_me:$LINENO: checking for object suffix" >&5
1849 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1850 if test "${ac_cv_objext+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1853 cat >conftest.
$ac_ext <<_ACEOF
1854 #line $LINENO "configure"
1855 #include "confdefs.h"
1857 #ifdef F77_DUMMY_MAIN
1861 int F77_DUMMY_MAIN() { return 1; }
1871 rm -f conftest.o conftest.obj
1872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1873 (eval $ac_compile) 2>&5
1875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1876 (exit $ac_status); }; then
1877 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1879 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1880 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1885 echo "$as_me: failed program was:" >&5
1886 cat conftest.
$ac_ext >&5
1887 { { echo "$as_me:$LINENO: error: cannot compute OBJEXT: cannot compile" >&5
1888 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1889 { (exit 1); exit 1; }; }
1892 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1894 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1895 echo "${ECHO_T}$ac_cv_objext" >&6
1896 OBJEXT
=$ac_cv_objext
1898 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1899 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1900 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1901 echo $ECHO_N "(cached) $ECHO_C" >&6
1903 cat >conftest.
$ac_ext <<_ACEOF
1904 #line $LINENO "configure"
1905 #include "confdefs.h"
1907 #ifdef F77_DUMMY_MAIN
1911 int F77_DUMMY_MAIN() { return 1; }
1924 rm -f conftest.
$ac_objext
1925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1926 (eval $ac_compile) 2>&5
1928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929 (exit $ac_status); } &&
1930 { ac_try
='test -s conftest.$ac_objext'
1931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); }; }; then
1938 echo "$as_me: failed program was:" >&5
1939 cat conftest.
$ac_ext >&5
1942 rm -f conftest.
$ac_objext conftest.
$ac_ext
1943 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1946 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1947 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1948 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1949 ac_test_CFLAGS
=${CFLAGS+set}
1950 ac_save_CFLAGS
=$CFLAGS
1952 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1953 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1954 if test "${ac_cv_prog_cc_g+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 cat >conftest.
$ac_ext <<_ACEOF
1958 #line $LINENO "configure"
1959 #include "confdefs.h"
1961 #ifdef F77_DUMMY_MAIN
1965 int F77_DUMMY_MAIN() { return 1; }
1975 rm -f conftest.
$ac_objext
1976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1977 (eval $ac_compile) 2>&5
1979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980 (exit $ac_status); } &&
1981 { ac_try
='test -s conftest.$ac_objext'
1982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986 (exit $ac_status); }; }; then
1989 echo "$as_me: failed program was:" >&5
1990 cat conftest.
$ac_ext >&5
1993 rm -f conftest.
$ac_objext conftest.
$ac_ext
1995 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1996 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1997 if test "$ac_test_CFLAGS" = set; then
1998 CFLAGS
=$ac_save_CFLAGS
1999 elif test $ac_cv_prog_cc_g = yes; then
2000 if test "$GCC" = yes; then
2006 if test "$GCC" = yes; then
2012 # Some people use a C++ compiler to compile C. Since we use `exit',
2013 # in C++ we need to declare it. In case someone uses the same compiler
2014 # for both compiling C and C++ we need to have the C++ compiler decide
2015 # the declaration of exit, since it's the most demanding environment.
2016 cat >conftest.
$ac_ext <<_ACEOF
2021 rm -f conftest.
$ac_objext
2022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2023 (eval $ac_compile) 2>&5
2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026 (exit $ac_status); } &&
2027 { ac_try
='test -s conftest.$ac_objext'
2028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }; }; then
2033 for ac_declaration
in \
2035 '#include <stdlib.h>' \
2036 'extern "C" void std::exit (int) throw (); using std::exit;' \
2037 'extern "C" void std::exit (int); using std::exit;' \
2038 'extern "C" void exit (int) throw ();' \
2039 'extern "C" void exit (int);' \
2042 cat >conftest.
$ac_ext <<_ACEOF
2043 #line $LINENO "configure"
2044 #include "confdefs.h"
2047 #ifdef F77_DUMMY_MAIN
2051 int F77_DUMMY_MAIN() { return 1; }
2061 rm -f conftest.
$ac_objext
2062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2063 (eval $ac_compile) 2>&5
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); } &&
2067 { ac_try
='test -s conftest.$ac_objext'
2068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); }; }; then
2075 echo "$as_me: failed program was:" >&5
2076 cat conftest.
$ac_ext >&5
2079 rm -f conftest.
$ac_objext conftest.
$ac_ext
2080 cat >conftest.
$ac_ext <<_ACEOF
2081 #line $LINENO "configure"
2082 #include "confdefs.h"
2084 #ifdef F77_DUMMY_MAIN
2088 int F77_DUMMY_MAIN() { return 1; }
2098 rm -f conftest.
$ac_objext
2099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2100 (eval $ac_compile) 2>&5
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); } &&
2104 { ac_try
='test -s conftest.$ac_objext'
2105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }; }; then
2112 echo "$as_me: failed program was:" >&5
2113 cat conftest.
$ac_ext >&5
2115 rm -f conftest.
$ac_objext conftest.
$ac_ext
2118 if test -n "$ac_declaration"; then
2119 echo '#ifdef __cplusplus' >>confdefs.h
2120 echo $ac_declaration >>confdefs.h
2121 echo '#endif' >>confdefs.h
2125 echo "$as_me: failed program was:" >&5
2126 cat conftest.
$ac_ext >&5
2128 rm -f conftest.
$ac_objext conftest.
$ac_ext
2130 ac_cpp
='$CPP $CPPFLAGS'
2131 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2132 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2133 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2135 ac_config_commands
="$ac_config_commands default-1"
2137 am_make
=${MAKE-make}
2138 cat > confinc
<< 'END'
2142 # If we don't find an include directive, just comment out the code.
2143 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2144 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2148 # First try GNU make style include.
2149 echo "include confinc" > confmf
2150 # We grep out `Entering directory' and `Leaving directory'
2151 # messages which can occur if `w' ends up in MAKEFLAGS.
2152 # In particular we don't look at `^make:' because GNU make might
2153 # be invoked under some other name (usually "gmake"), in which
2154 # case it prints its new name instead of `make'.
2155 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2160 # Now try BSD make style include.
2161 if test "$am__include" = "#"; then
2162 echo '.include "confinc"' > confmf
2163 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2164 am__include
=.include
2170 echo "$as_me:$LINENO: result: $_am_result" >&5
2171 echo "${ECHO_T}$_am_result" >&6
2172 rm -f confinc confmf
2174 depcc
="$CC" am_compiler_list
=
2176 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2177 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2178 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2182 # We make a subdir and do the tests there. Otherwise we can end up
2183 # making bogus files that we don't know about and never remove. For
2184 # instance it was reported that on HP-UX the gcc test will end up
2185 # making a dummy file named `D' -- because `-MD' means `put the output
2188 # Copy depcomp to subdir because otherwise we won't find it if we're
2189 # using a relative directory.
2190 cp "$am_depcomp" conftest.dir
2193 am_cv_CC_dependencies_compiler_type
=none
2194 if test "$am_compiler_list" = ""; then
2195 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2197 for depmode
in $am_compiler_list; do
2198 # We need to recreate these files for each test, as the compiler may
2199 # overwrite some of them when testing with obscure command lines.
2200 # This happens at least with the AIX C compiler.
2201 echo '#include "conftest.h"' > conftest.c
2202 echo 'int i;' > conftest.h
2203 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2207 # after this tag, mechanisms are not by side-effect, so they'll
2208 # only be used when explicitly requested
2209 if test "x$enable_dependency_tracking" = xyes
; then
2217 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2218 # mode. It turns out that the SunPro C++ compiler does not properly
2219 # handle `-M -o', and we need to detect this.
2220 if depmode
=$depmode \
2221 source=conftest.c object
=conftest.o \
2222 depfile
=conftest.Po tmpdepfile
=conftest.TPo \
2223 $SHELL .
/depcomp
$depcc -c conftest.c
-o conftest.o
>/dev
/null
2>&1 &&
2224 grep conftest.h conftest.Po
> /dev
/null
2>&1 &&
2225 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2226 am_cv_CC_dependencies_compiler_type
=$depmode
2234 am_cv_CC_dependencies_compiler_type
=none
2238 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2239 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2240 CCDEPMODE
="depmode=$am_cv_CC_dependencies_compiler_type"
2243 ac_cpp
='$CPP $CPPFLAGS'
2244 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2245 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2246 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2247 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2248 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2249 # On Suns, sometimes $CPP names a directory.
2250 if test -n "$CPP" && test -d "$CPP"; then
2253 if test -z "$CPP"; then
2254 if test "${ac_cv_prog_CPP+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2257 # Double quotes because CPP needs to be expanded
2258 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2261 for ac_c_preproc_warn_flag
in '' yes
2263 # Use a header file that comes with gcc, so configuring glibc
2264 # with a fresh cross-compiler works.
2265 # On the NeXT, cc -E runs the code through the compiler's parser,
2266 # not just through cpp. "Syntax error" is here to catch this case.
2267 cat >conftest.
$ac_ext <<_ACEOF
2268 #line $LINENO "configure"
2269 #include "confdefs.h"
2273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2274 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2276 egrep -v '^ *\+' conftest.er1
>conftest.err
2278 cat conftest.err
>&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); } >/dev
/null
; then
2281 if test -s conftest.err
; then
2282 ac_cpp_err
=$ac_c_preproc_warn_flag
2289 if test -z "$ac_cpp_err"; then
2292 echo "$as_me: failed program was:" >&5
2293 cat conftest.
$ac_ext >&5
2294 # Broken: fails on valid input.
2297 rm -f conftest.err conftest.
$ac_ext
2299 # OK, works on sane cases. Now check whether non-existent headers
2300 # can be detected and how.
2301 cat >conftest.
$ac_ext <<_ACEOF
2302 #line $LINENO "configure"
2303 #include "confdefs.h"
2304 #include <ac_nonexistent.h>
2306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2307 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2309 egrep -v '^ *\+' conftest.er1
>conftest.err
2311 cat conftest.err
>&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } >/dev
/null
; then
2314 if test -s conftest.err
; then
2315 ac_cpp_err
=$ac_c_preproc_warn_flag
2322 if test -z "$ac_cpp_err"; then
2323 # Broken: success on invalid input.
2326 echo "$as_me: failed program was:" >&5
2327 cat conftest.
$ac_ext >&5
2328 # Passes both tests.
2332 rm -f conftest.err conftest.
$ac_ext
2335 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2336 rm -f conftest.err conftest.
$ac_ext
2337 if $ac_preproc_ok; then
2349 echo "$as_me:$LINENO: result: $CPP" >&5
2350 echo "${ECHO_T}$CPP" >&6
2352 for ac_c_preproc_warn_flag
in '' yes
2354 # Use a header file that comes with gcc, so configuring glibc
2355 # with a fresh cross-compiler works.
2356 # On the NeXT, cc -E runs the code through the compiler's parser,
2357 # not just through cpp. "Syntax error" is here to catch this case.
2358 cat >conftest.
$ac_ext <<_ACEOF
2359 #line $LINENO "configure"
2360 #include "confdefs.h"
2364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2365 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2367 egrep -v '^ *\+' conftest.er1
>conftest.err
2369 cat conftest.err
>&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); } >/dev
/null
; then
2372 if test -s conftest.err
; then
2373 ac_cpp_err
=$ac_c_preproc_warn_flag
2380 if test -z "$ac_cpp_err"; then
2383 echo "$as_me: failed program was:" >&5
2384 cat conftest.
$ac_ext >&5
2385 # Broken: fails on valid input.
2388 rm -f conftest.err conftest.
$ac_ext
2390 # OK, works on sane cases. Now check whether non-existent headers
2391 # can be detected and how.
2392 cat >conftest.
$ac_ext <<_ACEOF
2393 #line $LINENO "configure"
2394 #include "confdefs.h"
2395 #include <ac_nonexistent.h>
2397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2398 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2400 egrep -v '^ *\+' conftest.er1
>conftest.err
2402 cat conftest.err
>&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } >/dev
/null
; then
2405 if test -s conftest.err
; then
2406 ac_cpp_err
=$ac_c_preproc_warn_flag
2413 if test -z "$ac_cpp_err"; then
2414 # Broken: success on invalid input.
2417 echo "$as_me: failed program was:" >&5
2418 cat conftest.
$ac_ext >&5
2419 # Passes both tests.
2423 rm -f conftest.err conftest.
$ac_ext
2426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2427 rm -f conftest.err conftest.
$ac_ext
2428 if $ac_preproc_ok; then
2431 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2432 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2433 { (exit 1); exit 1; }; }
2437 ac_cpp
='$CPP $CPPFLAGS'
2438 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2442 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2443 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2444 if test "${ac_cv_header_stdc+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
2447 cat >conftest.
$ac_ext <<_ACEOF
2448 #line $LINENO "configure"
2449 #include "confdefs.h"
2456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2457 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2459 egrep -v '^ *\+' conftest.er1
>conftest.err
2461 cat conftest.err
>&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); } >/dev
/null
; then
2464 if test -s conftest.err
; then
2465 ac_cpp_err
=$ac_c_preproc_warn_flag
2472 if test -z "$ac_cpp_err"; then
2473 ac_cv_header_stdc
=yes
2475 echo "$as_me: failed program was:" >&5
2476 cat conftest.
$ac_ext >&5
2477 ac_cv_header_stdc
=no
2479 rm -f conftest.err conftest.
$ac_ext
2481 if test $ac_cv_header_stdc = yes; then
2482 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2483 cat >conftest.
$ac_ext <<_ACEOF
2484 #line $LINENO "configure"
2485 #include "confdefs.h"
2489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2490 egrep "memchr" >/dev
/null
2>&1; then
2493 ac_cv_header_stdc
=no
2499 if test $ac_cv_header_stdc = yes; then
2500 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2501 cat >conftest.
$ac_ext <<_ACEOF
2502 #line $LINENO "configure"
2503 #include "confdefs.h"
2507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2508 egrep "free" >/dev
/null
2>&1; then
2511 ac_cv_header_stdc
=no
2517 if test $ac_cv_header_stdc = yes; then
2518 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2519 if test "$cross_compiling" = yes; then
2522 cat >conftest.
$ac_ext <<_ACEOF
2523 #line $LINENO "configure"
2524 #include "confdefs.h"
2526 #if ((' ' & 0x0FF) == 0x020)
2527 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2528 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2530 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2531 || ('j' <= (c) && (c) <= 'r') \
2532 || ('s' <= (c) && (c) <= 'z'))
2533 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2536 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2541 for (i = 0; i < 256; i++)
2542 if (XOR (islower (i), ISLOWER (i))
2543 || toupper (i) != TOUPPER (i))
2548 rm -f conftest
$ac_exeext
2549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2550 (eval $ac_link) 2>&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; }; then
2561 echo "$as_me: program exited with status $ac_status" >&5
2562 echo "$as_me: failed program was:" >&5
2563 cat conftest.
$ac_ext >&5
2564 ac_cv_header_stdc
=no
2566 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2570 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2571 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2572 if test $ac_cv_header_stdc = yes; then
2574 cat >>confdefs.h
<<\_ACEOF
2575 #define STDC_HEADERS 1
2580 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2582 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2583 inttypes.h stdint.h unistd.h
2585 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2586 echo "$as_me:$LINENO: checking for $ac_header" >&5
2587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
2591 cat >conftest.
$ac_ext <<_ACEOF
2592 #line $LINENO "configure"
2593 #include "confdefs.h"
2594 $ac_includes_default
2596 #include <$ac_header>
2598 rm -f conftest.
$ac_objext
2599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600 (eval $ac_compile) 2>&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); } &&
2604 { ac_try
='test -s conftest.$ac_objext'
2605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; }; then
2610 eval "$as_ac_Header=yes"
2612 echo "$as_me: failed program was:" >&5
2613 cat conftest.
$ac_ext >&5
2614 eval "$as_ac_Header=no"
2616 rm -f conftest.
$ac_objext conftest.
$ac_ext
2618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2621 cat >>confdefs.h
<<_ACEOF
2622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2629 if test "${ac_cv_header_minix_config_h+set}" = set; then
2630 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2631 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2632 if test "${ac_cv_header_minix_config_h+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
2635 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2636 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2638 # Is the header compilable?
2639 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2640 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2641 cat >conftest.
$ac_ext <<_ACEOF
2642 #line $LINENO "configure"
2643 #include "confdefs.h"
2644 $ac_includes_default
2645 #include <minix/config.h>
2647 rm -f conftest.
$ac_objext
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649 (eval $ac_compile) 2>&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
2653 { ac_try
='test -s conftest.$ac_objext'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; }; then
2659 ac_header_compiler
=yes
2661 echo "$as_me: failed program was:" >&5
2662 cat conftest.
$ac_ext >&5
2663 ac_header_compiler
=no
2665 rm -f conftest.
$ac_objext conftest.
$ac_ext
2666 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2667 echo "${ECHO_T}$ac_header_compiler" >&6
2669 # Is the header present?
2670 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2671 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2672 cat >conftest.
$ac_ext <<_ACEOF
2673 #line $LINENO "configure"
2674 #include "confdefs.h"
2675 #include <minix/config.h>
2677 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2678 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2680 egrep -v '^ *\+' conftest.er1
>conftest.err
2682 cat conftest.err
>&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); } >/dev
/null
; then
2685 if test -s conftest.err
; then
2686 ac_cpp_err
=$ac_c_preproc_warn_flag
2693 if test -z "$ac_cpp_err"; then
2694 ac_header_preproc
=yes
2696 echo "$as_me: failed program was:" >&5
2697 cat conftest.
$ac_ext >&5
2698 ac_header_preproc
=no
2700 rm -f conftest.err conftest.
$ac_ext
2701 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2702 echo "${ECHO_T}$ac_header_preproc" >&6
2704 # So? What about this header?
2705 case $ac_header_compiler:$ac_header_preproc in
2707 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
2708 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2709 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2710 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2712 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled." >&5
2713 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled." >&2;}
2714 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
2715 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
2716 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2717 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2719 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2720 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2721 if test "${ac_cv_header_minix_config_h+set}" = set; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2724 ac_cv_header_minix_config_h
=$ac_header_preproc
2726 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2727 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2730 if test $ac_cv_header_minix_config_h = yes; then
2736 if test "$MINIX" = yes; then
2738 cat >>confdefs.h
<<\_ACEOF
2739 #define _POSIX_SOURCE 1
2742 cat >>confdefs.h
<<\_ACEOF
2743 #define _POSIX_1_SOURCE 2
2746 cat >>confdefs.h
<<\_ACEOF
2752 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2753 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2754 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2755 echo $ECHO_N "(cached) $ECHO_C" >&6
2757 ac_check_lib_save_LIBS
=$LIBS
2758 LIBS
="-lcposix $LIBS"
2759 cat >conftest.
$ac_ext <<_ACEOF
2760 #line $LINENO "configure"
2761 #include "confdefs.h"
2763 /* Override any gcc2 internal prototype to avoid an error. */
2767 /* We use char because int might match the return type of a gcc2
2768 builtin and then its argument prototype would still apply. */
2770 #ifdef F77_DUMMY_MAIN
2774 int F77_DUMMY_MAIN() { return 1; }
2784 rm -f conftest.
$ac_objext conftest
$ac_exeext
2785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2786 (eval $ac_link) 2>&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); } &&
2790 { ac_try
='test -s conftest$ac_exeext'
2791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; }; then
2796 ac_cv_lib_cposix_strerror
=yes
2798 echo "$as_me: failed program was:" >&5
2799 cat conftest.
$ac_ext >&5
2800 ac_cv_lib_cposix_strerror
=no
2802 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2803 LIBS
=$ac_check_lib_save_LIBS
2805 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2806 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2807 if test $ac_cv_lib_cposix_strerror = yes; then
2808 LIBS
="$LIBS -lcposix"
2811 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2812 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2813 if test "${am_cv_prog_cc_stdc+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 am_cv_prog_cc_stdc
=no
2818 # Don't try gcc -ansi; that turns off useful extensions and
2819 # breaks some systems' header files.
2820 # AIX -qlanglvl=ansi
2821 # Ultrix and OSF/1 -std1
2822 # HP-UX 10.20 and later -Ae
2823 # HP-UX older versions -Aa -D_HPUX_SOURCE
2824 # SVR4 -Xc -D__EXTENSIONS__
2825 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2827 CC
="$ac_save_CC $ac_arg"
2828 cat >conftest.
$ac_ext <<_ACEOF
2829 #line $LINENO "configure"
2830 #include "confdefs.h"
2833 #include <sys/types.h>
2834 #include <sys/stat.h>
2835 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2836 struct buf { int x; };
2837 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2838 static char *e (p, i)
2844 static char *f (char * (*g) (char **, int), char **p, ...)
2849 s = g (p, va_arg (v,int));
2853 int test (int i, double x);
2854 struct s1 {int (*f) (int a);};
2855 struct s2 {int (*f) (double a);};
2856 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2860 #ifdef F77_DUMMY_MAIN
2864 int F77_DUMMY_MAIN() { return 1; }
2870 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2876 rm -f conftest.
$ac_objext
2877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2878 (eval $ac_compile) 2>&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } &&
2882 { ac_try
='test -s conftest.$ac_objext'
2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; }; then
2888 am_cv_prog_cc_stdc
="$ac_arg"; break
2890 echo "$as_me: failed program was:" >&5
2891 cat conftest.
$ac_ext >&5
2893 rm -f conftest.
$ac_objext conftest.
$ac_ext
2899 if test -z "$am_cv_prog_cc_stdc"; then
2900 echo "$as_me:$LINENO: result: none needed" >&5
2901 echo "${ECHO_T}none needed" >&6
2903 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2904 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2906 case "x$am_cv_prog_cc_stdc" in
2908 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
2911 if test -n "$ac_tool_prefix"; then
2912 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2913 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2914 echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2916 if test "${ac_cv_prog_RANLIB+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 if test -n "$RANLIB"; then
2920 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2922 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2926 test -z "$as_dir" && as_dir
=.
2927 for ac_exec_ext
in '' $ac_executable_extensions; do
2928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 RANLIB
=$ac_cv_prog_RANLIB
2939 if test -n "$RANLIB"; then
2940 echo "$as_me:$LINENO: result: $RANLIB" >&5
2941 echo "${ECHO_T}$RANLIB" >&6
2943 echo "$as_me:$LINENO: result: no" >&5
2944 echo "${ECHO_T}no" >&6
2948 if test -z "$ac_cv_prog_RANLIB"; then
2949 ac_ct_RANLIB
=$RANLIB
2950 # Extract the first word of "ranlib", so it can be a program name with args.
2951 set dummy ranlib
; ac_word
=$2
2952 echo "$as_me:$LINENO: checking for $ac_word" >&5
2953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2954 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2957 if test -n "$ac_ct_RANLIB"; then
2958 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2964 test -z "$as_dir" && as_dir
=.
2965 for ac_exec_ext
in '' $ac_executable_extensions; do
2966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2967 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2974 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
2977 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2978 if test -n "$ac_ct_RANLIB"; then
2979 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2980 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2982 echo "$as_me:$LINENO: result: no" >&5
2983 echo "${ECHO_T}no" >&6
2986 RANLIB
=$ac_ct_RANLIB
2988 RANLIB
="$ac_cv_prog_RANLIB"
2991 # GNU M4 is needed to build the testsuite.
2992 for ac_prog
in gm4 gnum4
m4
2994 # Extract the first word of "$ac_prog", so it can be a program name with args.
2995 set dummy
$ac_prog; ac_word
=$2
2996 echo "$as_me:$LINENO: checking for $ac_word" >&5
2997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2998 if test "${ac_cv_path_M4+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3003 ac_cv_path_M4
="$M4" # Let the user override the test with a path.
3006 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3010 test -z "$as_dir" && as_dir
=.
3011 for ac_exec_ext
in '' $ac_executable_extensions; do
3012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3013 ac_cv_path_M4
="$as_dir/$ac_word$ac_exec_ext"
3014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 if test -n "$M4"; then
3026 echo "$as_me:$LINENO: result: $M4" >&5
3027 echo "${ECHO_T}$M4" >&6
3029 echo "$as_me:$LINENO: result: no" >&5
3030 echo "${ECHO_T}no" >&6
3033 test -n "$M4" && break
3035 test -n "$M4" || M4
="m4"
3037 echo "$as_me:$LINENO: checking whether m4 supports frozen files" >&5
3038 echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" >&6
3039 if test "${ac_cv_prog_gnu_m4+set}" = set; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3042 ac_cv_prog_gnu_m4
=no
3043 if test x
"$M4" != x
; then
3044 case `$M4 --help < /dev/null 2>&1` in
3045 *reload
-state*) ac_cv_prog_gnu_m4
=yes ;;
3049 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_m4" >&5
3050 echo "${ECHO_T}$ac_cv_prog_gnu_m4" >&6
3052 if test "$ac_cv_prog_gnu_m4" != yes; then
3053 missing_dir
=`cd $ac_aux_dir && pwd`
3054 M4
="$missing_dir/missing m4"
3057 # Check whether --enable-gcc-warnings or --disable-gcc-warnings was given.
3058 if test "${enable_gcc_warnings+set}" = set; then
3059 enableval
="$enable_gcc_warnings"
3060 case "${enableval}" in
3062 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for gcc-warnings option" >&5
3063 echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;}
3064 { (exit 1); exit 1; }; } ;;
3069 if test "${enableval}" = yes; then
3070 echo "$as_me:$LINENO: checking whether compiler accepts -Wall" >&5
3071 echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6
3073 ac_save_CFLAGS
="$CFLAGS"
3074 CFLAGS
="$CFLAGS -Wall"
3075 cat >conftest.
$ac_ext <<_ACEOF
3076 #line $LINENO "configure"
3077 #include "confdefs.h"
3079 #ifdef F77_DUMMY_MAIN
3083 int F77_DUMMY_MAIN() { return 1; }
3093 rm -f conftest.
$ac_objext
3094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3095 (eval $ac_compile) 2>&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } &&
3099 { ac_try
='test -s conftest.$ac_objext'
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; }; then
3105 WARNING_CFLAGS
="$WARNING_CFLAGS -Wall"
3106 echo "$as_me:$LINENO: result: yes" >&5
3107 echo "${ECHO_T}yes" >&6
3109 echo "$as_me: failed program was:" >&5
3110 cat conftest.
$ac_ext >&5
3111 echo "$as_me:$LINENO: result: no" >&5
3112 echo "${ECHO_T}no" >&6
3114 rm -f conftest.
$ac_objext conftest.
$ac_ext
3115 CFLAGS
="$ac_save_CFLAGS"
3116 echo "$as_me:$LINENO: checking whether compiler accepts -W" >&5
3117 echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6
3119 ac_save_CFLAGS
="$CFLAGS"
3121 cat >conftest.
$ac_ext <<_ACEOF
3122 #line $LINENO "configure"
3123 #include "confdefs.h"
3125 #ifdef F77_DUMMY_MAIN
3129 int F77_DUMMY_MAIN() { return 1; }
3139 rm -f conftest.
$ac_objext
3140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3141 (eval $ac_compile) 2>&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } &&
3145 { ac_try
='test -s conftest.$ac_objext'
3146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; }; then
3151 WARNING_CFLAGS
="$WARNING_CFLAGS -W"
3152 echo "$as_me:$LINENO: result: yes" >&5
3153 echo "${ECHO_T}yes" >&6
3155 echo "$as_me: failed program was:" >&5
3156 cat conftest.
$ac_ext >&5
3157 echo "$as_me:$LINENO: result: no" >&5
3158 echo "${ECHO_T}no" >&6
3160 rm -f conftest.
$ac_objext conftest.
$ac_ext
3161 CFLAGS
="$ac_save_CFLAGS"
3162 echo "$as_me:$LINENO: checking whether compiler accepts -Wbad-function-cast" >&5
3163 echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6
3165 ac_save_CFLAGS
="$CFLAGS"
3166 CFLAGS
="$CFLAGS -Wbad-function-cast"
3167 cat >conftest.
$ac_ext <<_ACEOF
3168 #line $LINENO "configure"
3169 #include "confdefs.h"
3171 #ifdef F77_DUMMY_MAIN
3175 int F77_DUMMY_MAIN() { return 1; }
3185 rm -f conftest.
$ac_objext
3186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3187 (eval $ac_compile) 2>&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } &&
3191 { ac_try
='test -s conftest.$ac_objext'
3192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; }; then
3197 WARNING_CFLAGS
="$WARNING_CFLAGS -Wbad-function-cast"
3198 echo "$as_me:$LINENO: result: yes" >&5
3199 echo "${ECHO_T}yes" >&6
3201 echo "$as_me: failed program was:" >&5
3202 cat conftest.
$ac_ext >&5
3203 echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6
3206 rm -f conftest.
$ac_objext conftest.
$ac_ext
3207 CFLAGS
="$ac_save_CFLAGS"
3208 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-align" >&5
3209 echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6
3211 ac_save_CFLAGS
="$CFLAGS"
3212 CFLAGS
="$CFLAGS -Wcast-align"
3213 cat >conftest.
$ac_ext <<_ACEOF
3214 #line $LINENO "configure"
3215 #include "confdefs.h"
3217 #ifdef F77_DUMMY_MAIN
3221 int F77_DUMMY_MAIN() { return 1; }
3231 rm -f conftest.
$ac_objext
3232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3233 (eval $ac_compile) 2>&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } &&
3237 { ac_try
='test -s conftest.$ac_objext'
3238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; }; then
3243 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-align"
3244 echo "$as_me:$LINENO: result: yes" >&5
3245 echo "${ECHO_T}yes" >&6
3247 echo "$as_me: failed program was:" >&5
3248 cat conftest.
$ac_ext >&5
3249 echo "$as_me:$LINENO: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3252 rm -f conftest.
$ac_objext conftest.
$ac_ext
3253 CFLAGS
="$ac_save_CFLAGS"
3254 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-qual" >&5
3255 echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6
3257 ac_save_CFLAGS
="$CFLAGS"
3258 CFLAGS
="$CFLAGS -Wcast-qual"
3259 cat >conftest.
$ac_ext <<_ACEOF
3260 #line $LINENO "configure"
3261 #include "confdefs.h"
3263 #ifdef F77_DUMMY_MAIN
3267 int F77_DUMMY_MAIN() { return 1; }
3277 rm -f conftest.
$ac_objext
3278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3279 (eval $ac_compile) 2>&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } &&
3283 { ac_try
='test -s conftest.$ac_objext'
3284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; }; then
3289 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-qual"
3290 echo "$as_me:$LINENO: result: yes" >&5
3291 echo "${ECHO_T}yes" >&6
3293 echo "$as_me: failed program was:" >&5
3294 cat conftest.
$ac_ext >&5
3295 echo "$as_me:$LINENO: result: no" >&5
3296 echo "${ECHO_T}no" >&6
3298 rm -f conftest.
$ac_objext conftest.
$ac_ext
3299 CFLAGS
="$ac_save_CFLAGS"
3300 echo "$as_me:$LINENO: checking whether compiler accepts -Wformat" >&5
3301 echo $ECHO_N "checking whether compiler accepts -Wformat... $ECHO_C" >&6
3303 ac_save_CFLAGS
="$CFLAGS"
3304 CFLAGS
="$CFLAGS -Wformat"
3305 cat >conftest.
$ac_ext <<_ACEOF
3306 #line $LINENO "configure"
3307 #include "confdefs.h"
3309 #ifdef F77_DUMMY_MAIN
3313 int F77_DUMMY_MAIN() { return 1; }
3323 rm -f conftest.
$ac_objext
3324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3325 (eval $ac_compile) 2>&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); } &&
3329 { ac_try
='test -s conftest.$ac_objext'
3330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); }; }; then
3335 WARNING_CFLAGS
="$WARNING_CFLAGS -Wformat"
3336 echo "$as_me:$LINENO: result: yes" >&5
3337 echo "${ECHO_T}yes" >&6
3339 echo "$as_me: failed program was:" >&5
3340 cat conftest.
$ac_ext >&5
3341 echo "$as_me:$LINENO: result: no" >&5
3342 echo "${ECHO_T}no" >&6
3344 rm -f conftest.
$ac_objext conftest.
$ac_ext
3345 CFLAGS
="$ac_save_CFLAGS"
3346 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-declarations" >&5
3347 echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6
3349 ac_save_CFLAGS
="$CFLAGS"
3350 CFLAGS
="$CFLAGS -Wmissing-declarations"
3351 cat >conftest.
$ac_ext <<_ACEOF
3352 #line $LINENO "configure"
3353 #include "confdefs.h"
3355 #ifdef F77_DUMMY_MAIN
3359 int F77_DUMMY_MAIN() { return 1; }
3369 rm -f conftest.
$ac_objext
3370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3371 (eval $ac_compile) 2>&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } &&
3375 { ac_try
='test -s conftest.$ac_objext'
3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; }; then
3381 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-declarations"
3382 echo "$as_me:$LINENO: result: yes" >&5
3383 echo "${ECHO_T}yes" >&6
3385 echo "$as_me: failed program was:" >&5
3386 cat conftest.
$ac_ext >&5
3387 echo "$as_me:$LINENO: result: no" >&5
3388 echo "${ECHO_T}no" >&6
3390 rm -f conftest.
$ac_objext conftest.
$ac_ext
3391 CFLAGS
="$ac_save_CFLAGS"
3392 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-prototypes" >&5
3393 echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6
3395 ac_save_CFLAGS
="$CFLAGS"
3396 CFLAGS
="$CFLAGS -Wmissing-prototypes"
3397 cat >conftest.
$ac_ext <<_ACEOF
3398 #line $LINENO "configure"
3399 #include "confdefs.h"
3401 #ifdef F77_DUMMY_MAIN
3405 int F77_DUMMY_MAIN() { return 1; }
3415 rm -f conftest.
$ac_objext
3416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3417 (eval $ac_compile) 2>&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } &&
3421 { ac_try
='test -s conftest.$ac_objext'
3422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }; }; then
3427 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-prototypes"
3428 echo "$as_me:$LINENO: result: yes" >&5
3429 echo "${ECHO_T}yes" >&6
3431 echo "$as_me: failed program was:" >&5
3432 cat conftest.
$ac_ext >&5
3433 echo "$as_me:$LINENO: result: no" >&5
3434 echo "${ECHO_T}no" >&6
3436 rm -f conftest.
$ac_objext conftest.
$ac_ext
3437 CFLAGS
="$ac_save_CFLAGS"
3438 echo "$as_me:$LINENO: checking whether compiler accepts -Wnested-externs" >&5
3439 echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6
3441 ac_save_CFLAGS
="$CFLAGS"
3442 CFLAGS
="$CFLAGS -Wnested-externs"
3443 cat >conftest.
$ac_ext <<_ACEOF
3444 #line $LINENO "configure"
3445 #include "confdefs.h"
3447 #ifdef F77_DUMMY_MAIN
3451 int F77_DUMMY_MAIN() { return 1; }
3461 rm -f conftest.
$ac_objext
3462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3463 (eval $ac_compile) 2>&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } &&
3467 { ac_try
='test -s conftest.$ac_objext'
3468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; }; then
3473 WARNING_CFLAGS
="$WARNING_CFLAGS -Wnested-externs"
3474 echo "$as_me:$LINENO: result: yes" >&5
3475 echo "${ECHO_T}yes" >&6
3477 echo "$as_me: failed program was:" >&5
3478 cat conftest.
$ac_ext >&5
3479 echo "$as_me:$LINENO: result: no" >&5
3480 echo "${ECHO_T}no" >&6
3482 rm -f conftest.
$ac_objext conftest.
$ac_ext
3483 CFLAGS
="$ac_save_CFLAGS"
3484 echo "$as_me:$LINENO: checking whether compiler accepts -Wshadow" >&5
3485 echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6
3487 ac_save_CFLAGS
="$CFLAGS"
3488 CFLAGS
="$CFLAGS -Wshadow"
3489 cat >conftest.
$ac_ext <<_ACEOF
3490 #line $LINENO "configure"
3491 #include "confdefs.h"
3493 #ifdef F77_DUMMY_MAIN
3497 int F77_DUMMY_MAIN() { return 1; }
3507 rm -f conftest.
$ac_objext
3508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3509 (eval $ac_compile) 2>&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } &&
3513 { ac_try
='test -s conftest.$ac_objext'
3514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); }; }; then
3519 WARNING_CFLAGS
="$WARNING_CFLAGS -Wshadow"
3520 echo "$as_me:$LINENO: result: yes" >&5
3521 echo "${ECHO_T}yes" >&6
3523 echo "$as_me: failed program was:" >&5
3524 cat conftest.
$ac_ext >&5
3525 echo "$as_me:$LINENO: result: no" >&5
3526 echo "${ECHO_T}no" >&6
3528 rm -f conftest.
$ac_objext conftest.
$ac_ext
3529 CFLAGS
="$ac_save_CFLAGS"
3530 echo "$as_me:$LINENO: checking whether compiler accepts -Wstrict-prototypes" >&5
3531 echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6
3533 ac_save_CFLAGS
="$CFLAGS"
3534 CFLAGS
="$CFLAGS -Wstrict-prototypes"
3535 cat >conftest.
$ac_ext <<_ACEOF
3536 #line $LINENO "configure"
3537 #include "confdefs.h"
3539 #ifdef F77_DUMMY_MAIN
3543 int F77_DUMMY_MAIN() { return 1; }
3553 rm -f conftest.
$ac_objext
3554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3555 (eval $ac_compile) 2>&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } &&
3559 { ac_try
='test -s conftest.$ac_objext'
3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; }; then
3565 WARNING_CFLAGS
="$WARNING_CFLAGS -Wstrict-prototypes"
3566 echo "$as_me:$LINENO: result: yes" >&5
3567 echo "${ECHO_T}yes" >&6
3569 echo "$as_me: failed program was:" >&5
3570 cat conftest.
$ac_ext >&5
3571 echo "$as_me:$LINENO: result: no" >&5
3572 echo "${ECHO_T}no" >&6
3574 rm -f conftest.
$ac_objext conftest.
$ac_ext
3575 CFLAGS
="$ac_save_CFLAGS"
3576 echo "$as_me:$LINENO: checking whether compiler accepts -Wwrite-strings" >&5
3577 echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6
3579 ac_save_CFLAGS
="$CFLAGS"
3580 CFLAGS
="$CFLAGS -Wwrite-strings"
3581 cat >conftest.
$ac_ext <<_ACEOF
3582 #line $LINENO "configure"
3583 #include "confdefs.h"
3585 #ifdef F77_DUMMY_MAIN
3589 int F77_DUMMY_MAIN() { return 1; }
3599 rm -f conftest.
$ac_objext
3600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3601 (eval $ac_compile) 2>&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } &&
3605 { ac_try
='test -s conftest.$ac_objext'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; }; then
3611 WARNING_CFLAGS
="$WARNING_CFLAGS -Wwrite-strings"
3612 echo "$as_me:$LINENO: result: yes" >&5
3613 echo "${ECHO_T}yes" >&6
3615 echo "$as_me: failed program was:" >&5
3616 cat conftest.
$ac_ext >&5
3617 echo "$as_me:$LINENO: result: no" >&5
3618 echo "${ECHO_T}no" >&6
3620 rm -f conftest.
$ac_objext conftest.
$ac_ext
3621 CFLAGS
="$ac_save_CFLAGS"
3622 CFLAGS
="$CFLAGS $WARNING_CFLAGS"
3625 # Checks for libraries.
3627 cat >>confdefs.h
<<\_ACEOF
3628 #define _GNU_SOURCE 1
3631 # Checks for header files.
3632 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3633 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3634 if test "${ac_cv_header_stdc+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 cat >conftest.
$ac_ext <<_ACEOF
3638 #line $LINENO "configure"
3639 #include "confdefs.h"
3646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3647 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3649 egrep -v '^ *\+' conftest.er1
>conftest.err
3651 cat conftest.err
>&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } >/dev
/null
; then
3654 if test -s conftest.err
; then
3655 ac_cpp_err
=$ac_c_preproc_warn_flag
3662 if test -z "$ac_cpp_err"; then
3663 ac_cv_header_stdc
=yes
3665 echo "$as_me: failed program was:" >&5
3666 cat conftest.
$ac_ext >&5
3667 ac_cv_header_stdc
=no
3669 rm -f conftest.err conftest.
$ac_ext
3671 if test $ac_cv_header_stdc = yes; then
3672 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3673 cat >conftest.
$ac_ext <<_ACEOF
3674 #line $LINENO "configure"
3675 #include "confdefs.h"
3679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3680 egrep "memchr" >/dev
/null
2>&1; then
3683 ac_cv_header_stdc
=no
3689 if test $ac_cv_header_stdc = yes; then
3690 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3691 cat >conftest.
$ac_ext <<_ACEOF
3692 #line $LINENO "configure"
3693 #include "confdefs.h"
3697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3698 egrep "free" >/dev
/null
2>&1; then
3701 ac_cv_header_stdc
=no
3707 if test $ac_cv_header_stdc = yes; then
3708 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3709 if test "$cross_compiling" = yes; then
3712 cat >conftest.
$ac_ext <<_ACEOF
3713 #line $LINENO "configure"
3714 #include "confdefs.h"
3716 #if ((' ' & 0x0FF) == 0x020)
3717 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3718 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3720 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3721 || ('j' <= (c) && (c) <= 'r') \
3722 || ('s' <= (c) && (c) <= 'z'))
3723 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3726 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3731 for (i = 0; i < 256; i++)
3732 if (XOR (islower (i), ISLOWER (i))
3733 || toupper (i) != TOUPPER (i))
3738 rm -f conftest
$ac_exeext
3739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3740 (eval $ac_link) 2>&5
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; }; then
3751 echo "$as_me: program exited with status $ac_status" >&5
3752 echo "$as_me: failed program was:" >&5
3753 cat conftest.
$ac_ext >&5
3754 ac_cv_header_stdc
=no
3756 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3760 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3761 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3762 if test $ac_cv_header_stdc = yes; then
3764 cat >>confdefs.h
<<\_ACEOF
3765 #define STDC_HEADERS 1
3770 for ac_header
in ctype.h locale.h memory.h stdlib.h string.h unistd.h
3772 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3774 echo "$as_me:$LINENO: checking for $ac_header" >&5
3775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3782 # Is the header compilable?
3783 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3784 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3785 cat >conftest.
$ac_ext <<_ACEOF
3786 #line $LINENO "configure"
3787 #include "confdefs.h"
3788 $ac_includes_default
3789 #include <$ac_header>
3791 rm -f conftest.
$ac_objext
3792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3793 (eval $ac_compile) 2>&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); } &&
3797 { ac_try
='test -s conftest.$ac_objext'
3798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }; }; then
3803 ac_header_compiler
=yes
3805 echo "$as_me: failed program was:" >&5
3806 cat conftest.
$ac_ext >&5
3807 ac_header_compiler
=no
3809 rm -f conftest.
$ac_objext conftest.
$ac_ext
3810 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3811 echo "${ECHO_T}$ac_header_compiler" >&6
3813 # Is the header present?
3814 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3816 cat >conftest.
$ac_ext <<_ACEOF
3817 #line $LINENO "configure"
3818 #include "confdefs.h"
3819 #include <$ac_header>
3821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3822 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3824 egrep -v '^ *\+' conftest.er1
>conftest.err
3826 cat conftest.err
>&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); } >/dev
/null
; then
3829 if test -s conftest.err
; then
3830 ac_cpp_err
=$ac_c_preproc_warn_flag
3837 if test -z "$ac_cpp_err"; then
3838 ac_header_preproc
=yes
3840 echo "$as_me: failed program was:" >&5
3841 cat conftest.
$ac_ext >&5
3842 ac_header_preproc
=no
3844 rm -f conftest.err conftest.
$ac_ext
3845 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3846 echo "${ECHO_T}$ac_header_preproc" >&6
3848 # So? What about this header?
3849 case $ac_header_compiler:$ac_header_preproc in
3851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3854 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3856 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
3857 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
3858 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3859 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3863 echo "$as_me:$LINENO: checking for $ac_header" >&5
3864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 eval "$as_ac_Header=$ac_header_preproc"
3870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3875 cat >>confdefs.h
<<_ACEOF
3876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3883 # Checks for typedefs.
3885 # Checks for structures.
3887 # Checks for compiler characteristics.
3888 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3889 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3890 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 ac_cv_prog_cc_stdc
=no
3895 cat >conftest.
$ac_ext <<_ACEOF
3896 #line $LINENO "configure"
3897 #include "confdefs.h"
3900 #include <sys/types.h>
3901 #include <sys/stat.h>
3902 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3903 struct buf { int x; };
3904 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3905 static char *e (p, i)
3911 static char *f (char * (*g) (char **, int), char **p, ...)
3916 s = g (p, va_arg (v,int));
3920 int test (int i, double x);
3921 struct s1 {int (*f) (int a);};
3922 struct s2 {int (*f) (double a);};
3923 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3926 #ifdef F77_DUMMY_MAIN
3930 int F77_DUMMY_MAIN() { return 1; }
3935 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3940 # Don't try gcc -ansi; that turns off useful extensions and
3941 # breaks some systems' header files.
3942 # AIX -qlanglvl=ansi
3943 # Ultrix and OSF/1 -std1
3944 # HP-UX 10.20 and later -Ae
3945 # HP-UX older versions -Aa -D_HPUX_SOURCE
3946 # SVR4 -Xc -D__EXTENSIONS__
3947 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3949 CC
="$ac_save_CC $ac_arg"
3950 rm -f conftest.
$ac_objext
3951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3952 (eval $ac_compile) 2>&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } &&
3956 { ac_try
='test -s conftest.$ac_objext'
3957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }; }; then
3962 ac_cv_prog_cc_stdc
=$ac_arg
3965 echo "$as_me: failed program was:" >&5
3966 cat conftest.
$ac_ext >&5
3968 rm -f conftest.
$ac_objext
3970 rm -f conftest.
$ac_ext conftest.
$ac_objext
3975 case "x$ac_cv_prog_cc_stdc" in
3977 echo "$as_me:$LINENO: result: none needed" >&5
3978 echo "${ECHO_T}none needed" >&6 ;;
3980 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3981 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3982 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3985 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3986 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3987 if test "${ac_cv_c_const+set}" = set; then
3988 echo $ECHO_N "(cached) $ECHO_C" >&6
3990 cat >conftest.
$ac_ext <<_ACEOF
3991 #line $LINENO "configure"
3992 #include "confdefs.h"
3994 #ifdef F77_DUMMY_MAIN
3998 int F77_DUMMY_MAIN() { return 1; }
4003 /* FIXME: Include the comments suggested by Paul. */
4005 /* Ultrix mips cc rejects this. */
4006 typedef int charset[2];
4008 /* SunOS 4.1.1 cc rejects this. */
4009 char const *const *ccp;
4011 /* NEC SVR4.0.2 mips cc rejects this. */
4012 struct point {int x, y;};
4013 static struct point const zero = {0,0};
4014 /* AIX XL C 1.02.0.0 rejects this.
4015 It does not let you subtract one const X* pointer from another in
4016 an arm of an if-expression whose if-part is not a constant
4018 const char *g = "string";
4019 ccp = &g + (g ? g-g : 0);
4020 /* HPUX 7.0 cc rejects these. */
4023 ccp = (char const *const *) p;
4024 { /* SCO 3.2v4 cc rejects this. */
4026 char const *s = 0 ? (char *) 0 : (char const *) 0;
4030 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4032 const int *foo = &x[0];
4035 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4036 typedef const int *iptr;
4040 { /* AIX XL C 1.02.0.0 rejects this saying
4041 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4042 struct s { int j; const int *ap[3]; };
4043 struct s *b; b->j = 5;
4045 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4054 rm -f conftest.
$ac_objext
4055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4056 (eval $ac_compile) 2>&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); } &&
4060 { ac_try
='test -s conftest.$ac_objext'
4061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); }; }; then
4068 echo "$as_me: failed program was:" >&5
4069 cat conftest.
$ac_ext >&5
4072 rm -f conftest.
$ac_objext conftest.
$ac_ext
4074 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4075 echo "${ECHO_T}$ac_cv_c_const" >&6
4076 if test $ac_cv_c_const = no
; then
4078 cat >>confdefs.h
<<\_ACEOF
4084 echo "$as_me:$LINENO: checking for inline" >&5
4085 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4086 if test "${ac_cv_c_inline+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 for ac_kw
in inline __inline__ __inline
; do
4091 cat >conftest.
$ac_ext <<_ACEOF
4092 #line $LINENO "configure"
4093 #include "confdefs.h"
4095 static $ac_kw int static_foo () {return 0; }
4096 $ac_kw int foo () {return 0; }
4100 rm -f conftest.
$ac_objext
4101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4102 (eval $ac_compile) 2>&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); } &&
4106 { ac_try
='test -s conftest.$ac_objext'
4107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; }; then
4112 ac_cv_c_inline
=$ac_kw; break
4114 echo "$as_me: failed program was:" >&5
4115 cat conftest.
$ac_ext >&5
4117 rm -f conftest.
$ac_objext conftest.
$ac_ext
4121 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4122 echo "${ECHO_T}$ac_cv_c_inline" >&6
4123 case $ac_cv_c_inline in
4126 cat >>confdefs.h
<<\_ACEOF
4130 *) cat >>confdefs.h
<<_ACEOF
4131 #define inline $ac_cv_c_inline
4136 echo "$as_me:$LINENO: checking for function prototypes" >&5
4137 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4138 if test "$am_cv_prog_cc_stdc" != no
; then
4139 echo "$as_me:$LINENO: result: yes" >&5
4140 echo "${ECHO_T}yes" >&6
4142 cat >>confdefs.h
<<\_ACEOF
4143 #define PROTOTYPES 1
4148 echo "$as_me:$LINENO: result: no" >&5
4149 echo "${ECHO_T}no" >&6
4150 U
=_ ANSI2KNR
=.
/ansi2knr
4152 # Ensure some checks needed by ansi2knr itself.
4153 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4154 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4155 if test "${ac_cv_header_stdc+set}" = set; then
4156 echo $ECHO_N "(cached) $ECHO_C" >&6
4158 cat >conftest.
$ac_ext <<_ACEOF
4159 #line $LINENO "configure"
4160 #include "confdefs.h"
4167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4168 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4170 egrep -v '^ *\+' conftest.er1
>conftest.err
4172 cat conftest.err
>&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); } >/dev
/null
; then
4175 if test -s conftest.err
; then
4176 ac_cpp_err
=$ac_c_preproc_warn_flag
4183 if test -z "$ac_cpp_err"; then
4184 ac_cv_header_stdc
=yes
4186 echo "$as_me: failed program was:" >&5
4187 cat conftest.
$ac_ext >&5
4188 ac_cv_header_stdc
=no
4190 rm -f conftest.err conftest.
$ac_ext
4192 if test $ac_cv_header_stdc = yes; then
4193 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4194 cat >conftest.
$ac_ext <<_ACEOF
4195 #line $LINENO "configure"
4196 #include "confdefs.h"
4200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4201 egrep "memchr" >/dev
/null
2>&1; then
4204 ac_cv_header_stdc
=no
4210 if test $ac_cv_header_stdc = yes; then
4211 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4212 cat >conftest.
$ac_ext <<_ACEOF
4213 #line $LINENO "configure"
4214 #include "confdefs.h"
4218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4219 egrep "free" >/dev
/null
2>&1; then
4222 ac_cv_header_stdc
=no
4228 if test $ac_cv_header_stdc = yes; then
4229 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4230 if test "$cross_compiling" = yes; then
4233 cat >conftest.
$ac_ext <<_ACEOF
4234 #line $LINENO "configure"
4235 #include "confdefs.h"
4237 #if ((' ' & 0x0FF) == 0x020)
4238 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4239 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4241 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4242 || ('j' <= (c) && (c) <= 'r') \
4243 || ('s' <= (c) && (c) <= 'z'))
4244 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4247 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4252 for (i = 0; i < 256; i++)
4253 if (XOR (islower (i), ISLOWER (i))
4254 || toupper (i) != TOUPPER (i))
4259 rm -f conftest
$ac_exeext
4260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4261 (eval $ac_link) 2>&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; }; then
4272 echo "$as_me: program exited with status $ac_status" >&5
4273 echo "$as_me: failed program was:" >&5
4274 cat conftest.
$ac_ext >&5
4275 ac_cv_header_stdc
=no
4277 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4281 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4282 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4283 if test $ac_cv_header_stdc = yes; then
4285 cat >>confdefs.h
<<\_ACEOF
4286 #define STDC_HEADERS 1
4291 for ac_header
in string.h
4293 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4295 echo "$as_me:$LINENO: checking for $ac_header" >&5
4296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4303 # Is the header compilable?
4304 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4306 cat >conftest.
$ac_ext <<_ACEOF
4307 #line $LINENO "configure"
4308 #include "confdefs.h"
4309 $ac_includes_default
4310 #include <$ac_header>
4312 rm -f conftest.
$ac_objext
4313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4314 (eval $ac_compile) 2>&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } &&
4318 { ac_try
='test -s conftest.$ac_objext'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 ac_header_compiler
=yes
4326 echo "$as_me: failed program was:" >&5
4327 cat conftest.
$ac_ext >&5
4328 ac_header_compiler
=no
4330 rm -f conftest.
$ac_objext conftest.
$ac_ext
4331 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4332 echo "${ECHO_T}$ac_header_compiler" >&6
4334 # Is the header present?
4335 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4337 cat >conftest.
$ac_ext <<_ACEOF
4338 #line $LINENO "configure"
4339 #include "confdefs.h"
4340 #include <$ac_header>
4342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4343 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4345 egrep -v '^ *\+' conftest.er1
>conftest.err
4347 cat conftest.err
>&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } >/dev
/null
; then
4350 if test -s conftest.err
; then
4351 ac_cpp_err
=$ac_c_preproc_warn_flag
4358 if test -z "$ac_cpp_err"; then
4359 ac_header_preproc
=yes
4361 echo "$as_me: failed program was:" >&5
4362 cat conftest.
$ac_ext >&5
4363 ac_header_preproc
=no
4365 rm -f conftest.err conftest.
$ac_ext
4366 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4367 echo "${ECHO_T}$ac_header_preproc" >&6
4369 # So? What about this header?
4370 case $ac_header_compiler:$ac_header_preproc in
4372 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4373 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4377 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
4378 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
4379 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4380 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4384 echo "$as_me:$LINENO: checking for $ac_header" >&5
4385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 eval "$as_ac_Header=$ac_header_preproc"
4391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4396 cat >>confdefs.h
<<_ACEOF
4397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4404 # Checks for library functions.
4405 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4406 # for constant arguments. Useless!
4407 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4408 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4409 if test "${ac_cv_working_alloca_h+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 cat >conftest.
$ac_ext <<_ACEOF
4413 #line $LINENO "configure"
4414 #include "confdefs.h"
4416 #ifdef F77_DUMMY_MAIN
4420 int F77_DUMMY_MAIN() { return 1; }
4425 char *p = (char *) alloca (2 * sizeof (int));
4430 rm -f conftest.
$ac_objext conftest
$ac_exeext
4431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4432 (eval $ac_link) 2>&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } &&
4436 { ac_try
='test -s conftest$ac_exeext'
4437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; }; then
4442 ac_cv_working_alloca_h
=yes
4444 echo "$as_me: failed program was:" >&5
4445 cat conftest.
$ac_ext >&5
4446 ac_cv_working_alloca_h
=no
4448 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4450 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4451 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4452 if test $ac_cv_working_alloca_h = yes; then
4454 cat >>confdefs.h
<<\_ACEOF
4455 #define HAVE_ALLOCA_H 1
4460 echo "$as_me:$LINENO: checking for alloca" >&5
4461 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4462 if test "${ac_cv_func_alloca_works+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 cat >conftest.
$ac_ext <<_ACEOF
4466 #line $LINENO "configure"
4467 #include "confdefs.h"
4469 # define alloca __builtin_alloca
4472 # include <malloc.h>
4473 # define alloca _alloca
4476 # include <alloca.h>
4481 # ifndef alloca /* predefined by HP cc +Olibcalls */
4489 #ifdef F77_DUMMY_MAIN
4493 int F77_DUMMY_MAIN() { return 1; }
4498 char *p = (char *) alloca (1);
4503 rm -f conftest.
$ac_objext conftest
$ac_exeext
4504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4505 (eval $ac_link) 2>&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); } &&
4509 { ac_try
='test -s conftest$ac_exeext'
4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4515 ac_cv_func_alloca_works
=yes
4517 echo "$as_me: failed program was:" >&5
4518 cat conftest.
$ac_ext >&5
4519 ac_cv_func_alloca_works
=no
4521 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4523 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4524 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4526 if test $ac_cv_func_alloca_works = yes; then
4528 cat >>confdefs.h
<<\_ACEOF
4529 #define HAVE_ALLOCA 1
4533 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4534 # that cause trouble. Some versions do not even contain alloca or
4535 # contain a buggy version. If you still want to use their alloca,
4536 # use ar to extract alloca.o from them instead of compiling alloca.c.
4538 ALLOCA
=alloca.
$ac_objext
4540 cat >>confdefs.h
<<\_ACEOF
4544 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4545 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4546 if test "${ac_cv_os_cray+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4549 cat >conftest.
$ac_ext <<_ACEOF
4550 #line $LINENO "configure"
4551 #include "confdefs.h"
4552 #if defined(CRAY) && ! defined(CRAY2)
4559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4560 egrep "webecray" >/dev
/null
2>&1; then
4568 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4569 echo "${ECHO_T}$ac_cv_os_cray" >&6
4570 if test $ac_cv_os_cray = yes; then
4571 for ac_func
in _getb67 GETB67 getb67
; do
4572 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4573 echo "$as_me:$LINENO: checking for $ac_func" >&5
4574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4575 if eval "test \"\${$as_ac_var+set}\" = set"; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 cat >conftest.
$ac_ext <<_ACEOF
4579 #line $LINENO "configure"
4580 #include "confdefs.h"
4581 /* System header to define __stub macros and hopefully few prototypes,
4582 which can conflict with char $ac_func (); below. */
4584 /* Override any gcc2 internal prototype to avoid an error. */
4588 /* We use char because int might match the return type of a gcc2
4589 builtin and then its argument prototype would still apply. */
4593 #ifdef F77_DUMMY_MAIN
4597 int F77_DUMMY_MAIN() { return 1; }
4602 /* The GNU C library defines this for functions which it implements
4603 to always fail with ENOSYS. Some functions are actually named
4604 something starting with __ and the normal name is an alias. */
4605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4615 rm -f conftest.
$ac_objext conftest
$ac_exeext
4616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4617 (eval $ac_link) 2>&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } &&
4621 { ac_try
='test -s conftest$ac_exeext'
4622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; }; then
4627 eval "$as_ac_var=yes"
4629 echo "$as_me: failed program was:" >&5
4630 cat conftest.
$ac_ext >&5
4631 eval "$as_ac_var=no"
4633 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4637 if test `eval echo '${'$as_ac_var'}'` = yes; then
4639 cat >>confdefs.h
<<_ACEOF
4640 #define CRAY_STACKSEG_END $ac_func
4649 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4650 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4651 if test "${ac_cv_c_stack_direction+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 if test "$cross_compiling" = yes; then
4655 ac_cv_c_stack_direction
=0
4657 cat >conftest.
$ac_ext <<_ACEOF
4658 #line $LINENO "configure"
4659 #include "confdefs.h"
4661 find_stack_direction ()
4663 static char *addr = 0;
4668 return find_stack_direction ();
4671 return (&dummy > addr) ? 1 : -1;
4677 exit (find_stack_direction () < 0);
4680 rm -f conftest
$ac_exeext
4681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4682 (eval $ac_link) 2>&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4691 ac_cv_c_stack_direction
=1
4693 echo "$as_me: program exited with status $ac_status" >&5
4694 echo "$as_me: failed program was:" >&5
4695 cat conftest.
$ac_ext >&5
4696 ac_cv_c_stack_direction
=-1
4698 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4701 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4702 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4704 cat >>confdefs.h
<<_ACEOF
4705 #define STACK_DIRECTION $ac_cv_c_stack_direction
4710 for ac_func
in mkstemp setlocale
4712 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4713 echo "$as_me:$LINENO: checking for $ac_func" >&5
4714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4715 if eval "test \"\${$as_ac_var+set}\" = set"; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4718 cat >conftest.
$ac_ext <<_ACEOF
4719 #line $LINENO "configure"
4720 #include "confdefs.h"
4721 /* System header to define __stub macros and hopefully few prototypes,
4722 which can conflict with char $ac_func (); below. */
4724 /* Override any gcc2 internal prototype to avoid an error. */
4728 /* We use char because int might match the return type of a gcc2
4729 builtin and then its argument prototype would still apply. */
4733 #ifdef F77_DUMMY_MAIN
4737 int F77_DUMMY_MAIN() { return 1; }
4742 /* The GNU C library defines this for functions which it implements
4743 to always fail with ENOSYS. Some functions are actually named
4744 something starting with __ and the normal name is an alias. */
4745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4755 rm -f conftest.
$ac_objext conftest
$ac_exeext
4756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4757 (eval $ac_link) 2>&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } &&
4761 { ac_try
='test -s conftest$ac_exeext'
4762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); }; }; then
4767 eval "$as_ac_var=yes"
4769 echo "$as_me: failed program was:" >&5
4770 cat conftest.
$ac_ext >&5
4771 eval "$as_ac_var=no"
4773 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4777 if test `eval echo '${'$as_ac_var'}'` = yes; then
4778 cat >>confdefs.h
<<_ACEOF
4779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4785 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
4786 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
4787 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 cat >conftest.
$ac_ext <<_ACEOF
4791 #line $LINENO "configure"
4792 #include "confdefs.h"
4793 $ac_includes_default
4794 #ifdef F77_DUMMY_MAIN
4798 int F77_DUMMY_MAIN() { return 1; }
4804 char *p = (char *) stpcpy;
4811 rm -f conftest.
$ac_objext
4812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4813 (eval $ac_compile) 2>&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } &&
4817 { ac_try
='test -s conftest.$ac_objext'
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; }; then
4823 ac_cv_have_decl_stpcpy
=yes
4825 echo "$as_me: failed program was:" >&5
4826 cat conftest.
$ac_ext >&5
4827 ac_cv_have_decl_stpcpy
=no
4829 rm -f conftest.
$ac_objext conftest.
$ac_ext
4831 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
4832 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
4833 if test $ac_cv_have_decl_stpcpy = yes; then
4835 cat >>confdefs.h
<<_ACEOF
4836 #define HAVE_DECL_STPCPY 1
4840 cat >>confdefs.h
<<_ACEOF
4841 #define HAVE_DECL_STPCPY 0
4845 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
4846 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
4847 if test "${ac_cv_have_decl_strndup+set}" = set; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4850 cat >conftest.
$ac_ext <<_ACEOF
4851 #line $LINENO "configure"
4852 #include "confdefs.h"
4853 $ac_includes_default
4854 #ifdef F77_DUMMY_MAIN
4858 int F77_DUMMY_MAIN() { return 1; }
4864 char *p = (char *) strndup;
4871 rm -f conftest.
$ac_objext
4872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4873 (eval $ac_compile) 2>&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); } &&
4877 { ac_try
='test -s conftest.$ac_objext'
4878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }; }; then
4883 ac_cv_have_decl_strndup
=yes
4885 echo "$as_me: failed program was:" >&5
4886 cat conftest.
$ac_ext >&5
4887 ac_cv_have_decl_strndup
=no
4889 rm -f conftest.
$ac_objext conftest.
$ac_ext
4891 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
4892 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
4893 if test $ac_cv_have_decl_strndup = yes; then
4895 cat >>confdefs.h
<<_ACEOF
4896 #define HAVE_DECL_STRNDUP 1
4900 cat >>confdefs.h
<<_ACEOF
4901 #define HAVE_DECL_STRNDUP 0
4905 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
4906 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
4907 if test "${ac_cv_have_decl_strnlen+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4910 cat >conftest.
$ac_ext <<_ACEOF
4911 #line $LINENO "configure"
4912 #include "confdefs.h"
4913 $ac_includes_default
4914 #ifdef F77_DUMMY_MAIN
4918 int F77_DUMMY_MAIN() { return 1; }
4924 char *p = (char *) strnlen;
4931 rm -f conftest.
$ac_objext
4932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4933 (eval $ac_compile) 2>&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } &&
4937 { ac_try
='test -s conftest.$ac_objext'
4938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); }; }; then
4943 ac_cv_have_decl_strnlen
=yes
4945 echo "$as_me: failed program was:" >&5
4946 cat conftest.
$ac_ext >&5
4947 ac_cv_have_decl_strnlen
=no
4949 rm -f conftest.
$ac_objext conftest.
$ac_ext
4951 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
4952 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
4953 if test $ac_cv_have_decl_strnlen = yes; then
4955 cat >>confdefs.h
<<_ACEOF
4956 #define HAVE_DECL_STRNLEN 1
4960 cat >>confdefs.h
<<_ACEOF
4961 #define HAVE_DECL_STRNLEN 0
4965 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
4966 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
4967 if test "${ac_cv_have_decl_memchr+set}" = set; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4970 cat >conftest.
$ac_ext <<_ACEOF
4971 #line $LINENO "configure"
4972 #include "confdefs.h"
4973 $ac_includes_default
4974 #ifdef F77_DUMMY_MAIN
4978 int F77_DUMMY_MAIN() { return 1; }
4984 char *p = (char *) memchr;
4991 rm -f conftest.
$ac_objext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993 (eval $ac_compile) 2>&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } &&
4997 { ac_try
='test -s conftest.$ac_objext'
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; }; then
5003 ac_cv_have_decl_memchr
=yes
5005 echo "$as_me: failed program was:" >&5
5006 cat conftest.
$ac_ext >&5
5007 ac_cv_have_decl_memchr
=no
5009 rm -f conftest.
$ac_objext conftest.
$ac_ext
5011 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
5012 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
5013 if test $ac_cv_have_decl_memchr = yes; then
5015 cat >>confdefs.h
<<_ACEOF
5016 #define HAVE_DECL_MEMCHR 1
5020 cat >>confdefs.h
<<_ACEOF
5021 #define HAVE_DECL_MEMCHR 0
5026 for ac_func
in stpcpy strndup strnlen strspn memchr
5028 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5029 echo "$as_me:$LINENO: checking for $ac_func" >&5
5030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5031 if eval "test \"\${$as_ac_var+set}\" = set"; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 cat >conftest.
$ac_ext <<_ACEOF
5035 #line $LINENO "configure"
5036 #include "confdefs.h"
5037 /* System header to define __stub macros and hopefully few prototypes,
5038 which can conflict with char $ac_func (); below. */
5040 /* Override any gcc2 internal prototype to avoid an error. */
5044 /* We use char because int might match the return type of a gcc2
5045 builtin and then its argument prototype would still apply. */
5049 #ifdef F77_DUMMY_MAIN
5053 int F77_DUMMY_MAIN() { return 1; }
5058 /* The GNU C library defines this for functions which it implements
5059 to always fail with ENOSYS. Some functions are actually named
5060 something starting with __ and the normal name is an alias. */
5061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5071 rm -f conftest.
$ac_objext conftest
$ac_exeext
5072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5073 (eval $ac_link) 2>&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); } &&
5077 { ac_try
='test -s conftest$ac_exeext'
5078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }; }; then
5083 eval "$as_ac_var=yes"
5085 echo "$as_me: failed program was:" >&5
5086 cat conftest.
$ac_ext >&5
5087 eval "$as_ac_var=no"
5089 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5092 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5093 if test `eval echo '${'$as_ac_var'}'` = yes; then
5094 cat >>confdefs.h
<<_ACEOF
5095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5099 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
5103 cat >>confdefs.h
<<_ACEOF
5104 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
5107 echo "$as_me:$LINENO: checking for working malloc" >&5
5108 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
5109 if test "${jm_cv_func_working_malloc+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 if test "$cross_compiling" = yes; then
5113 jm_cv_func_working_malloc
=no
5115 cat >conftest.
$ac_ext <<_ACEOF
5116 #line $LINENO "configure"
5117 #include "confdefs.h"
5123 exit (malloc (0) ? 0 : 1);
5127 rm -f conftest
$ac_exeext
5128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5129 (eval $ac_link) 2>&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); }; }; then
5138 jm_cv_func_working_malloc
=yes
5140 echo "$as_me: program exited with status $ac_status" >&5
5141 echo "$as_me: failed program was:" >&5
5142 cat conftest.
$ac_ext >&5
5143 jm_cv_func_working_malloc
=no
5145 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5149 echo "$as_me:$LINENO: result: $jm_cv_func_working_malloc" >&5
5150 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
5151 if test $jm_cv_func_working_malloc = no
; then
5153 LIBOBJS
="$LIBOBJS malloc.$ac_objext"
5155 cat >>confdefs.h
<<_ACEOF
5156 #define malloc rpl_malloc
5161 cat >>confdefs.h
<<_ACEOF
5162 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
5165 echo "$as_me:$LINENO: checking for working realloc" >&5
5166 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
5167 if test "${jm_cv_func_working_realloc+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5170 if test "$cross_compiling" = yes; then
5171 jm_cv_func_working_realloc
=no
5173 cat >conftest.
$ac_ext <<_ACEOF
5174 #line $LINENO "configure"
5175 #include "confdefs.h"
5181 exit (realloc (0, 0) ? 0 : 1);
5185 rm -f conftest
$ac_exeext
5186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5187 (eval $ac_link) 2>&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; }; then
5196 jm_cv_func_working_realloc
=yes
5198 echo "$as_me: program exited with status $ac_status" >&5
5199 echo "$as_me: failed program was:" >&5
5200 cat conftest.
$ac_ext >&5
5201 jm_cv_func_working_realloc
=no
5203 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5207 echo "$as_me:$LINENO: result: $jm_cv_func_working_realloc" >&5
5208 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
5209 if test $jm_cv_func_working_realloc = no
; then
5211 LIBOBJS
="$LIBOBJS realloc.$ac_objext"
5213 cat >>confdefs.h
<<_ACEOF
5214 #define realloc rpl_realloc
5219 for ac_func
in isascii iswprint mbrtowc
5221 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5222 echo "$as_me:$LINENO: checking for $ac_func" >&5
5223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5224 if eval "test \"\${$as_ac_var+set}\" = set"; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 cat >conftest.
$ac_ext <<_ACEOF
5228 #line $LINENO "configure"
5229 #include "confdefs.h"
5230 /* System header to define __stub macros and hopefully few prototypes,
5231 which can conflict with char $ac_func (); below. */
5233 /* Override any gcc2 internal prototype to avoid an error. */
5237 /* We use char because int might match the return type of a gcc2
5238 builtin and then its argument prototype would still apply. */
5242 #ifdef F77_DUMMY_MAIN
5246 int F77_DUMMY_MAIN() { return 1; }
5251 /* The GNU C library defines this for functions which it implements
5252 to always fail with ENOSYS. Some functions are actually named
5253 something starting with __ and the normal name is an alias. */
5254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5264 rm -f conftest.
$ac_objext conftest
$ac_exeext
5265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5266 (eval $ac_link) 2>&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } &&
5270 { ac_try
='test -s conftest$ac_exeext'
5271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); }; }; then
5276 eval "$as_ac_var=yes"
5278 echo "$as_me: failed program was:" >&5
5279 cat conftest.
$ac_ext >&5
5280 eval "$as_ac_var=no"
5282 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5286 if test `eval echo '${'$as_ac_var'}'` = yes; then
5287 cat >>confdefs.h
<<_ACEOF
5288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5294 for ac_header
in limits.h stdlib.h string.h wchar.h wctype.h
5296 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5298 echo "$as_me:$LINENO: checking for $ac_header" >&5
5299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
5303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5306 # Is the header compilable?
5307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5309 cat >conftest.
$ac_ext <<_ACEOF
5310 #line $LINENO "configure"
5311 #include "confdefs.h"
5312 $ac_includes_default
5313 #include <$ac_header>
5315 rm -f conftest.
$ac_objext
5316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5317 (eval $ac_compile) 2>&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); } &&
5321 { ac_try
='test -s conftest.$ac_objext'
5322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); }; }; then
5327 ac_header_compiler
=yes
5329 echo "$as_me: failed program was:" >&5
5330 cat conftest.
$ac_ext >&5
5331 ac_header_compiler
=no
5333 rm -f conftest.
$ac_objext conftest.
$ac_ext
5334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5335 echo "${ECHO_T}$ac_header_compiler" >&6
5337 # Is the header present?
5338 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5340 cat >conftest.
$ac_ext <<_ACEOF
5341 #line $LINENO "configure"
5342 #include "confdefs.h"
5343 #include <$ac_header>
5345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5346 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5348 egrep -v '^ *\+' conftest.er1
>conftest.err
5350 cat conftest.err
>&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } >/dev
/null
; then
5353 if test -s conftest.err
; then
5354 ac_cpp_err
=$ac_c_preproc_warn_flag
5361 if test -z "$ac_cpp_err"; then
5362 ac_header_preproc
=yes
5364 echo "$as_me: failed program was:" >&5
5365 cat conftest.
$ac_ext >&5
5366 ac_header_preproc
=no
5368 rm -f conftest.err conftest.
$ac_ext
5369 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5370 echo "${ECHO_T}$ac_header_preproc" >&6
5372 # So? What about this header?
5373 case $ac_header_compiler:$ac_header_preproc in
5375 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5378 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5383 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5387 echo "$as_me:$LINENO: checking for $ac_header" >&5
5388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5392 eval "$as_ac_Header=$ac_header_preproc"
5394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5399 cat >>confdefs.h
<<_ACEOF
5400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5407 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5408 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5409 if test "${ac_cv_header_stdc+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 cat >conftest.
$ac_ext <<_ACEOF
5413 #line $LINENO "configure"
5414 #include "confdefs.h"
5421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5422 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5424 egrep -v '^ *\+' conftest.er1
>conftest.err
5426 cat conftest.err
>&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } >/dev
/null
; then
5429 if test -s conftest.err
; then
5430 ac_cpp_err
=$ac_c_preproc_warn_flag
5437 if test -z "$ac_cpp_err"; then
5438 ac_cv_header_stdc
=yes
5440 echo "$as_me: failed program was:" >&5
5441 cat conftest.
$ac_ext >&5
5442 ac_cv_header_stdc
=no
5444 rm -f conftest.err conftest.
$ac_ext
5446 if test $ac_cv_header_stdc = yes; then
5447 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5448 cat >conftest.
$ac_ext <<_ACEOF
5449 #line $LINENO "configure"
5450 #include "confdefs.h"
5454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5455 egrep "memchr" >/dev
/null
2>&1; then
5458 ac_cv_header_stdc
=no
5464 if test $ac_cv_header_stdc = yes; then
5465 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5466 cat >conftest.
$ac_ext <<_ACEOF
5467 #line $LINENO "configure"
5468 #include "confdefs.h"
5472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5473 egrep "free" >/dev
/null
2>&1; then
5476 ac_cv_header_stdc
=no
5482 if test $ac_cv_header_stdc = yes; then
5483 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5484 if test "$cross_compiling" = yes; then
5487 cat >conftest.
$ac_ext <<_ACEOF
5488 #line $LINENO "configure"
5489 #include "confdefs.h"
5491 #if ((' ' & 0x0FF) == 0x020)
5492 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5493 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5495 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5496 || ('j' <= (c) && (c) <= 'r') \
5497 || ('s' <= (c) && (c) <= 'z'))
5498 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5501 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5506 for (i = 0; i < 256; i++)
5507 if (XOR (islower (i), ISLOWER (i))
5508 || toupper (i) != TOUPPER (i))
5513 rm -f conftest
$ac_exeext
5514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5515 (eval $ac_link) 2>&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }; }; then
5526 echo "$as_me: program exited with status $ac_status" >&5
5527 echo "$as_me: failed program was:" >&5
5528 cat conftest.
$ac_ext >&5
5529 ac_cv_header_stdc
=no
5531 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5535 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5536 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5537 if test $ac_cv_header_stdc = yes; then
5539 cat >>confdefs.h
<<\_ACEOF
5540 #define STDC_HEADERS 1
5545 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
5546 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
5547 if test "${ac_cv_c_backslash_a+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 cat >conftest.
$ac_ext <<_ACEOF
5551 #line $LINENO "configure"
5552 #include "confdefs.h"
5554 #ifdef F77_DUMMY_MAIN
5558 int F77_DUMMY_MAIN() { return 1; }
5567 char buf['\a' == 'a' ? -1 : 1];
5569 return buf[0] != "\a"[0];
5575 rm -f conftest.
$ac_objext
5576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5577 (eval $ac_compile) 2>&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); } &&
5581 { ac_try
='test -s conftest.$ac_objext'
5582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); }; }; then
5587 ac_cv_c_backslash_a
=yes
5589 echo "$as_me: failed program was:" >&5
5590 cat conftest.
$ac_ext >&5
5591 ac_cv_c_backslash_a
=no
5593 rm -f conftest.
$ac_objext conftest.
$ac_ext
5595 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
5596 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
5597 if test $ac_cv_c_backslash_a = yes; then
5599 cat >>confdefs.h
<<\_ACEOF
5600 #define HAVE_C_BACKSLASH_A 1
5605 for ac_header
in stdlib.h
5607 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5609 echo "$as_me:$LINENO: checking for $ac_header" >&5
5610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5615 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5617 # Is the header compilable?
5618 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5619 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5620 cat >conftest.
$ac_ext <<_ACEOF
5621 #line $LINENO "configure"
5622 #include "confdefs.h"
5623 $ac_includes_default
5624 #include <$ac_header>
5626 rm -f conftest.
$ac_objext
5627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5628 (eval $ac_compile) 2>&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } &&
5632 { ac_try
='test -s conftest.$ac_objext'
5633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); }; }; then
5638 ac_header_compiler
=yes
5640 echo "$as_me: failed program was:" >&5
5641 cat conftest.
$ac_ext >&5
5642 ac_header_compiler
=no
5644 rm -f conftest.
$ac_objext conftest.
$ac_ext
5645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5646 echo "${ECHO_T}$ac_header_compiler" >&6
5648 # Is the header present?
5649 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5651 cat >conftest.
$ac_ext <<_ACEOF
5652 #line $LINENO "configure"
5653 #include "confdefs.h"
5654 #include <$ac_header>
5656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5657 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5659 egrep -v '^ *\+' conftest.er1
>conftest.err
5661 cat conftest.err
>&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } >/dev
/null
; then
5664 if test -s conftest.err
; then
5665 ac_cpp_err
=$ac_c_preproc_warn_flag
5672 if test -z "$ac_cpp_err"; then
5673 ac_header_preproc
=yes
5675 echo "$as_me: failed program was:" >&5
5676 cat conftest.
$ac_ext >&5
5677 ac_header_preproc
=no
5679 rm -f conftest.err conftest.
$ac_ext
5680 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5681 echo "${ECHO_T}$ac_header_preproc" >&6
5683 # So? What about this header?
5684 case $ac_header_compiler:$ac_header_preproc in
5686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5691 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5692 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5693 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5694 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5698 echo "$as_me:$LINENO: checking for $ac_header" >&5
5699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5703 eval "$as_ac_Header=$ac_header_preproc"
5705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5710 cat >>confdefs.h
<<_ACEOF
5711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5718 echo "$as_me:$LINENO: checking for mbstate_t" >&5
5719 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
5720 if test "${ac_cv_type_mbstate_t+set}" = set; then
5721 echo $ECHO_N "(cached) $ECHO_C" >&6
5723 cat >conftest.
$ac_ext <<_ACEOF
5724 #line $LINENO "configure"
5725 #include "confdefs.h"
5728 # include <stdlib.h>
5731 #ifdef F77_DUMMY_MAIN
5735 int F77_DUMMY_MAIN() { return 1; }
5740 mbstate_t x; return sizeof x;
5745 rm -f conftest.
$ac_objext
5746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5747 (eval $ac_compile) 2>&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } &&
5751 { ac_try
='test -s conftest.$ac_objext'
5752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; }; then
5757 ac_cv_type_mbstate_t
=yes
5759 echo "$as_me: failed program was:" >&5
5760 cat conftest.
$ac_ext >&5
5761 ac_cv_type_mbstate_t
=no
5763 rm -f conftest.
$ac_objext conftest.
$ac_ext
5765 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
5766 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
5767 if test $ac_cv_type_mbstate_t = no
; then
5769 cat >>confdefs.h
<<\_ACEOF
5770 #define mbstate_t int
5775 echo "$as_me:$LINENO: checking for function prototypes" >&5
5776 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5777 if test "$am_cv_prog_cc_stdc" != no
; then
5778 echo "$as_me:$LINENO: result: yes" >&5
5779 echo "${ECHO_T}yes" >&6
5781 cat >>confdefs.h
<<\_ACEOF
5782 #define PROTOTYPES 1
5787 echo "$as_me:$LINENO: result: no" >&5
5788 echo "${ECHO_T}no" >&6
5789 U
=_ ANSI2KNR
=.
/ansi2knr
5791 # Ensure some checks needed by ansi2knr itself.
5792 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5793 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5794 if test "${ac_cv_header_stdc+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 cat >conftest.
$ac_ext <<_ACEOF
5798 #line $LINENO "configure"
5799 #include "confdefs.h"
5806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5807 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5809 egrep -v '^ *\+' conftest.er1
>conftest.err
5811 cat conftest.err
>&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); } >/dev
/null
; then
5814 if test -s conftest.err
; then
5815 ac_cpp_err
=$ac_c_preproc_warn_flag
5822 if test -z "$ac_cpp_err"; then
5823 ac_cv_header_stdc
=yes
5825 echo "$as_me: failed program was:" >&5
5826 cat conftest.
$ac_ext >&5
5827 ac_cv_header_stdc
=no
5829 rm -f conftest.err conftest.
$ac_ext
5831 if test $ac_cv_header_stdc = yes; then
5832 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5833 cat >conftest.
$ac_ext <<_ACEOF
5834 #line $LINENO "configure"
5835 #include "confdefs.h"
5839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5840 egrep "memchr" >/dev
/null
2>&1; then
5843 ac_cv_header_stdc
=no
5849 if test $ac_cv_header_stdc = yes; then
5850 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5851 cat >conftest.
$ac_ext <<_ACEOF
5852 #line $LINENO "configure"
5853 #include "confdefs.h"
5857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5858 egrep "free" >/dev
/null
2>&1; then
5861 ac_cv_header_stdc
=no
5867 if test $ac_cv_header_stdc = yes; then
5868 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5869 if test "$cross_compiling" = yes; then
5872 cat >conftest.
$ac_ext <<_ACEOF
5873 #line $LINENO "configure"
5874 #include "confdefs.h"
5876 #if ((' ' & 0x0FF) == 0x020)
5877 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5878 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5880 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5881 || ('j' <= (c) && (c) <= 'r') \
5882 || ('s' <= (c) && (c) <= 'z'))
5883 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5886 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5891 for (i = 0; i < 256; i++)
5892 if (XOR (islower (i), ISLOWER (i))
5893 || toupper (i) != TOUPPER (i))
5898 rm -f conftest
$ac_exeext
5899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5900 (eval $ac_link) 2>&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); }; }; then
5911 echo "$as_me: program exited with status $ac_status" >&5
5912 echo "$as_me: failed program was:" >&5
5913 cat conftest.
$ac_ext >&5
5914 ac_cv_header_stdc
=no
5916 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5920 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5921 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5922 if test $ac_cv_header_stdc = yes; then
5924 cat >>confdefs.h
<<\_ACEOF
5925 #define STDC_HEADERS 1
5930 for ac_header
in string.h
5932 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5934 echo "$as_me:$LINENO: checking for $ac_header" >&5
5935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5937 echo $ECHO_N "(cached) $ECHO_C" >&6
5939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5942 # Is the header compilable?
5943 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5945 cat >conftest.
$ac_ext <<_ACEOF
5946 #line $LINENO "configure"
5947 #include "confdefs.h"
5948 $ac_includes_default
5949 #include <$ac_header>
5951 rm -f conftest.
$ac_objext
5952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5953 (eval $ac_compile) 2>&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } &&
5957 { ac_try
='test -s conftest.$ac_objext'
5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; }; then
5963 ac_header_compiler
=yes
5965 echo "$as_me: failed program was:" >&5
5966 cat conftest.
$ac_ext >&5
5967 ac_header_compiler
=no
5969 rm -f conftest.
$ac_objext conftest.
$ac_ext
5970 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5971 echo "${ECHO_T}$ac_header_compiler" >&6
5973 # Is the header present?
5974 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5976 cat >conftest.
$ac_ext <<_ACEOF
5977 #line $LINENO "configure"
5978 #include "confdefs.h"
5979 #include <$ac_header>
5981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5982 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5984 egrep -v '^ *\+' conftest.er1
>conftest.err
5986 cat conftest.err
>&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } >/dev
/null
; then
5989 if test -s conftest.err
; then
5990 ac_cpp_err
=$ac_c_preproc_warn_flag
5997 if test -z "$ac_cpp_err"; then
5998 ac_header_preproc
=yes
6000 echo "$as_me: failed program was:" >&5
6001 cat conftest.
$ac_ext >&5
6002 ac_header_preproc
=no
6004 rm -f conftest.err conftest.
$ac_ext
6005 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6006 echo "${ECHO_T}$ac_header_preproc" >&6
6008 # So? What about this header?
6009 case $ac_header_compiler:$ac_header_preproc in
6011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6019 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6023 echo "$as_me:$LINENO: checking for $ac_header" >&5
6024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 eval "$as_ac_Header=$ac_header_preproc"
6030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6035 cat >>confdefs.h
<<_ACEOF
6036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6043 for ac_func
in strerror strerror_r vprintf doprnt
6045 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6046 echo "$as_me:$LINENO: checking for $ac_func" >&5
6047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6048 if eval "test \"\${$as_ac_var+set}\" = set"; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 cat >conftest.
$ac_ext <<_ACEOF
6052 #line $LINENO "configure"
6053 #include "confdefs.h"
6054 /* System header to define __stub macros and hopefully few prototypes,
6055 which can conflict with char $ac_func (); below. */
6057 /* Override any gcc2 internal prototype to avoid an error. */
6061 /* We use char because int might match the return type of a gcc2
6062 builtin and then its argument prototype would still apply. */
6066 #ifdef F77_DUMMY_MAIN
6070 int F77_DUMMY_MAIN() { return 1; }
6075 /* The GNU C library defines this for functions which it implements
6076 to always fail with ENOSYS. Some functions are actually named
6077 something starting with __ and the normal name is an alias. */
6078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6088 rm -f conftest.
$ac_objext conftest
$ac_exeext
6089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6090 (eval $ac_link) 2>&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); } &&
6094 { ac_try
='test -s conftest$ac_exeext'
6095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); }; }; then
6100 eval "$as_ac_var=yes"
6102 echo "$as_me: failed program was:" >&5
6103 cat conftest.
$ac_ext >&5
6104 eval "$as_ac_var=no"
6106 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6109 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6110 if test `eval echo '${'$as_ac_var'}'` = yes; then
6111 cat >>confdefs.h
<<_ACEOF
6112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6118 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6119 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6120 if test "${ac_cv_header_stdc+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 cat >conftest.
$ac_ext <<_ACEOF
6124 #line $LINENO "configure"
6125 #include "confdefs.h"
6132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6133 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6135 egrep -v '^ *\+' conftest.er1
>conftest.err
6137 cat conftest.err
>&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); } >/dev
/null
; then
6140 if test -s conftest.err
; then
6141 ac_cpp_err
=$ac_c_preproc_warn_flag
6148 if test -z "$ac_cpp_err"; then
6149 ac_cv_header_stdc
=yes
6151 echo "$as_me: failed program was:" >&5
6152 cat conftest.
$ac_ext >&5
6153 ac_cv_header_stdc
=no
6155 rm -f conftest.err conftest.
$ac_ext
6157 if test $ac_cv_header_stdc = yes; then
6158 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6159 cat >conftest.
$ac_ext <<_ACEOF
6160 #line $LINENO "configure"
6161 #include "confdefs.h"
6165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6166 egrep "memchr" >/dev
/null
2>&1; then
6169 ac_cv_header_stdc
=no
6175 if test $ac_cv_header_stdc = yes; then
6176 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6177 cat >conftest.
$ac_ext <<_ACEOF
6178 #line $LINENO "configure"
6179 #include "confdefs.h"
6183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6184 egrep "free" >/dev
/null
2>&1; then
6187 ac_cv_header_stdc
=no
6193 if test $ac_cv_header_stdc = yes; then
6194 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6195 if test "$cross_compiling" = yes; then
6198 cat >conftest.
$ac_ext <<_ACEOF
6199 #line $LINENO "configure"
6200 #include "confdefs.h"
6202 #if ((' ' & 0x0FF) == 0x020)
6203 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6204 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6206 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6207 || ('j' <= (c) && (c) <= 'r') \
6208 || ('s' <= (c) && (c) <= 'z'))
6209 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6212 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6217 for (i = 0; i < 256; i++)
6218 if (XOR (islower (i), ISLOWER (i))
6219 || toupper (i) != TOUPPER (i))
6224 rm -f conftest
$ac_exeext
6225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6226 (eval $ac_link) 2>&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); }; }; then
6237 echo "$as_me: program exited with status $ac_status" >&5
6238 echo "$as_me: failed program was:" >&5
6239 cat conftest.
$ac_ext >&5
6240 ac_cv_header_stdc
=no
6242 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6246 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6247 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6248 if test $ac_cv_header_stdc = yes; then
6250 cat >>confdefs.h
<<\_ACEOF
6251 #define STDC_HEADERS 1
6256 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
6257 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
6258 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6261 cat >conftest.
$ac_ext <<_ACEOF
6262 #line $LINENO "configure"
6263 #include "confdefs.h"
6264 $ac_includes_default
6265 #ifdef F77_DUMMY_MAIN
6269 int F77_DUMMY_MAIN() { return 1; }
6275 char *p = (char *) strerror_r;
6282 rm -f conftest.
$ac_objext
6283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6284 (eval $ac_compile) 2>&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } &&
6288 { ac_try
='test -s conftest.$ac_objext'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; }; then
6294 ac_cv_have_decl_strerror_r
=yes
6296 echo "$as_me: failed program was:" >&5
6297 cat conftest.
$ac_ext >&5
6298 ac_cv_have_decl_strerror_r
=no
6300 rm -f conftest.
$ac_objext conftest.
$ac_ext
6302 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
6303 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
6304 if test $ac_cv_have_decl_strerror_r = yes; then
6306 cat >>confdefs.h
<<_ACEOF
6307 #define HAVE_DECL_STRERROR_R 1
6311 cat >>confdefs.h
<<_ACEOF
6312 #define HAVE_DECL_STRERROR_R 0
6317 for ac_func
in strerror_r
6319 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6320 echo "$as_me:$LINENO: checking for $ac_func" >&5
6321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6322 if eval "test \"\${$as_ac_var+set}\" = set"; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 cat >conftest.
$ac_ext <<_ACEOF
6326 #line $LINENO "configure"
6327 #include "confdefs.h"
6328 /* System header to define __stub macros and hopefully few prototypes,
6329 which can conflict with char $ac_func (); below. */
6331 /* Override any gcc2 internal prototype to avoid an error. */
6335 /* We use char because int might match the return type of a gcc2
6336 builtin and then its argument prototype would still apply. */
6340 #ifdef F77_DUMMY_MAIN
6344 int F77_DUMMY_MAIN() { return 1; }
6349 /* The GNU C library defines this for functions which it implements
6350 to always fail with ENOSYS. Some functions are actually named
6351 something starting with __ and the normal name is an alias. */
6352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6362 rm -f conftest.
$ac_objext conftest
$ac_exeext
6363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6364 (eval $ac_link) 2>&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); } &&
6368 { ac_try
='test -s conftest$ac_exeext'
6369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); }; }; then
6374 eval "$as_ac_var=yes"
6376 echo "$as_me: failed program was:" >&5
6377 cat conftest.
$ac_ext >&5
6378 eval "$as_ac_var=no"
6380 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6383 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6384 if test `eval echo '${'$as_ac_var'}'` = yes; then
6385 cat >>confdefs.h
<<_ACEOF
6386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6392 if test $ac_cv_func_strerror_r = yes; then
6394 for ac_header
in string.h
6396 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6398 echo "$as_me:$LINENO: checking for $ac_header" >&5
6399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
6403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6406 # Is the header compilable?
6407 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6409 cat >conftest.
$ac_ext <<_ACEOF
6410 #line $LINENO "configure"
6411 #include "confdefs.h"
6412 $ac_includes_default
6413 #include <$ac_header>
6415 rm -f conftest.
$ac_objext
6416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6417 (eval $ac_compile) 2>&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); } &&
6421 { ac_try
='test -s conftest.$ac_objext'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; }; then
6427 ac_header_compiler
=yes
6429 echo "$as_me: failed program was:" >&5
6430 cat conftest.
$ac_ext >&5
6431 ac_header_compiler
=no
6433 rm -f conftest.
$ac_objext conftest.
$ac_ext
6434 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6435 echo "${ECHO_T}$ac_header_compiler" >&6
6437 # Is the header present?
6438 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6440 cat >conftest.
$ac_ext <<_ACEOF
6441 #line $LINENO "configure"
6442 #include "confdefs.h"
6443 #include <$ac_header>
6445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6446 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6448 egrep -v '^ *\+' conftest.er1
>conftest.err
6450 cat conftest.err
>&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); } >/dev
/null
; then
6453 if test -s conftest.err
; then
6454 ac_cpp_err
=$ac_c_preproc_warn_flag
6461 if test -z "$ac_cpp_err"; then
6462 ac_header_preproc
=yes
6464 echo "$as_me: failed program was:" >&5
6465 cat conftest.
$ac_ext >&5
6466 ac_header_preproc
=no
6468 rm -f conftest.err conftest.
$ac_ext
6469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6470 echo "${ECHO_T}$ac_header_preproc" >&6
6472 # So? What about this header?
6473 case $ac_header_compiler:$ac_header_preproc in
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6480 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6481 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6482 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6483 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6485 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6487 echo "$as_me:$LINENO: checking for $ac_header" >&5
6488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
6492 eval "$as_ac_Header=$ac_header_preproc"
6494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6499 cat >>confdefs.h
<<_ACEOF
6500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6507 echo "$as_me:$LINENO: checking for working strerror_r" >&5
6508 echo $ECHO_N "checking for working strerror_r... $ECHO_C" >&6
6509 if test "${ac_cv_func_strerror_r_works+set}" = set; then
6510 echo $ECHO_N "(cached) $ECHO_C" >&6
6513 cat >conftest.
$ac_ext <<_ACEOF
6514 #line $LINENO "configure"
6515 #include "confdefs.h"
6519 # include <string.h>
6522 #ifdef F77_DUMMY_MAIN
6526 int F77_DUMMY_MAIN() { return 1; }
6533 char x = *strerror_r (0, buf, sizeof buf);
6539 rm -f conftest.
$ac_objext
6540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6541 (eval $ac_compile) 2>&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); } &&
6545 { ac_try
='test -s conftest.$ac_objext'
6546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6551 ac_cv_func_strerror_r_works
=yes
6553 echo "$as_me: failed program was:" >&5
6554 cat conftest.
$ac_ext >&5
6555 ac_cv_func_strerror_r_works
=no
6558 rm -f conftest.
$ac_objext conftest.
$ac_ext
6559 if test $ac_cv_func_strerror_r_works = no
; then
6560 # strerror_r seems not to work, but now we have to choose between
6561 # systems that have relatively inaccessible declarations for the
6562 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
6563 # former has a strerror_r that returns char*, while the latter
6564 # has a strerror_r that returns `int'.
6565 # This test should segfault on the DEC system.
6566 if test "$cross_compiling" = yes; then
6567 ac_cv_func_strerror_r_works
=no
6569 cat >conftest.
$ac_ext <<_ACEOF
6570 #line $LINENO "configure"
6571 #include "confdefs.h"
6574 # include <string.h>
6577 extern char *strerror_r ();
6583 char x = *strerror_r (0, buf, sizeof buf);
6584 exit (!isalpha (x));
6588 rm -f conftest
$ac_exeext
6589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6590 (eval $ac_link) 2>&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); }; }; then
6599 ac_cv_func_strerror_r_works
=yes
6601 echo "$as_me: program exited with status $ac_status" >&5
6602 echo "$as_me: failed program was:" >&5
6603 cat conftest.
$ac_ext >&5
6604 ac_cv_func_strerror_r_works
=no
6606 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6611 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_works" >&5
6612 echo "${ECHO_T}$ac_cv_func_strerror_r_works" >&6
6613 if test $ac_cv_func_strerror_r_works = yes; then
6615 cat >>confdefs.h
<<_ACEOF
6616 #define HAVE_WORKING_STRERROR_R 1
6622 ALL_LINGUAS
="de es et fr ja nl tr ru"
6623 # Make sure we can run config.sub.
6624 $ac_config_sub sun4
>/dev
/null
2>&1 ||
6625 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6626 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6627 { (exit 1); exit 1; }; }
6629 echo "$as_me:$LINENO: checking build system type" >&5
6630 echo $ECHO_N "checking build system type... $ECHO_C" >&6
6631 if test "${ac_cv_build+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 ac_cv_build_alias
=$build_alias
6635 test -z "$ac_cv_build_alias" &&
6636 ac_cv_build_alias
=`$ac_config_guess`
6637 test -z "$ac_cv_build_alias" &&
6638 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6639 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6640 { (exit 1); exit 1; }; }
6641 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
6642 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed." >&5
6643 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
6644 { (exit 1); exit 1; }; }
6647 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6648 echo "${ECHO_T}$ac_cv_build" >&6
6650 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6651 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6652 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6654 echo "$as_me:$LINENO: checking host system type" >&5
6655 echo $ECHO_N "checking host system type... $ECHO_C" >&6
6656 if test "${ac_cv_host+set}" = set; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6659 ac_cv_host_alias
=$host_alias
6660 test -z "$ac_cv_host_alias" &&
6661 ac_cv_host_alias
=$ac_cv_build_alias
6662 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
6663 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6664 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6665 { (exit 1); exit 1; }; }
6668 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6669 echo "${ECHO_T}$ac_cv_host" >&6
6671 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6672 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6673 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6675 echo "$as_me:$LINENO: checking for off_t" >&5
6676 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6677 if test "${ac_cv_type_off_t+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6680 cat >conftest.
$ac_ext <<_ACEOF
6681 #line $LINENO "configure"
6682 #include "confdefs.h"
6683 $ac_includes_default
6684 #ifdef F77_DUMMY_MAIN
6688 int F77_DUMMY_MAIN() { return 1; }
6701 rm -f conftest.
$ac_objext
6702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6703 (eval $ac_compile) 2>&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } &&
6707 { ac_try
='test -s conftest.$ac_objext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 ac_cv_type_off_t
=yes
6715 echo "$as_me: failed program was:" >&5
6716 cat conftest.
$ac_ext >&5
6719 rm -f conftest.
$ac_objext conftest.
$ac_ext
6721 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6722 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6723 if test $ac_cv_type_off_t = yes; then
6727 cat >>confdefs.h
<<_ACEOF
6733 echo "$as_me:$LINENO: checking for size_t" >&5
6734 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6735 if test "${ac_cv_type_size_t+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6738 cat >conftest.
$ac_ext <<_ACEOF
6739 #line $LINENO "configure"
6740 #include "confdefs.h"
6741 $ac_includes_default
6742 #ifdef F77_DUMMY_MAIN
6746 int F77_DUMMY_MAIN() { return 1; }
6753 if (sizeof (size_t))
6759 rm -f conftest.
$ac_objext
6760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6761 (eval $ac_compile) 2>&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try
='test -s conftest.$ac_objext'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; }; then
6771 ac_cv_type_size_t
=yes
6773 echo "$as_me: failed program was:" >&5
6774 cat conftest.
$ac_ext >&5
6775 ac_cv_type_size_t
=no
6777 rm -f conftest.
$ac_objext conftest.
$ac_ext
6779 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6780 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6781 if test $ac_cv_type_size_t = yes; then
6785 cat >>confdefs.h
<<_ACEOF
6786 #define size_t unsigned
6791 for ac_header
in stdlib.h unistd.h
6793 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6795 echo "$as_me:$LINENO: checking for $ac_header" >&5
6796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6803 # Is the header compilable?
6804 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6806 cat >conftest.
$ac_ext <<_ACEOF
6807 #line $LINENO "configure"
6808 #include "confdefs.h"
6809 $ac_includes_default
6810 #include <$ac_header>
6812 rm -f conftest.
$ac_objext
6813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6814 (eval $ac_compile) 2>&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); } &&
6818 { ac_try
='test -s conftest.$ac_objext'
6819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); }; }; then
6824 ac_header_compiler
=yes
6826 echo "$as_me: failed program was:" >&5
6827 cat conftest.
$ac_ext >&5
6828 ac_header_compiler
=no
6830 rm -f conftest.
$ac_objext conftest.
$ac_ext
6831 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6832 echo "${ECHO_T}$ac_header_compiler" >&6
6834 # Is the header present?
6835 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6837 cat >conftest.
$ac_ext <<_ACEOF
6838 #line $LINENO "configure"
6839 #include "confdefs.h"
6840 #include <$ac_header>
6842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6843 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6845 egrep -v '^ *\+' conftest.er1
>conftest.err
6847 cat conftest.err
>&5
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); } >/dev
/null
; then
6850 if test -s conftest.err
; then
6851 ac_cpp_err
=$ac_c_preproc_warn_flag
6858 if test -z "$ac_cpp_err"; then
6859 ac_header_preproc
=yes
6861 echo "$as_me: failed program was:" >&5
6862 cat conftest.
$ac_ext >&5
6863 ac_header_preproc
=no
6865 rm -f conftest.err conftest.
$ac_ext
6866 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6867 echo "${ECHO_T}$ac_header_preproc" >&6
6869 # So? What about this header?
6870 case $ac_header_compiler:$ac_header_preproc in
6872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6877 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6878 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6879 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6880 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6884 echo "$as_me:$LINENO: checking for $ac_header" >&5
6885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6889 eval "$as_ac_Header=$ac_header_preproc"
6891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6896 cat >>confdefs.h
<<_ACEOF
6897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6904 for ac_func
in getpagesize
6906 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6907 echo "$as_me:$LINENO: checking for $ac_func" >&5
6908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6909 if eval "test \"\${$as_ac_var+set}\" = set"; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6912 cat >conftest.
$ac_ext <<_ACEOF
6913 #line $LINENO "configure"
6914 #include "confdefs.h"
6915 /* System header to define __stub macros and hopefully few prototypes,
6916 which can conflict with char $ac_func (); below. */
6918 /* Override any gcc2 internal prototype to avoid an error. */
6922 /* We use char because int might match the return type of a gcc2
6923 builtin and then its argument prototype would still apply. */
6927 #ifdef F77_DUMMY_MAIN
6931 int F77_DUMMY_MAIN() { return 1; }
6936 /* The GNU C library defines this for functions which it implements
6937 to always fail with ENOSYS. Some functions are actually named
6938 something starting with __ and the normal name is an alias. */
6939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6949 rm -f conftest.
$ac_objext conftest
$ac_exeext
6950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6951 (eval $ac_link) 2>&5
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); } &&
6955 { ac_try
='test -s conftest$ac_exeext'
6956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); }; }; then
6961 eval "$as_ac_var=yes"
6963 echo "$as_me: failed program was:" >&5
6964 cat conftest.
$ac_ext >&5
6965 eval "$as_ac_var=no"
6967 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6971 if test `eval echo '${'$as_ac_var'}'` = yes; then
6972 cat >>confdefs.h
<<_ACEOF
6973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6979 echo "$as_me:$LINENO: checking for working mmap" >&5
6980 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6981 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 if test "$cross_compiling" = yes; then
6985 ac_cv_func_mmap_fixed_mapped
=no
6987 cat >conftest.
$ac_ext <<_ACEOF
6988 #line $LINENO "configure"
6989 #include "confdefs.h"
6990 $ac_includes_default
6991 /* Thanks to Mike Haertel and Jim Avera for this test.
6992 Here is a matrix of mmap possibilities:
6993 mmap private not fixed
6994 mmap private fixed at somewhere currently unmapped
6995 mmap private fixed at somewhere already mapped
6996 mmap shared not fixed
6997 mmap shared fixed at somewhere currently unmapped
6998 mmap shared fixed at somewhere already mapped
6999 For private mappings, we should verify that changes cannot be read()
7000 back from the file, nor mmap's back from the file at a different
7001 address. (There have been systems where private was not correctly
7002 implemented like the infamous i386 svr4.0, and systems where the
7003 VM page cache was not coherent with the file system buffer cache
7004 like early versions of FreeBSD and possibly contemporary NetBSD.)
7005 For shared mappings, we should conversely verify that changes get
7006 propogated back to all the places they're supposed to be.
7008 Grep wants private fixed already mapped.
7009 The main things grep needs to know about mmap are:
7010 * does it exist and is it safe to write into the mmap'd area
7011 * how to use it (BSD variants) */
7014 #include <sys/mman.h>
7016 #if !STDC_HEADERS && !HAVE_STDLIB_H
7020 /* This mess was copied from the GNU getpagesize.h. */
7021 #if !HAVE_GETPAGESIZE
7022 /* Assume that all systems that can run configure have sys/param.h. */
7023 # if !HAVE_SYS_PARAM_H
7024 # define HAVE_SYS_PARAM_H 1
7027 # ifdef _SC_PAGESIZE
7028 # define getpagesize() sysconf(_SC_PAGESIZE)
7029 # else /* no _SC_PAGESIZE */
7030 # if HAVE_SYS_PARAM_H
7031 # include <sys/param.h>
7032 # ifdef EXEC_PAGESIZE
7033 # define getpagesize() EXEC_PAGESIZE
7034 # else /* no EXEC_PAGESIZE */
7036 # define getpagesize() NBPG * CLSIZE
7039 # endif /* no CLSIZE */
7040 # else /* no NBPG */
7042 # define getpagesize() NBPC
7043 # else /* no NBPC */
7045 # define getpagesize() PAGESIZE
7046 # endif /* PAGESIZE */
7047 # endif /* no NBPC */
7048 # endif /* no NBPG */
7049 # endif /* no EXEC_PAGESIZE */
7050 # else /* no HAVE_SYS_PARAM_H */
7051 # define getpagesize() 8192 /* punt totally */
7052 # endif /* no HAVE_SYS_PARAM_H */
7053 # endif /* no _SC_PAGESIZE */
7055 #endif /* no HAVE_GETPAGESIZE */
7060 char *data, *data2, *data3;
7064 pagesize = getpagesize ();
7066 /* First, make a file with some known garbage in it. */
7067 data = (char *) malloc (pagesize);
7070 for (i = 0; i < pagesize; ++i)
7071 *(data + i) = rand ();
7073 fd = creat ("conftest.mmap", 0600);
7076 if (write (fd, data, pagesize) != pagesize)
7080 /* Next, try to mmap the file at a fixed address which already has
7081 something else allocated at it. If we can, also make sure that
7082 we see the same garbage. */
7083 fd = open ("conftest.mmap", O_RDWR);
7086 data2 = (char *) malloc (2 * pagesize);
7089 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7090 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7091 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7093 for (i = 0; i < pagesize; ++i)
7094 if (*(data + i) != *(data2 + i))
7097 /* Finally, make sure that changes to the mapped area do not
7098 percolate back to the file as seen by read(). (This is a bug on
7099 some variants of i386 svr4.0.) */
7100 for (i = 0; i < pagesize; ++i)
7101 *(data2 + i) = *(data2 + i) + 1;
7102 data3 = (char *) malloc (pagesize);
7105 if (read (fd, data3, pagesize) != pagesize)
7107 for (i = 0; i < pagesize; ++i)
7108 if (*(data + i) != *(data3 + i))
7114 rm -f conftest
$ac_exeext
7115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7116 (eval $ac_link) 2>&5
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; }; then
7125 ac_cv_func_mmap_fixed_mapped
=yes
7127 echo "$as_me: program exited with status $ac_status" >&5
7128 echo "$as_me: failed program was:" >&5
7129 cat conftest.
$ac_ext >&5
7130 ac_cv_func_mmap_fixed_mapped
=no
7132 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7135 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7136 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7137 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7139 cat >>confdefs.h
<<\_ACEOF
7146 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7147 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7148 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 cat >conftest.
$ac_ext <<_ACEOF
7152 #line $LINENO "configure"
7153 #include "confdefs.h"
7155 #include <features.h>
7156 #ifdef __GNU_LIBRARY__
7157 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7164 egrep "Lucky GNU user" >/dev
/null
2>&1; then
7165 ac_cv_gnu_library_2_1
=yes
7167 ac_cv_gnu_library_2_1
=no
7172 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7173 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7175 GLIBC21
="$ac_cv_gnu_library_2_1"
7177 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7178 stdlib.h string.h unistd.h sys
/param.h
7180 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7182 echo "$as_me:$LINENO: checking for $ac_header" >&5
7183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7190 # Is the header compilable?
7191 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7193 cat >conftest.
$ac_ext <<_ACEOF
7194 #line $LINENO "configure"
7195 #include "confdefs.h"
7196 $ac_includes_default
7197 #include <$ac_header>
7199 rm -f conftest.
$ac_objext
7200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7201 (eval $ac_compile) 2>&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } &&
7205 { ac_try
='test -s conftest.$ac_objext'
7206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); }; }; then
7211 ac_header_compiler
=yes
7213 echo "$as_me: failed program was:" >&5
7214 cat conftest.
$ac_ext >&5
7215 ac_header_compiler
=no
7217 rm -f conftest.
$ac_objext conftest.
$ac_ext
7218 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7219 echo "${ECHO_T}$ac_header_compiler" >&6
7221 # Is the header present?
7222 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7224 cat >conftest.
$ac_ext <<_ACEOF
7225 #line $LINENO "configure"
7226 #include "confdefs.h"
7227 #include <$ac_header>
7229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7230 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7232 egrep -v '^ *\+' conftest.er1
>conftest.err
7234 cat conftest.err
>&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } >/dev
/null
; then
7237 if test -s conftest.err
; then
7238 ac_cpp_err
=$ac_c_preproc_warn_flag
7245 if test -z "$ac_cpp_err"; then
7246 ac_header_preproc
=yes
7248 echo "$as_me: failed program was:" >&5
7249 cat conftest.
$ac_ext >&5
7250 ac_header_preproc
=no
7252 rm -f conftest.err conftest.
$ac_ext
7253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7254 echo "${ECHO_T}$ac_header_preproc" >&6
7256 # So? What about this header?
7257 case $ac_header_compiler:$ac_header_preproc in
7259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7264 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7265 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7266 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7267 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7271 echo "$as_me:$LINENO: checking for $ac_header" >&5
7272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7276 eval "$as_ac_Header=$ac_header_preproc"
7278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7283 cat >>confdefs.h
<<_ACEOF
7284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7291 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
7292 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
7293 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
7295 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7296 echo "$as_me:$LINENO: checking for $ac_func" >&5
7297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7298 if eval "test \"\${$as_ac_var+set}\" = set"; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7301 cat >conftest.
$ac_ext <<_ACEOF
7302 #line $LINENO "configure"
7303 #include "confdefs.h"
7304 /* System header to define __stub macros and hopefully few prototypes,
7305 which can conflict with char $ac_func (); below. */
7307 /* Override any gcc2 internal prototype to avoid an error. */
7311 /* We use char because int might match the return type of a gcc2
7312 builtin and then its argument prototype would still apply. */
7316 #ifdef F77_DUMMY_MAIN
7320 int F77_DUMMY_MAIN() { return 1; }
7325 /* The GNU C library defines this for functions which it implements
7326 to always fail with ENOSYS. Some functions are actually named
7327 something starting with __ and the normal name is an alias. */
7328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7338 rm -f conftest.
$ac_objext conftest
$ac_exeext
7339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7340 (eval $ac_link) 2>&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } &&
7344 { ac_try
='test -s conftest$ac_exeext'
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; }; then
7350 eval "$as_ac_var=yes"
7352 echo "$as_me: failed program was:" >&5
7353 cat conftest.
$ac_ext >&5
7354 eval "$as_ac_var=no"
7356 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7359 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7360 if test `eval echo '${'$as_ac_var'}'` = yes; then
7361 cat >>confdefs.h
<<_ACEOF
7362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7368 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7369 if test "${with_libiconv_prefix+set}" = set; then
7370 withval
="$with_libiconv_prefix"
7372 for dir
in `echo "$withval" | tr : ' '`; do
7373 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
7374 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
7379 echo "$as_me:$LINENO: checking for iconv" >&5
7380 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7381 if test "${am_cv_func_iconv+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
7385 am_cv_func_iconv
="no, consider installing GNU libiconv"
7387 cat >conftest.
$ac_ext <<_ACEOF
7388 #line $LINENO "configure"
7389 #include "confdefs.h"
7392 #ifdef F77_DUMMY_MAIN
7396 int F77_DUMMY_MAIN() { return 1; }
7401 iconv_t cd = iconv_open("","");
7402 iconv(cd,NULL,NULL,NULL,NULL);
7408 rm -f conftest.
$ac_objext conftest
$ac_exeext
7409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7410 (eval $ac_link) 2>&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } &&
7414 { ac_try
='test -s conftest$ac_exeext'
7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; }; then
7420 am_cv_func_iconv
=yes
7422 echo "$as_me: failed program was:" >&5
7423 cat conftest.
$ac_ext >&5
7425 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7426 if test "$am_cv_func_iconv" != yes; then
7427 am_save_LIBS
="$LIBS"
7428 LIBS
="$LIBS -liconv"
7429 cat >conftest.
$ac_ext <<_ACEOF
7430 #line $LINENO "configure"
7431 #include "confdefs.h"
7434 #ifdef F77_DUMMY_MAIN
7438 int F77_DUMMY_MAIN() { return 1; }
7443 iconv_t cd = iconv_open("","");
7444 iconv(cd,NULL,NULL,NULL,NULL);
7450 rm -f conftest.
$ac_objext conftest
$ac_exeext
7451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7452 (eval $ac_link) 2>&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } &&
7456 { ac_try
='test -s conftest$ac_exeext'
7457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; }; then
7463 am_cv_func_iconv
=yes
7465 echo "$as_me: failed program was:" >&5
7466 cat conftest.
$ac_ext >&5
7468 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7469 LIBS
="$am_save_LIBS"
7473 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7474 echo "${ECHO_T}$am_cv_func_iconv" >&6
7475 if test "$am_cv_func_iconv" = yes; then
7477 cat >>confdefs.h
<<\_ACEOF
7478 #define HAVE_ICONV 1
7481 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7482 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7483 if test "${am_cv_proto_iconv+set}" = set; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
7487 cat >conftest.
$ac_ext <<_ACEOF
7488 #line $LINENO "configure"
7489 #include "confdefs.h"
7497 #if defined(__STDC__) || defined(__cplusplus)
7498 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7503 #ifdef F77_DUMMY_MAIN
7507 int F77_DUMMY_MAIN() { return 1; }
7517 rm -f conftest.
$ac_objext
7518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7519 (eval $ac_compile) 2>&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); } &&
7523 { ac_try
='test -s conftest.$ac_objext'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; }; then
7529 am_cv_proto_iconv_arg1
=""
7531 echo "$as_me: failed program was:" >&5
7532 cat conftest.
$ac_ext >&5
7533 am_cv_proto_iconv_arg1
="const"
7535 rm -f conftest.
$ac_objext conftest.
$ac_ext
7536 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);"
7539 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7540 echo "$as_me:$LINENO: result: ${ac_t:-
7541 }$am_cv_proto_iconv" >&5
7542 echo "${ECHO_T}${ac_t:-
7543 }$am_cv_proto_iconv" >&6
7545 cat >>confdefs.h
<<_ACEOF
7546 #define ICONV_CONST $am_cv_proto_iconv_arg1
7551 if test "$am_cv_lib_iconv" = yes; then
7555 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7556 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7557 if test "${am_cv_langinfo_codeset+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 cat >conftest.
$ac_ext <<_ACEOF
7561 #line $LINENO "configure"
7562 #include "confdefs.h"
7563 #include <langinfo.h>
7564 #ifdef F77_DUMMY_MAIN
7568 int F77_DUMMY_MAIN() { return 1; }
7573 char* cs = nl_langinfo(CODESET);
7578 rm -f conftest.
$ac_objext conftest
$ac_exeext
7579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7580 (eval $ac_link) 2>&5
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); } &&
7584 { ac_try
='test -s conftest$ac_exeext'
7585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); }; }; then
7590 am_cv_langinfo_codeset
=yes
7592 echo "$as_me: failed program was:" >&5
7593 cat conftest.
$ac_ext >&5
7594 am_cv_langinfo_codeset
=no
7596 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7599 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7600 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7601 if test $am_cv_langinfo_codeset = yes; then
7603 cat >>confdefs.h
<<\_ACEOF
7604 #define HAVE_LANGINFO_CODESET 1
7609 if test $ac_cv_header_locale_h = yes; then
7610 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7611 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7612 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7615 cat >conftest.
$ac_ext <<_ACEOF
7616 #line $LINENO "configure"
7617 #include "confdefs.h"
7619 #ifdef F77_DUMMY_MAIN
7623 int F77_DUMMY_MAIN() { return 1; }
7633 rm -f conftest.
$ac_objext conftest
$ac_exeext
7634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7635 (eval $ac_link) 2>&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); } &&
7639 { ac_try
='test -s conftest$ac_exeext'
7640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); }; }; then
7645 am_cv_val_LC_MESSAGES
=yes
7647 echo "$as_me: failed program was:" >&5
7648 cat conftest.
$ac_ext >&5
7649 am_cv_val_LC_MESSAGES
=no
7651 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7653 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7654 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7655 if test $am_cv_val_LC_MESSAGES = yes; then
7657 cat >>confdefs.h
<<\_ACEOF
7658 #define HAVE_LC_MESSAGES 1
7663 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7664 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7665 # Check whether --enable-nls or --disable-nls was given.
7666 if test "${enable_nls+set}" = set; then
7667 enableval
="$enable_nls"
7672 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7673 echo "${ECHO_T}$USE_NLS" >&6
7675 BUILD_INCLUDED_LIBINTL
=no
7676 USE_INCLUDED_LIBINTL
=no
7679 if test "$USE_NLS" = "yes"; then
7681 cat >>confdefs.h
<<\_ACEOF
7682 #define ENABLE_NLS 1
7685 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7686 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7688 # Check whether --with-included-gettext or --without-included-gettext was given.
7689 if test "${with_included_gettext+set}" = set; then
7690 withval
="$with_included_gettext"
7691 nls_cv_force_use_gnu_gettext
=$withval
7693 nls_cv_force_use_gnu_gettext
=no
7695 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7696 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7698 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7699 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7702 if test "${ac_cv_header_libintl_h+set}" = set; then
7703 echo "$as_me:$LINENO: checking for libintl.h" >&5
7704 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7705 if test "${ac_cv_header_libintl_h+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7708 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7709 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7711 # Is the header compilable?
7712 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7713 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7714 cat >conftest.
$ac_ext <<_ACEOF
7715 #line $LINENO "configure"
7716 #include "confdefs.h"
7717 $ac_includes_default
7718 #include <libintl.h>
7720 rm -f conftest.
$ac_objext
7721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7722 (eval $ac_compile) 2>&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); } &&
7726 { ac_try
='test -s conftest.$ac_objext'
7727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; }; then
7732 ac_header_compiler
=yes
7734 echo "$as_me: failed program was:" >&5
7735 cat conftest.
$ac_ext >&5
7736 ac_header_compiler
=no
7738 rm -f conftest.
$ac_objext conftest.
$ac_ext
7739 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7740 echo "${ECHO_T}$ac_header_compiler" >&6
7742 # Is the header present?
7743 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7744 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7745 cat >conftest.
$ac_ext <<_ACEOF
7746 #line $LINENO "configure"
7747 #include "confdefs.h"
7748 #include <libintl.h>
7750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7751 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7753 egrep -v '^ *\+' conftest.er1
>conftest.err
7755 cat conftest.err
>&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); } >/dev
/null
; then
7758 if test -s conftest.err
; then
7759 ac_cpp_err
=$ac_c_preproc_warn_flag
7766 if test -z "$ac_cpp_err"; then
7767 ac_header_preproc
=yes
7769 echo "$as_me: failed program was:" >&5
7770 cat conftest.
$ac_ext >&5
7771 ac_header_preproc
=no
7773 rm -f conftest.err conftest.
$ac_ext
7774 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7775 echo "${ECHO_T}$ac_header_preproc" >&6
7777 # So? What about this header?
7778 case $ac_header_compiler:$ac_header_preproc in
7780 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7781 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7782 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7783 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7785 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled." >&5
7786 echo "$as_me: WARNING: libintl.h: present but cannot be compiled." >&2;}
7787 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7788 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7789 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7790 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7792 echo "$as_me:$LINENO: checking for libintl.h" >&5
7793 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7794 if test "${ac_cv_header_libintl_h+set}" = set; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
7797 ac_cv_header_libintl_h
=$ac_header_preproc
7799 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7800 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7803 if test $ac_cv_header_libintl_h = yes; then
7804 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
7805 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
7806 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7809 cat >conftest.
$ac_ext <<_ACEOF
7810 #line $LINENO "configure"
7811 #include "confdefs.h"
7812 #include <libintl.h>
7813 extern int _nl_msg_cat_cntr;
7814 #ifdef F77_DUMMY_MAIN
7818 int F77_DUMMY_MAIN() { return 1; }
7823 bindtextdomain ("", "");
7824 return (int) gettext ("") + _nl_msg_cat_cntr
7829 rm -f conftest.
$ac_objext conftest
$ac_exeext
7830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7831 (eval $ac_link) 2>&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); } &&
7835 { ac_try
='test -s conftest$ac_exeext'
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; }; then
7841 gt_cv_func_gnugettext1_libc
=yes
7843 echo "$as_me: failed program was:" >&5
7844 cat conftest.
$ac_ext >&5
7845 gt_cv_func_gnugettext1_libc
=no
7847 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7849 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
7850 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
7852 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
7853 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7854 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
7855 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7856 echo $ECHO_N "(cached) $ECHO_C" >&6
7858 gt_save_LIBS
="$LIBS"
7859 LIBS
="$LIBS -lintl $LIBICONV"
7860 cat >conftest.
$ac_ext <<_ACEOF
7861 #line $LINENO "configure"
7862 #include "confdefs.h"
7863 #include <libintl.h>
7864 extern int _nl_msg_cat_cntr;
7865 #ifdef F77_DUMMY_MAIN
7869 int F77_DUMMY_MAIN() { return 1; }
7874 bindtextdomain ("", "");
7875 return (int) gettext ("") + _nl_msg_cat_cntr
7880 rm -f conftest.
$ac_objext conftest
$ac_exeext
7881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7882 (eval $ac_link) 2>&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } &&
7886 { ac_try
='test -s conftest$ac_exeext'
7887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
7892 gt_cv_func_gnugettext1_libintl
=yes
7894 echo "$as_me: failed program was:" >&5
7895 cat conftest.
$ac_ext >&5
7896 gt_cv_func_gnugettext1_libintl
=no
7898 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7899 LIBS
="$gt_save_LIBS"
7901 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7902 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
7905 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7906 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7907 && test "$PACKAGE" != gettext; }; then
7909 cat >>confdefs.h
<<\_ACEOF
7910 #define HAVE_GETTEXT 1
7913 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7914 INTLLIBS
="-lintl $LIBICONV"
7917 gt_save_LIBS
="$LIBS"
7918 LIBS
="$LIBS $INTLLIBS"
7920 for ac_func
in dcgettext
7922 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7923 echo "$as_me:$LINENO: checking for $ac_func" >&5
7924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7925 if eval "test \"\${$as_ac_var+set}\" = set"; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 cat >conftest.
$ac_ext <<_ACEOF
7929 #line $LINENO "configure"
7930 #include "confdefs.h"
7931 /* System header to define __stub macros and hopefully few prototypes,
7932 which can conflict with char $ac_func (); below. */
7934 /* Override any gcc2 internal prototype to avoid an error. */
7938 /* We use char because int might match the return type of a gcc2
7939 builtin and then its argument prototype would still apply. */
7943 #ifdef F77_DUMMY_MAIN
7947 int F77_DUMMY_MAIN() { return 1; }
7952 /* The GNU C library defines this for functions which it implements
7953 to always fail with ENOSYS. Some functions are actually named
7954 something starting with __ and the normal name is an alias. */
7955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7965 rm -f conftest.
$ac_objext conftest
$ac_exeext
7966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7967 (eval $ac_link) 2>&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); } &&
7971 { ac_try
='test -s conftest$ac_exeext'
7972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); }; }; then
7977 eval "$as_ac_var=yes"
7979 echo "$as_me: failed program was:" >&5
7980 cat conftest.
$ac_ext >&5
7981 eval "$as_ac_var=no"
7983 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7987 if test `eval echo '${'$as_ac_var'}'` = yes; then
7988 cat >>confdefs.h
<<_ACEOF
7989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7995 LIBS
="$gt_save_LIBS"
7997 # Extract the first word of "msgfmt", so it can be a program name with args.
7998 set dummy msgfmt
; ac_word
=$2
7999 echo "$as_me:$LINENO: checking for $ac_word" >&5
8000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8001 if test "${ac_cv_path_MSGFMT+set}" = set; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8006 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8009 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8010 for ac_dir
in $PATH; do
8011 test -z "$ac_dir" && ac_dir
=.
8012 if test -f $ac_dir/$ac_word; then
8013 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8014 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8020 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8024 MSGFMT
="$ac_cv_path_MSGFMT"
8025 if test "$MSGFMT" != ":"; then
8026 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8027 echo "${ECHO_T}$MSGFMT" >&6
8029 echo "$as_me:$LINENO: result: no" >&5
8030 echo "${ECHO_T}no" >&6
8033 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8034 set dummy gmsgfmt
; ac_word
=$2
8035 echo "$as_me:$LINENO: checking for $ac_word" >&5
8036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8037 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8042 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8045 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8049 test -z "$as_dir" && as_dir
=.
8050 for ac_exec_ext
in '' $ac_executable_extensions; do
8051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8052 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8059 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8063 GMSGFMT
=$ac_cv_path_GMSGFMT
8065 if test -n "$GMSGFMT"; then
8066 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8067 echo "${ECHO_T}$GMSGFMT" >&6
8069 echo "$as_me:$LINENO: result: no" >&5
8070 echo "${ECHO_T}no" >&6
8073 # Extract the first word of "xgettext", so it can be a program name with args.
8074 set dummy xgettext
; ac_word
=$2
8075 echo "$as_me:$LINENO: checking for $ac_word" >&5
8076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8077 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8078 echo $ECHO_N "(cached) $ECHO_C" >&6
8082 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8085 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8086 for ac_dir
in $PATH; do
8087 test -z "$ac_dir" && ac_dir
=.
8088 if test -f $ac_dir/$ac_word; then
8089 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8090 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8096 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8100 XGETTEXT
="$ac_cv_path_XGETTEXT"
8101 if test "$XGETTEXT" != ":"; then
8102 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8103 echo "${ECHO_T}$XGETTEXT" >&6
8105 echo "$as_me:$LINENO: result: no" >&5
8106 echo "${ECHO_T}no" >&6
8114 if test "$CATOBJEXT" = "NONE"; then
8115 nls_cv_use_gnu_gettext
=yes
8119 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8120 INTLOBJS
="\$(GETTOBJS)"
8121 # Extract the first word of "msgfmt", so it can be a program name with args.
8122 set dummy msgfmt
; ac_word
=$2
8123 echo "$as_me:$LINENO: checking for $ac_word" >&5
8124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8125 if test "${ac_cv_path_MSGFMT+set}" = set; then
8126 echo $ECHO_N "(cached) $ECHO_C" >&6
8130 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8133 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8134 for ac_dir
in $PATH; do
8135 test -z "$ac_dir" && ac_dir
=.
8136 if test -f $ac_dir/$ac_word; then
8137 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8138 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8144 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8148 MSGFMT
="$ac_cv_path_MSGFMT"
8149 if test "$MSGFMT" != ":"; then
8150 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8151 echo "${ECHO_T}$MSGFMT" >&6
8153 echo "$as_me:$LINENO: result: no" >&5
8154 echo "${ECHO_T}no" >&6
8157 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8158 set dummy gmsgfmt
; ac_word
=$2
8159 echo "$as_me:$LINENO: checking for $ac_word" >&5
8160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8161 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8166 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8169 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8173 test -z "$as_dir" && as_dir
=.
8174 for ac_exec_ext
in '' $ac_executable_extensions; do
8175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8176 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8183 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8187 GMSGFMT
=$ac_cv_path_GMSGFMT
8189 if test -n "$GMSGFMT"; then
8190 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8191 echo "${ECHO_T}$GMSGFMT" >&6
8193 echo "$as_me:$LINENO: result: no" >&5
8194 echo "${ECHO_T}no" >&6
8197 # Extract the first word of "xgettext", so it can be a program name with args.
8198 set dummy xgettext
; ac_word
=$2
8199 echo "$as_me:$LINENO: checking for $ac_word" >&5
8200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8201 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8206 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8209 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8210 for ac_dir
in $PATH; do
8211 test -z "$ac_dir" && ac_dir
=.
8212 if test -f $ac_dir/$ac_word; then
8213 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8214 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8220 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8224 XGETTEXT
="$ac_cv_path_XGETTEXT"
8225 if test "$XGETTEXT" != ":"; then
8226 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8227 echo "${ECHO_T}$XGETTEXT" >&6
8229 echo "$as_me:$LINENO: result: no" >&5
8230 echo "${ECHO_T}no" >&6
8233 BUILD_INCLUDED_LIBINTL
=yes
8234 USE_INCLUDED_LIBINTL
=yes
8236 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
8237 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8240 if test "$GMSGFMT" != ":"; then
8241 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
8244 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
8245 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
8250 if test "$XGETTEXT" != ":"; then
8251 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
8254 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8255 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8262 ac_config_commands
="$ac_config_commands default-2"
8264 if test "$PACKAGE" = gettext; then
8265 BUILD_INCLUDED_LIBINTL
=yes
8268 for ac_prog
in bison
8270 # Extract the first word of "$ac_prog", so it can be a program name with args.
8271 set dummy
$ac_prog; ac_word
=$2
8272 echo "$as_me:$LINENO: checking for $ac_word" >&5
8273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8274 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8277 if test -n "$INTLBISON"; then
8278 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
8280 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8284 test -z "$as_dir" && as_dir
=.
8285 for ac_exec_ext
in '' $ac_executable_extensions; do
8286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8287 ac_cv_prog_INTLBISON
="$ac_prog"
8288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8296 INTLBISON
=$ac_cv_prog_INTLBISON
8297 if test -n "$INTLBISON"; then
8298 echo "$as_me:$LINENO: result: $INTLBISON" >&5
8299 echo "${ECHO_T}$INTLBISON" >&6
8301 echo "$as_me:$LINENO: result: no" >&5
8302 echo "${ECHO_T}no" >&6
8305 test -n "$INTLBISON" && break
8308 if test -z "$INTLBISON"; then
8311 echo "$as_me:$LINENO: checking version of bison" >&5
8312 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8313 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8314 case $ac_prog_version in
8315 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
8316 1.2[6-9]* | 1.
[3-9][0-9]* | [2-9].
*)
8317 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
8318 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
8320 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8321 echo "${ECHO_T}$ac_prog_version" >&6
8323 if test $ac_verc_fail = yes; then
8327 for lang
in $ALL_LINGUAS; do
8328 GMOFILES
="$GMOFILES $lang.gmo"
8329 POFILES
="$POFILES $lang.po"
8333 nls_cv_header_libgt
=
8341 if test "x$CATOBJEXT" != "x"; then
8342 if test "x$ALL_LINGUAS" = "x"; then
8345 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8346 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8348 for presentlang
in $ALL_LINGUAS; do
8350 for desiredlang
in ${LINGUAS-$ALL_LINGUAS}; do
8351 # Use the presentlang catalog if desiredlang is
8352 # a. equal to presentlang, or
8353 # b. a variant of presentlang (because in this case,
8354 # presentlang can be used as a fallback for messages
8355 # which are not translated in the desiredlang catalog).
8356 case "$desiredlang" in
8357 "$presentlang"*) useit
=yes;;
8360 if test $useit = yes; then
8361 NEW_LINGUAS
="$NEW_LINGUAS $presentlang"
8364 LINGUAS
=$NEW_LINGUAS
8365 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8366 echo "${ECHO_T}$LINGUAS" >&6
8369 if test -n "$LINGUAS"; then
8370 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8375 if test -n "$ac_aux_dir"; then
8376 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8378 if test -z "$MKINSTALLDIRS"; then
8379 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8382 INTL_LIBTOOL_SUFFIX_PREFIX
=
8384 # This is necessary so that .o files in LIBOBJS are also built via
8385 # the ANSI2KNR-filtering rules.
8386 LIBOBJS
=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
8388 ac_config_files
="$ac_config_files Makefile config/Makefile intl/Makefile po/Makefile.in lib/Makefile src/Makefile doc/Makefile m4/Makefile tests/Makefile"
8389 cat >confcache
<<\_ACEOF
8390 # This file is a shell script that caches the results of configure
8391 # tests run on this system so they can be shared between configure
8392 # scripts and configure runs, see configure's option --config-cache.
8393 # It is not useful on other systems. If it contains results you don't
8394 # want to keep, you may remove or edit it.
8396 # config.status only pays attention to the cache file if you give it
8397 # the --recheck option to rerun configure.
8399 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8400 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8405 # The following way of writing the cache mishandles newlines in values,
8406 # but we know of no workaround that is simple, portable, and efficient.
8407 # So, don't put newlines in cache variables' values.
8408 # Ultrix sh set writes to stderr and can't be redirected directly,
8409 # and sets the high bit in the cache file unless we assign to the vars.
8412 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8414 # `set' does not quote correctly, so add quotes (double-quote
8415 # substitution turns \\\\ into \\, and sed turns \\ into \).
8418 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8421 # `set' quotes correctly as required by POSIX, so do not add quotes.
8423 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8430 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8432 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8434 if cmp -s $cache_file confcache
; then :; else
8435 if test -w $cache_file; then
8436 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8437 cat confcache
>$cache_file
8439 echo "not updating unwritable cache $cache_file"
8444 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8445 # Let make expand exec_prefix.
8446 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8448 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8449 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8450 # trailing colons and then remove the whole line if VPATH becomes empty
8451 # (actually we leave an empty line to preserve line numbers).
8452 if test "x$srcdir" = x.
; then
8453 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8454 s/:*\$(srcdir):*/:/;
8455 s/:*\${srcdir}:*/:/;
8457 s/^\([^=]*=[ ]*\):*/\1/;
8463 DEFS
=-DHAVE_CONFIG_H
8465 : ${CONFIG_STATUS=./config.status}
8466 ac_clean_files_save
=$ac_clean_files
8467 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8468 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8469 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8470 cat >$CONFIG_STATUS <<_ACEOF
8472 # Generated automatically by $as_me.
8473 # Run this file to recreate the current configuration.
8474 # Compiler output produced by configure, useful for debugging
8475 # configure, is in config.log if it exists.
8478 SHELL=\${CONFIG_SHELL-$SHELL}
8481 cat >>$CONFIG_STATUS <<\_ACEOF
8483 ## --------------------- ##
8484 ## M4sh Initialization. ##
8485 ## --------------------- ##
8487 # Be Bourne compatible
8488 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8491 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8495 # Name of the executable.
8496 as_me
=`echo "$0" |sed 's,\(.*[\\/]\+\)\?\([^\\/]\+\)[\\/]*,\2,'`
8498 # If LINENO is not supported by the shell, produce a version of this
8499 # script where LINENO is hard coded. Rewrite if not up to date only.
8500 # Comparing LINENO against _oline_ is not a good solution, since in
8501 # the case of embedded executables (such as config.status within
8502 # configure) you'd compare LINENO wrt config.status vs. _oline_ vs
8503 # configure. Hence a useless rewrite (not to mention the risk of
8504 # ``infinite'' rewrites. Merely check that LINENO is incremented
8505 # between two lines, which is a property guaranteed for _oline_, hence
8506 # it protects us from repetitive rewrites.
8509 # Compute as_lineno_1 in two steps: some shells restart LINENO for
8511 as_lineno_1=`(expr $as_lineno_1 + 1) 2>/dev
/null
`
8512 if test "x$as_lineno_1" != "x$as_lineno_2"; then
8513 if test ! -f $as_me.lineno ||
8514 test x`ls -1dt $as_me.lineno
$as_me 2>/dev
/null
| sed 1q
` \
8515 != x$as_me.lineno; then
8516 # Be sure to write the pattern so that it doesn't replace itself:
8517 # it must not match itself.
8519 if ($0 ~ /[$]LINENO/)
8520 while (sub (/[$]LINENO/, NR))
8523 }' <$as_me >$as_me.lineno
8524 chmod +x $as_me.lineno
8526 exec ${SHELL-/bin/sh} ./$as_me.lineno
8529 # Avoid depending upon Character Ranges.
8530 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8531 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8532 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8533 as_cr_digits='0123456789'
8534 as_cr_alnum=$as_cr_Letters$as_cr_digits
8536 case `echo "testing\c"; echo 1,2,3`,`echo -n testing
; echo 1,2,3` in
8537 *c*,-n*) ECHO_N= ECHO_C='
8539 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8540 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8543 if expr a : '\(a\)' >/dev/null 2>&1; then
8549 rm -f conf$$ conf$$.exe conf$$.file
8551 if ln -s conf$$.file conf$$ 2>/dev/null; then
8552 # We could just check for DJGPP; but this test a) works b) is more generic
8553 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8554 if test -f conf$$.exe; then
8555 # Don't use ln at all; we don't have any links
8560 elif ln conf$$.file conf$$ 2>/dev/null; then
8565 rm -f conf$$ conf$$.exe conf$$.file
8567 # The user is always right.
8568 if test "${PATH_SEPARATOR+set}" != set; then
8569 echo "#! $SHELL" >conftest.sh
8570 echo "exit 0" >>conftest.sh
8571 chmod +x conftest.sh
8572 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
8580 as_executable_p="test -f"
8582 # Sed expression to map a string onto a valid CPP name.
8583 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8585 # Sed expression to map a string onto a valid variable name.
8586 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8588 # Support unset when possible.
8589 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8596 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
8597 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
8598 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
8599 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
8600 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
8601 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
8602 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
8603 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
8606 # We need space, tab and new line, in precisely that order.
8612 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
8616 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8617 # report actual input values of CONFIG_FILES etc. instead of their
8618 # values after options handling. Logging --version etc. is OK.
8622 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8623 ## Running \$as_me. ##
8628 This file was extended by GNU Bison $as_me 1.29b, which was
8629 generated by GNU Autoconf 2.52e. Invocation command line was
8631 CONFIG_FILES = $CONFIG_FILES
8632 CONFIG_HEADERS = $CONFIG_HEADERS
8633 CONFIG_LINKS = $CONFIG_LINKS
8634 CONFIG_COMMANDS = $CONFIG_COMMANDS
8638 echo "on `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`" >&5
8642 # Files that config.status was made for.
8643 if test -n "$ac_config_files"; then
8644 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8647 if test -n "$ac_config_headers"; then
8648 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8651 if test -n "$ac_config_links"; then
8652 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8655 if test -n "$ac_config_commands"; then
8656 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8659 cat >>$CONFIG_STATUS <<\_ACEOF
8662 \`$as_me' instantiates files from templates according to the
8663 current configuration.
8665 Usage: $0 [OPTIONS] [FILE]...
8667 -h, --help print this help, then exit
8668 -V, --version print version number, then exit
8669 -d, --debug don't remove temporary files
8670 --recheck update
$as_me by reconfiguring
in the same conditions
8671 --file=FILE
[:TEMPLATE
]
8672 instantiate the configuration
file FILE
8673 --header=FILE
[:TEMPLATE
]
8674 instantiate the configuration header FILE
8676 Configuration files
:
8679 Configuration headers
:
8682 Configuration commands
:
8685 Report bugs to
<bug
-autoconf@gnu.org
>.
"
8688 cat >>$CONFIG_STATUS <<_ACEOF
8690 GNU Bison config.status
1.29b
8691 configured by
$0, generated by GNU Autoconf
2.52e
,
8692 with options
\\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8694 Copyright
1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8695 Free Software Foundation
, Inc.
8696 This config.status
script is free software
; the Free Software Foundation
8697 gives unlimited permission to copy
, distribute and modify it.
"
8702 cat >>$CONFIG_STATUS <<\_ACEOF
8703 # If no file are specified by the user, then we need to provide default
8704 # value. By we need to know if files were specified by the user.
8710 ac_option=`expr "x
$1" : 'x\([^=]*\)='`
8711 ac_optarg=`expr "x
$1" : 'x[^=]*=\(.*\)'`
8713 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
8717 *) # This is not an option, so the user has probably given explicit
8719 ac_need_defaults=false;;
8723 # Handling of the options.
8725 cat >>$CONFIG_STATUS <<_ACEOF
8726 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8727 echo "running
$SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8728 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8730 cat >>$CONFIG_STATUS <<\_ACEOF
8731 --version | --vers* | -V )
8732 echo "$ac_cs_version"; exit 0 ;;
8734 # Conflict between --help and --header
8735 { { echo "$as_me:$LINENO: error
: ambiguous option
: $1
8736 Try \
`$0 --help' for more information." >&5
8737 echo "$as_me: error: ambiguous option: $1
8738 Try \`$0 --help' for more information." >&2;}
8739 { (exit 1); exit 1; }; };;
8740 --help | --hel | -h )
8741 echo "$ac_cs_usage"; exit 0 ;;
8742 --debug | --d* | -d )
8744 --file | --fil | --fi | --f )
8746 CONFIG_FILES="$CONFIG_FILES $1"
8747 ac_need_defaults=false;;
8748 --header | --heade | --head | --hea )
8750 CONFIG_HEADERS="$CONFIG_HEADERS $1"
8751 ac_need_defaults=false;;
8754 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8755 Try \`$0 --help' for more information.
" >&5
8756 echo "$as_me: error
: unrecognized option
: $1
8757 Try \
`$0 --help' for more information." >&2;}
8758 { (exit 1); exit 1; }; } ;;
8760 *) ac_config_targets="$ac_config_targets $1" ;;
8768 cat >>$CONFIG_STATUS <<_ACEOF
8770 # INIT-COMMANDS section.
8773 PACKAGE_NAME='$PACKAGE_NAME'
8774 PACKAGE_TARNAME='$PACKAGE_TARNAME'
8775 PACKAGE_VERSION='$PACKAGE_VERSION'
8776 PACKAGE_STRING='$PACKAGE_STRING'
8777 PACKAGE_BUGREPORT='$PACKAGE_BUGREPORT'
8779 AMDEP_TRUE="$AMDEP_TRUE"
8780 ac_aux_dir="$ac_aux_dir"
8784 cat >>$CONFIG_STATUS <<\_ACEOF
8785 for ac_config_target in $ac_config_targets
8787 case "$ac_config_target" in
8788 # Handling of arguments.
8789 "tests/atlocal" ) CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
8790 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8791 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
8792 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
8793 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8794 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
8795 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8796 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8797 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
8798 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
8799 "tests/package.m4" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tests/package.m4" ;;
8800 "tests/atconfig" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
8801 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8802 "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
8803 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
8804 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8805 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8806 { (exit 1); exit 1; }; };;
8810 # If the user did not use the arguments to specify the items to instantiate,
8811 # then the envvar interface is used. Set only those that are not.
8812 # We use the long form for the default assignment because of an extremely
8813 # bizarre bug on SunOS 4.1.3.
8814 if $ac_need_defaults; then
8815 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8816 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8817 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8820 # Create a temporary directory, and hook for its removal unless debugging.
8823 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8824 trap '{ (exit 1); exit 1; }' 1 2 13 15
8827 # Create a (secure) tmp directory for tmp files.
8830 tmp=`(umask 077 && mktemp
-d -q "$TMPDIR/csXXXXXX") 2>/dev
/null
` &&
8831 test -n "$tmp" && test -d "$tmp"
8834 tmp=$TMPDIR/cs$$-$RANDOM
8835 (umask 077 && mkdir $tmp)
8838 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8839 { (exit 1); exit 1; }
8844 cat >>$CONFIG_STATUS <<_ACEOF
8847 # CONFIG_FILES section.
8850 # No need to generate the scripts if there are no CONFIG_FILES.
8851 # This happens for instance when ./config.status config.h
8852 if test -n "\$CONFIG_FILES"; then
8853 # Protect against being on the right side of a sed subst in config.status.
8854 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8855 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8856 s,@SHELL@,$SHELL,;t t
8857 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8858 s,@exec_prefix@,$exec_prefix,;t t
8859 s,@prefix@,$prefix,;t t
8860 s,@program_transform_name@,$program_transform_name,;t t
8861 s,@bindir@,$bindir,;t t
8862 s,@sbindir@,$sbindir,;t t
8863 s,@libexecdir@,$libexecdir,;t t
8864 s,@datadir@,$datadir,;t t
8865 s,@sysconfdir@,$sysconfdir,;t t
8866 s,@sharedstatedir@,$sharedstatedir,;t t
8867 s,@localstatedir@,$localstatedir,;t t
8868 s,@libdir@,$libdir,;t t
8869 s,@includedir@,$includedir,;t t
8870 s,@oldincludedir@,$oldincludedir,;t t
8871 s,@infodir@,$infodir,;t t
8872 s,@mandir@,$mandir,;t t
8873 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8874 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8875 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8876 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8877 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8878 s,@build_alias@,$build_alias,;t t
8879 s,@host_alias@,$host_alias,;t t
8880 s,@target_alias@,$target_alias,;t t
8882 s,@ECHO_C@,$ECHO_C,;t t
8883 s,@ECHO_N@,$ECHO_N,;t t
8884 s,@ECHO_T@,$ECHO_T,;t t
8886 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8887 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8888 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8889 s,@PACKAGE@,$PACKAGE,;t t
8890 s,@VERSION@,$VERSION,;t t
8891 s,@EXEEXT@,$EXEEXT,;t t
8892 s,@OBJEXT@,$OBJEXT,;t t
8893 s,@ACLOCAL@,$ACLOCAL,;t t
8894 s,@AUTOCONF@,$AUTOCONF,;t t
8895 s,@AUTOMAKE@,$AUTOMAKE,;t t
8896 s,@AUTOHEADER@,$AUTOHEADER,;t t
8897 s,@MAKEINFO@,$MAKEINFO,;t t
8898 s,@AMTAR@,$AMTAR,;t t
8899 s,@install_sh@,$install_sh,;t t
8900 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8902 s,@SET_MAKE@,$SET_MAKE,;t t
8903 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8904 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8905 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8906 s,@DEPDIR@,$DEPDIR,;t t
8908 s,@CFLAGS@,$CFLAGS,;t t
8909 s,@LDFLAGS@,$LDFLAGS,;t t
8910 s,@CPPFLAGS@,$CPPFLAGS,;t t
8911 s,@ac_ct_CC@,$ac_ct_CC,;t t
8912 s,@am__include@,$am__include,;t t
8913 s,@am__quote@,$am__quote,;t t
8914 s,@CCDEPMODE@,$CCDEPMODE,;t t
8916 s,@RANLIB@,$RANLIB,;t t
8917 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8919 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
8921 s,@ANSI2KNR@,$ANSI2KNR,;t t
8922 s,@ALLOCA@,$ALLOCA,;t t
8923 s,@LIBOBJS@,$LIBOBJS,;t t
8924 s,@build@,$build,;t t
8925 s,@build_cpu@,$build_cpu,;t t
8926 s,@build_vendor@,$build_vendor,;t t
8927 s,@build_os@,$build_os,;t t
8929 s,@host_cpu@,$host_cpu,;t t
8930 s,@host_vendor@,$host_vendor,;t t
8931 s,@host_os@,$host_os,;t t
8932 s,@GLIBC21@,$GLIBC21,;t t
8933 s,@LIBICONV@,$LIBICONV,;t t
8934 s,@USE_NLS@,$USE_NLS,;t t
8935 s,@MSGFMT@,$MSGFMT,;t t
8936 s,@GMSGFMT@,$GMSGFMT,;t t
8937 s,@XGETTEXT@,$XGETTEXT,;t t
8938 s,@INTLBISON@,$INTLBISON,;t t
8939 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
8940 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
8941 s,@CATALOGS@,$CATALOGS,;t t
8942 s,@CATOBJEXT@,$CATOBJEXT,;t t
8943 s,@GMOFILES@,$GMOFILES,;t t
8944 s,@INTLLIBS@,$INTLLIBS,;t t
8945 s,@INTLOBJS@,$INTLOBJS,;t t
8946 s,@POFILES@,$POFILES,;t t
8947 s,@POSUB@,$POSUB,;t t
8948 s,@DATADIRNAME@,$DATADIRNAME,;t t
8949 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8950 s,@GENCAT@,$GENCAT,;t t
8951 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8952 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
8957 cat >>$CONFIG_STATUS <<\_ACEOF
8958 # Split the substitutions into bite-sized pieces for seds with
8959 # small command number limits, like on Digital OSF/1 and HP-UX.
8961 ac_sed_frag=1 # Number of current file.
8962 ac_beg=1 # First line for current file.
8963 ac_end=$ac_max_sed_lines # Line after last line for current file.
8966 while $ac_more_lines; do
8967 if test $ac_beg -gt 1; then
8968 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8970 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8972 if test ! -s $tmp/subs.frag; then
8975 # The purpose of the label and of the branching condition is to
8976 # speed up the sed processing (if there are no `@
' at all, there
8977 # is no need to browse any of the substitutions).
8978 # These are the two extra sed commands mentioned above.
8980 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8981 if test -z "$ac_sed_cmds"; then
8982 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8984 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8986 ac_sed_frag=`expr $ac_sed_frag + 1`
8988 ac_end=`expr $ac_end + $ac_max_sed_lines`
8991 if test -z "$ac_sed_cmds"; then
8994 fi # test -n "$CONFIG_FILES"
8997 cat >>$CONFIG_STATUS <<\_ACEOF
8998 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8999 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9001 - | *:- | *:-:* ) # input from stdin
9003 ac_file_in=`echo "$ac_file" | sed 's
,[^
:]*:,,'`
9004 ac_file=`echo "$ac_file" | sed 's
,:.
*,,'` ;;
9005 *:* ) ac_file_in=`echo "$ac_file" | sed 's
,[^
:]*:,,'`
9006 ac_file=`echo "$ac_file" | sed 's
,:.
*,,'` ;;
9007 * ) ac_file_in=$ac_file.in ;;
9010 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9011 ac_dir=`$as_expr X"$ac_file" : 'X\
(.
*[^/]\)//*[^/][^/]*/*$
' \
| \
9012 X
"$ac_file" : 'X\(//\)[^/]' \
| \
9013 X
"$ac_file" : 'X\(//\)$' \
| \
9014 X
"$ac_file" : 'X\(/\)' \
| \
9015 .
: '\(.\)' 2>/dev
/null
||
9017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9018 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9019 /^X\(\/\/\)$/{ s//\1/; q; }
9020 /^X\(\/\).*/{ s//\1/; q; }
9023 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9027 for as_mkdir_dir in `IFS
='/\\'; set X
$as_dummy; shift; echo "$@"`; do
9028 case $as_mkdir_dir in
9029 # Skip DOS drivespec
9030 ?:) as_incr_dir=$as_mkdir_dir ;;
9032 as_incr_dir=$as_incr_dir/$as_mkdir_dir
9033 test -d "$as_incr_dir" ||
9034 mkdir "$as_incr_dir" ||
9035 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9036 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9037 { (exit 1); exit 1; }; }
9042 if test "$ac_dir" != .; then
9043 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9044 # A "../" for each directory in $ac_dir_suffix.
9045 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9047 ac_dir_suffix= ac_top_builddir=
9051 .) # No --srcdir option. We are building in place.
9053 if test -z "$ac_top_builddir"; then
9056 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9058 [\\/]* | ?:[\\/]* ) # Absolute path.
9059 ac_srcdir=$srcdir$ac_dir_suffix;
9060 ac_top_srcdir=$srcdir ;;
9062 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9063 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9067 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9068 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9071 if test x"$ac_file" != x-; then
9072 { echo "$as_me:$LINENO: creating $ac_file" >&5
9073 echo "$as_me: creating $ac_file" >&6;}
9076 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9077 # use $as_me), people would be surprised to read:
9078 # /* config.h. Generated automatically by config.status. */
9079 configure_input
="Generated automatically from `echo $ac_file_in |
9080 sed 's,.*/,,'` by configure."
9082 # First look for the input files in the build tree, otherwise in the
9084 ac_file_inputs
=`IFS=:
9085 for f in $ac_file_in; do
9087 -) echo $tmp/stdin ;;
9089 # Absolute (can't be DOS-style, as IFS=:)
9090 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9091 echo "$as_me: error: cannot find input file: $f" >&2;}
9092 { (exit 1); exit 1; }; }
9095 if test -f "$f"; then
9098 elif test -f "$srcdir/$f"; then
9103 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9104 echo "$as_me: error: cannot find input file: $f" >&2;}
9105 { (exit 1); exit 1; }; }
9108 done` || { (exit 1); exit 1; }
9110 cat >>$CONFIG_STATUS <<_ACEOF
9114 cat >>$CONFIG_STATUS <<\_ACEOF
9116 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
9117 s
,@configure_input@
,$configure_input,;t t
9118 s
,@srcdir@
,$ac_srcdir,;t t
9119 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9120 s
,@INSTALL@
,$ac_INSTALL,;t t
9121 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9123 if test x"$ac_file" != x-; then
9124 mv $tmp/out $ac_file
9132 cat >>$CONFIG_STATUS <<\_ACEOF
9135 # CONFIG_HEADER section.
9138 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9139 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9141 # ac_d sets the value in "#define NAME VALUE" lines.
9142 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9143 ac_dB
='[ ].*$,\1#\2'
9146 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9147 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9148 ac_uB
='$,\1#\2define\3'
9152 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9153 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9155 - | *:- | *:-:* ) # input from stdin
9157 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9158 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9159 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9160 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9161 * ) ac_file_in
=$ac_file.
in ;;
9164 test x
"$ac_file" != x
- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9165 echo "$as_me: creating $ac_file" >&6;}
9167 # First look for the input files in the build tree, otherwise in the
9169 ac_file_inputs
=`IFS=:
9170 for f in $ac_file_in; do
9172 -) echo $tmp/stdin ;;
9174 # Absolute (can't be DOS-style, as IFS=:)
9175 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9176 echo "$as_me: error: cannot find input file: $f" >&2;}
9177 { (exit 1); exit 1; }; }
9180 if test -f "$f"; then
9183 elif test -f "$srcdir/$f"; then
9188 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9189 echo "$as_me: error: cannot find input file: $f" >&2;}
9190 { (exit 1); exit 1; }; }
9193 done` || { (exit 1); exit 1; }
9194 # Remove the trailing spaces.
9195 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9199 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9200 # `conftest.undefs', that substitutes the proper values into
9201 # config.h.in to produce config.h. The first handles `#define'
9202 # templates, and the second `#undef' templates.
9203 # And first: Protect against being on the right side of a sed subst in
9204 # config.status. Protect against being in an unquoted here document
9206 rm -f conftest.defines conftest.undefs
9207 # Using a here document instead of a string reduces the quoting nightmare.
9208 # Putting comments in sed scripts is not portable.
9210 # `end' is used to avoid that the second main sed command (meant for
9211 # 0-ary CPP macros) applies to n-ary macro definitions.
9212 # See the Autoconf documentation for `clear'.
9213 cat >confdef2sed.
sed <<\_ACEOF
9218 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
9220 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9223 # If some macros were called several times there might be several times
9224 # the same #defines, which is useless. Nevertheless, we may not want to
9225 # sort them, since we want the *last* AC-DEFINE to be honored.
9226 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9227 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9228 rm -f confdef2sed.sed
9230 # This sed command replaces #undef with comments. This is necessary, for
9231 # example, in the case of _POSIX_SOURCE, which is predefined and required
9232 # on some systems where configure will not decide to define it.
9233 cat >>conftest.undefs <<\_ACEOF
9234 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9237 # Break up conftest.defines because some shells have a limit on the size
9238 # of here documents, and old seds have small limits too (100 cmds).
9239 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9240 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9241 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9242 echo ' :' >>$CONFIG_STATUS
9244 while grep . conftest.defines >/dev/null
9246 # Write a limited-size here document to $tmp/defines.sed.
9247 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9248 # Speed up: don't consider the non `#define' lines.
9249 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9250 # Work around the forget-to-reset-the-flag bug.
9251 echo 't clr' >>$CONFIG_STATUS
9252 echo ': clr' >>$CONFIG_STATUS
9253 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9255 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9259 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9260 rm -f conftest.defines
9261 mv conftest.
tail conftest.defines
9263 rm -f conftest.defines
9264 echo ' fi # egrep' >>$CONFIG_STATUS
9265 echo >>$CONFIG_STATUS
9267 # Break up conftest.undefs because some shells have a limit on the size
9268 # of here documents, and old seds have small limits too (100 cmds).
9269 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9271 while grep . conftest.undefs
>/dev
/null
9273 # Write a limited-size here document to $tmp/undefs.sed.
9274 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9275 # Speed up: don't consider the non
`#undef'
9276 echo '/^[ ]*#[ ]*undef/!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.undefs >>$CONFIG_STATUS
9282 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9286 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9287 rm -f conftest.undefs
9288 mv conftest.tail conftest.undefs
9290 rm -f conftest.undefs
9292 cat >>$CONFIG_STATUS <<\_ACEOF
9293 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9294 # use $as_me), people would be surprised to read:
9295 # /* config.h. Generated automatically by config.status. */
9296 if test x
"$ac_file" = x
-; then
9297 echo "/* Generated automatically by configure. */" >$tmp/config.h
9299 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
9301 cat $tmp/in >>$tmp/config.h
9303 if test x
"$ac_file" != x
-; then
9304 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
9305 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9306 echo "$as_me: $ac_file is unchanged" >&6;}
9308 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9309 X"$ac_file" : 'X\(//\)[^/]' \| \
9310 X"$ac_file" : 'X\(//\)$' \| \
9311 X"$ac_file" : 'X\(/\)' \| \
9312 . : '\(.\)' 2>/dev/null ||
9314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9315 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9316 /^X\(\/\/\)$/{ s//\1/; q; }
9317 /^X\(\/\).*/{ s//\1/; q; }
9320 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9324 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9325 case $as_mkdir_dir in
9326 # Skip DOS drivespec
9327 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9329 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9330 test -d "$as_incr_dir" ||
9331 mkdir "$as_incr_dir" ||
9332 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9333 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9334 { (exit 1); exit 1; }; }
9340 mv $tmp/config.h
$ac_file
9346 # Run the commands associated with the file.
9348 config.h
) # update the timestamp
9349 echo timestamp
>"./stamp-h1"
9354 cat >>$CONFIG_STATUS <<\_ACEOF
9357 # CONFIG_COMMANDS section.
9359 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9360 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9361 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9362 ac_dir
=`$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9363 X"$ac_dest" : 'X\(//\)[^/]' \| \
9364 X"$ac_dest" : 'X\(//\)$' \| \
9365 X"$ac_dest" : 'X\(/\)' \| \
9366 . : '\(.\)' 2>/dev/null ||
9368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9369 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9370 /^X\(\/\/\)$/{ s//\1/; q; }
9371 /^X\(\/\).*/{ s//\1/; q; }
9373 if test "$ac_dir" != .
; then
9374 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9375 # A "../" for each directory in $ac_dir_suffix.
9376 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9378 ac_dir_suffix
= ac_top_builddir
=
9382 .
) # No --srcdir option. We are building in place.
9384 if test -z "$ac_top_builddir"; then
9387 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9389 [\\/]* | ?
:[\\/]* ) # Absolute path.
9390 ac_srcdir
=$srcdir$ac_dir_suffix;
9391 ac_top_srcdir
=$srcdir ;;
9393 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9394 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9397 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9398 echo "$as_me: executing $ac_dest commands" >&6;}
9400 tests
/package.
m4 ) cat >tests
/package.
m4 <<ATEOF
9401 # Signature of the current package.
9402 m4_define([PACKAGE_NAME], [$PACKAGE_NAME])
9403 m4_define([PACKAGE_TARNAME], [$PACKAGE_TARNAME])
9404 m4_define([PACKAGE_VERSION], [$PACKAGE_VERSION])
9405 m4_define([PACKAGE_STRING], [$PACKAGE_STRING])
9406 m4_define([PACKAGE_BUGREPORT], [$PACKAGE_BUGREPORT])
9409 tests
/atconfig
) cat >tests
/atconfig
<<ATEOF
9410 # Configurable variable values for building test suites.
9412 # Copyright 2000, 2001 Free Software Foundation, Inc.
9416 top_srcdir='$ac_top_srcdir'
9417 top_builddir='$ac_top_builddir'
9419 AUTOTEST_PATH='tests'
9421 SHELL=\${CONFIG_SHELL-'$SHELL'}
9425 test x
"$AMDEP_TRUE" != x
"" ||
9426 for mf
in $CONFIG_FILES; do
9428 Makefile
) dirpart
=.
;;
9429 */Makefile
) dirpart
=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
9432 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null
|| continue
9433 # Extract the definition of DEP_FILES from the Makefile without
9435 DEPDIR
=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9436 test -z "$DEPDIR" && continue
9437 # When using ansi2knr, U may be empty or an underscore; expand it
9438 U
=`sed -n -e '/^U = / s///p' < "$mf"`
9439 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9440 # We invoke sed twice because it is the simplest approach to
9441 # changing $(DEPDIR) to its actual value in the expansion.
9442 for file in `sed -n -e '
9443 /^DEP_FILES = .*\\\\$/ {
9452 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9453 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9454 # Make sure the directory exists.
9455 test -f "$dirpart/$file" && continue
9456 fdir
=`echo "$file" | sed -e 's|/[^/]*$||'`
9457 $ac_aux_dir/mkinstalldirs
"$dirpart/$fdir" > /dev
/null
2>&1
9458 # echo "creating $dirpart/$file"
9459 echo '# dummy' > "$dirpart/$file"
9463 default
-2 ) for ac_file
in $CONFIG_FILES; do
9464 # Support "outfile[:infile[:infile...]]"
9466 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9468 # PO directories have a Makefile.in generated from Makefile.in.in.
9469 case "$ac_file" in */Makefile.
in)
9470 # Adjust a relative srcdir.
9471 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9472 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
9473 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9474 # In autoconf-2.13 it is called $ac_given_srcdir.
9475 # In autoconf-2.50 it is called $srcdir.
9476 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
9477 case "$ac_given_srcdir" in
9478 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
9479 /*) top_srcdir
="$ac_given_srcdir" ;;
9480 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9482 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9483 rm -f "$ac_dir/POTFILES"
9484 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9485 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9486 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9487 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9496 cat >>$CONFIG_STATUS <<\_ACEOF
9498 { (exit 0); exit 0; }
9500 chmod +x
$CONFIG_STATUS
9501 ac_clean_files
=$ac_clean_files_save
9503 # configure is writing to config.log, and then calls config.status.
9504 # config.status does its own redirection, appending to config.log.
9505 # Unfortunately, on DOS this fails, as config.log is still kept open
9506 # by configure, so config.status won't be able to write to it; its
9507 # output is simply discarded. So we exec the FD to /dev/null,
9508 # effectively closing config.log, so it can be properly (re)opened and
9509 # appended to by config.status. When coming back to configure, we
9510 # need to make the FD available again.
9511 if test "$no_create" != yes; then
9514 $SHELL $CONFIG_STATUS || ac_cs_success
=false
9516 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9517 # would make configure fail if this is the last instruction.
9518 $ac_cs_success || { (exit 1); exit 1; }