2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52c for bison 1.28c.
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 # Avoid depending upon Character Ranges.
13 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
14 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16 as_cr_digits
='0123456789'
17 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19 # Sed expression to map a string onto a valid variable name.
20 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22 # Sed expression to map a string onto a valid CPP name.
23 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
25 ## --------------------- ##
26 ## M4sh Initialization. ##
27 ## --------------------- ##
29 # Be Bourne compatible
30 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
33 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
37 # Name of the executable.
38 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
40 if expr a
: '\(a\)' >/dev
/null
2>&1; then
46 rm -f conf$$ conf$$.exe conf$$.
file
48 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
49 # We could just check for DJGPP; but this test a) works b) is more generic
50 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
51 if test -f conf$$.exe
; then
52 # Don't use ln at all; we don't have any links
57 elif ln conf$$.
file conf$$
2>/dev
/null
; then
62 rm -f conf$$ conf$$.exe conf$$.
file
64 as_executable_p
="test -f"
66 # Support unset when possible.
67 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
74 $as_unset LANG
|| test "${LANG+set}" != set || { LANG
=C
; export LANG
; }
75 $as_unset LC_ALL
|| test "${LC_ALL+set}" != set || { LC_ALL
=C
; export LC_ALL
; }
76 $as_unset LC_TIME
|| test "${LC_TIME+set}" != set || { LC_TIME
=C
; export LC_TIME
; }
77 $as_unset LC_CTYPE
|| test "${LC_CTYPE+set}" != set || { LC_CTYPE
=C
; export LC_CTYPE
; }
78 $as_unset LANGUAGE
|| test "${LANGUAGE+set}" != set || { LANGUAGE
=C
; export LANGUAGE
; }
79 $as_unset LC_COLLATE
|| test "${LC_COLLATE+set}" != set || { LC_COLLATE
=C
; export LC_COLLATE
; }
80 $as_unset LC_NUMERIC
|| test "${LC_NUMERIC+set}" != set || { LC_NUMERIC
=C
; export LC_NUMERIC
; }
81 $as_unset LC_MESSAGES
|| test "${LC_MESSAGES+set}" != set || { LC_MESSAGES
=C
; export LC_MESSAGES
; }
84 # We need space, tab and new line, in precisely that order.
90 $as_unset CDPATH
|| test "${CDPATH+set}" != set || { CDPATH
=:; export CDPATH
; }
93 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
94 # so uname gets run too.
95 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
102 ac_default_prefix
=/usr
/local
106 SHELL
=${CONFIG_SHELL-/bin/sh}
108 # Maximum number of lines to put in a shell here document.
109 # This variable seems obsolete. It should probably be removed, and
110 # only ac_max_sed_lines should be used.
111 : ${ac_max_here_lines=38}
113 # Factoring default headers for most tests.
114 ac_includes_default
="\
117 # include <sys/types.h>
120 # include <sys/stat.h>
131 # if !STDC_HEADERS && HAVE_MEMORY_H
137 # include <strings.h>
140 # include <inttypes.h>
150 # Initialize some variables set by options.
152 ac_init_version
=false
153 # The variables have the same names as the options, with
154 # dashes changed to underlines.
162 program_transform_name
=s
,x
,x
,
170 # Installation directory options.
171 # These are left unexpanded so users can "make install exec_prefix=/foo"
172 # and all the variables that are supposed to be based on exec_prefix
173 # by default will actually change.
174 # Use braces instead of parens because sh, perl, etc. also accept them.
175 bindir
='${exec_prefix}/bin'
176 sbindir
='${exec_prefix}/sbin'
177 libexecdir
='${exec_prefix}/libexec'
178 datadir
='${prefix}/share'
179 sysconfdir
='${prefix}/etc'
180 sharedstatedir
='${prefix}/com'
181 localstatedir
='${prefix}/var'
182 libdir
='${exec_prefix}/lib'
183 includedir
='${prefix}/include'
184 oldincludedir
='/usr/include'
185 infodir
='${prefix}/info'
186 mandir
='${prefix}/man'
188 # Identity of this package.
190 PACKAGE_TARNAME
='bison'
191 PACKAGE_VERSION
='1.28c'
192 PACKAGE_STRING
='bison 1.28c'
193 PACKAGE_BUGREPORT
='bug-bison@gnu.org'
198 # If the previous option needs an argument, assign it.
199 if test -n "$ac_prev"; then
200 eval "$ac_prev=\$ac_option"
205 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
207 # Accept the important Cygnus configure options, so we can diagnose typos.
211 -bindir | --bindir | --bindi | --bind | --bin | --bi)
213 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
216 -build | --build | --buil | --bui | --bu)
217 ac_prev
=build_alias
;;
218 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
219 build_alias
=$ac_optarg ;;
221 -cache-file | --cache-file | --cache-fil | --cache-fi \
222 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
223 ac_prev
=cache_file
;;
224 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
225 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
226 cache_file
=$ac_optarg ;;
229 cache_file
=config.cache
;;
231 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
233 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
235 datadir
=$ac_optarg ;;
237 -disable-* | --disable-*)
238 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
239 # Reject names that are not valid shell variable names.
240 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
241 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
242 { (exit 1); exit 1; }; }
243 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
244 eval "enable_$ac_feature=no" ;;
246 -enable-* | --enable-*)
247 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
248 # Reject names that are not valid shell variable names.
249 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
250 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
251 { (exit 1); exit 1; }; }
252 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
254 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
257 eval "enable_$ac_feature='$ac_optarg'" ;;
259 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
260 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
261 | --exec | --exe | --ex)
262 ac_prev
=exec_prefix
;;
263 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
264 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
265 | --exec=* | --exe=* | --ex=*)
266 exec_prefix
=$ac_optarg ;;
268 -gas | --gas | --ga | --g)
269 # Obsolete; use --with-gas.
272 -help | --help | --hel | --he | -h)
274 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
275 ac_init_help
=recursive
;;
276 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
277 ac_init_help
=short
;;
279 -host | --host | --hos | --ho)
280 ac_prev
=host_alias
;;
281 -host=* | --host=* | --hos=* | --ho=*)
282 host_alias
=$ac_optarg ;;
284 -includedir | --includedir | --includedi | --included | --include \
285 | --includ | --inclu | --incl | --inc)
286 ac_prev
=includedir
;;
287 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
288 | --includ=* | --inclu=* | --incl=* | --inc=*)
289 includedir
=$ac_optarg ;;
291 -infodir | --infodir | --infodi | --infod | --info | --inf)
293 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
294 infodir
=$ac_optarg ;;
296 -libdir | --libdir | --libdi | --libd)
298 -libdir=* | --libdir=* | --libdi=* | --libd=*)
301 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
302 | --libexe | --libex | --libe)
303 ac_prev
=libexecdir
;;
304 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
305 | --libexe=* | --libex=* | --libe=*)
306 libexecdir
=$ac_optarg ;;
308 -localstatedir | --localstatedir | --localstatedi | --localstated \
309 | --localstate | --localstat | --localsta | --localst \
310 | --locals | --local | --loca | --loc | --lo)
311 ac_prev
=localstatedir
;;
312 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
313 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
314 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
315 localstatedir
=$ac_optarg ;;
317 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
319 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
323 # Obsolete; use --without-fp.
326 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
330 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
331 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
334 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
335 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
336 | --oldin | --oldi | --old | --ol | --o)
337 ac_prev
=oldincludedir
;;
338 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
339 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
340 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
341 oldincludedir
=$ac_optarg ;;
343 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
345 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
348 -program-prefix | --program-prefix | --program-prefi | --program-pref \
349 | --program-pre | --program-pr | --program-p)
350 ac_prev
=program_prefix
;;
351 -program-prefix=* | --program-prefix=* | --program-prefi=* \
352 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
353 program_prefix
=$ac_optarg ;;
355 -program-suffix | --program-suffix | --program-suffi | --program-suff \
356 | --program-suf | --program-su | --program-s)
357 ac_prev
=program_suffix
;;
358 -program-suffix=* | --program-suffix=* | --program-suffi=* \
359 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
360 program_suffix
=$ac_optarg ;;
362 -program-transform-name | --program-transform-name \
363 | --program-transform-nam | --program-transform-na \
364 | --program-transform-n | --program-transform- \
365 | --program-transform | --program-transfor \
366 | --program-transfo | --program-transf \
367 | --program-trans | --program-tran \
368 | --progr-tra | --program-tr | --program-t)
369 ac_prev
=program_transform_name
;;
370 -program-transform-name=* | --program-transform-name=* \
371 | --program-transform-nam=* | --program-transform-na=* \
372 | --program-transform-n=* | --program-transform-=* \
373 | --program-transform=* | --program-transfor=* \
374 | --program-transfo=* | --program-transf=* \
375 | --program-trans=* | --program-tran=* \
376 | --progr-tra=* | --program-tr=* | --program-t=*)
377 program_transform_name
=$ac_optarg ;;
379 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
380 | -silent | --silent | --silen | --sile | --sil)
383 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
385 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
387 sbindir
=$ac_optarg ;;
389 -sharedstatedir | --sharedstatedir | --sharedstatedi \
390 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
391 | --sharedst | --shareds | --shared | --share | --shar \
393 ac_prev
=sharedstatedir
;;
394 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
395 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
396 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
398 sharedstatedir
=$ac_optarg ;;
400 -site | --site | --sit)
402 -site=* | --site=* | --sit=*)
405 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
407 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
410 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
411 | --syscon | --sysco | --sysc | --sys | --sy)
412 ac_prev
=sysconfdir
;;
413 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
414 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
415 sysconfdir
=$ac_optarg ;;
417 -target | --target | --targe | --targ | --tar | --ta | --t)
418 ac_prev
=target_alias
;;
419 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
420 target_alias
=$ac_optarg ;;
422 -v | -verbose | --verbose | --verbos | --verbo | --verb)
425 -version | --version | --versio | --versi | --vers | -V)
429 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
430 # Reject names that are not valid shell variable names.
431 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
432 { echo "$as_me: error: invalid package name: $ac_package" >&2
433 { (exit 1); exit 1; }; }
434 ac_package
=`echo $ac_package| sed 's/-/_/g'`
436 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
439 eval "with_$ac_package='$ac_optarg'" ;;
441 -without-* | --without-*)
442 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
443 # Reject names that are not valid shell variable names.
444 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
445 { echo "$as_me: error: invalid package name: $ac_package" >&2
446 { (exit 1); exit 1; }; }
447 ac_package
=`echo $ac_package | sed 's/-/_/g'`
448 eval "with_$ac_package=no" ;;
451 # Obsolete; use --with-x.
454 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
455 | --x-incl | --x-inc | --x-in | --x-i)
456 ac_prev
=x_includes
;;
457 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
458 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
459 x_includes
=$ac_optarg ;;
461 -x-libraries | --x-libraries | --x-librarie | --x-librari \
462 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
463 ac_prev
=x_libraries
;;
464 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
465 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
466 x_libraries
=$ac_optarg ;;
468 -*) { echo "$as_me: error: unrecognized option: $ac_option
469 Try \`$0 --help' for more information." >&2
470 { (exit 1); exit 1; }; }
474 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
475 # Reject names that are not valid shell variable names.
476 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
477 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
478 { (exit 1); exit 1; }; }
479 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
480 eval "$ac_envvar='$ac_optarg'"
484 # FIXME: should be removed in autoconf 3.0.
485 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
486 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
487 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
488 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
494 if test -n "$ac_prev"; then
495 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
496 { echo "$as_me: error: missing argument to $ac_option" >&2
497 { (exit 1); exit 1; }; }
500 # Be sure to have absolute paths.
501 for ac_var
in exec_prefix prefix
503 eval ac_val
=$
`echo $ac_var`
505 [\\/$
]* | ?
:[\\/]* | NONE
| '' ) ;;
506 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
507 { (exit 1); exit 1; }; };;
511 # Be sure to have absolute paths.
512 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
513 localstatedir libdir includedir oldincludedir infodir mandir
515 eval ac_val
=$
`echo $ac_var`
517 [\\/$
]* | ?
:[\\/]* ) ;;
518 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
519 { (exit 1); exit 1; }; };;
523 # There might be people who depend on the old broken behavior: `$host'
524 # used to hold the argument of --host etc.
529 # FIXME: should be removed in autoconf 3.0.
530 if test "x$host_alias" != x
; then
531 if test "x$build_alias" = x
; then
532 cross_compiling
=maybe
533 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
534 If a cross compiler is detected then cross compile mode will be used." >&2
535 elif test "x$build_alias" != "x$host_alias"; then
541 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
543 test "$silent" = yes && exec 6>/dev
/null
545 # Find the source files, if location was not specified.
546 if test -z "$srcdir"; then
547 ac_srcdir_defaulted
=yes
548 # Try the directory containing this script, then its parent.
550 ac_confdir
=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
551 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
553 if test ! -r $srcdir/$ac_unique_file; then
557 ac_srcdir_defaulted
=no
559 if test ! -r $srcdir/$ac_unique_file; then
560 if test "$ac_srcdir_defaulted" = yes; then
561 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
562 { (exit 1); exit 1; }; }
564 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
565 { (exit 1); exit 1; }; }
568 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
569 ac_env_build_alias_set
=${build_alias+set}
570 ac_env_build_alias_value
=$build_alias
571 ac_cv_env_build_alias_set
=${build_alias+set}
572 ac_cv_env_build_alias_value
=$build_alias
573 ac_env_host_alias_set
=${host_alias+set}
574 ac_env_host_alias_value
=$host_alias
575 ac_cv_env_host_alias_set
=${host_alias+set}
576 ac_cv_env_host_alias_value
=$host_alias
577 ac_env_target_alias_set
=${target_alias+set}
578 ac_env_target_alias_value
=$target_alias
579 ac_cv_env_target_alias_set
=${target_alias+set}
580 ac_cv_env_target_alias_value
=$target_alias
581 ac_env_CC_set
=${CC+set}
583 ac_cv_env_CC_set
=${CC+set}
584 ac_cv_env_CC_value
=$CC
585 ac_env_CFLAGS_set
=${CFLAGS+set}
586 ac_env_CFLAGS_value
=$CFLAGS
587 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
588 ac_cv_env_CFLAGS_value
=$CFLAGS
589 ac_env_LDFLAGS_set
=${LDFLAGS+set}
590 ac_env_LDFLAGS_value
=$LDFLAGS
591 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
592 ac_cv_env_LDFLAGS_value
=$LDFLAGS
593 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
594 ac_env_CPPFLAGS_value
=$CPPFLAGS
595 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
596 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
597 ac_env_CPP_set
=${CPP+set}
598 ac_env_CPP_value
=$CPP
599 ac_cv_env_CPP_set
=${CPP+set}
600 ac_cv_env_CPP_value
=$CPP
603 # Report the --help message.
605 if test "$ac_init_help" = "long"; then
606 # Omit some internal or obsolete options to make the list less imposing.
607 # This message is too long to be a string in the A/UX 3.1 sh.
609 \`configure' configures bison 1.28c to adapt to many kinds of systems.
611 Usage: $0 [OPTION]... [VAR=VALUE]...
613 To assign environment variables (e.g., CC, CFLAGS...), specify them as
614 VAR=VALUE. See below for descriptions of some of the useful variables.
616 Defaults for the options are specified in brackets.
619 -h, --help display this help and exit
620 --help=short display options specific to this package
621 --help=recursive display the short help of all the included packages
622 -V, --version display version information and exit
623 -q, --quiet, --silent do not print \`checking...' messages
624 --cache-file=FILE cache test results in FILE [disabled]
625 -C, --config-cache alias for \`--cache-file=config.cache'
626 -n, --no-create do not create output files
627 --srcdir=DIR find the sources in DIR [configure dir or \`..']
632 Installation directories:
633 --prefix=PREFIX install architecture-independent files in PREFIX
635 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
638 By default, \`make install' will install all the files in
639 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
640 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
641 for instance \`--prefix=\$HOME'.
643 For better control, use the options below.
645 Fine tuning of the installation directories:
646 --bindir=DIR user executables [EPREFIX/bin]
647 --sbindir=DIR system admin executables [EPREFIX/sbin]
648 --libexecdir=DIR program executables [EPREFIX/libexec]
649 --datadir=DIR read-only architecture-independent data [PREFIX/share]
650 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
651 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
652 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
653 --libdir=DIR object code libraries [EPREFIX/lib]
654 --includedir=DIR C header files [PREFIX/include]
655 --oldincludedir=DIR C header files for non-gcc [/usr/include]
656 --infodir=DIR info documentation [PREFIX/info]
657 --mandir=DIR man documentation [PREFIX/man]
663 --program-prefix=PREFIX prepend PREFIX to installed program names
664 --program-suffix=SUFFIX append SUFFIX to installed program names
665 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
668 --build=BUILD configure
for building on BUILD
[guessed
]
669 --host=HOST build programs to run on HOST
[BUILD
]
673 if test -n "$ac_init_help"; then
674 case $ac_init_help in
675 short
| recursive
) echo "Configuration of bison 1.28c:";;
680 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
681 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
682 --disable-dependency-tracking Speeds up one
-time builds
683 --enable-dependency-tracking Do not reject slow dependency extractors
684 --enable-gcc-warnings turn on lots of GCC warnings
(not recommended
)
685 --disable-nls do not use Native Language Support
688 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
689 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
690 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
691 --with-included-gettext use the GNU
gettext library included here
693 Some influential environment variables
:
694 CC C compiler
command
695 CFLAGS C compiler flags
696 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
697 nonstandard directory
<lib dir
>
698 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
699 headers
in a nonstandard directory
<include dir
>
702 Use these variables to override the choices made by
`configure' or to help
703 it to find libraries and programs with nonstandard names/locations.
705 Report bugs to <bug-bison@gnu.org>.
709 if test "$ac_init_help" = "recursive"; then
710 # If there are subdirs, report their specific --help.
712 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
714 if test "$ac_dir" != .; then
715 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\./,,'`
716 # A "../" for each directory in $ac_dir_suffix.
717 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
719 ac_dir_suffix= ac_top_builddir=
723 .) # No --srcdir option. We are building in place.
725 if test -z "$ac_top_builddir"; then
728 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
730 [\\/]* | ?:[\\/]* ) # Absolute path.
731 ac_srcdir=$srcdir$ac_dir_suffix;
732 ac_top_srcdir=$srcdir ;;
734 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
735 ac_top_srcdir=$ac_top_builddir$srcdir ;;
738 # Check for guested configure; otherwise get Cygnus style configure.
739 if test -f $ac_srcdir/configure.gnu; then
741 $SHELL $ac_srcdir/configure.gnu --help=recursive
742 elif test -f $ac_srcdir/configure; then
744 $SHELL $ac_srcdir/configure --help=recursive
745 elif test -f $ac_srcdir/configure.ac ||
746 test -f $ac_srcdir/configure.in; then
750 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
756 test -n "$ac_init_help" && exit 0
757 if $ac_init_version; then
759 bison configure 1.28c
760 generated by GNU Autoconf 2.52c
762 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
763 Free Software Foundation, Inc.
764 This configure script is free software; the Free Software Foundation
765 gives unlimited permission to copy, distribute and modify it.
771 This file contains any messages produced by compilers while
772 running configure, to aid debugging if configure makes a mistake.
774 It was created by bison $as_me 1.28c, which was
775 generated by GNU Autoconf 2.52c. Invocation command line was
786 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
787 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
788 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
789 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
790 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
792 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
793 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
795 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
796 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
797 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
798 hostinfo = `(hostinfo
) 2>/dev
/null
|| echo unknown
`
799 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
800 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
801 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
815 # Keep a trace of the command line.
816 # Strip out --no-create and --no-recursion so they do not pile up.
817 # Also quote any args containing shell meta-characters.
823 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
824 | --no-cr | --no-c) ;;
825 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
826 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
827 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
828 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
829 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
831 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
834 # Get rid of the leading space.
837 # When interrupted or exit'd, cleanup temporary files, and complete
838 # config.log. We remove comments because anyway the quotes in there
839 # would cause problems or look ugly.
841 # Save into config.log some information that might help in debugging.
845 ## ---------------- ##
846 ## Cache variables. ##
847 ## ---------------- ##
850 # The following way of writing the cache mishandles newlines in values,
853 case `(ac_space
='"'"' '"'"'; set | grep ac_space
) 2>&1` in
856 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
857 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
861 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
866 if test -s confdefs.h; then
873 sed '/^$/d' confdefs.h
876 test "$ac_signal" != 0 &&
877 echo "$as_me: caught signal $ac_signal"
878 echo "$as_me: exit $exit_status"
880 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
883 for ac_signal in 1 2 13 15; do
884 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
888 # confdefs.h avoids OS command line length limits that DEFS can exceed.
889 rm -rf conftest* confdefs.h
890 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
893 # Let the site file select an alternate cache file if it wants to.
894 # Prefer explicitly selected file to automatically selected ones.
895 if test -z "$CONFIG_SITE"; then
896 if test "x$prefix" != xNONE; then
897 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
899 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
902 for ac_site_file in $CONFIG_SITE; do
903 if test -r "$ac_site_file"; then
904 { echo "$as_me:904: loading site script $ac_site_file" >&5
905 echo "$as_me: loading site script $ac_site_file" >&6;}
906 sed 's/^/| /' "$ac_site_file" >&5
911 if test -r "$cache_file"; then
912 # Some versions of bash will fail to source /dev/null (special
913 # files actually), so we avoid doing that.
914 if test -f "$cache_file"; then
915 { echo "$as_me:915: loading cache $cache_file" >&5
916 echo "$as_me: loading cache $cache_file" >&6;}
918 [\\/]* | ?:[\\/]* ) . $cache_file;;
923 { echo "$as_me:923: creating cache $cache_file" >&5
924 echo "$as_me: creating cache $cache_file" >&6;}
928 # Check that the precious variables saved in the cache have kept the same
930 ac_cache_corrupted=false
931 for ac_var in `(set) 2>&1 |
932 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
933 eval ac_old_set=\$ac_cv_env_${ac_var}_set
934 eval ac_new_set=\$ac_env_${ac_var}_set
935 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
936 eval ac_new_val="\$ac_env_${ac_var}_value"
937 case $ac_old_set,$ac_new_set in
939 { echo "$as_me:939: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
940 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
941 ac_cache_corrupted=: ;;
943 { echo "$as_me:943: error: \`$ac_var' was not
set in the previous run
" >&5
944 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
945 ac_cache_corrupted=: ;;
948 if test "x$ac_old_val" != "x$ac_new_val"; then
949 { echo "$as_me:949: error: \`$ac_var' has changed since the previous run:" >&5
950 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
951 { echo "$as_me:951: former value
: $ac_old_val" >&5
952 echo "$as_me: former value
: $ac_old_val" >&2;}
953 { echo "$as_me:953: current value
: $ac_new_val" >&5
954 echo "$as_me: current value
: $ac_new_val" >&2;}
958 # Pass precious variables to config.status. It doesn't matter if
959 # we pass some twice (in addition to the command line arguments).
960 if test "$ac_new_set" = set; then
962 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
963 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"`
964 ac_configure_args="$ac_configure_args '$ac_arg'"
966 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
971 if $ac_cache_corrupted; then
972 { echo "$as_me:972: error
: changes
in the environment can compromise the build
" >&5
973 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
974 { { echo "$as_me:974: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
975 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
976 { (exit 1); exit 1; }; }
980 ac_cpp='$CPP $CPPFLAGS'
981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
985 case `echo "testing\c"; echo 1,2,3`,`echo -n testing
; echo 1,2,3` in
986 *c*,-n*) ECHO_N= ECHO_C='
988 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
989 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
991 echo "#! $SHELL" >conftest.sh
992 echo "exit 0" >>conftest.sh
994 if { (echo "$as_me:994: PATH=\".;.\"; conftest.sh") >&5
995 (PATH=".;."; conftest.sh) 2>&5
997 echo "$as_me:997: \$? = $ac_status" >&5
998 (exit $ac_status); }; then
999 ac_path_separator=';'
1003 PATH_SEPARATOR="$ac_path_separator"
1007 for ac_dir in config $srcdir/config; do
1008 if test -f $ac_dir/install-sh; then
1010 ac_install_sh="$ac_aux_dir/install-sh -c"
1012 elif test -f $ac_dir/install.sh; then
1014 ac_install_sh="$ac_aux_dir/install.sh -c"
1016 elif test -f $ac_dir/shtool; then
1018 ac_install_sh="$ac_aux_dir/shtool install -c"
1022 if test -z "$ac_aux_dir"; then
1023 { { echo "$as_me:1023: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1024 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1025 { (exit 1); exit 1; }; }
1027 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1028 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1029 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1031 # Find a good install program. We prefer a C program (faster),
1032 # so one script is as good as another. But avoid the broken or
1033 # incompatible versions:
1034 # SysV /etc/install, /usr/sbin/install
1035 # SunOS /usr/etc/install
1036 # IRIX /sbin/install
1038 # AmigaOS /C/install, which installs bootblocks on floppy discs
1039 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1040 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1041 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1042 # ./install, which can be erroneously created by make from ./install.sh.
1043 echo "$as_me:1043: checking for a BSD compatible install" >&5
1044 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1045 if test -z "$INSTALL"; then
1046 if test "${ac_cv_path_install+set}" = set; then
1047 echo $ECHO_N "(cached) $ECHO_C" >&6
1049 ac_save_IFS=$IFS; IFS=$ac_path_separator
1050 for ac_dir in $PATH; do
1052 # Account for people who put trailing slashes in PATH elements.
1054 / | ./ | .// | /cC/* \
1055 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1058 # OSF1 and SCO ODT 3.0 have their own names for install.
1059 # Don't use installbsd from OSF since it installs stuff as root
1061 for ac_prog in ginstall scoinst install; do
1062 if $as_executable_p "$ac_dir/$ac_prog"; then
1063 if test $ac_prog = install &&
1064 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1065 # AIX install. It has an incompatible calling convention.
1067 elif test $ac_prog = install &&
1068 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1069 # program-specific install script used by HP pwplus--don't use.
1072 ac_cv_path_install="$ac_dir/$ac_prog -c"
1082 if test "${ac_cv_path_install+set}" = set; then
1083 INSTALL=$ac_cv_path_install
1085 # As a last resort, use the slow shell script. We don't cache a
1086 # path for INSTALL within a source directory, because that will
1087 # break other packages using the cache if that directory is
1088 # removed, or if the path is relative.
1089 INSTALL=$ac_install_sh
1092 echo "$as_me:1092: result: $INSTALL" >&5
1093 echo "${ECHO_T}$INSTALL" >&6
1095 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1096 # It thinks the first close brace ends the variable substitution.
1097 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1099 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1101 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1103 echo "$as_me:1103: checking whether build environment is sane" >&5
1104 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1107 echo timestamp > conftest.file
1108 # Do `set' in a subshell so we don't clobber the current shell
's
1109 # arguments. Must try -L first in case configure is actually a
1110 # symlink; some systems play weird games with the mod time of symlinks
1111 # (eg FreeBSD returns the mod time of the symlink's containing
1114 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1115 if test "$*" = "X"; then
1117 set X
`ls -t $srcdir/configure conftest.file`
1120 if test "$*" != "X $srcdir/configure conftest.file" \
1121 && test "$*" != "X conftest.file $srcdir/configure"; then
1123 # If neither matched, then we have a broken ls. This can happen
1124 # if, for instance, CONFIG_SHELL is bash and it inherits a
1125 # broken ls alias from the environment. This has actually
1126 # happened. Such a system could not be considered "sane".
1127 { { echo "$as_me:1127: error: ls -t appears to fail. Make sure there is not a broken
1128 alias in your environment" >&5
1129 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1130 alias in your environment" >&2;}
1131 { (exit 1); exit 1; }; }
1134 test "$2" = conftest.
file
1140 { { echo "$as_me:1140: error: newly created file is older than distributed files!
1141 Check your system clock" >&5
1142 echo "$as_me: error: newly created file is older than distributed files!
1143 Check your system clock" >&2;}
1144 { (exit 1); exit 1; }; }
1146 echo "$as_me:1146: result: yes" >&5
1147 echo "${ECHO_T}yes" >&6
1148 test "$program_prefix" != NONE
&&
1149 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1150 # Use a double $ so make ignores it.
1151 test "$program_suffix" != NONE
&&
1152 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1153 # Double any \ or $. echo might interpret backslashes.
1154 # By default was `s,x,x', remove it if useless.
1155 cat <<\_ACEOF
>conftest.
sed
1156 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1158 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1161 # expand $ac_aux_dir to an absolute path
1162 am_aux_dir
=`CDPATH=:; cd $ac_aux_dir && pwd`
1164 test x
"${MISSING+set}" = xset
|| MISSING
="\${SHELL} $am_aux_dir/missing"
1165 # Use eval to expand $SHELL
1166 if eval "$MISSING --run true"; then
1167 am_missing_run
="$MISSING --run "
1171 { echo "$as_me:1171: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1172 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1175 for ac_prog
in mawk gawk nawk
awk
1177 # Extract the first word of "$ac_prog", so it can be a program name with args.
1178 set dummy
$ac_prog; ac_word
=$2
1179 echo "$as_me:1179: checking for $ac_word" >&5
1180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1181 if test "${ac_cv_prog_AWK+set}" = set; then
1182 echo $ECHO_N "(cached) $ECHO_C" >&6
1184 if test -n "$AWK"; then
1185 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1187 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1189 for ac_dir
in $ac_dummy; do
1191 test -z "$ac_dir" && ac_dir
=.
1192 $as_executable_p "$ac_dir/$ac_word" || continue
1193 ac_cv_prog_AWK
="$ac_prog"
1194 echo "$as_me:1194: found $ac_dir/$ac_word" >&5
1201 if test -n "$AWK"; then
1202 echo "$as_me:1202: result: $AWK" >&5
1203 echo "${ECHO_T}$AWK" >&6
1205 echo "$as_me:1205: result: no" >&5
1206 echo "${ECHO_T}no" >&6
1209 test -n "$AWK" && break
1212 echo "$as_me:1212: checking whether ${MAKE-make} sets \${MAKE}" >&5
1213 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1214 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
1215 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1216 echo $ECHO_N "(cached) $ECHO_C" >&6
1218 cat >conftest.
make <<\_ACEOF
1220 @
echo 'ac_maketemp="${MAKE}"'
1222 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1223 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1224 if test -n "$ac_maketemp"; then
1225 eval ac_cv_prog_make_
${ac_make}_set
=yes
1227 eval ac_cv_prog_make_
${ac_make}_set
=no
1231 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1232 echo "$as_me:1232: result: yes" >&5
1233 echo "${ECHO_T}yes" >&6
1236 echo "$as_me:1236: result: no" >&5
1237 echo "${ECHO_T}no" >&6
1238 SET_MAKE
="MAKE=${MAKE-make}"
1241 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1242 if test "${enable_dependency_tracking+set}" = set; then
1243 enableval
="$enable_dependency_tracking"
1246 if test "x$enable_dependency_tracking" != xno
; then
1247 am_depcomp
="$ac_aux_dir/depcomp"
1251 if test "x$enable_dependency_tracking" != xno; then
1259 rm -f .deps
2>/dev
/null
1260 mkdir .deps
2>/dev
/null
1261 if test -d .deps
; then
1264 # MS-DOS does not allow filenames that begin with a dot.
1267 rmdir .deps
2>/dev
/null
1269 # test to see if srcdir already configured
1270 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1271 test -f $srcdir/config.status
; then
1272 { { echo "$as_me:1272: error: source directory already configured; run \"make distclean\" there first" >&5
1273 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1274 { (exit 1); exit 1; }; }
1277 # Define the identity of the package.
1281 cat >>confdefs.h
<<_ACEOF
1282 #define PACKAGE "$PACKAGE"
1285 cat >>confdefs.h
<<_ACEOF
1286 #define VERSION "$VERSION"
1289 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1290 # the ones we care about.
1292 # Autoconf 2.50 always computes EXEEXT. However we need to be
1293 # compatible with 2.13, for now. So we always define EXEEXT, but we
1296 # Similar for OBJEXT -- only we only use OBJEXT if the user actually
1297 # requests that it be used. This is a bit dumb.
1300 # Some tools Automake needs.
1302 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal"}
1304 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1306 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake"}
1308 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1310 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1312 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1314 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1316 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1318 # We need awk for the "check" target. The system "awk" is bad on
1321 ac_config_headers
="$ac_config_headers config.h:config.hin"
1323 # Initialize the test suite.
1326 # Try to be compatible with both Autoconf 2.13 and 2.50.
1327 if test -z "$ECHO_C$ECHO_N$ECHO_T"; then
1334 # Checks for programs.
1336 ac_cpp
='$CPP $CPPFLAGS'
1337 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1338 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1339 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1340 if test -n "$ac_tool_prefix"; then
1341 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1342 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1343 echo "$as_me:1343: checking for $ac_word" >&5
1344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1345 if test "${ac_cv_prog_CC+set}" = set; then
1346 echo $ECHO_N "(cached) $ECHO_C" >&6
1348 if test -n "$CC"; then
1349 ac_cv_prog_CC
="$CC" # Let the user override the test.
1351 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1353 for ac_dir
in $ac_dummy; do
1355 test -z "$ac_dir" && ac_dir
=.
1356 $as_executable_p "$ac_dir/$ac_word" || continue
1357 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1358 echo "$as_me:1358: found $ac_dir/$ac_word" >&5
1365 if test -n "$CC"; then
1366 echo "$as_me:1366: result: $CC" >&5
1367 echo "${ECHO_T}$CC" >&6
1369 echo "$as_me:1369: result: no" >&5
1370 echo "${ECHO_T}no" >&6
1374 if test -z "$ac_cv_prog_CC"; then
1376 # Extract the first word of "gcc", so it can be a program name with args.
1377 set dummy gcc
; ac_word
=$2
1378 echo "$as_me:1378: checking for $ac_word" >&5
1379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1380 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1381 echo $ECHO_N "(cached) $ECHO_C" >&6
1383 if test -n "$ac_ct_CC"; then
1384 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1386 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1388 for ac_dir
in $ac_dummy; do
1390 test -z "$ac_dir" && ac_dir
=.
1391 $as_executable_p "$ac_dir/$ac_word" || continue
1392 ac_cv_prog_ac_ct_CC
="gcc"
1393 echo "$as_me:1393: found $ac_dir/$ac_word" >&5
1399 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1400 if test -n "$ac_ct_CC"; then
1401 echo "$as_me:1401: result: $ac_ct_CC" >&5
1402 echo "${ECHO_T}$ac_ct_CC" >&6
1404 echo "$as_me:1404: result: no" >&5
1405 echo "${ECHO_T}no" >&6
1413 if test -z "$CC"; then
1414 if test -n "$ac_tool_prefix"; then
1415 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1416 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1417 echo "$as_me:1417: checking for $ac_word" >&5
1418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1419 if test "${ac_cv_prog_CC+set}" = set; then
1420 echo $ECHO_N "(cached) $ECHO_C" >&6
1422 if test -n "$CC"; then
1423 ac_cv_prog_CC
="$CC" # Let the user override the test.
1425 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1427 for ac_dir
in $ac_dummy; do
1429 test -z "$ac_dir" && ac_dir
=.
1430 $as_executable_p "$ac_dir/$ac_word" || continue
1431 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1432 echo "$as_me:1432: found $ac_dir/$ac_word" >&5
1439 if test -n "$CC"; then
1440 echo "$as_me:1440: result: $CC" >&5
1441 echo "${ECHO_T}$CC" >&6
1443 echo "$as_me:1443: result: no" >&5
1444 echo "${ECHO_T}no" >&6
1448 if test -z "$ac_cv_prog_CC"; then
1450 # Extract the first word of "cc", so it can be a program name with args.
1451 set dummy cc
; ac_word
=$2
1452 echo "$as_me:1452: checking for $ac_word" >&5
1453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1454 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1455 echo $ECHO_N "(cached) $ECHO_C" >&6
1457 if test -n "$ac_ct_CC"; then
1458 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1460 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1462 for ac_dir
in $ac_dummy; do
1464 test -z "$ac_dir" && ac_dir
=.
1465 $as_executable_p "$ac_dir/$ac_word" || continue
1466 ac_cv_prog_ac_ct_CC
="cc"
1467 echo "$as_me:1467: found $ac_dir/$ac_word" >&5
1473 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1474 if test -n "$ac_ct_CC"; then
1475 echo "$as_me:1475: result: $ac_ct_CC" >&5
1476 echo "${ECHO_T}$ac_ct_CC" >&6
1478 echo "$as_me:1478: result: no" >&5
1479 echo "${ECHO_T}no" >&6
1488 if test -z "$CC"; then
1489 # Extract the first word of "cc", so it can be a program name with args.
1490 set dummy cc
; ac_word
=$2
1491 echo "$as_me:1491: checking for $ac_word" >&5
1492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1493 if test "${ac_cv_prog_CC+set}" = set; then
1494 echo $ECHO_N "(cached) $ECHO_C" >&6
1496 if test -n "$CC"; then
1497 ac_cv_prog_CC
="$CC" # Let the user override the test.
1500 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1502 for ac_dir
in $ac_dummy; do
1504 test -z "$ac_dir" && ac_dir
=.
1505 $as_executable_p "$ac_dir/$ac_word" || continue
1506 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1507 ac_prog_rejected
=yes
1511 echo "$as_me:1511: found $ac_dir/$ac_word" >&5
1515 if test $ac_prog_rejected = yes; then
1516 # We found a bogon in the path, so make sure we never use it.
1517 set dummy
$ac_cv_prog_CC
1519 if test $# != 0; then
1520 # We chose a different compiler from the bogus one.
1521 # However, it has the same basename, so the bogon will be chosen
1522 # first if we set CC to just the basename; use the full file name.
1524 set dummy
"$ac_dir/$ac_word" ${1+"$@"}
1532 if test -n "$CC"; then
1533 echo "$as_me:1533: result: $CC" >&5
1534 echo "${ECHO_T}$CC" >&6
1536 echo "$as_me:1536: result: no" >&5
1537 echo "${ECHO_T}no" >&6
1541 if test -z "$CC"; then
1542 if test -n "$ac_tool_prefix"; then
1545 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1546 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1547 echo "$as_me:1547: checking for $ac_word" >&5
1548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1549 if test "${ac_cv_prog_CC+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1552 if test -n "$CC"; then
1553 ac_cv_prog_CC
="$CC" # Let the user override the test.
1555 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1557 for ac_dir
in $ac_dummy; do
1559 test -z "$ac_dir" && ac_dir
=.
1560 $as_executable_p "$ac_dir/$ac_word" || continue
1561 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1562 echo "$as_me:1562: found $ac_dir/$ac_word" >&5
1569 if test -n "$CC"; then
1570 echo "$as_me:1570: result: $CC" >&5
1571 echo "${ECHO_T}$CC" >&6
1573 echo "$as_me:1573: result: no" >&5
1574 echo "${ECHO_T}no" >&6
1577 test -n "$CC" && break
1580 if test -z "$CC"; then
1584 # Extract the first word of "$ac_prog", so it can be a program name with args.
1585 set dummy
$ac_prog; ac_word
=$2
1586 echo "$as_me:1586: checking for $ac_word" >&5
1587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1591 if test -n "$ac_ct_CC"; then
1592 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1594 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1596 for ac_dir
in $ac_dummy; do
1598 test -z "$ac_dir" && ac_dir
=.
1599 $as_executable_p "$ac_dir/$ac_word" || continue
1600 ac_cv_prog_ac_ct_CC
="$ac_prog"
1601 echo "$as_me:1601: found $ac_dir/$ac_word" >&5
1607 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1608 if test -n "$ac_ct_CC"; then
1609 echo "$as_me:1609: result: $ac_ct_CC" >&5
1610 echo "${ECHO_T}$ac_ct_CC" >&6
1612 echo "$as_me:1612: result: no" >&5
1613 echo "${ECHO_T}no" >&6
1616 test -n "$ac_ct_CC" && break
1624 test -z "$CC" && { { echo "$as_me:1624: error: no acceptable cc found in \$PATH" >&5
1625 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1626 { (exit 1); exit 1; }; }
1628 # Provide some information about the compiler.
1629 echo "$as_me:1629:" \
1630 "checking for C compiler version" >&5
1631 ac_compiler
=`set X $ac_compile; echo $2`
1632 { (eval echo "$as_me:1632: \"$ac_compiler --version </dev/null >&5\"") >&5
1633 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1635 echo "$as_me:1635: \$? = $ac_status" >&5
1636 (exit $ac_status); }
1637 { (eval echo "$as_me:1637: \"$ac_compiler -v </dev/null >&5\"") >&5
1638 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1640 echo "$as_me:1640: \$? = $ac_status" >&5
1641 (exit $ac_status); }
1642 { (eval echo "$as_me:1642: \"$ac_compiler -V </dev/null >&5\"") >&5
1643 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1645 echo "$as_me:1645: \$? = $ac_status" >&5
1646 (exit $ac_status); }
1648 cat >conftest.
$ac_ext <<_ACEOF
1649 #line 1649 "configure"
1650 #include "confdefs.h"
1652 #ifdef F77_DUMMY_MAIN
1656 int F77_DUMMY_MAIN() { return 1; }
1666 ac_clean_files_save
=$ac_clean_files
1667 ac_clean_files
="$ac_clean_files a.out a.exe"
1668 # Try to create an executable without -o first, disregard a.out.
1669 # It will help us diagnose broken compilers, and finding out an intuition
1671 echo "$as_me:1671: checking for C compiler default output" >&5
1672 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1673 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1674 if { (eval echo "$as_me:1674: \"$ac_link_default\"") >&5
1675 (eval $ac_link_default) 2>&5
1677 echo "$as_me:1677: \$? = $ac_status" >&5
1678 (exit $ac_status); }; then
1679 # Find the output, starting from the most likely. This scheme is
1680 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1682 for ac_file
in `ls a.exe conftest.exe 2>/dev/null;
1683 ls a.out conftest 2>/dev/null;
1684 ls a.* conftest.* 2>/dev/null`; do
1686 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
) ;;
1687 a.out
) # We found the default executable, but exeext='' is most
1690 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1691 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1698 echo "$as_me: failed program was:" >&5
1699 cat conftest.
$ac_ext >&5
1700 { { echo "$as_me:1700: error: C compiler cannot create executables" >&5
1701 echo "$as_me: error: C compiler cannot create executables" >&2;}
1702 { (exit 77); exit 77; }; }
1705 ac_exeext
=$ac_cv_exeext
1706 echo "$as_me:1706: result: $ac_file" >&5
1707 echo "${ECHO_T}$ac_file" >&6
1709 # Check the compiler produces executables we can run. If not, either
1710 # the compiler is broken, or we cross compile.
1711 echo "$as_me:1711: checking whether the C compiler works" >&5
1712 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1713 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1714 # If not cross compiling, check that we can run a simple program.
1715 if test "$cross_compiling" != yes; then
1716 if { ac_try
='./$ac_file'
1717 { (eval echo "$as_me:1717: \"$ac_try\"") >&5
1720 echo "$as_me:1720: \$? = $ac_status" >&5
1721 (exit $ac_status); }; }; then
1724 if test "$cross_compiling" = maybe
; then
1727 { { echo "$as_me:1727: error: cannot run C compiled programs.
1728 If you meant to cross compile, use \`--host'." >&5
1729 echo "$as_me: error: cannot run C compiled programs.
1730 If you meant to cross compile, use \`--host'." >&2;}
1731 { (exit 1); exit 1; }; }
1735 echo "$as_me:1735: result: yes" >&5
1736 echo "${ECHO_T}yes" >&6
1738 rm -f a.out a.exe conftest
$ac_cv_exeext
1739 ac_clean_files
=$ac_clean_files_save
1740 # Check the compiler produces executables we can run. If not, either
1741 # the compiler is broken, or we cross compile.
1742 echo "$as_me:1742: checking whether we are cross compiling" >&5
1743 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1744 echo "$as_me:1744: result: $cross_compiling" >&5
1745 echo "${ECHO_T}$cross_compiling" >&6
1747 echo "$as_me:1747: checking for executable suffix" >&5
1748 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1749 if { (eval echo "$as_me:1749: \"$ac_link\"") >&5
1750 (eval $ac_link) 2>&5
1752 echo "$as_me:1752: \$? = $ac_status" >&5
1753 (exit $ac_status); }; then
1754 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1755 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1756 # work properly (i.e., refer to `conftest.exe'), while it won't with
1758 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1760 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1761 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1768 { { echo "$as_me:1768: error: cannot compute EXEEXT: cannot compile and link" >&5
1769 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1770 { (exit 1); exit 1; }; }
1773 rm -f conftest
$ac_cv_exeext
1774 echo "$as_me:1774: result: $ac_cv_exeext" >&5
1775 echo "${ECHO_T}$ac_cv_exeext" >&6
1777 rm -f conftest.
$ac_ext
1778 EXEEXT
=$ac_cv_exeext
1780 echo "$as_me:1780: checking for object suffix" >&5
1781 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1782 if test "${ac_cv_objext+set}" = set; then
1783 echo $ECHO_N "(cached) $ECHO_C" >&6
1785 cat >conftest.
$ac_ext <<_ACEOF
1786 #line 1786 "configure"
1787 #include "confdefs.h"
1789 #ifdef F77_DUMMY_MAIN
1793 int F77_DUMMY_MAIN() { return 1; }
1803 rm -f conftest.o conftest.obj
1804 if { (eval echo "$as_me:1804: \"$ac_compile\"") >&5
1805 (eval $ac_compile) 2>&5
1807 echo "$as_me:1807: \$? = $ac_status" >&5
1808 (exit $ac_status); }; then
1809 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1811 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1812 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1817 echo "$as_me: failed program was:" >&5
1818 cat conftest.
$ac_ext >&5
1819 { { echo "$as_me:1819: error: cannot compute OBJEXT: cannot compile" >&5
1820 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1821 { (exit 1); exit 1; }; }
1824 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1826 echo "$as_me:1826: result: $ac_cv_objext" >&5
1827 echo "${ECHO_T}$ac_cv_objext" >&6
1828 OBJEXT
=$ac_cv_objext
1830 echo "$as_me:1830: checking whether we are using the GNU C compiler" >&5
1831 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1832 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 cat >conftest.
$ac_ext <<_ACEOF
1836 #line 1836 "configure"
1837 #include "confdefs.h"
1839 #ifdef F77_DUMMY_MAIN
1843 int F77_DUMMY_MAIN() { return 1; }
1856 rm -f conftest.
$ac_objext
1857 if { (eval echo "$as_me:1857: \"$ac_compile\"") >&5
1858 (eval $ac_compile) 2>&5
1860 echo "$as_me:1860: \$? = $ac_status" >&5
1861 (exit $ac_status); } &&
1862 { ac_try
='test -s conftest.$ac_objext'
1863 { (eval echo "$as_me:1863: \"$ac_try\"") >&5
1866 echo "$as_me:1866: \$? = $ac_status" >&5
1867 (exit $ac_status); }; }; then
1870 echo "$as_me: failed program was:" >&5
1871 cat conftest.
$ac_ext >&5
1874 rm -f conftest.
$ac_objext conftest.
$ac_ext
1875 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1878 echo "$as_me:1878: result: $ac_cv_c_compiler_gnu" >&5
1879 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1880 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1881 ac_test_CFLAGS
=${CFLAGS+set}
1882 ac_save_CFLAGS
=$CFLAGS
1884 echo "$as_me:1884: checking whether $CC accepts -g" >&5
1885 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1886 if test "${ac_cv_prog_cc_g+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 cat >conftest.
$ac_ext <<_ACEOF
1890 #line 1890 "configure"
1891 #include "confdefs.h"
1893 #ifdef F77_DUMMY_MAIN
1897 int F77_DUMMY_MAIN() { return 1; }
1907 rm -f conftest.
$ac_objext
1908 if { (eval echo "$as_me:1908: \"$ac_compile\"") >&5
1909 (eval $ac_compile) 2>&5
1911 echo "$as_me:1911: \$? = $ac_status" >&5
1912 (exit $ac_status); } &&
1913 { ac_try
='test -s conftest.$ac_objext'
1914 { (eval echo "$as_me:1914: \"$ac_try\"") >&5
1917 echo "$as_me:1917: \$? = $ac_status" >&5
1918 (exit $ac_status); }; }; then
1921 echo "$as_me: failed program was:" >&5
1922 cat conftest.
$ac_ext >&5
1925 rm -f conftest.
$ac_objext conftest.
$ac_ext
1927 echo "$as_me:1927: result: $ac_cv_prog_cc_g" >&5
1928 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1929 if test "$ac_test_CFLAGS" = set; then
1930 CFLAGS
=$ac_save_CFLAGS
1931 elif test $ac_cv_prog_cc_g = yes; then
1932 if test "$GCC" = yes; then
1938 if test "$GCC" = yes; then
1944 # Some people use a C++ compiler to compile C. Since we use `exit',
1945 # in C++ we need to declare it. In case someone uses the same compiler
1946 # for both compiling C and C++ we need to have the C++ compiler decide
1947 # the declaration of exit, since it's the most demanding environment.
1948 cat >conftest.
$ac_ext <<_ACEOF
1953 rm -f conftest.
$ac_objext
1954 if { (eval echo "$as_me:1954: \"$ac_compile\"") >&5
1955 (eval $ac_compile) 2>&5
1957 echo "$as_me:1957: \$? = $ac_status" >&5
1958 (exit $ac_status); } &&
1959 { ac_try
='test -s conftest.$ac_objext'
1960 { (eval echo "$as_me:1960: \"$ac_try\"") >&5
1963 echo "$as_me:1963: \$? = $ac_status" >&5
1964 (exit $ac_status); }; }; then
1965 for ac_declaration
in \
1967 '#include <stdlib.h>' \
1968 'extern "C" void std::exit (int) throw (); using std::exit;' \
1969 'extern "C" void std::exit (int); using std::exit;' \
1970 'extern "C" void exit (int) throw ();' \
1971 'extern "C" void exit (int);' \
1974 cat >conftest.
$ac_ext <<_ACEOF
1975 #line 1975 "configure"
1976 #include "confdefs.h"
1979 #ifdef F77_DUMMY_MAIN
1983 int F77_DUMMY_MAIN() { return 1; }
1993 rm -f conftest.
$ac_objext
1994 if { (eval echo "$as_me:1994: \"$ac_compile\"") >&5
1995 (eval $ac_compile) 2>&5
1997 echo "$as_me:1997: \$? = $ac_status" >&5
1998 (exit $ac_status); } &&
1999 { ac_try
='test -s conftest.$ac_objext'
2000 { (eval echo "$as_me:2000: \"$ac_try\"") >&5
2003 echo "$as_me:2003: \$? = $ac_status" >&5
2004 (exit $ac_status); }; }; then
2007 echo "$as_me: failed program was:" >&5
2008 cat conftest.
$ac_ext >&5
2011 rm -f conftest.
$ac_objext conftest.
$ac_ext
2012 cat >conftest.
$ac_ext <<_ACEOF
2013 #line 2013 "configure"
2014 #include "confdefs.h"
2016 #ifdef F77_DUMMY_MAIN
2020 int F77_DUMMY_MAIN() { return 1; }
2030 rm -f conftest.
$ac_objext
2031 if { (eval echo "$as_me:2031: \"$ac_compile\"") >&5
2032 (eval $ac_compile) 2>&5
2034 echo "$as_me:2034: \$? = $ac_status" >&5
2035 (exit $ac_status); } &&
2036 { ac_try
='test -s conftest.$ac_objext'
2037 { (eval echo "$as_me:2037: \"$ac_try\"") >&5
2040 echo "$as_me:2040: \$? = $ac_status" >&5
2041 (exit $ac_status); }; }; then
2044 echo "$as_me: failed program was:" >&5
2045 cat conftest.
$ac_ext >&5
2047 rm -f conftest.
$ac_objext conftest.
$ac_ext
2050 if test -n "$ac_declaration"; then
2051 echo '#ifdef __cplusplus' >>confdefs.h
2052 echo $ac_declaration >>confdefs.h
2053 echo '#endif' >>confdefs.h
2057 echo "$as_me: failed program was:" >&5
2058 cat conftest.
$ac_ext >&5
2060 rm -f conftest.
$ac_objext conftest.
$ac_ext
2062 ac_cpp
='$CPP $CPPFLAGS'
2063 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2064 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2065 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2067 ac_config_commands
="$ac_config_commands default-1"
2069 am_make
=${MAKE-make}
2070 cat > confinc
<< 'END'
2074 # If we don't find an include directive, just comment out the code.
2075 echo "$as_me:2075: checking for style of include used by $am_make" >&5
2076 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2080 # First try GNU make style include.
2081 echo "include confinc" > confmf
2082 # We grep out `Entering directory' and `Leaving directory'
2083 # messages which can occur if `w' ends up in MAKEFLAGS.
2084 # In particular we don't look at `^make:' because GNU make might
2085 # be invoked under some other name (usually "gmake"), in which
2086 # case it prints its new name instead of `make'.
2087 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2092 # Now try BSD make style include.
2093 if test "$am__include" = "#"; then
2094 echo '.include "confinc"' > confmf
2095 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2096 am__include
=.include
2102 echo "$as_me:2102: result: $_am_result" >&5
2103 echo "${ECHO_T}$_am_result" >&6
2104 rm -f confinc confmf
2106 depcc
="$CC" am_compiler_list
=
2108 echo "$as_me:2108: checking dependency style of $depcc" >&5
2109 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2110 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2114 # We make a subdir and do the tests there. Otherwise we can end up
2115 # making bogus files that we don't know about and never remove. For
2116 # instance it was reported that on HP-UX the gcc test will end up
2117 # making a dummy file named `D' -- because `-MD' means `put the output
2120 # Copy depcomp to subdir because otherwise we won't find it if we're
2121 # using a relative directory.
2122 cp "$am_depcomp" conftest.dir
2125 am_cv_CC_dependencies_compiler_type
=none
2126 if test "$am_compiler_list" = ""; then
2127 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2129 for depmode
in $am_compiler_list; do
2130 # We need to recreate these files for each test, as the compiler may
2131 # overwrite some of them when testing with obscure command lines.
2132 # This happens at least with the AIX C compiler.
2133 echo '#include "conftest.h"' > conftest.c
2134 echo 'int i;' > conftest.h
2135 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2139 # after this tag, mechanisms are not by side-effect, so they'll
2140 # only be used when explicitly requested
2141 if test "x$enable_dependency_tracking" = xyes
; then
2149 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2150 # mode. It turns out that the SunPro C++ compiler does not properly
2151 # handle `-M -o', and we need to detect this.
2152 if depmode
=$depmode \
2153 source=conftest.c object
=conftest.o \
2154 depfile
=conftest.Po tmpdepfile
=conftest.TPo \
2155 $SHELL .
/depcomp
$depcc -c conftest.c
-o conftest.o
>/dev
/null
2>&1 &&
2156 grep conftest.h conftest.Po
> /dev
/null
2>&1 &&
2157 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2158 am_cv_CC_dependencies_compiler_type
=$depmode
2166 am_cv_CC_dependencies_compiler_type
=none
2170 echo "$as_me:2170: result: $am_cv_CC_dependencies_compiler_type" >&5
2171 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2172 CCDEPMODE
="depmode=$am_cv_CC_dependencies_compiler_type"
2175 ac_cpp
='$CPP $CPPFLAGS'
2176 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2177 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2178 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2179 echo "$as_me:2179: checking how to run the C preprocessor" >&5
2180 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2181 # On Suns, sometimes $CPP names a directory.
2182 if test -n "$CPP" && test -d "$CPP"; then
2185 if test -z "$CPP"; then
2186 if test "${ac_cv_prog_CPP+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
2189 # Double quotes because CPP needs to be expanded
2190 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2193 for ac_c_preproc_warn_flag
in '' yes
2195 # Use a header file that comes with gcc, so configuring glibc
2196 # with a fresh cross-compiler works.
2197 # On the NeXT, cc -E runs the code through the compiler's parser,
2198 # not just through cpp. "Syntax error" is here to catch this case.
2199 cat >conftest.
$ac_ext <<_ACEOF
2200 #line 2200 "configure"
2201 #include "confdefs.h"
2205 if { (eval echo "$as_me:2205: \"$ac_cpp conftest.$ac_ext\"") >&5
2206 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2208 egrep -v '^ *\+' conftest.er1
>conftest.err
2210 cat conftest.err
>&5
2211 echo "$as_me:2211: \$? = $ac_status" >&5
2212 (exit $ac_status); } >/dev
/null
; then
2213 if test -s conftest.err
; then
2214 ac_cpp_err
=$ac_c_preproc_warn_flag
2221 if test -z "$ac_cpp_err"; then
2224 echo "$as_me: failed program was:" >&5
2225 cat conftest.
$ac_ext >&5
2226 # Broken: fails on valid input.
2229 rm -f conftest.err conftest.
$ac_ext
2231 # OK, works on sane cases. Now check whether non-existent headers
2232 # can be detected and how.
2233 cat >conftest.
$ac_ext <<_ACEOF
2234 #line 2234 "configure"
2235 #include "confdefs.h"
2236 #include <ac_nonexistent.h>
2238 if { (eval echo "$as_me:2238: \"$ac_cpp conftest.$ac_ext\"") >&5
2239 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2241 egrep -v '^ *\+' conftest.er1
>conftest.err
2243 cat conftest.err
>&5
2244 echo "$as_me:2244: \$? = $ac_status" >&5
2245 (exit $ac_status); } >/dev
/null
; then
2246 if test -s conftest.err
; then
2247 ac_cpp_err
=$ac_c_preproc_warn_flag
2254 if test -z "$ac_cpp_err"; then
2255 # Broken: success on invalid input.
2258 echo "$as_me: failed program was:" >&5
2259 cat conftest.
$ac_ext >&5
2260 # Passes both tests.
2264 rm -f conftest.err conftest.
$ac_ext
2267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2268 rm -f conftest.err conftest.
$ac_ext
2269 if $ac_preproc_ok; then
2281 echo "$as_me:2281: result: $CPP" >&5
2282 echo "${ECHO_T}$CPP" >&6
2284 for ac_c_preproc_warn_flag
in '' yes
2286 # Use a header file that comes with gcc, so configuring glibc
2287 # with a fresh cross-compiler works.
2288 # On the NeXT, cc -E runs the code through the compiler's parser,
2289 # not just through cpp. "Syntax error" is here to catch this case.
2290 cat >conftest.
$ac_ext <<_ACEOF
2291 #line 2291 "configure"
2292 #include "confdefs.h"
2296 if { (eval echo "$as_me:2296: \"$ac_cpp conftest.$ac_ext\"") >&5
2297 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2299 egrep -v '^ *\+' conftest.er1
>conftest.err
2301 cat conftest.err
>&5
2302 echo "$as_me:2302: \$? = $ac_status" >&5
2303 (exit $ac_status); } >/dev
/null
; then
2304 if test -s conftest.err
; then
2305 ac_cpp_err
=$ac_c_preproc_warn_flag
2312 if test -z "$ac_cpp_err"; then
2315 echo "$as_me: failed program was:" >&5
2316 cat conftest.
$ac_ext >&5
2317 # Broken: fails on valid input.
2320 rm -f conftest.err conftest.
$ac_ext
2322 # OK, works on sane cases. Now check whether non-existent headers
2323 # can be detected and how.
2324 cat >conftest.
$ac_ext <<_ACEOF
2325 #line 2325 "configure"
2326 #include "confdefs.h"
2327 #include <ac_nonexistent.h>
2329 if { (eval echo "$as_me:2329: \"$ac_cpp conftest.$ac_ext\"") >&5
2330 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2332 egrep -v '^ *\+' conftest.er1
>conftest.err
2334 cat conftest.err
>&5
2335 echo "$as_me:2335: \$? = $ac_status" >&5
2336 (exit $ac_status); } >/dev
/null
; then
2337 if test -s conftest.err
; then
2338 ac_cpp_err
=$ac_c_preproc_warn_flag
2345 if test -z "$ac_cpp_err"; then
2346 # Broken: success on invalid input.
2349 echo "$as_me: failed program was:" >&5
2350 cat conftest.
$ac_ext >&5
2351 # Passes both tests.
2355 rm -f conftest.err conftest.
$ac_ext
2358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2359 rm -f conftest.err conftest.
$ac_ext
2360 if $ac_preproc_ok; then
2363 { { echo "$as_me:2363: error: C preprocessor \"$CPP\" fails sanity check" >&5
2364 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2365 { (exit 1); exit 1; }; }
2369 ac_cpp
='$CPP $CPPFLAGS'
2370 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2371 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2372 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2374 echo "$as_me:2374: checking for ANSI C header files" >&5
2375 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2376 if test "${ac_cv_header_stdc+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2379 cat >conftest.
$ac_ext <<_ACEOF
2380 #line 2380 "configure"
2381 #include "confdefs.h"
2388 if { (eval echo "$as_me:2388: \"$ac_cpp conftest.$ac_ext\"") >&5
2389 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2391 egrep -v '^ *\+' conftest.er1
>conftest.err
2393 cat conftest.err
>&5
2394 echo "$as_me:2394: \$? = $ac_status" >&5
2395 (exit $ac_status); } >/dev
/null
; then
2396 if test -s conftest.err
; then
2397 ac_cpp_err
=$ac_c_preproc_warn_flag
2404 if test -z "$ac_cpp_err"; then
2405 ac_cv_header_stdc
=yes
2407 echo "$as_me: failed program was:" >&5
2408 cat conftest.
$ac_ext >&5
2409 ac_cv_header_stdc
=no
2411 rm -f conftest.err conftest.
$ac_ext
2413 if test $ac_cv_header_stdc = yes; then
2414 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2415 cat >conftest.
$ac_ext <<_ACEOF
2416 #line 2416 "configure"
2417 #include "confdefs.h"
2421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2422 egrep "memchr" >/dev
/null
2>&1; then
2425 ac_cv_header_stdc
=no
2431 if test $ac_cv_header_stdc = yes; then
2432 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2433 cat >conftest.
$ac_ext <<_ACEOF
2434 #line 2434 "configure"
2435 #include "confdefs.h"
2439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2440 egrep "free" >/dev
/null
2>&1; then
2443 ac_cv_header_stdc
=no
2449 if test $ac_cv_header_stdc = yes; then
2450 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2451 if test "$cross_compiling" = yes; then
2454 cat >conftest.
$ac_ext <<_ACEOF
2455 #line 2455 "configure"
2456 #include "confdefs.h"
2458 #if ((' ' & 0x0FF) == 0x020)
2459 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2460 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2462 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2463 || ('j' <= (c) && (c) <= 'r') \
2464 || ('s' <= (c) && (c) <= 'z'))
2465 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2468 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2473 for (i = 0; i < 256; i++)
2474 if (XOR (islower (i), ISLOWER (i))
2475 || toupper (i) != TOUPPER (i))
2480 rm -f conftest
$ac_exeext
2481 if { (eval echo "$as_me:2481: \"$ac_link\"") >&5
2482 (eval $ac_link) 2>&5
2484 echo "$as_me:2484: \$? = $ac_status" >&5
2485 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2486 { (eval echo "$as_me:2486: \"$ac_try\"") >&5
2489 echo "$as_me:2489: \$? = $ac_status" >&5
2490 (exit $ac_status); }; }; then
2493 echo "$as_me: program exited with status $ac_status" >&5
2494 echo "$as_me: failed program was:" >&5
2495 cat conftest.
$ac_ext >&5
2496 ac_cv_header_stdc
=no
2498 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2502 echo "$as_me:2502: result: $ac_cv_header_stdc" >&5
2503 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2504 if test $ac_cv_header_stdc = yes; then
2506 cat >>confdefs.h
<<\_ACEOF
2507 #define STDC_HEADERS 1
2512 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2514 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2515 inttypes.h stdint.h unistd.h
2517 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2518 echo "$as_me:2518: checking for $ac_header" >&5
2519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2523 cat >conftest.
$ac_ext <<_ACEOF
2524 #line 2524 "configure"
2525 #include "confdefs.h"
2526 $ac_includes_default
2528 #include <$ac_header>
2530 rm -f conftest.
$ac_objext
2531 if { (eval echo "$as_me:2531: \"$ac_compile\"") >&5
2532 (eval $ac_compile) 2>&5
2534 echo "$as_me:2534: \$? = $ac_status" >&5
2535 (exit $ac_status); } &&
2536 { ac_try
='test -s conftest.$ac_objext'
2537 { (eval echo "$as_me:2537: \"$ac_try\"") >&5
2540 echo "$as_me:2540: \$? = $ac_status" >&5
2541 (exit $ac_status); }; }; then
2542 eval "$as_ac_Header=yes"
2544 echo "$as_me: failed program was:" >&5
2545 cat conftest.
$ac_ext >&5
2546 eval "$as_ac_Header=no"
2548 rm -f conftest.
$ac_objext conftest.
$ac_ext
2550 echo "$as_me:2550: result: `eval echo '${'$as_ac_Header'}'`" >&5
2551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2553 cat >>confdefs.h
<<_ACEOF
2554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2561 if test "${ac_cv_header_minix_config_h+set}" = set; then
2562 echo "$as_me:2562: checking for minix/config.h" >&5
2563 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2564 if test "${ac_cv_header_minix_config_h+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2567 echo "$as_me:2567: result: $ac_cv_header_minix_config_h" >&5
2568 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2570 # Is the header compilable?
2571 echo "$as_me:2571: checking minix/config.h usability" >&5
2572 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2573 cat >conftest.
$ac_ext <<_ACEOF
2574 #line 2574 "configure"
2575 #include "confdefs.h"
2576 $ac_includes_default
2577 #include <minix/config.h>
2579 rm -f conftest.
$ac_objext
2580 if { (eval echo "$as_me:2580: \"$ac_compile\"") >&5
2581 (eval $ac_compile) 2>&5
2583 echo "$as_me:2583: \$? = $ac_status" >&5
2584 (exit $ac_status); } &&
2585 { ac_try
='test -s conftest.$ac_objext'
2586 { (eval echo "$as_me:2586: \"$ac_try\"") >&5
2589 echo "$as_me:2589: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2591 ac_header_compiler
=yes
2593 echo "$as_me: failed program was:" >&5
2594 cat conftest.
$ac_ext >&5
2595 ac_header_compiler
=no
2597 rm -f conftest.
$ac_objext conftest.
$ac_ext
2598 echo "$as_me:2598: result: $ac_header_compiler" >&5
2599 echo "${ECHO_T}$ac_header_compiler" >&6
2601 # Is the header present?
2602 echo "$as_me:2602: checking minix/config.h presence" >&5
2603 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2604 cat >conftest.
$ac_ext <<_ACEOF
2605 #line 2605 "configure"
2606 #include "confdefs.h"
2607 #include <minix/config.h>
2609 if { (eval echo "$as_me:2609: \"$ac_cpp conftest.$ac_ext\"") >&5
2610 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2612 egrep -v '^ *\+' conftest.er1
>conftest.err
2614 cat conftest.err
>&5
2615 echo "$as_me:2615: \$? = $ac_status" >&5
2616 (exit $ac_status); } >/dev
/null
; then
2617 if test -s conftest.err
; then
2618 ac_cpp_err
=$ac_c_preproc_warn_flag
2625 if test -z "$ac_cpp_err"; then
2626 ac_header_preproc
=yes
2628 echo "$as_me: failed program was:" >&5
2629 cat conftest.
$ac_ext >&5
2630 ac_header_preproc
=no
2632 rm -f conftest.err conftest.
$ac_ext
2633 echo "$as_me:2633: result: $ac_header_preproc" >&5
2634 echo "${ECHO_T}$ac_header_preproc" >&6
2636 # So? What about this header?
2637 case $ac_header_compiler:$ac_header_preproc in
2639 { echo "$as_me:2639: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
2640 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2641 { echo "$as_me:2641: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2642 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2644 { echo "$as_me:2644: WARNING: minix/config.h: present but cannot be compiled." >&5
2645 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled." >&2;}
2646 { echo "$as_me:2646: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
2647 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
2648 { echo "$as_me:2648: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2649 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2651 echo "$as_me:2651: checking for minix/config.h" >&5
2652 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2653 if test "${ac_cv_header_minix_config_h+set}" = set; then
2654 echo $ECHO_N "(cached) $ECHO_C" >&6
2656 ac_cv_header_minix_config_h
=$ac_header_preproc
2658 echo "$as_me:2658: result: $ac_cv_header_minix_config_h" >&5
2659 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2662 if test $ac_cv_header_minix_config_h = yes; then
2668 if test "$MINIX" = yes; then
2670 cat >>confdefs.h
<<\_ACEOF
2671 #define _POSIX_SOURCE 1
2674 cat >>confdefs.h
<<\_ACEOF
2675 #define _POSIX_1_SOURCE 2
2678 cat >>confdefs.h
<<\_ACEOF
2684 echo "$as_me:2684: checking for strerror in -lcposix" >&5
2685 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2686 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2687 echo $ECHO_N "(cached) $ECHO_C" >&6
2689 ac_check_lib_save_LIBS
=$LIBS
2690 LIBS
="-lcposix $LIBS"
2691 cat >conftest.
$ac_ext <<_ACEOF
2692 #line 2692 "configure"
2693 #include "confdefs.h"
2695 /* Override any gcc2 internal prototype to avoid an error. */
2699 /* We use char because int might match the return type of a gcc2
2700 builtin and then its argument prototype would still apply. */
2702 #ifdef F77_DUMMY_MAIN
2706 int F77_DUMMY_MAIN() { return 1; }
2716 rm -f conftest.
$ac_objext conftest
$ac_exeext
2717 if { (eval echo "$as_me:2717: \"$ac_link\"") >&5
2718 (eval $ac_link) 2>&5
2720 echo "$as_me:2720: \$? = $ac_status" >&5
2721 (exit $ac_status); } &&
2722 { ac_try
='test -s conftest$ac_exeext'
2723 { (eval echo "$as_me:2723: \"$ac_try\"") >&5
2726 echo "$as_me:2726: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
2728 ac_cv_lib_cposix_strerror
=yes
2730 echo "$as_me: failed program was:" >&5
2731 cat conftest.
$ac_ext >&5
2732 ac_cv_lib_cposix_strerror
=no
2734 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2735 LIBS
=$ac_check_lib_save_LIBS
2737 echo "$as_me:2737: result: $ac_cv_lib_cposix_strerror" >&5
2738 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2739 if test $ac_cv_lib_cposix_strerror = yes; then
2740 LIBS
="$LIBS -lcposix"
2743 echo "$as_me:2743: checking for ${CC-cc} option to accept ANSI C" >&5
2744 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2745 if test "${am_cv_prog_cc_stdc+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2748 am_cv_prog_cc_stdc
=no
2750 # Don't try gcc -ansi; that turns off useful extensions and
2751 # breaks some systems' header files.
2752 # AIX -qlanglvl=ansi
2753 # Ultrix and OSF/1 -std1
2754 # HP-UX 10.20 and later -Ae
2755 # HP-UX older versions -Aa -D_HPUX_SOURCE
2756 # SVR4 -Xc -D__EXTENSIONS__
2757 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2759 CC
="$ac_save_CC $ac_arg"
2760 cat >conftest.
$ac_ext <<_ACEOF
2761 #line 2761 "configure"
2762 #include "confdefs.h"
2765 #include <sys/types.h>
2766 #include <sys/stat.h>
2767 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2768 struct buf { int x; };
2769 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2770 static char *e (p, i)
2776 static char *f (char * (*g) (char **, int), char **p, ...)
2781 s = g (p, va_arg (v,int));
2785 int test (int i, double x);
2786 struct s1 {int (*f) (int a);};
2787 struct s2 {int (*f) (double a);};
2788 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2792 #ifdef F77_DUMMY_MAIN
2796 int F77_DUMMY_MAIN() { return 1; }
2802 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2808 rm -f conftest.
$ac_objext
2809 if { (eval echo "$as_me:2809: \"$ac_compile\"") >&5
2810 (eval $ac_compile) 2>&5
2812 echo "$as_me:2812: \$? = $ac_status" >&5
2813 (exit $ac_status); } &&
2814 { ac_try
='test -s conftest.$ac_objext'
2815 { (eval echo "$as_me:2815: \"$ac_try\"") >&5
2818 echo "$as_me:2818: \$? = $ac_status" >&5
2819 (exit $ac_status); }; }; then
2820 am_cv_prog_cc_stdc
="$ac_arg"; break
2822 echo "$as_me: failed program was:" >&5
2823 cat conftest.
$ac_ext >&5
2825 rm -f conftest.
$ac_objext conftest.
$ac_ext
2831 if test -z "$am_cv_prog_cc_stdc"; then
2832 echo "$as_me:2832: result: none needed" >&5
2833 echo "${ECHO_T}none needed" >&6
2835 echo "$as_me:2835: result: $am_cv_prog_cc_stdc" >&5
2836 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2838 case "x$am_cv_prog_cc_stdc" in
2840 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
2843 if test -n "$ac_tool_prefix"; then
2844 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2845 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2846 echo "$as_me:2846: checking for $ac_word" >&5
2847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2848 if test "${ac_cv_prog_RANLIB+set}" = set; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
2851 if test -n "$RANLIB"; then
2852 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2854 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2856 for ac_dir
in $ac_dummy; do
2858 test -z "$ac_dir" && ac_dir
=.
2859 $as_executable_p "$ac_dir/$ac_word" || continue
2860 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2861 echo "$as_me:2861: found $ac_dir/$ac_word" >&5
2867 RANLIB
=$ac_cv_prog_RANLIB
2868 if test -n "$RANLIB"; then
2869 echo "$as_me:2869: result: $RANLIB" >&5
2870 echo "${ECHO_T}$RANLIB" >&6
2872 echo "$as_me:2872: result: no" >&5
2873 echo "${ECHO_T}no" >&6
2877 if test -z "$ac_cv_prog_RANLIB"; then
2878 ac_ct_RANLIB
=$RANLIB
2879 # Extract the first word of "ranlib", so it can be a program name with args.
2880 set dummy ranlib
; ac_word
=$2
2881 echo "$as_me:2881: checking for $ac_word" >&5
2882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2883 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2886 if test -n "$ac_ct_RANLIB"; then
2887 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2889 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2891 for ac_dir
in $ac_dummy; do
2893 test -z "$ac_dir" && ac_dir
=.
2894 $as_executable_p "$ac_dir/$ac_word" || continue
2895 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2896 echo "$as_me:2896: found $ac_dir/$ac_word" >&5
2900 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
2903 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2904 if test -n "$ac_ct_RANLIB"; then
2905 echo "$as_me:2905: result: $ac_ct_RANLIB" >&5
2906 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2908 echo "$as_me:2908: result: no" >&5
2909 echo "${ECHO_T}no" >&6
2912 RANLIB
=$ac_ct_RANLIB
2914 RANLIB
="$ac_cv_prog_RANLIB"
2917 # GNU M4 is needed to build the testsuite.
2918 for ac_prog
in gm4 gnum4
m4
2920 # Extract the first word of "$ac_prog", so it can be a program name with args.
2921 set dummy
$ac_prog; ac_word
=$2
2922 echo "$as_me:2922: checking for $ac_word" >&5
2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2924 if test "${ac_cv_path_M4+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2929 ac_cv_path_M4
="$M4" # Let the user override the test with a path.
2932 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2934 for ac_dir
in $ac_dummy; do
2936 test -z "$ac_dir" && ac_dir
=.
2937 if $as_executable_p "$ac_dir/$ac_word"; then
2938 ac_cv_path_M4
="$ac_dir/$ac_word"
2939 echo "$as_me:2939: found $ac_dir/$ac_word" >&5
2949 if test -n "$M4"; then
2950 echo "$as_me:2950: result: $M4" >&5
2951 echo "${ECHO_T}$M4" >&6
2953 echo "$as_me:2953: result: no" >&5
2954 echo "${ECHO_T}no" >&6
2957 test -n "$M4" && break
2959 test -n "$M4" || M4
="m4"
2961 echo "$as_me:2961: checking whether m4 supports frozen files" >&5
2962 echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" >&6
2963 if test "${ac_cv_prog_gnu_m4+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2966 ac_cv_prog_gnu_m4
=no
2967 if test x
"$M4" != x
; then
2968 case `$M4 --help < /dev/null 2>&1` in
2969 *reload
-state*) ac_cv_prog_gnu_m4
=yes ;;
2973 echo "$as_me:2973: result: $ac_cv_prog_gnu_m4" >&5
2974 echo "${ECHO_T}$ac_cv_prog_gnu_m4" >&6
2976 if test "$ac_cv_prog_gnu_m4" != yes; then
2977 missing_dir
=`cd $ac_aux_dir && pwd`
2978 M4
="$missing_dir/missing m4"
2981 # Check whether --enable-gcc-warnings or --disable-gcc-warnings was given.
2982 if test "${enable_gcc_warnings+set}" = set; then
2983 enableval
="$enable_gcc_warnings"
2984 case "${enableval}" in
2986 *) { { echo "$as_me:2986: error: bad value ${enableval} for gcc-warnings option" >&5
2987 echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;}
2988 { (exit 1); exit 1; }; } ;;
2993 if test "${enableval}" = yes; then
2994 echo "$as_me:2994: checking whether compiler accepts -Wall" >&5
2995 echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6
2997 ac_save_CFLAGS
="$CFLAGS"
2998 CFLAGS
="$CFLAGS -Wall"
2999 cat >conftest.
$ac_ext <<_ACEOF
3000 #line 3000 "configure"
3001 #include "confdefs.h"
3003 #ifdef F77_DUMMY_MAIN
3007 int F77_DUMMY_MAIN() { return 1; }
3017 rm -f conftest.
$ac_objext
3018 if { (eval echo "$as_me:3018: \"$ac_compile\"") >&5
3019 (eval $ac_compile) 2>&5
3021 echo "$as_me:3021: \$? = $ac_status" >&5
3022 (exit $ac_status); } &&
3023 { ac_try
='test -s conftest.$ac_objext'
3024 { (eval echo "$as_me:3024: \"$ac_try\"") >&5
3027 echo "$as_me:3027: \$? = $ac_status" >&5
3028 (exit $ac_status); }; }; then
3029 WARNING_CFLAGS
="$WARNING_CFLAGS -Wall"
3030 echo "$as_me:3030: result: yes" >&5
3031 echo "${ECHO_T}yes" >&6
3033 echo "$as_me: failed program was:" >&5
3034 cat conftest.
$ac_ext >&5
3035 echo "$as_me:3035: result: no" >&5
3036 echo "${ECHO_T}no" >&6
3038 rm -f conftest.
$ac_objext conftest.
$ac_ext
3039 CFLAGS
="$ac_save_CFLAGS"
3040 echo "$as_me:3040: checking whether compiler accepts -W" >&5
3041 echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6
3043 ac_save_CFLAGS
="$CFLAGS"
3045 cat >conftest.
$ac_ext <<_ACEOF
3046 #line 3046 "configure"
3047 #include "confdefs.h"
3049 #ifdef F77_DUMMY_MAIN
3053 int F77_DUMMY_MAIN() { return 1; }
3063 rm -f conftest.
$ac_objext
3064 if { (eval echo "$as_me:3064: \"$ac_compile\"") >&5
3065 (eval $ac_compile) 2>&5
3067 echo "$as_me:3067: \$? = $ac_status" >&5
3068 (exit $ac_status); } &&
3069 { ac_try
='test -s conftest.$ac_objext'
3070 { (eval echo "$as_me:3070: \"$ac_try\"") >&5
3073 echo "$as_me:3073: \$? = $ac_status" >&5
3074 (exit $ac_status); }; }; then
3075 WARNING_CFLAGS
="$WARNING_CFLAGS -W"
3076 echo "$as_me:3076: result: yes" >&5
3077 echo "${ECHO_T}yes" >&6
3079 echo "$as_me: failed program was:" >&5
3080 cat conftest.
$ac_ext >&5
3081 echo "$as_me:3081: result: no" >&5
3082 echo "${ECHO_T}no" >&6
3084 rm -f conftest.
$ac_objext conftest.
$ac_ext
3085 CFLAGS
="$ac_save_CFLAGS"
3086 echo "$as_me:3086: checking whether compiler accepts -Wbad-function-cast" >&5
3087 echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6
3089 ac_save_CFLAGS
="$CFLAGS"
3090 CFLAGS
="$CFLAGS -Wbad-function-cast"
3091 cat >conftest.
$ac_ext <<_ACEOF
3092 #line 3092 "configure"
3093 #include "confdefs.h"
3095 #ifdef F77_DUMMY_MAIN
3099 int F77_DUMMY_MAIN() { return 1; }
3109 rm -f conftest.
$ac_objext
3110 if { (eval echo "$as_me:3110: \"$ac_compile\"") >&5
3111 (eval $ac_compile) 2>&5
3113 echo "$as_me:3113: \$? = $ac_status" >&5
3114 (exit $ac_status); } &&
3115 { ac_try
='test -s conftest.$ac_objext'
3116 { (eval echo "$as_me:3116: \"$ac_try\"") >&5
3119 echo "$as_me:3119: \$? = $ac_status" >&5
3120 (exit $ac_status); }; }; then
3121 WARNING_CFLAGS
="$WARNING_CFLAGS -Wbad-function-cast"
3122 echo "$as_me:3122: result: yes" >&5
3123 echo "${ECHO_T}yes" >&6
3125 echo "$as_me: failed program was:" >&5
3126 cat conftest.
$ac_ext >&5
3127 echo "$as_me:3127: result: no" >&5
3128 echo "${ECHO_T}no" >&6
3130 rm -f conftest.
$ac_objext conftest.
$ac_ext
3131 CFLAGS
="$ac_save_CFLAGS"
3132 echo "$as_me:3132: checking whether compiler accepts -Wcast-align" >&5
3133 echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6
3135 ac_save_CFLAGS
="$CFLAGS"
3136 CFLAGS
="$CFLAGS -Wcast-align"
3137 cat >conftest.
$ac_ext <<_ACEOF
3138 #line 3138 "configure"
3139 #include "confdefs.h"
3141 #ifdef F77_DUMMY_MAIN
3145 int F77_DUMMY_MAIN() { return 1; }
3155 rm -f conftest.
$ac_objext
3156 if { (eval echo "$as_me:3156: \"$ac_compile\"") >&5
3157 (eval $ac_compile) 2>&5
3159 echo "$as_me:3159: \$? = $ac_status" >&5
3160 (exit $ac_status); } &&
3161 { ac_try
='test -s conftest.$ac_objext'
3162 { (eval echo "$as_me:3162: \"$ac_try\"") >&5
3165 echo "$as_me:3165: \$? = $ac_status" >&5
3166 (exit $ac_status); }; }; then
3167 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-align"
3168 echo "$as_me:3168: result: yes" >&5
3169 echo "${ECHO_T}yes" >&6
3171 echo "$as_me: failed program was:" >&5
3172 cat conftest.
$ac_ext >&5
3173 echo "$as_me:3173: result: no" >&5
3174 echo "${ECHO_T}no" >&6
3176 rm -f conftest.
$ac_objext conftest.
$ac_ext
3177 CFLAGS
="$ac_save_CFLAGS"
3178 echo "$as_me:3178: checking whether compiler accepts -Wcast-qual" >&5
3179 echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6
3181 ac_save_CFLAGS
="$CFLAGS"
3182 CFLAGS
="$CFLAGS -Wcast-qual"
3183 cat >conftest.
$ac_ext <<_ACEOF
3184 #line 3184 "configure"
3185 #include "confdefs.h"
3187 #ifdef F77_DUMMY_MAIN
3191 int F77_DUMMY_MAIN() { return 1; }
3201 rm -f conftest.
$ac_objext
3202 if { (eval echo "$as_me:3202: \"$ac_compile\"") >&5
3203 (eval $ac_compile) 2>&5
3205 echo "$as_me:3205: \$? = $ac_status" >&5
3206 (exit $ac_status); } &&
3207 { ac_try
='test -s conftest.$ac_objext'
3208 { (eval echo "$as_me:3208: \"$ac_try\"") >&5
3211 echo "$as_me:3211: \$? = $ac_status" >&5
3212 (exit $ac_status); }; }; then
3213 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-qual"
3214 echo "$as_me:3214: result: yes" >&5
3215 echo "${ECHO_T}yes" >&6
3217 echo "$as_me: failed program was:" >&5
3218 cat conftest.
$ac_ext >&5
3219 echo "$as_me:3219: result: no" >&5
3220 echo "${ECHO_T}no" >&6
3222 rm -f conftest.
$ac_objext conftest.
$ac_ext
3223 CFLAGS
="$ac_save_CFLAGS"
3224 echo "$as_me:3224: checking whether compiler accepts -Wformat" >&5
3225 echo $ECHO_N "checking whether compiler accepts -Wformat... $ECHO_C" >&6
3227 ac_save_CFLAGS
="$CFLAGS"
3228 CFLAGS
="$CFLAGS -Wformat"
3229 cat >conftest.
$ac_ext <<_ACEOF
3230 #line 3230 "configure"
3231 #include "confdefs.h"
3233 #ifdef F77_DUMMY_MAIN
3237 int F77_DUMMY_MAIN() { return 1; }
3247 rm -f conftest.
$ac_objext
3248 if { (eval echo "$as_me:3248: \"$ac_compile\"") >&5
3249 (eval $ac_compile) 2>&5
3251 echo "$as_me:3251: \$? = $ac_status" >&5
3252 (exit $ac_status); } &&
3253 { ac_try
='test -s conftest.$ac_objext'
3254 { (eval echo "$as_me:3254: \"$ac_try\"") >&5
3257 echo "$as_me:3257: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3259 WARNING_CFLAGS
="$WARNING_CFLAGS -Wformat"
3260 echo "$as_me:3260: result: yes" >&5
3261 echo "${ECHO_T}yes" >&6
3263 echo "$as_me: failed program was:" >&5
3264 cat conftest.
$ac_ext >&5
3265 echo "$as_me:3265: result: no" >&5
3266 echo "${ECHO_T}no" >&6
3268 rm -f conftest.
$ac_objext conftest.
$ac_ext
3269 CFLAGS
="$ac_save_CFLAGS"
3270 echo "$as_me:3270: checking whether compiler accepts -Wmissing-declarations" >&5
3271 echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6
3273 ac_save_CFLAGS
="$CFLAGS"
3274 CFLAGS
="$CFLAGS -Wmissing-declarations"
3275 cat >conftest.
$ac_ext <<_ACEOF
3276 #line 3276 "configure"
3277 #include "confdefs.h"
3279 #ifdef F77_DUMMY_MAIN
3283 int F77_DUMMY_MAIN() { return 1; }
3293 rm -f conftest.
$ac_objext
3294 if { (eval echo "$as_me:3294: \"$ac_compile\"") >&5
3295 (eval $ac_compile) 2>&5
3297 echo "$as_me:3297: \$? = $ac_status" >&5
3298 (exit $ac_status); } &&
3299 { ac_try
='test -s conftest.$ac_objext'
3300 { (eval echo "$as_me:3300: \"$ac_try\"") >&5
3303 echo "$as_me:3303: \$? = $ac_status" >&5
3304 (exit $ac_status); }; }; then
3305 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-declarations"
3306 echo "$as_me:3306: result: yes" >&5
3307 echo "${ECHO_T}yes" >&6
3309 echo "$as_me: failed program was:" >&5
3310 cat conftest.
$ac_ext >&5
3311 echo "$as_me:3311: result: no" >&5
3312 echo "${ECHO_T}no" >&6
3314 rm -f conftest.
$ac_objext conftest.
$ac_ext
3315 CFLAGS
="$ac_save_CFLAGS"
3316 echo "$as_me:3316: checking whether compiler accepts -Wmissing-prototypes" >&5
3317 echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6
3319 ac_save_CFLAGS
="$CFLAGS"
3320 CFLAGS
="$CFLAGS -Wmissing-prototypes"
3321 cat >conftest.
$ac_ext <<_ACEOF
3322 #line 3322 "configure"
3323 #include "confdefs.h"
3325 #ifdef F77_DUMMY_MAIN
3329 int F77_DUMMY_MAIN() { return 1; }
3339 rm -f conftest.
$ac_objext
3340 if { (eval echo "$as_me:3340: \"$ac_compile\"") >&5
3341 (eval $ac_compile) 2>&5
3343 echo "$as_me:3343: \$? = $ac_status" >&5
3344 (exit $ac_status); } &&
3345 { ac_try
='test -s conftest.$ac_objext'
3346 { (eval echo "$as_me:3346: \"$ac_try\"") >&5
3349 echo "$as_me:3349: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
3351 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-prototypes"
3352 echo "$as_me:3352: result: yes" >&5
3353 echo "${ECHO_T}yes" >&6
3355 echo "$as_me: failed program was:" >&5
3356 cat conftest.
$ac_ext >&5
3357 echo "$as_me:3357: result: no" >&5
3358 echo "${ECHO_T}no" >&6
3360 rm -f conftest.
$ac_objext conftest.
$ac_ext
3361 CFLAGS
="$ac_save_CFLAGS"
3362 echo "$as_me:3362: checking whether compiler accepts -Wnested-externs" >&5
3363 echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6
3365 ac_save_CFLAGS
="$CFLAGS"
3366 CFLAGS
="$CFLAGS -Wnested-externs"
3367 cat >conftest.
$ac_ext <<_ACEOF
3368 #line 3368 "configure"
3369 #include "confdefs.h"
3371 #ifdef F77_DUMMY_MAIN
3375 int F77_DUMMY_MAIN() { return 1; }
3385 rm -f conftest.
$ac_objext
3386 if { (eval echo "$as_me:3386: \"$ac_compile\"") >&5
3387 (eval $ac_compile) 2>&5
3389 echo "$as_me:3389: \$? = $ac_status" >&5
3390 (exit $ac_status); } &&
3391 { ac_try
='test -s conftest.$ac_objext'
3392 { (eval echo "$as_me:3392: \"$ac_try\"") >&5
3395 echo "$as_me:3395: \$? = $ac_status" >&5
3396 (exit $ac_status); }; }; then
3397 WARNING_CFLAGS
="$WARNING_CFLAGS -Wnested-externs"
3398 echo "$as_me:3398: result: yes" >&5
3399 echo "${ECHO_T}yes" >&6
3401 echo "$as_me: failed program was:" >&5
3402 cat conftest.
$ac_ext >&5
3403 echo "$as_me:3403: result: no" >&5
3404 echo "${ECHO_T}no" >&6
3406 rm -f conftest.
$ac_objext conftest.
$ac_ext
3407 CFLAGS
="$ac_save_CFLAGS"
3408 echo "$as_me:3408: checking whether compiler accepts -Wshadow" >&5
3409 echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6
3411 ac_save_CFLAGS
="$CFLAGS"
3412 CFLAGS
="$CFLAGS -Wshadow"
3413 cat >conftest.
$ac_ext <<_ACEOF
3414 #line 3414 "configure"
3415 #include "confdefs.h"
3417 #ifdef F77_DUMMY_MAIN
3421 int F77_DUMMY_MAIN() { return 1; }
3431 rm -f conftest.
$ac_objext
3432 if { (eval echo "$as_me:3432: \"$ac_compile\"") >&5
3433 (eval $ac_compile) 2>&5
3435 echo "$as_me:3435: \$? = $ac_status" >&5
3436 (exit $ac_status); } &&
3437 { ac_try
='test -s conftest.$ac_objext'
3438 { (eval echo "$as_me:3438: \"$ac_try\"") >&5
3441 echo "$as_me:3441: \$? = $ac_status" >&5
3442 (exit $ac_status); }; }; then
3443 WARNING_CFLAGS
="$WARNING_CFLAGS -Wshadow"
3444 echo "$as_me:3444: result: yes" >&5
3445 echo "${ECHO_T}yes" >&6
3447 echo "$as_me: failed program was:" >&5
3448 cat conftest.
$ac_ext >&5
3449 echo "$as_me:3449: result: no" >&5
3450 echo "${ECHO_T}no" >&6
3452 rm -f conftest.
$ac_objext conftest.
$ac_ext
3453 CFLAGS
="$ac_save_CFLAGS"
3454 echo "$as_me:3454: checking whether compiler accepts -Wstrict-prototypes" >&5
3455 echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6
3457 ac_save_CFLAGS
="$CFLAGS"
3458 CFLAGS
="$CFLAGS -Wstrict-prototypes"
3459 cat >conftest.
$ac_ext <<_ACEOF
3460 #line 3460 "configure"
3461 #include "confdefs.h"
3463 #ifdef F77_DUMMY_MAIN
3467 int F77_DUMMY_MAIN() { return 1; }
3477 rm -f conftest.
$ac_objext
3478 if { (eval echo "$as_me:3478: \"$ac_compile\"") >&5
3479 (eval $ac_compile) 2>&5
3481 echo "$as_me:3481: \$? = $ac_status" >&5
3482 (exit $ac_status); } &&
3483 { ac_try
='test -s conftest.$ac_objext'
3484 { (eval echo "$as_me:3484: \"$ac_try\"") >&5
3487 echo "$as_me:3487: \$? = $ac_status" >&5
3488 (exit $ac_status); }; }; then
3489 WARNING_CFLAGS
="$WARNING_CFLAGS -Wstrict-prototypes"
3490 echo "$as_me:3490: result: yes" >&5
3491 echo "${ECHO_T}yes" >&6
3493 echo "$as_me: failed program was:" >&5
3494 cat conftest.
$ac_ext >&5
3495 echo "$as_me:3495: result: no" >&5
3496 echo "${ECHO_T}no" >&6
3498 rm -f conftest.
$ac_objext conftest.
$ac_ext
3499 CFLAGS
="$ac_save_CFLAGS"
3500 echo "$as_me:3500: checking whether compiler accepts -Wwrite-strings" >&5
3501 echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6
3503 ac_save_CFLAGS
="$CFLAGS"
3504 CFLAGS
="$CFLAGS -Wwrite-strings"
3505 cat >conftest.
$ac_ext <<_ACEOF
3506 #line 3506 "configure"
3507 #include "confdefs.h"
3509 #ifdef F77_DUMMY_MAIN
3513 int F77_DUMMY_MAIN() { return 1; }
3523 rm -f conftest.
$ac_objext
3524 if { (eval echo "$as_me:3524: \"$ac_compile\"") >&5
3525 (eval $ac_compile) 2>&5
3527 echo "$as_me:3527: \$? = $ac_status" >&5
3528 (exit $ac_status); } &&
3529 { ac_try
='test -s conftest.$ac_objext'
3530 { (eval echo "$as_me:3530: \"$ac_try\"") >&5
3533 echo "$as_me:3533: \$? = $ac_status" >&5
3534 (exit $ac_status); }; }; then
3535 WARNING_CFLAGS
="$WARNING_CFLAGS -Wwrite-strings"
3536 echo "$as_me:3536: result: yes" >&5
3537 echo "${ECHO_T}yes" >&6
3539 echo "$as_me: failed program was:" >&5
3540 cat conftest.
$ac_ext >&5
3541 echo "$as_me:3541: result: no" >&5
3542 echo "${ECHO_T}no" >&6
3544 rm -f conftest.
$ac_objext conftest.
$ac_ext
3545 CFLAGS
="$ac_save_CFLAGS"
3546 CFLAGS
="$CFLAGS $WARNING_CFLAGS"
3549 # Checks for libraries.
3551 cat >>confdefs.h
<<\_ACEOF
3552 #define _GNU_SOURCE 1
3555 # Checks for header files.
3556 echo "$as_me:3556: checking for ANSI C header files" >&5
3557 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3558 if test "${ac_cv_header_stdc+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3561 cat >conftest.
$ac_ext <<_ACEOF
3562 #line 3562 "configure"
3563 #include "confdefs.h"
3570 if { (eval echo "$as_me:3570: \"$ac_cpp conftest.$ac_ext\"") >&5
3571 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3573 egrep -v '^ *\+' conftest.er1
>conftest.err
3575 cat conftest.err
>&5
3576 echo "$as_me:3576: \$? = $ac_status" >&5
3577 (exit $ac_status); } >/dev
/null
; then
3578 if test -s conftest.err
; then
3579 ac_cpp_err
=$ac_c_preproc_warn_flag
3586 if test -z "$ac_cpp_err"; then
3587 ac_cv_header_stdc
=yes
3589 echo "$as_me: failed program was:" >&5
3590 cat conftest.
$ac_ext >&5
3591 ac_cv_header_stdc
=no
3593 rm -f conftest.err conftest.
$ac_ext
3595 if test $ac_cv_header_stdc = yes; then
3596 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3597 cat >conftest.
$ac_ext <<_ACEOF
3598 #line 3598 "configure"
3599 #include "confdefs.h"
3603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3604 egrep "memchr" >/dev
/null
2>&1; then
3607 ac_cv_header_stdc
=no
3613 if test $ac_cv_header_stdc = yes; then
3614 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3615 cat >conftest.
$ac_ext <<_ACEOF
3616 #line 3616 "configure"
3617 #include "confdefs.h"
3621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3622 egrep "free" >/dev
/null
2>&1; then
3625 ac_cv_header_stdc
=no
3631 if test $ac_cv_header_stdc = yes; then
3632 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3633 if test "$cross_compiling" = yes; then
3636 cat >conftest.
$ac_ext <<_ACEOF
3637 #line 3637 "configure"
3638 #include "confdefs.h"
3640 #if ((' ' & 0x0FF) == 0x020)
3641 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3642 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3644 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3645 || ('j' <= (c) && (c) <= 'r') \
3646 || ('s' <= (c) && (c) <= 'z'))
3647 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3650 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3655 for (i = 0; i < 256; i++)
3656 if (XOR (islower (i), ISLOWER (i))
3657 || toupper (i) != TOUPPER (i))
3662 rm -f conftest
$ac_exeext
3663 if { (eval echo "$as_me:3663: \"$ac_link\"") >&5
3664 (eval $ac_link) 2>&5
3666 echo "$as_me:3666: \$? = $ac_status" >&5
3667 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3668 { (eval echo "$as_me:3668: \"$ac_try\"") >&5
3671 echo "$as_me:3671: \$? = $ac_status" >&5
3672 (exit $ac_status); }; }; then
3675 echo "$as_me: program exited with status $ac_status" >&5
3676 echo "$as_me: failed program was:" >&5
3677 cat conftest.
$ac_ext >&5
3678 ac_cv_header_stdc
=no
3680 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3684 echo "$as_me:3684: result: $ac_cv_header_stdc" >&5
3685 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3686 if test $ac_cv_header_stdc = yes; then
3688 cat >>confdefs.h
<<\_ACEOF
3689 #define STDC_HEADERS 1
3694 for ac_header
in ctype.h locale.h memory.h stdlib.h string.h unistd.h
3696 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3698 echo "$as_me:3698: checking for $ac_header" >&5
3699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 echo "$as_me:3703: result: `eval echo '${'$as_ac_Header'}'`" >&5
3704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3706 # Is the header compilable?
3707 echo "$as_me:3707: checking $ac_header usability" >&5
3708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3709 cat >conftest.
$ac_ext <<_ACEOF
3710 #line 3710 "configure"
3711 #include "confdefs.h"
3712 $ac_includes_default
3713 #include <$ac_header>
3715 rm -f conftest.
$ac_objext
3716 if { (eval echo "$as_me:3716: \"$ac_compile\"") >&5
3717 (eval $ac_compile) 2>&5
3719 echo "$as_me:3719: \$? = $ac_status" >&5
3720 (exit $ac_status); } &&
3721 { ac_try
='test -s conftest.$ac_objext'
3722 { (eval echo "$as_me:3722: \"$ac_try\"") >&5
3725 echo "$as_me:3725: \$? = $ac_status" >&5
3726 (exit $ac_status); }; }; then
3727 ac_header_compiler
=yes
3729 echo "$as_me: failed program was:" >&5
3730 cat conftest.
$ac_ext >&5
3731 ac_header_compiler
=no
3733 rm -f conftest.
$ac_objext conftest.
$ac_ext
3734 echo "$as_me:3734: result: $ac_header_compiler" >&5
3735 echo "${ECHO_T}$ac_header_compiler" >&6
3737 # Is the header present?
3738 echo "$as_me:3738: checking $ac_header presence" >&5
3739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3740 cat >conftest.
$ac_ext <<_ACEOF
3741 #line 3741 "configure"
3742 #include "confdefs.h"
3743 #include <$ac_header>
3745 if { (eval echo "$as_me:3745: \"$ac_cpp conftest.$ac_ext\"") >&5
3746 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3748 egrep -v '^ *\+' conftest.er1
>conftest.err
3750 cat conftest.err
>&5
3751 echo "$as_me:3751: \$? = $ac_status" >&5
3752 (exit $ac_status); } >/dev
/null
; then
3753 if test -s conftest.err
; then
3754 ac_cpp_err
=$ac_c_preproc_warn_flag
3761 if test -z "$ac_cpp_err"; then
3762 ac_header_preproc
=yes
3764 echo "$as_me: failed program was:" >&5
3765 cat conftest.
$ac_ext >&5
3766 ac_header_preproc
=no
3768 rm -f conftest.err conftest.
$ac_ext
3769 echo "$as_me:3769: result: $ac_header_preproc" >&5
3770 echo "${ECHO_T}$ac_header_preproc" >&6
3772 # So? What about this header?
3773 case $ac_header_compiler:$ac_header_preproc in
3775 { echo "$as_me:3775: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3777 { echo "$as_me:3777: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3780 { echo "$as_me:3780: WARNING: $ac_header: present but cannot be compiled." >&5
3781 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
3782 { echo "$as_me:3782: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3783 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3784 { echo "$as_me:3784: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3787 echo "$as_me:3787: checking for $ac_header" >&5
3788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 eval "$as_ac_Header=$ac_header_preproc"
3794 echo "$as_me:3794: result: `eval echo '${'$as_ac_Header'}'`" >&5
3795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3799 cat >>confdefs.h
<<_ACEOF
3800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3807 # Checks for typedefs.
3809 # Checks for structures.
3811 # Checks for compiler characteristics.
3812 echo "$as_me:3812: checking for $CC option to accept ANSI C" >&5
3813 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3814 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3815 echo $ECHO_N "(cached) $ECHO_C" >&6
3817 ac_cv_prog_cc_stdc
=no
3819 cat >conftest.
$ac_ext <<_ACEOF
3820 #line 3820 "configure"
3821 #include "confdefs.h"
3824 #include <sys/types.h>
3825 #include <sys/stat.h>
3826 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3827 struct buf { int x; };
3828 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3829 static char *e (p, i)
3835 static char *f (char * (*g) (char **, int), char **p, ...)
3840 s = g (p, va_arg (v,int));
3844 int test (int i, double x);
3845 struct s1 {int (*f) (int a);};
3846 struct s2 {int (*f) (double a);};
3847 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3850 #ifdef F77_DUMMY_MAIN
3854 int F77_DUMMY_MAIN() { return 1; }
3859 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3864 # Don't try gcc -ansi; that turns off useful extensions and
3865 # breaks some systems' header files.
3866 # AIX -qlanglvl=ansi
3867 # Ultrix and OSF/1 -std1
3868 # HP-UX 10.20 and later -Ae
3869 # HP-UX older versions -Aa -D_HPUX_SOURCE
3870 # SVR4 -Xc -D__EXTENSIONS__
3871 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3873 CC
="$ac_save_CC $ac_arg"
3874 rm -f conftest.
$ac_objext
3875 if { (eval echo "$as_me:3875: \"$ac_compile\"") >&5
3876 (eval $ac_compile) 2>&5
3878 echo "$as_me:3878: \$? = $ac_status" >&5
3879 (exit $ac_status); } &&
3880 { ac_try
='test -s conftest.$ac_objext'
3881 { (eval echo "$as_me:3881: \"$ac_try\"") >&5
3884 echo "$as_me:3884: \$? = $ac_status" >&5
3885 (exit $ac_status); }; }; then
3886 ac_cv_prog_cc_stdc
=$ac_arg
3889 echo "$as_me: failed program was:" >&5
3890 cat conftest.
$ac_ext >&5
3892 rm -f conftest.
$ac_objext
3894 rm -f conftest.
$ac_ext conftest.
$ac_objext
3899 case "x$ac_cv_prog_cc_stdc" in
3901 echo "$as_me:3901: result: none needed" >&5
3902 echo "${ECHO_T}none needed" >&6 ;;
3904 echo "$as_me:3904: result: $ac_cv_prog_cc_stdc" >&5
3905 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3906 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3909 echo "$as_me:3909: checking for an ANSI C-conforming const" >&5
3910 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3911 if test "${ac_cv_c_const+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 cat >conftest.
$ac_ext <<_ACEOF
3915 #line 3915 "configure"
3916 #include "confdefs.h"
3918 #ifdef F77_DUMMY_MAIN
3922 int F77_DUMMY_MAIN() { return 1; }
3927 /* FIXME: Include the comments suggested by Paul. */
3929 /* Ultrix mips cc rejects this. */
3930 typedef int charset[2];
3932 /* SunOS 4.1.1 cc rejects this. */
3933 char const *const *ccp;
3935 /* NEC SVR4.0.2 mips cc rejects this. */
3936 struct point {int x, y;};
3937 static struct point const zero = {0,0};
3938 /* AIX XL C 1.02.0.0 rejects this.
3939 It does not let you subtract one const X* pointer from another in
3940 an arm of an if-expression whose if-part is not a constant
3942 const char *g = "string";
3943 ccp = &g + (g ? g-g : 0);
3944 /* HPUX 7.0 cc rejects these. */
3947 ccp = (char const *const *) p;
3948 { /* SCO 3.2v4 cc rejects this. */
3950 char const *s = 0 ? (char *) 0 : (char const *) 0;
3954 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3956 const int *foo = &x[0];
3959 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3960 typedef const int *iptr;
3964 { /* AIX XL C 1.02.0.0 rejects this saying
3965 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3966 struct s { int j; const int *ap[3]; };
3967 struct s *b; b->j = 5;
3969 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3978 rm -f conftest.
$ac_objext
3979 if { (eval echo "$as_me:3979: \"$ac_compile\"") >&5
3980 (eval $ac_compile) 2>&5
3982 echo "$as_me:3982: \$? = $ac_status" >&5
3983 (exit $ac_status); } &&
3984 { ac_try
='test -s conftest.$ac_objext'
3985 { (eval echo "$as_me:3985: \"$ac_try\"") >&5
3988 echo "$as_me:3988: \$? = $ac_status" >&5
3989 (exit $ac_status); }; }; then
3992 echo "$as_me: failed program was:" >&5
3993 cat conftest.
$ac_ext >&5
3996 rm -f conftest.
$ac_objext conftest.
$ac_ext
3998 echo "$as_me:3998: result: $ac_cv_c_const" >&5
3999 echo "${ECHO_T}$ac_cv_c_const" >&6
4000 if test $ac_cv_c_const = no
; then
4002 cat >>confdefs.h
<<\_ACEOF
4008 echo "$as_me:4008: checking for inline" >&5
4009 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4010 if test "${ac_cv_c_inline+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 for ac_kw
in inline __inline__ __inline
; do
4015 cat >conftest.
$ac_ext <<_ACEOF
4016 #line 4016 "configure"
4017 #include "confdefs.h"
4019 static $ac_kw int static_foo () {return 0; }
4020 $ac_kw int foo () {return 0; }
4024 rm -f conftest.
$ac_objext
4025 if { (eval echo "$as_me:4025: \"$ac_compile\"") >&5
4026 (eval $ac_compile) 2>&5
4028 echo "$as_me:4028: \$? = $ac_status" >&5
4029 (exit $ac_status); } &&
4030 { ac_try
='test -s conftest.$ac_objext'
4031 { (eval echo "$as_me:4031: \"$ac_try\"") >&5
4034 echo "$as_me:4034: \$? = $ac_status" >&5
4035 (exit $ac_status); }; }; then
4036 ac_cv_c_inline
=$ac_kw; break
4038 echo "$as_me: failed program was:" >&5
4039 cat conftest.
$ac_ext >&5
4041 rm -f conftest.
$ac_objext conftest.
$ac_ext
4045 echo "$as_me:4045: result: $ac_cv_c_inline" >&5
4046 echo "${ECHO_T}$ac_cv_c_inline" >&6
4047 case $ac_cv_c_inline in
4050 cat >>confdefs.h
<<\_ACEOF
4054 *) cat >>confdefs.h
<<_ACEOF
4055 #define inline $ac_cv_c_inline
4060 echo "$as_me:4060: checking for function prototypes" >&5
4061 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4062 if test "$am_cv_prog_cc_stdc" != no
; then
4063 echo "$as_me:4063: result: yes" >&5
4064 echo "${ECHO_T}yes" >&6
4066 cat >>confdefs.h
<<\_ACEOF
4067 #define PROTOTYPES 1
4072 echo "$as_me:4072: result: no" >&5
4073 echo "${ECHO_T}no" >&6
4074 U
=_ ANSI2KNR
=.
/ansi2knr
4076 # Ensure some checks needed by ansi2knr itself.
4077 echo "$as_me:4077: checking for ANSI C header files" >&5
4078 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4079 if test "${ac_cv_header_stdc+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 cat >conftest.
$ac_ext <<_ACEOF
4083 #line 4083 "configure"
4084 #include "confdefs.h"
4091 if { (eval echo "$as_me:4091: \"$ac_cpp conftest.$ac_ext\"") >&5
4092 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4094 egrep -v '^ *\+' conftest.er1
>conftest.err
4096 cat conftest.err
>&5
4097 echo "$as_me:4097: \$? = $ac_status" >&5
4098 (exit $ac_status); } >/dev
/null
; then
4099 if test -s conftest.err
; then
4100 ac_cpp_err
=$ac_c_preproc_warn_flag
4107 if test -z "$ac_cpp_err"; then
4108 ac_cv_header_stdc
=yes
4110 echo "$as_me: failed program was:" >&5
4111 cat conftest.
$ac_ext >&5
4112 ac_cv_header_stdc
=no
4114 rm -f conftest.err conftest.
$ac_ext
4116 if test $ac_cv_header_stdc = yes; then
4117 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4118 cat >conftest.
$ac_ext <<_ACEOF
4119 #line 4119 "configure"
4120 #include "confdefs.h"
4124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4125 egrep "memchr" >/dev
/null
2>&1; then
4128 ac_cv_header_stdc
=no
4134 if test $ac_cv_header_stdc = yes; then
4135 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4136 cat >conftest.
$ac_ext <<_ACEOF
4137 #line 4137 "configure"
4138 #include "confdefs.h"
4142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4143 egrep "free" >/dev
/null
2>&1; then
4146 ac_cv_header_stdc
=no
4152 if test $ac_cv_header_stdc = yes; then
4153 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4154 if test "$cross_compiling" = yes; then
4157 cat >conftest.
$ac_ext <<_ACEOF
4158 #line 4158 "configure"
4159 #include "confdefs.h"
4161 #if ((' ' & 0x0FF) == 0x020)
4162 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4163 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4165 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4166 || ('j' <= (c) && (c) <= 'r') \
4167 || ('s' <= (c) && (c) <= 'z'))
4168 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4171 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4176 for (i = 0; i < 256; i++)
4177 if (XOR (islower (i), ISLOWER (i))
4178 || toupper (i) != TOUPPER (i))
4183 rm -f conftest
$ac_exeext
4184 if { (eval echo "$as_me:4184: \"$ac_link\"") >&5
4185 (eval $ac_link) 2>&5
4187 echo "$as_me:4187: \$? = $ac_status" >&5
4188 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4189 { (eval echo "$as_me:4189: \"$ac_try\"") >&5
4192 echo "$as_me:4192: \$? = $ac_status" >&5
4193 (exit $ac_status); }; }; then
4196 echo "$as_me: program exited with status $ac_status" >&5
4197 echo "$as_me: failed program was:" >&5
4198 cat conftest.
$ac_ext >&5
4199 ac_cv_header_stdc
=no
4201 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4205 echo "$as_me:4205: result: $ac_cv_header_stdc" >&5
4206 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4207 if test $ac_cv_header_stdc = yes; then
4209 cat >>confdefs.h
<<\_ACEOF
4210 #define STDC_HEADERS 1
4215 for ac_header
in string.h
4217 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4219 echo "$as_me:4219: checking for $ac_header" >&5
4220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 echo "$as_me:4224: result: `eval echo '${'$as_ac_Header'}'`" >&5
4225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4227 # Is the header compilable?
4228 echo "$as_me:4228: checking $ac_header usability" >&5
4229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4230 cat >conftest.
$ac_ext <<_ACEOF
4231 #line 4231 "configure"
4232 #include "confdefs.h"
4233 $ac_includes_default
4234 #include <$ac_header>
4236 rm -f conftest.
$ac_objext
4237 if { (eval echo "$as_me:4237: \"$ac_compile\"") >&5
4238 (eval $ac_compile) 2>&5
4240 echo "$as_me:4240: \$? = $ac_status" >&5
4241 (exit $ac_status); } &&
4242 { ac_try
='test -s conftest.$ac_objext'
4243 { (eval echo "$as_me:4243: \"$ac_try\"") >&5
4246 echo "$as_me:4246: \$? = $ac_status" >&5
4247 (exit $ac_status); }; }; then
4248 ac_header_compiler
=yes
4250 echo "$as_me: failed program was:" >&5
4251 cat conftest.
$ac_ext >&5
4252 ac_header_compiler
=no
4254 rm -f conftest.
$ac_objext conftest.
$ac_ext
4255 echo "$as_me:4255: result: $ac_header_compiler" >&5
4256 echo "${ECHO_T}$ac_header_compiler" >&6
4258 # Is the header present?
4259 echo "$as_me:4259: checking $ac_header presence" >&5
4260 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4261 cat >conftest.
$ac_ext <<_ACEOF
4262 #line 4262 "configure"
4263 #include "confdefs.h"
4264 #include <$ac_header>
4266 if { (eval echo "$as_me:4266: \"$ac_cpp conftest.$ac_ext\"") >&5
4267 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4269 egrep -v '^ *\+' conftest.er1
>conftest.err
4271 cat conftest.err
>&5
4272 echo "$as_me:4272: \$? = $ac_status" >&5
4273 (exit $ac_status); } >/dev
/null
; then
4274 if test -s conftest.err
; then
4275 ac_cpp_err
=$ac_c_preproc_warn_flag
4282 if test -z "$ac_cpp_err"; then
4283 ac_header_preproc
=yes
4285 echo "$as_me: failed program was:" >&5
4286 cat conftest.
$ac_ext >&5
4287 ac_header_preproc
=no
4289 rm -f conftest.err conftest.
$ac_ext
4290 echo "$as_me:4290: result: $ac_header_preproc" >&5
4291 echo "${ECHO_T}$ac_header_preproc" >&6
4293 # So? What about this header?
4294 case $ac_header_compiler:$ac_header_preproc in
4296 { echo "$as_me:4296: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4297 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4298 { echo "$as_me:4298: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4301 { echo "$as_me:4301: WARNING: $ac_header: present but cannot be compiled." >&5
4302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
4303 { echo "$as_me:4303: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4304 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4305 { echo "$as_me:4305: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4308 echo "$as_me:4308: checking for $ac_header" >&5
4309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4313 eval "$as_ac_Header=$ac_header_preproc"
4315 echo "$as_me:4315: result: `eval echo '${'$as_ac_Header'}'`" >&5
4316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4320 cat >>confdefs.h
<<_ACEOF
4321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4328 # Checks for library functions.
4329 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4330 # for constant arguments. Useless!
4331 echo "$as_me:4331: checking for working alloca.h" >&5
4332 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4333 if test "${ac_cv_working_alloca_h+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4336 cat >conftest.
$ac_ext <<_ACEOF
4337 #line 4337 "configure"
4338 #include "confdefs.h"
4340 #ifdef F77_DUMMY_MAIN
4344 int F77_DUMMY_MAIN() { return 1; }
4349 char *p = (char *) alloca (2 * sizeof (int));
4354 rm -f conftest.
$ac_objext conftest
$ac_exeext
4355 if { (eval echo "$as_me:4355: \"$ac_link\"") >&5
4356 (eval $ac_link) 2>&5
4358 echo "$as_me:4358: \$? = $ac_status" >&5
4359 (exit $ac_status); } &&
4360 { ac_try
='test -s conftest$ac_exeext'
4361 { (eval echo "$as_me:4361: \"$ac_try\"") >&5
4364 echo "$as_me:4364: \$? = $ac_status" >&5
4365 (exit $ac_status); }; }; then
4366 ac_cv_working_alloca_h
=yes
4368 echo "$as_me: failed program was:" >&5
4369 cat conftest.
$ac_ext >&5
4370 ac_cv_working_alloca_h
=no
4372 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4374 echo "$as_me:4374: result: $ac_cv_working_alloca_h" >&5
4375 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4376 if test $ac_cv_working_alloca_h = yes; then
4378 cat >>confdefs.h
<<\_ACEOF
4379 #define HAVE_ALLOCA_H 1
4384 echo "$as_me:4384: checking for alloca" >&5
4385 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4386 if test "${ac_cv_func_alloca_works+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 cat >conftest.
$ac_ext <<_ACEOF
4390 #line 4390 "configure"
4391 #include "confdefs.h"
4393 # define alloca __builtin_alloca
4396 # include <malloc.h>
4397 # define alloca _alloca
4400 # include <alloca.h>
4405 # ifndef alloca /* predefined by HP cc +Olibcalls */
4413 #ifdef F77_DUMMY_MAIN
4417 int F77_DUMMY_MAIN() { return 1; }
4422 char *p = (char *) alloca (1);
4427 rm -f conftest.
$ac_objext conftest
$ac_exeext
4428 if { (eval echo "$as_me:4428: \"$ac_link\"") >&5
4429 (eval $ac_link) 2>&5
4431 echo "$as_me:4431: \$? = $ac_status" >&5
4432 (exit $ac_status); } &&
4433 { ac_try
='test -s conftest$ac_exeext'
4434 { (eval echo "$as_me:4434: \"$ac_try\"") >&5
4437 echo "$as_me:4437: \$? = $ac_status" >&5
4438 (exit $ac_status); }; }; then
4439 ac_cv_func_alloca_works
=yes
4441 echo "$as_me: failed program was:" >&5
4442 cat conftest.
$ac_ext >&5
4443 ac_cv_func_alloca_works
=no
4445 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4447 echo "$as_me:4447: result: $ac_cv_func_alloca_works" >&5
4448 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4450 if test $ac_cv_func_alloca_works = yes; then
4452 cat >>confdefs.h
<<\_ACEOF
4453 #define HAVE_ALLOCA 1
4457 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4458 # that cause trouble. Some versions do not even contain alloca or
4459 # contain a buggy version. If you still want to use their alloca,
4460 # use ar to extract alloca.o from them instead of compiling alloca.c.
4462 ALLOCA
=alloca.
$ac_objext
4464 cat >>confdefs.h
<<\_ACEOF
4468 echo "$as_me:4468: checking whether \`alloca.c' needs Cray hooks" >&5
4469 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4470 if test "${ac_cv_os_cray+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 cat >conftest.
$ac_ext <<_ACEOF
4474 #line 4474 "configure"
4475 #include "confdefs.h"
4476 #if defined(CRAY) && ! defined(CRAY2)
4483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4484 egrep "webecray" >/dev
/null
2>&1; then
4492 echo "$as_me:4492: result: $ac_cv_os_cray" >&5
4493 echo "${ECHO_T}$ac_cv_os_cray" >&6
4494 if test $ac_cv_os_cray = yes; then
4495 for ac_func
in _getb67 GETB67 getb67
; do
4496 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4497 echo "$as_me:4497: checking for $ac_func" >&5
4498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4499 if eval "test \"\${$as_ac_var+set}\" = set"; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4502 cat >conftest.
$ac_ext <<_ACEOF
4503 #line 4503 "configure"
4504 #include "confdefs.h"
4505 /* System header to define __stub macros and hopefully few prototypes,
4506 which can conflict with char $ac_func (); below. */
4508 /* Override any gcc2 internal prototype to avoid an error. */
4512 /* We use char because int might match the return type of a gcc2
4513 builtin and then its argument prototype would still apply. */
4517 #ifdef F77_DUMMY_MAIN
4521 int F77_DUMMY_MAIN() { return 1; }
4526 /* The GNU C library defines this for functions which it implements
4527 to always fail with ENOSYS. Some functions are actually named
4528 something starting with __ and the normal name is an alias. */
4529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4539 rm -f conftest.
$ac_objext conftest
$ac_exeext
4540 if { (eval echo "$as_me:4540: \"$ac_link\"") >&5
4541 (eval $ac_link) 2>&5
4543 echo "$as_me:4543: \$? = $ac_status" >&5
4544 (exit $ac_status); } &&
4545 { ac_try
='test -s conftest$ac_exeext'
4546 { (eval echo "$as_me:4546: \"$ac_try\"") >&5
4549 echo "$as_me:4549: \$? = $ac_status" >&5
4550 (exit $ac_status); }; }; then
4551 eval "$as_ac_var=yes"
4553 echo "$as_me: failed program was:" >&5
4554 cat conftest.
$ac_ext >&5
4555 eval "$as_ac_var=no"
4557 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4559 echo "$as_me:4559: result: `eval echo '${'$as_ac_var'}'`" >&5
4560 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4561 if test `eval echo '${'$as_ac_var'}'` = yes; then
4563 cat >>confdefs.h
<<_ACEOF
4564 #define CRAY_STACKSEG_END $ac_func
4573 echo "$as_me:4573: checking stack direction for C alloca" >&5
4574 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4575 if test "${ac_cv_c_stack_direction+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 if test "$cross_compiling" = yes; then
4579 ac_cv_c_stack_direction
=0
4581 cat >conftest.
$ac_ext <<_ACEOF
4582 #line 4582 "configure"
4583 #include "confdefs.h"
4585 find_stack_direction ()
4587 static char *addr = 0;
4592 return find_stack_direction ();
4595 return (&dummy > addr) ? 1 : -1;
4601 exit (find_stack_direction () < 0);
4604 rm -f conftest
$ac_exeext
4605 if { (eval echo "$as_me:4605: \"$ac_link\"") >&5
4606 (eval $ac_link) 2>&5
4608 echo "$as_me:4608: \$? = $ac_status" >&5
4609 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4610 { (eval echo "$as_me:4610: \"$ac_try\"") >&5
4613 echo "$as_me:4613: \$? = $ac_status" >&5
4614 (exit $ac_status); }; }; then
4615 ac_cv_c_stack_direction
=1
4617 echo "$as_me: program exited with status $ac_status" >&5
4618 echo "$as_me: failed program was:" >&5
4619 cat conftest.
$ac_ext >&5
4620 ac_cv_c_stack_direction
=-1
4622 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4625 echo "$as_me:4625: result: $ac_cv_c_stack_direction" >&5
4626 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4628 cat >>confdefs.h
<<_ACEOF
4629 #define STACK_DIRECTION $ac_cv_c_stack_direction
4634 for ac_func
in mkstemp setlocale
4636 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4637 echo "$as_me:4637: checking for $ac_func" >&5
4638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4639 if eval "test \"\${$as_ac_var+set}\" = set"; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 cat >conftest.
$ac_ext <<_ACEOF
4643 #line 4643 "configure"
4644 #include "confdefs.h"
4645 /* System header to define __stub macros and hopefully few prototypes,
4646 which can conflict with char $ac_func (); below. */
4648 /* Override any gcc2 internal prototype to avoid an error. */
4652 /* We use char because int might match the return type of a gcc2
4653 builtin and then its argument prototype would still apply. */
4657 #ifdef F77_DUMMY_MAIN
4661 int F77_DUMMY_MAIN() { return 1; }
4666 /* The GNU C library defines this for functions which it implements
4667 to always fail with ENOSYS. Some functions are actually named
4668 something starting with __ and the normal name is an alias. */
4669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4679 rm -f conftest.
$ac_objext conftest
$ac_exeext
4680 if { (eval echo "$as_me:4680: \"$ac_link\"") >&5
4681 (eval $ac_link) 2>&5
4683 echo "$as_me:4683: \$? = $ac_status" >&5
4684 (exit $ac_status); } &&
4685 { ac_try
='test -s conftest$ac_exeext'
4686 { (eval echo "$as_me:4686: \"$ac_try\"") >&5
4689 echo "$as_me:4689: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4691 eval "$as_ac_var=yes"
4693 echo "$as_me: failed program was:" >&5
4694 cat conftest.
$ac_ext >&5
4695 eval "$as_ac_var=no"
4697 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4699 echo "$as_me:4699: result: `eval echo '${'$as_ac_var'}'`" >&5
4700 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4701 if test `eval echo '${'$as_ac_var'}'` = yes; then
4702 cat >>confdefs.h
<<_ACEOF
4703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4709 echo "$as_me:4709: checking whether stpcpy is declared" >&5
4710 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
4711 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 cat >conftest.
$ac_ext <<_ACEOF
4715 #line 4715 "configure"
4716 #include "confdefs.h"
4717 $ac_includes_default
4718 #ifdef F77_DUMMY_MAIN
4722 int F77_DUMMY_MAIN() { return 1; }
4728 char *p = (char *) stpcpy;
4735 rm -f conftest.
$ac_objext
4736 if { (eval echo "$as_me:4736: \"$ac_compile\"") >&5
4737 (eval $ac_compile) 2>&5
4739 echo "$as_me:4739: \$? = $ac_status" >&5
4740 (exit $ac_status); } &&
4741 { ac_try
='test -s conftest.$ac_objext'
4742 { (eval echo "$as_me:4742: \"$ac_try\"") >&5
4745 echo "$as_me:4745: \$? = $ac_status" >&5
4746 (exit $ac_status); }; }; then
4747 ac_cv_have_decl_stpcpy
=yes
4749 echo "$as_me: failed program was:" >&5
4750 cat conftest.
$ac_ext >&5
4751 ac_cv_have_decl_stpcpy
=no
4753 rm -f conftest.
$ac_objext conftest.
$ac_ext
4755 echo "$as_me:4755: result: $ac_cv_have_decl_stpcpy" >&5
4756 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
4757 if test $ac_cv_have_decl_stpcpy = yes; then
4759 cat >>confdefs.h
<<_ACEOF
4760 #define HAVE_DECL_STPCPY 1
4764 cat >>confdefs.h
<<_ACEOF
4765 #define HAVE_DECL_STPCPY 0
4769 echo "$as_me:4769: checking whether strndup is declared" >&5
4770 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
4771 if test "${ac_cv_have_decl_strndup+set}" = set; then
4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4774 cat >conftest.
$ac_ext <<_ACEOF
4775 #line 4775 "configure"
4776 #include "confdefs.h"
4777 $ac_includes_default
4778 #ifdef F77_DUMMY_MAIN
4782 int F77_DUMMY_MAIN() { return 1; }
4788 char *p = (char *) strndup;
4795 rm -f conftest.
$ac_objext
4796 if { (eval echo "$as_me:4796: \"$ac_compile\"") >&5
4797 (eval $ac_compile) 2>&5
4799 echo "$as_me:4799: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try
='test -s conftest.$ac_objext'
4802 { (eval echo "$as_me:4802: \"$ac_try\"") >&5
4805 echo "$as_me:4805: \$? = $ac_status" >&5
4806 (exit $ac_status); }; }; then
4807 ac_cv_have_decl_strndup
=yes
4809 echo "$as_me: failed program was:" >&5
4810 cat conftest.
$ac_ext >&5
4811 ac_cv_have_decl_strndup
=no
4813 rm -f conftest.
$ac_objext conftest.
$ac_ext
4815 echo "$as_me:4815: result: $ac_cv_have_decl_strndup" >&5
4816 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
4817 if test $ac_cv_have_decl_strndup = yes; then
4819 cat >>confdefs.h
<<_ACEOF
4820 #define HAVE_DECL_STRNDUP 1
4824 cat >>confdefs.h
<<_ACEOF
4825 #define HAVE_DECL_STRNDUP 0
4829 echo "$as_me:4829: checking whether strnlen is declared" >&5
4830 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
4831 if test "${ac_cv_have_decl_strnlen+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4834 cat >conftest.
$ac_ext <<_ACEOF
4835 #line 4835 "configure"
4836 #include "confdefs.h"
4837 $ac_includes_default
4838 #ifdef F77_DUMMY_MAIN
4842 int F77_DUMMY_MAIN() { return 1; }
4848 char *p = (char *) strnlen;
4855 rm -f conftest.
$ac_objext
4856 if { (eval echo "$as_me:4856: \"$ac_compile\"") >&5
4857 (eval $ac_compile) 2>&5
4859 echo "$as_me:4859: \$? = $ac_status" >&5
4860 (exit $ac_status); } &&
4861 { ac_try
='test -s conftest.$ac_objext'
4862 { (eval echo "$as_me:4862: \"$ac_try\"") >&5
4865 echo "$as_me:4865: \$? = $ac_status" >&5
4866 (exit $ac_status); }; }; then
4867 ac_cv_have_decl_strnlen
=yes
4869 echo "$as_me: failed program was:" >&5
4870 cat conftest.
$ac_ext >&5
4871 ac_cv_have_decl_strnlen
=no
4873 rm -f conftest.
$ac_objext conftest.
$ac_ext
4875 echo "$as_me:4875: result: $ac_cv_have_decl_strnlen" >&5
4876 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
4877 if test $ac_cv_have_decl_strnlen = yes; then
4879 cat >>confdefs.h
<<_ACEOF
4880 #define HAVE_DECL_STRNLEN 1
4884 cat >>confdefs.h
<<_ACEOF
4885 #define HAVE_DECL_STRNLEN 0
4889 echo "$as_me:4889: checking whether memchr is declared" >&5
4890 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
4891 if test "${ac_cv_have_decl_memchr+set}" = set; then
4892 echo $ECHO_N "(cached) $ECHO_C" >&6
4894 cat >conftest.
$ac_ext <<_ACEOF
4895 #line 4895 "configure"
4896 #include "confdefs.h"
4897 $ac_includes_default
4898 #ifdef F77_DUMMY_MAIN
4902 int F77_DUMMY_MAIN() { return 1; }
4908 char *p = (char *) memchr;
4915 rm -f conftest.
$ac_objext
4916 if { (eval echo "$as_me:4916: \"$ac_compile\"") >&5
4917 (eval $ac_compile) 2>&5
4919 echo "$as_me:4919: \$? = $ac_status" >&5
4920 (exit $ac_status); } &&
4921 { ac_try
='test -s conftest.$ac_objext'
4922 { (eval echo "$as_me:4922: \"$ac_try\"") >&5
4925 echo "$as_me:4925: \$? = $ac_status" >&5
4926 (exit $ac_status); }; }; then
4927 ac_cv_have_decl_memchr
=yes
4929 echo "$as_me: failed program was:" >&5
4930 cat conftest.
$ac_ext >&5
4931 ac_cv_have_decl_memchr
=no
4933 rm -f conftest.
$ac_objext conftest.
$ac_ext
4935 echo "$as_me:4935: result: $ac_cv_have_decl_memchr" >&5
4936 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
4937 if test $ac_cv_have_decl_memchr = yes; then
4939 cat >>confdefs.h
<<_ACEOF
4940 #define HAVE_DECL_MEMCHR 1
4944 cat >>confdefs.h
<<_ACEOF
4945 #define HAVE_DECL_MEMCHR 0
4950 for ac_func
in stpcpy strndup strnlen strspn memchr
4952 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4953 echo "$as_me:4953: checking for $ac_func" >&5
4954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4955 if eval "test \"\${$as_ac_var+set}\" = set"; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 cat >conftest.
$ac_ext <<_ACEOF
4959 #line 4959 "configure"
4960 #include "confdefs.h"
4961 /* System header to define __stub macros and hopefully few prototypes,
4962 which can conflict with char $ac_func (); below. */
4964 /* Override any gcc2 internal prototype to avoid an error. */
4968 /* We use char because int might match the return type of a gcc2
4969 builtin and then its argument prototype would still apply. */
4973 #ifdef F77_DUMMY_MAIN
4977 int F77_DUMMY_MAIN() { return 1; }
4982 /* The GNU C library defines this for functions which it implements
4983 to always fail with ENOSYS. Some functions are actually named
4984 something starting with __ and the normal name is an alias. */
4985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4995 rm -f conftest.
$ac_objext conftest
$ac_exeext
4996 if { (eval echo "$as_me:4996: \"$ac_link\"") >&5
4997 (eval $ac_link) 2>&5
4999 echo "$as_me:4999: \$? = $ac_status" >&5
5000 (exit $ac_status); } &&
5001 { ac_try
='test -s conftest$ac_exeext'
5002 { (eval echo "$as_me:5002: \"$ac_try\"") >&5
5005 echo "$as_me:5005: \$? = $ac_status" >&5
5006 (exit $ac_status); }; }; then
5007 eval "$as_ac_var=yes"
5009 echo "$as_me: failed program was:" >&5
5010 cat conftest.
$ac_ext >&5
5011 eval "$as_ac_var=no"
5013 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5015 echo "$as_me:5015: result: `eval echo '${'$as_ac_var'}'`" >&5
5016 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5017 if test `eval echo '${'$as_ac_var'}'` = yes; then
5018 cat >>confdefs.h
<<_ACEOF
5019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5023 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
5027 cat >>confdefs.h
<<_ACEOF
5028 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
5031 echo "$as_me:5031: checking for working malloc" >&5
5032 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
5033 if test "${jm_cv_func_working_malloc+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 if test "$cross_compiling" = yes; then
5037 jm_cv_func_working_malloc
=no
5039 cat >conftest.
$ac_ext <<_ACEOF
5040 #line 5040 "configure"
5041 #include "confdefs.h"
5047 exit (malloc (0) ? 0 : 1);
5051 rm -f conftest
$ac_exeext
5052 if { (eval echo "$as_me:5052: \"$ac_link\"") >&5
5053 (eval $ac_link) 2>&5
5055 echo "$as_me:5055: \$? = $ac_status" >&5
5056 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5057 { (eval echo "$as_me:5057: \"$ac_try\"") >&5
5060 echo "$as_me:5060: \$? = $ac_status" >&5
5061 (exit $ac_status); }; }; then
5062 jm_cv_func_working_malloc
=yes
5064 echo "$as_me: program exited with status $ac_status" >&5
5065 echo "$as_me: failed program was:" >&5
5066 cat conftest.
$ac_ext >&5
5067 jm_cv_func_working_malloc
=no
5069 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5073 echo "$as_me:5073: result: $jm_cv_func_working_malloc" >&5
5074 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
5075 if test $jm_cv_func_working_malloc = no
; then
5077 LIBOBJS
="$LIBOBJS malloc.$ac_objext"
5079 cat >>confdefs.h
<<_ACEOF
5080 #define malloc rpl_malloc
5085 cat >>confdefs.h
<<_ACEOF
5086 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
5089 echo "$as_me:5089: checking for working realloc" >&5
5090 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
5091 if test "${jm_cv_func_working_realloc+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5094 if test "$cross_compiling" = yes; then
5095 jm_cv_func_working_realloc
=no
5097 cat >conftest.
$ac_ext <<_ACEOF
5098 #line 5098 "configure"
5099 #include "confdefs.h"
5105 exit (realloc (0, 0) ? 0 : 1);
5109 rm -f conftest
$ac_exeext
5110 if { (eval echo "$as_me:5110: \"$ac_link\"") >&5
5111 (eval $ac_link) 2>&5
5113 echo "$as_me:5113: \$? = $ac_status" >&5
5114 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5115 { (eval echo "$as_me:5115: \"$ac_try\"") >&5
5118 echo "$as_me:5118: \$? = $ac_status" >&5
5119 (exit $ac_status); }; }; then
5120 jm_cv_func_working_realloc
=yes
5122 echo "$as_me: program exited with status $ac_status" >&5
5123 echo "$as_me: failed program was:" >&5
5124 cat conftest.
$ac_ext >&5
5125 jm_cv_func_working_realloc
=no
5127 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5131 echo "$as_me:5131: result: $jm_cv_func_working_realloc" >&5
5132 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
5133 if test $jm_cv_func_working_realloc = no
; then
5135 LIBOBJS
="$LIBOBJS realloc.$ac_objext"
5137 cat >>confdefs.h
<<_ACEOF
5138 #define realloc rpl_realloc
5143 for ac_func
in isascii iswprint mbrtowc
5145 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5146 echo "$as_me:5146: checking for $ac_func" >&5
5147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5148 if eval "test \"\${$as_ac_var+set}\" = set"; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5151 cat >conftest.
$ac_ext <<_ACEOF
5152 #line 5152 "configure"
5153 #include "confdefs.h"
5154 /* System header to define __stub macros and hopefully few prototypes,
5155 which can conflict with char $ac_func (); below. */
5157 /* Override any gcc2 internal prototype to avoid an error. */
5161 /* We use char because int might match the return type of a gcc2
5162 builtin and then its argument prototype would still apply. */
5166 #ifdef F77_DUMMY_MAIN
5170 int F77_DUMMY_MAIN() { return 1; }
5175 /* The GNU C library defines this for functions which it implements
5176 to always fail with ENOSYS. Some functions are actually named
5177 something starting with __ and the normal name is an alias. */
5178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5188 rm -f conftest.
$ac_objext conftest
$ac_exeext
5189 if { (eval echo "$as_me:5189: \"$ac_link\"") >&5
5190 (eval $ac_link) 2>&5
5192 echo "$as_me:5192: \$? = $ac_status" >&5
5193 (exit $ac_status); } &&
5194 { ac_try
='test -s conftest$ac_exeext'
5195 { (eval echo "$as_me:5195: \"$ac_try\"") >&5
5198 echo "$as_me:5198: \$? = $ac_status" >&5
5199 (exit $ac_status); }; }; then
5200 eval "$as_ac_var=yes"
5202 echo "$as_me: failed program was:" >&5
5203 cat conftest.
$ac_ext >&5
5204 eval "$as_ac_var=no"
5206 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5208 echo "$as_me:5208: result: `eval echo '${'$as_ac_var'}'`" >&5
5209 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5210 if test `eval echo '${'$as_ac_var'}'` = yes; then
5211 cat >>confdefs.h
<<_ACEOF
5212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5218 for ac_header
in limits.h stdlib.h string.h wchar.h wctype.h
5220 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5222 echo "$as_me:5222: checking for $ac_header" >&5
5223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 echo "$as_me:5227: result: `eval echo '${'$as_ac_Header'}'`" >&5
5228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5230 # Is the header compilable?
5231 echo "$as_me:5231: checking $ac_header usability" >&5
5232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5233 cat >conftest.
$ac_ext <<_ACEOF
5234 #line 5234 "configure"
5235 #include "confdefs.h"
5236 $ac_includes_default
5237 #include <$ac_header>
5239 rm -f conftest.
$ac_objext
5240 if { (eval echo "$as_me:5240: \"$ac_compile\"") >&5
5241 (eval $ac_compile) 2>&5
5243 echo "$as_me:5243: \$? = $ac_status" >&5
5244 (exit $ac_status); } &&
5245 { ac_try
='test -s conftest.$ac_objext'
5246 { (eval echo "$as_me:5246: \"$ac_try\"") >&5
5249 echo "$as_me:5249: \$? = $ac_status" >&5
5250 (exit $ac_status); }; }; then
5251 ac_header_compiler
=yes
5253 echo "$as_me: failed program was:" >&5
5254 cat conftest.
$ac_ext >&5
5255 ac_header_compiler
=no
5257 rm -f conftest.
$ac_objext conftest.
$ac_ext
5258 echo "$as_me:5258: result: $ac_header_compiler" >&5
5259 echo "${ECHO_T}$ac_header_compiler" >&6
5261 # Is the header present?
5262 echo "$as_me:5262: checking $ac_header presence" >&5
5263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5264 cat >conftest.
$ac_ext <<_ACEOF
5265 #line 5265 "configure"
5266 #include "confdefs.h"
5267 #include <$ac_header>
5269 if { (eval echo "$as_me:5269: \"$ac_cpp conftest.$ac_ext\"") >&5
5270 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5272 egrep -v '^ *\+' conftest.er1
>conftest.err
5274 cat conftest.err
>&5
5275 echo "$as_me:5275: \$? = $ac_status" >&5
5276 (exit $ac_status); } >/dev
/null
; then
5277 if test -s conftest.err
; then
5278 ac_cpp_err
=$ac_c_preproc_warn_flag
5285 if test -z "$ac_cpp_err"; then
5286 ac_header_preproc
=yes
5288 echo "$as_me: failed program was:" >&5
5289 cat conftest.
$ac_ext >&5
5290 ac_header_preproc
=no
5292 rm -f conftest.err conftest.
$ac_ext
5293 echo "$as_me:5293: result: $ac_header_preproc" >&5
5294 echo "${ECHO_T}$ac_header_preproc" >&6
5296 # So? What about this header?
5297 case $ac_header_compiler:$ac_header_preproc in
5299 { echo "$as_me:5299: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5301 { echo "$as_me:5301: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5304 { echo "$as_me:5304: WARNING: $ac_header: present but cannot be compiled." >&5
5305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5306 { echo "$as_me:5306: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5307 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5308 { echo "$as_me:5308: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5311 echo "$as_me:5311: checking for $ac_header" >&5
5312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 eval "$as_ac_Header=$ac_header_preproc"
5318 echo "$as_me:5318: result: `eval echo '${'$as_ac_Header'}'`" >&5
5319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5323 cat >>confdefs.h
<<_ACEOF
5324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5331 echo "$as_me:5331: checking for ANSI C header files" >&5
5332 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5333 if test "${ac_cv_header_stdc+set}" = set; then
5334 echo $ECHO_N "(cached) $ECHO_C" >&6
5336 cat >conftest.
$ac_ext <<_ACEOF
5337 #line 5337 "configure"
5338 #include "confdefs.h"
5345 if { (eval echo "$as_me:5345: \"$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:5351: \$? = $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_cv_header_stdc
=yes
5364 echo "$as_me: failed program was:" >&5
5365 cat conftest.
$ac_ext >&5
5366 ac_cv_header_stdc
=no
5368 rm -f conftest.err conftest.
$ac_ext
5370 if test $ac_cv_header_stdc = yes; then
5371 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5372 cat >conftest.
$ac_ext <<_ACEOF
5373 #line 5373 "configure"
5374 #include "confdefs.h"
5378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5379 egrep "memchr" >/dev
/null
2>&1; then
5382 ac_cv_header_stdc
=no
5388 if test $ac_cv_header_stdc = yes; then
5389 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5390 cat >conftest.
$ac_ext <<_ACEOF
5391 #line 5391 "configure"
5392 #include "confdefs.h"
5396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5397 egrep "free" >/dev
/null
2>&1; then
5400 ac_cv_header_stdc
=no
5406 if test $ac_cv_header_stdc = yes; then
5407 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5408 if test "$cross_compiling" = yes; then
5411 cat >conftest.
$ac_ext <<_ACEOF
5412 #line 5412 "configure"
5413 #include "confdefs.h"
5415 #if ((' ' & 0x0FF) == 0x020)
5416 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5417 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5419 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5420 || ('j' <= (c) && (c) <= 'r') \
5421 || ('s' <= (c) && (c) <= 'z'))
5422 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5425 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5430 for (i = 0; i < 256; i++)
5431 if (XOR (islower (i), ISLOWER (i))
5432 || toupper (i) != TOUPPER (i))
5437 rm -f conftest
$ac_exeext
5438 if { (eval echo "$as_me:5438: \"$ac_link\"") >&5
5439 (eval $ac_link) 2>&5
5441 echo "$as_me:5441: \$? = $ac_status" >&5
5442 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5443 { (eval echo "$as_me:5443: \"$ac_try\"") >&5
5446 echo "$as_me:5446: \$? = $ac_status" >&5
5447 (exit $ac_status); }; }; then
5450 echo "$as_me: program exited with status $ac_status" >&5
5451 echo "$as_me: failed program was:" >&5
5452 cat conftest.
$ac_ext >&5
5453 ac_cv_header_stdc
=no
5455 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5459 echo "$as_me:5459: result: $ac_cv_header_stdc" >&5
5460 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5461 if test $ac_cv_header_stdc = yes; then
5463 cat >>confdefs.h
<<\_ACEOF
5464 #define STDC_HEADERS 1
5469 echo "$as_me:5469: checking whether backslash-a works in strings" >&5
5470 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
5471 if test "${ac_cv_c_backslash_a+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 cat >conftest.
$ac_ext <<_ACEOF
5475 #line 5475 "configure"
5476 #include "confdefs.h"
5478 #ifdef F77_DUMMY_MAIN
5482 int F77_DUMMY_MAIN() { return 1; }
5491 char buf['\a' == 'a' ? -1 : 1];
5493 return buf[0] != "\a"[0];
5499 rm -f conftest.
$ac_objext
5500 if { (eval echo "$as_me:5500: \"$ac_compile\"") >&5
5501 (eval $ac_compile) 2>&5
5503 echo "$as_me:5503: \$? = $ac_status" >&5
5504 (exit $ac_status); } &&
5505 { ac_try
='test -s conftest.$ac_objext'
5506 { (eval echo "$as_me:5506: \"$ac_try\"") >&5
5509 echo "$as_me:5509: \$? = $ac_status" >&5
5510 (exit $ac_status); }; }; then
5511 ac_cv_c_backslash_a
=yes
5513 echo "$as_me: failed program was:" >&5
5514 cat conftest.
$ac_ext >&5
5515 ac_cv_c_backslash_a
=no
5517 rm -f conftest.
$ac_objext conftest.
$ac_ext
5519 echo "$as_me:5519: result: $ac_cv_c_backslash_a" >&5
5520 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
5521 if test $ac_cv_c_backslash_a = yes; then
5523 cat >>confdefs.h
<<\_ACEOF
5524 #define HAVE_C_BACKSLASH_A 1
5529 for ac_header
in stdlib.h
5531 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5533 echo "$as_me:5533: checking for $ac_header" >&5
5534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 echo "$as_me:5538: result: `eval echo '${'$as_ac_Header'}'`" >&5
5539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5541 # Is the header compilable?
5542 echo "$as_me:5542: checking $ac_header usability" >&5
5543 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5544 cat >conftest.
$ac_ext <<_ACEOF
5545 #line 5545 "configure"
5546 #include "confdefs.h"
5547 $ac_includes_default
5548 #include <$ac_header>
5550 rm -f conftest.
$ac_objext
5551 if { (eval echo "$as_me:5551: \"$ac_compile\"") >&5
5552 (eval $ac_compile) 2>&5
5554 echo "$as_me:5554: \$? = $ac_status" >&5
5555 (exit $ac_status); } &&
5556 { ac_try
='test -s conftest.$ac_objext'
5557 { (eval echo "$as_me:5557: \"$ac_try\"") >&5
5560 echo "$as_me:5560: \$? = $ac_status" >&5
5561 (exit $ac_status); }; }; then
5562 ac_header_compiler
=yes
5564 echo "$as_me: failed program was:" >&5
5565 cat conftest.
$ac_ext >&5
5566 ac_header_compiler
=no
5568 rm -f conftest.
$ac_objext conftest.
$ac_ext
5569 echo "$as_me:5569: result: $ac_header_compiler" >&5
5570 echo "${ECHO_T}$ac_header_compiler" >&6
5572 # Is the header present?
5573 echo "$as_me:5573: checking $ac_header presence" >&5
5574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5575 cat >conftest.
$ac_ext <<_ACEOF
5576 #line 5576 "configure"
5577 #include "confdefs.h"
5578 #include <$ac_header>
5580 if { (eval echo "$as_me:5580: \"$ac_cpp conftest.$ac_ext\"") >&5
5581 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5583 egrep -v '^ *\+' conftest.er1
>conftest.err
5585 cat conftest.err
>&5
5586 echo "$as_me:5586: \$? = $ac_status" >&5
5587 (exit $ac_status); } >/dev
/null
; then
5588 if test -s conftest.err
; then
5589 ac_cpp_err
=$ac_c_preproc_warn_flag
5596 if test -z "$ac_cpp_err"; then
5597 ac_header_preproc
=yes
5599 echo "$as_me: failed program was:" >&5
5600 cat conftest.
$ac_ext >&5
5601 ac_header_preproc
=no
5603 rm -f conftest.err conftest.
$ac_ext
5604 echo "$as_me:5604: result: $ac_header_preproc" >&5
5605 echo "${ECHO_T}$ac_header_preproc" >&6
5607 # So? What about this header?
5608 case $ac_header_compiler:$ac_header_preproc in
5610 { echo "$as_me:5610: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5611 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5612 { echo "$as_me:5612: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5613 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5615 { echo "$as_me:5615: WARNING: $ac_header: present but cannot be compiled." >&5
5616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5617 { echo "$as_me:5617: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5618 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5619 { echo "$as_me:5619: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5622 echo "$as_me:5622: checking for $ac_header" >&5
5623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 eval "$as_ac_Header=$ac_header_preproc"
5629 echo "$as_me:5629: result: `eval echo '${'$as_ac_Header'}'`" >&5
5630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5634 cat >>confdefs.h
<<_ACEOF
5635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5642 echo "$as_me:5642: checking for mbstate_t" >&5
5643 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
5644 if test "${ac_cv_type_mbstate_t+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 cat >conftest.
$ac_ext <<_ACEOF
5648 #line 5648 "configure"
5649 #include "confdefs.h"
5652 # include <stdlib.h>
5655 #ifdef F77_DUMMY_MAIN
5659 int F77_DUMMY_MAIN() { return 1; }
5664 mbstate_t x; return sizeof x;
5669 rm -f conftest.
$ac_objext
5670 if { (eval echo "$as_me:5670: \"$ac_compile\"") >&5
5671 (eval $ac_compile) 2>&5
5673 echo "$as_me:5673: \$? = $ac_status" >&5
5674 (exit $ac_status); } &&
5675 { ac_try
='test -s conftest.$ac_objext'
5676 { (eval echo "$as_me:5676: \"$ac_try\"") >&5
5679 echo "$as_me:5679: \$? = $ac_status" >&5
5680 (exit $ac_status); }; }; then
5681 ac_cv_type_mbstate_t
=yes
5683 echo "$as_me: failed program was:" >&5
5684 cat conftest.
$ac_ext >&5
5685 ac_cv_type_mbstate_t
=no
5687 rm -f conftest.
$ac_objext conftest.
$ac_ext
5689 echo "$as_me:5689: result: $ac_cv_type_mbstate_t" >&5
5690 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
5691 if test $ac_cv_type_mbstate_t = no
; then
5693 cat >>confdefs.h
<<\_ACEOF
5694 #define mbstate_t int
5699 echo "$as_me:5699: checking for function prototypes" >&5
5700 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5701 if test "$am_cv_prog_cc_stdc" != no
; then
5702 echo "$as_me:5702: result: yes" >&5
5703 echo "${ECHO_T}yes" >&6
5705 cat >>confdefs.h
<<\_ACEOF
5706 #define PROTOTYPES 1
5711 echo "$as_me:5711: result: no" >&5
5712 echo "${ECHO_T}no" >&6
5713 U
=_ ANSI2KNR
=.
/ansi2knr
5715 # Ensure some checks needed by ansi2knr itself.
5716 echo "$as_me:5716: checking for ANSI C header files" >&5
5717 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5718 if test "${ac_cv_header_stdc+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 cat >conftest.
$ac_ext <<_ACEOF
5722 #line 5722 "configure"
5723 #include "confdefs.h"
5730 if { (eval echo "$as_me:5730: \"$ac_cpp conftest.$ac_ext\"") >&5
5731 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5733 egrep -v '^ *\+' conftest.er1
>conftest.err
5735 cat conftest.err
>&5
5736 echo "$as_me:5736: \$? = $ac_status" >&5
5737 (exit $ac_status); } >/dev
/null
; then
5738 if test -s conftest.err
; then
5739 ac_cpp_err
=$ac_c_preproc_warn_flag
5746 if test -z "$ac_cpp_err"; then
5747 ac_cv_header_stdc
=yes
5749 echo "$as_me: failed program was:" >&5
5750 cat conftest.
$ac_ext >&5
5751 ac_cv_header_stdc
=no
5753 rm -f conftest.err conftest.
$ac_ext
5755 if test $ac_cv_header_stdc = yes; then
5756 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5757 cat >conftest.
$ac_ext <<_ACEOF
5758 #line 5758 "configure"
5759 #include "confdefs.h"
5763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5764 egrep "memchr" >/dev
/null
2>&1; then
5767 ac_cv_header_stdc
=no
5773 if test $ac_cv_header_stdc = yes; then
5774 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5775 cat >conftest.
$ac_ext <<_ACEOF
5776 #line 5776 "configure"
5777 #include "confdefs.h"
5781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5782 egrep "free" >/dev
/null
2>&1; then
5785 ac_cv_header_stdc
=no
5791 if test $ac_cv_header_stdc = yes; then
5792 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5793 if test "$cross_compiling" = yes; then
5796 cat >conftest.
$ac_ext <<_ACEOF
5797 #line 5797 "configure"
5798 #include "confdefs.h"
5800 #if ((' ' & 0x0FF) == 0x020)
5801 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5802 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5804 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5805 || ('j' <= (c) && (c) <= 'r') \
5806 || ('s' <= (c) && (c) <= 'z'))
5807 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5810 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5815 for (i = 0; i < 256; i++)
5816 if (XOR (islower (i), ISLOWER (i))
5817 || toupper (i) != TOUPPER (i))
5822 rm -f conftest
$ac_exeext
5823 if { (eval echo "$as_me:5823: \"$ac_link\"") >&5
5824 (eval $ac_link) 2>&5
5826 echo "$as_me:5826: \$? = $ac_status" >&5
5827 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5828 { (eval echo "$as_me:5828: \"$ac_try\"") >&5
5831 echo "$as_me:5831: \$? = $ac_status" >&5
5832 (exit $ac_status); }; }; then
5835 echo "$as_me: program exited with status $ac_status" >&5
5836 echo "$as_me: failed program was:" >&5
5837 cat conftest.
$ac_ext >&5
5838 ac_cv_header_stdc
=no
5840 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5844 echo "$as_me:5844: result: $ac_cv_header_stdc" >&5
5845 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5846 if test $ac_cv_header_stdc = yes; then
5848 cat >>confdefs.h
<<\_ACEOF
5849 #define STDC_HEADERS 1
5854 for ac_header
in string.h
5856 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5858 echo "$as_me:5858: checking for $ac_header" >&5
5859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5863 echo "$as_me:5863: result: `eval echo '${'$as_ac_Header'}'`" >&5
5864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5866 # Is the header compilable?
5867 echo "$as_me:5867: checking $ac_header usability" >&5
5868 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5869 cat >conftest.
$ac_ext <<_ACEOF
5870 #line 5870 "configure"
5871 #include "confdefs.h"
5872 $ac_includes_default
5873 #include <$ac_header>
5875 rm -f conftest.
$ac_objext
5876 if { (eval echo "$as_me:5876: \"$ac_compile\"") >&5
5877 (eval $ac_compile) 2>&5
5879 echo "$as_me:5879: \$? = $ac_status" >&5
5880 (exit $ac_status); } &&
5881 { ac_try
='test -s conftest.$ac_objext'
5882 { (eval echo "$as_me:5882: \"$ac_try\"") >&5
5885 echo "$as_me:5885: \$? = $ac_status" >&5
5886 (exit $ac_status); }; }; then
5887 ac_header_compiler
=yes
5889 echo "$as_me: failed program was:" >&5
5890 cat conftest.
$ac_ext >&5
5891 ac_header_compiler
=no
5893 rm -f conftest.
$ac_objext conftest.
$ac_ext
5894 echo "$as_me:5894: result: $ac_header_compiler" >&5
5895 echo "${ECHO_T}$ac_header_compiler" >&6
5897 # Is the header present?
5898 echo "$as_me:5898: checking $ac_header presence" >&5
5899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5900 cat >conftest.
$ac_ext <<_ACEOF
5901 #line 5901 "configure"
5902 #include "confdefs.h"
5903 #include <$ac_header>
5905 if { (eval echo "$as_me:5905: \"$ac_cpp conftest.$ac_ext\"") >&5
5906 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5908 egrep -v '^ *\+' conftest.er1
>conftest.err
5910 cat conftest.err
>&5
5911 echo "$as_me:5911: \$? = $ac_status" >&5
5912 (exit $ac_status); } >/dev
/null
; then
5913 if test -s conftest.err
; then
5914 ac_cpp_err
=$ac_c_preproc_warn_flag
5921 if test -z "$ac_cpp_err"; then
5922 ac_header_preproc
=yes
5924 echo "$as_me: failed program was:" >&5
5925 cat conftest.
$ac_ext >&5
5926 ac_header_preproc
=no
5928 rm -f conftest.err conftest.
$ac_ext
5929 echo "$as_me:5929: result: $ac_header_preproc" >&5
5930 echo "${ECHO_T}$ac_header_preproc" >&6
5932 # So? What about this header?
5933 case $ac_header_compiler:$ac_header_preproc in
5935 { echo "$as_me:5935: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5936 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5937 { echo "$as_me:5937: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5940 { echo "$as_me:5940: WARNING: $ac_header: present but cannot be compiled." >&5
5941 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5942 { echo "$as_me:5942: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5943 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5944 { echo "$as_me:5944: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5945 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5947 echo "$as_me:5947: checking for $ac_header" >&5
5948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5952 eval "$as_ac_Header=$ac_header_preproc"
5954 echo "$as_me:5954: result: `eval echo '${'$as_ac_Header'}'`" >&5
5955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5959 cat >>confdefs.h
<<_ACEOF
5960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5967 for ac_func
in strerror strerror_r vprintf doprnt
5969 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5970 echo "$as_me:5970: checking for $ac_func" >&5
5971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5972 if eval "test \"\${$as_ac_var+set}\" = set"; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 cat >conftest.
$ac_ext <<_ACEOF
5976 #line 5976 "configure"
5977 #include "confdefs.h"
5978 /* System header to define __stub macros and hopefully few prototypes,
5979 which can conflict with char $ac_func (); below. */
5981 /* Override any gcc2 internal prototype to avoid an error. */
5985 /* We use char because int might match the return type of a gcc2
5986 builtin and then its argument prototype would still apply. */
5990 #ifdef F77_DUMMY_MAIN
5994 int F77_DUMMY_MAIN() { return 1; }
5999 /* The GNU C library defines this for functions which it implements
6000 to always fail with ENOSYS. Some functions are actually named
6001 something starting with __ and the normal name is an alias. */
6002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6012 rm -f conftest.
$ac_objext conftest
$ac_exeext
6013 if { (eval echo "$as_me:6013: \"$ac_link\"") >&5
6014 (eval $ac_link) 2>&5
6016 echo "$as_me:6016: \$? = $ac_status" >&5
6017 (exit $ac_status); } &&
6018 { ac_try
='test -s conftest$ac_exeext'
6019 { (eval echo "$as_me:6019: \"$ac_try\"") >&5
6022 echo "$as_me:6022: \$? = $ac_status" >&5
6023 (exit $ac_status); }; }; then
6024 eval "$as_ac_var=yes"
6026 echo "$as_me: failed program was:" >&5
6027 cat conftest.
$ac_ext >&5
6028 eval "$as_ac_var=no"
6030 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6032 echo "$as_me:6032: result: `eval echo '${'$as_ac_var'}'`" >&5
6033 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6034 if test `eval echo '${'$as_ac_var'}'` = yes; then
6035 cat >>confdefs.h
<<_ACEOF
6036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6042 echo "$as_me:6042: checking for ANSI C header files" >&5
6043 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6044 if test "${ac_cv_header_stdc+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 cat >conftest.
$ac_ext <<_ACEOF
6048 #line 6048 "configure"
6049 #include "confdefs.h"
6056 if { (eval echo "$as_me:6056: \"$ac_cpp conftest.$ac_ext\"") >&5
6057 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6059 egrep -v '^ *\+' conftest.er1
>conftest.err
6061 cat conftest.err
>&5
6062 echo "$as_me:6062: \$? = $ac_status" >&5
6063 (exit $ac_status); } >/dev
/null
; then
6064 if test -s conftest.err
; then
6065 ac_cpp_err
=$ac_c_preproc_warn_flag
6072 if test -z "$ac_cpp_err"; then
6073 ac_cv_header_stdc
=yes
6075 echo "$as_me: failed program was:" >&5
6076 cat conftest.
$ac_ext >&5
6077 ac_cv_header_stdc
=no
6079 rm -f conftest.err conftest.
$ac_ext
6081 if test $ac_cv_header_stdc = yes; then
6082 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6083 cat >conftest.
$ac_ext <<_ACEOF
6084 #line 6084 "configure"
6085 #include "confdefs.h"
6089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6090 egrep "memchr" >/dev
/null
2>&1; then
6093 ac_cv_header_stdc
=no
6099 if test $ac_cv_header_stdc = yes; then
6100 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6101 cat >conftest.
$ac_ext <<_ACEOF
6102 #line 6102 "configure"
6103 #include "confdefs.h"
6107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6108 egrep "free" >/dev
/null
2>&1; then
6111 ac_cv_header_stdc
=no
6117 if test $ac_cv_header_stdc = yes; then
6118 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6119 if test "$cross_compiling" = yes; then
6122 cat >conftest.
$ac_ext <<_ACEOF
6123 #line 6123 "configure"
6124 #include "confdefs.h"
6126 #if ((' ' & 0x0FF) == 0x020)
6127 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6128 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6130 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6131 || ('j' <= (c) && (c) <= 'r') \
6132 || ('s' <= (c) && (c) <= 'z'))
6133 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6136 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6141 for (i = 0; i < 256; i++)
6142 if (XOR (islower (i), ISLOWER (i))
6143 || toupper (i) != TOUPPER (i))
6148 rm -f conftest
$ac_exeext
6149 if { (eval echo "$as_me:6149: \"$ac_link\"") >&5
6150 (eval $ac_link) 2>&5
6152 echo "$as_me:6152: \$? = $ac_status" >&5
6153 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6154 { (eval echo "$as_me:6154: \"$ac_try\"") >&5
6157 echo "$as_me:6157: \$? = $ac_status" >&5
6158 (exit $ac_status); }; }; then
6161 echo "$as_me: program exited with status $ac_status" >&5
6162 echo "$as_me: failed program was:" >&5
6163 cat conftest.
$ac_ext >&5
6164 ac_cv_header_stdc
=no
6166 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6170 echo "$as_me:6170: result: $ac_cv_header_stdc" >&5
6171 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6172 if test $ac_cv_header_stdc = yes; then
6174 cat >>confdefs.h
<<\_ACEOF
6175 #define STDC_HEADERS 1
6180 echo "$as_me:6180: checking whether strerror_r is declared" >&5
6181 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
6182 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6185 cat >conftest.
$ac_ext <<_ACEOF
6186 #line 6186 "configure"
6187 #include "confdefs.h"
6188 $ac_includes_default
6189 #ifdef F77_DUMMY_MAIN
6193 int F77_DUMMY_MAIN() { return 1; }
6199 char *p = (char *) strerror_r;
6206 rm -f conftest.
$ac_objext
6207 if { (eval echo "$as_me:6207: \"$ac_compile\"") >&5
6208 (eval $ac_compile) 2>&5
6210 echo "$as_me:6210: \$? = $ac_status" >&5
6211 (exit $ac_status); } &&
6212 { ac_try
='test -s conftest.$ac_objext'
6213 { (eval echo "$as_me:6213: \"$ac_try\"") >&5
6216 echo "$as_me:6216: \$? = $ac_status" >&5
6217 (exit $ac_status); }; }; then
6218 ac_cv_have_decl_strerror_r
=yes
6220 echo "$as_me: failed program was:" >&5
6221 cat conftest.
$ac_ext >&5
6222 ac_cv_have_decl_strerror_r
=no
6224 rm -f conftest.
$ac_objext conftest.
$ac_ext
6226 echo "$as_me:6226: result: $ac_cv_have_decl_strerror_r" >&5
6227 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
6228 if test $ac_cv_have_decl_strerror_r = yes; then
6230 cat >>confdefs.h
<<_ACEOF
6231 #define HAVE_DECL_STRERROR_R 1
6235 cat >>confdefs.h
<<_ACEOF
6236 #define HAVE_DECL_STRERROR_R 0
6241 for ac_func
in strerror_r
6243 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6244 echo "$as_me:6244: checking for $ac_func" >&5
6245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6246 if eval "test \"\${$as_ac_var+set}\" = set"; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6249 cat >conftest.
$ac_ext <<_ACEOF
6250 #line 6250 "configure"
6251 #include "confdefs.h"
6252 /* System header to define __stub macros and hopefully few prototypes,
6253 which can conflict with char $ac_func (); below. */
6255 /* Override any gcc2 internal prototype to avoid an error. */
6259 /* We use char because int might match the return type of a gcc2
6260 builtin and then its argument prototype would still apply. */
6264 #ifdef F77_DUMMY_MAIN
6268 int F77_DUMMY_MAIN() { return 1; }
6273 /* The GNU C library defines this for functions which it implements
6274 to always fail with ENOSYS. Some functions are actually named
6275 something starting with __ and the normal name is an alias. */
6276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6286 rm -f conftest.
$ac_objext conftest
$ac_exeext
6287 if { (eval echo "$as_me:6287: \"$ac_link\"") >&5
6288 (eval $ac_link) 2>&5
6290 echo "$as_me:6290: \$? = $ac_status" >&5
6291 (exit $ac_status); } &&
6292 { ac_try
='test -s conftest$ac_exeext'
6293 { (eval echo "$as_me:6293: \"$ac_try\"") >&5
6296 echo "$as_me:6296: \$? = $ac_status" >&5
6297 (exit $ac_status); }; }; then
6298 eval "$as_ac_var=yes"
6300 echo "$as_me: failed program was:" >&5
6301 cat conftest.
$ac_ext >&5
6302 eval "$as_ac_var=no"
6304 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6306 echo "$as_me:6306: result: `eval echo '${'$as_ac_var'}'`" >&5
6307 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6308 if test `eval echo '${'$as_ac_var'}'` = yes; then
6309 cat >>confdefs.h
<<_ACEOF
6310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6316 if test $ac_cv_func_strerror_r = yes; then
6318 for ac_header
in string.h
6320 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6322 echo "$as_me:6322: checking for $ac_header" >&5
6323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 echo "$as_me:6327: result: `eval echo '${'$as_ac_Header'}'`" >&5
6328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6330 # Is the header compilable?
6331 echo "$as_me:6331: checking $ac_header usability" >&5
6332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6333 cat >conftest.
$ac_ext <<_ACEOF
6334 #line 6334 "configure"
6335 #include "confdefs.h"
6336 $ac_includes_default
6337 #include <$ac_header>
6339 rm -f conftest.
$ac_objext
6340 if { (eval echo "$as_me:6340: \"$ac_compile\"") >&5
6341 (eval $ac_compile) 2>&5
6343 echo "$as_me:6343: \$? = $ac_status" >&5
6344 (exit $ac_status); } &&
6345 { ac_try
='test -s conftest.$ac_objext'
6346 { (eval echo "$as_me:6346: \"$ac_try\"") >&5
6349 echo "$as_me:6349: \$? = $ac_status" >&5
6350 (exit $ac_status); }; }; then
6351 ac_header_compiler
=yes
6353 echo "$as_me: failed program was:" >&5
6354 cat conftest.
$ac_ext >&5
6355 ac_header_compiler
=no
6357 rm -f conftest.
$ac_objext conftest.
$ac_ext
6358 echo "$as_me:6358: result: $ac_header_compiler" >&5
6359 echo "${ECHO_T}$ac_header_compiler" >&6
6361 # Is the header present?
6362 echo "$as_me:6362: checking $ac_header presence" >&5
6363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6364 cat >conftest.
$ac_ext <<_ACEOF
6365 #line 6365 "configure"
6366 #include "confdefs.h"
6367 #include <$ac_header>
6369 if { (eval echo "$as_me:6369: \"$ac_cpp conftest.$ac_ext\"") >&5
6370 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6372 egrep -v '^ *\+' conftest.er1
>conftest.err
6374 cat conftest.err
>&5
6375 echo "$as_me:6375: \$? = $ac_status" >&5
6376 (exit $ac_status); } >/dev
/null
; then
6377 if test -s conftest.err
; then
6378 ac_cpp_err
=$ac_c_preproc_warn_flag
6385 if test -z "$ac_cpp_err"; then
6386 ac_header_preproc
=yes
6388 echo "$as_me: failed program was:" >&5
6389 cat conftest.
$ac_ext >&5
6390 ac_header_preproc
=no
6392 rm -f conftest.err conftest.
$ac_ext
6393 echo "$as_me:6393: result: $ac_header_preproc" >&5
6394 echo "${ECHO_T}$ac_header_preproc" >&6
6396 # So? What about this header?
6397 case $ac_header_compiler:$ac_header_preproc in
6399 { echo "$as_me:6399: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6400 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6401 { echo "$as_me:6401: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6404 { echo "$as_me:6404: WARNING: $ac_header: present but cannot be compiled." >&5
6405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6406 { echo "$as_me:6406: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6407 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6408 { echo "$as_me:6408: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6411 echo "$as_me:6411: checking for $ac_header" >&5
6412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
6416 eval "$as_ac_Header=$ac_header_preproc"
6418 echo "$as_me:6418: result: `eval echo '${'$as_ac_Header'}'`" >&5
6419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6423 cat >>confdefs.h
<<_ACEOF
6424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6431 echo "$as_me:6431: checking for working strerror_r" >&5
6432 echo $ECHO_N "checking for working strerror_r... $ECHO_C" >&6
6433 if test "${ac_cv_func_strerror_r_works+set}" = set; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6437 cat >conftest.
$ac_ext <<_ACEOF
6438 #line 6438 "configure"
6439 #include "confdefs.h"
6443 # include <string.h>
6446 #ifdef F77_DUMMY_MAIN
6450 int F77_DUMMY_MAIN() { return 1; }
6457 char x = *strerror_r (0, buf, sizeof buf);
6463 rm -f conftest.
$ac_objext
6464 if { (eval echo "$as_me:6464: \"$ac_compile\"") >&5
6465 (eval $ac_compile) 2>&5
6467 echo "$as_me:6467: \$? = $ac_status" >&5
6468 (exit $ac_status); } &&
6469 { ac_try
='test -s conftest.$ac_objext'
6470 { (eval echo "$as_me:6470: \"$ac_try\"") >&5
6473 echo "$as_me:6473: \$? = $ac_status" >&5
6474 (exit $ac_status); }; }; then
6475 ac_cv_func_strerror_r_works
=yes
6477 echo "$as_me: failed program was:" >&5
6478 cat conftest.
$ac_ext >&5
6479 ac_cv_func_strerror_r_works
=no
6482 rm -f conftest.
$ac_objext conftest.
$ac_ext
6483 if test $ac_cv_func_strerror_r_works = no
; then
6484 # strerror_r seems not to work, but now we have to choose between
6485 # systems that have relatively inaccessible declarations for the
6486 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
6487 # former has a strerror_r that returns char*, while the latter
6488 # has a strerror_r that returns `int'.
6489 # This test should segfault on the DEC system.
6490 if test "$cross_compiling" = yes; then
6491 ac_cv_func_strerror_r_works
=no
6493 cat >conftest.
$ac_ext <<_ACEOF
6494 #line 6494 "configure"
6495 #include "confdefs.h"
6498 # include <string.h>
6501 extern char *strerror_r ();
6507 char x = *strerror_r (0, buf, sizeof buf);
6508 exit (!isalpha (x));
6512 rm -f conftest
$ac_exeext
6513 if { (eval echo "$as_me:6513: \"$ac_link\"") >&5
6514 (eval $ac_link) 2>&5
6516 echo "$as_me:6516: \$? = $ac_status" >&5
6517 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6518 { (eval echo "$as_me:6518: \"$ac_try\"") >&5
6521 echo "$as_me:6521: \$? = $ac_status" >&5
6522 (exit $ac_status); }; }; then
6523 ac_cv_func_strerror_r_works
=yes
6525 echo "$as_me: program exited with status $ac_status" >&5
6526 echo "$as_me: failed program was:" >&5
6527 cat conftest.
$ac_ext >&5
6528 ac_cv_func_strerror_r_works
=no
6530 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6535 echo "$as_me:6535: result: $ac_cv_func_strerror_r_works" >&5
6536 echo "${ECHO_T}$ac_cv_func_strerror_r_works" >&6
6537 if test $ac_cv_func_strerror_r_works = yes; then
6539 cat >>confdefs.h
<<_ACEOF
6540 #define HAVE_WORKING_STRERROR_R 1
6546 ALL_LINGUAS
="de es et fr ja nl ru"
6547 # Make sure we can run config.sub.
6548 $ac_config_sub sun4
>/dev
/null
2>&1 ||
6549 { { echo "$as_me:6549: error: cannot run $ac_config_sub" >&5
6550 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6551 { (exit 1); exit 1; }; }
6553 echo "$as_me:6553: checking build system type" >&5
6554 echo $ECHO_N "checking build system type... $ECHO_C" >&6
6555 if test "${ac_cv_build+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 ac_cv_build_alias
=$build_alias
6559 test -z "$ac_cv_build_alias" &&
6560 ac_cv_build_alias
=`$ac_config_guess`
6561 test -z "$ac_cv_build_alias" &&
6562 { { echo "$as_me:6562: error: cannot guess build type; you must specify one" >&5
6563 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6564 { (exit 1); exit 1; }; }
6565 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
6566 { { echo "$as_me:6566: error: $ac_config_sub $ac_cv_build_alias failed." >&5
6567 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
6568 { (exit 1); exit 1; }; }
6571 echo "$as_me:6571: result: $ac_cv_build" >&5
6572 echo "${ECHO_T}$ac_cv_build" >&6
6574 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6575 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6576 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6578 echo "$as_me:6578: checking host system type" >&5
6579 echo $ECHO_N "checking host system type... $ECHO_C" >&6
6580 if test "${ac_cv_host+set}" = set; then
6581 echo $ECHO_N "(cached) $ECHO_C" >&6
6583 ac_cv_host_alias
=$host_alias
6584 test -z "$ac_cv_host_alias" &&
6585 ac_cv_host_alias
=$ac_cv_build_alias
6586 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
6587 { { echo "$as_me:6587: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6588 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6589 { (exit 1); exit 1; }; }
6592 echo "$as_me:6592: result: $ac_cv_host" >&5
6593 echo "${ECHO_T}$ac_cv_host" >&6
6595 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6596 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6597 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6599 echo "$as_me:6599: checking for off_t" >&5
6600 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6601 if test "${ac_cv_type_off_t+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6604 cat >conftest.
$ac_ext <<_ACEOF
6605 #line 6605 "configure"
6606 #include "confdefs.h"
6607 $ac_includes_default
6608 #ifdef F77_DUMMY_MAIN
6612 int F77_DUMMY_MAIN() { return 1; }
6625 rm -f conftest.
$ac_objext
6626 if { (eval echo "$as_me:6626: \"$ac_compile\"") >&5
6627 (eval $ac_compile) 2>&5
6629 echo "$as_me:6629: \$? = $ac_status" >&5
6630 (exit $ac_status); } &&
6631 { ac_try
='test -s conftest.$ac_objext'
6632 { (eval echo "$as_me:6632: \"$ac_try\"") >&5
6635 echo "$as_me:6635: \$? = $ac_status" >&5
6636 (exit $ac_status); }; }; then
6637 ac_cv_type_off_t
=yes
6639 echo "$as_me: failed program was:" >&5
6640 cat conftest.
$ac_ext >&5
6643 rm -f conftest.
$ac_objext conftest.
$ac_ext
6645 echo "$as_me:6645: result: $ac_cv_type_off_t" >&5
6646 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6647 if test $ac_cv_type_off_t = yes; then
6651 cat >>confdefs.h
<<_ACEOF
6657 echo "$as_me:6657: checking for size_t" >&5
6658 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6659 if test "${ac_cv_type_size_t+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 cat >conftest.
$ac_ext <<_ACEOF
6663 #line 6663 "configure"
6664 #include "confdefs.h"
6665 $ac_includes_default
6666 #ifdef F77_DUMMY_MAIN
6670 int F77_DUMMY_MAIN() { return 1; }
6677 if (sizeof (size_t))
6683 rm -f conftest.
$ac_objext
6684 if { (eval echo "$as_me:6684: \"$ac_compile\"") >&5
6685 (eval $ac_compile) 2>&5
6687 echo "$as_me:6687: \$? = $ac_status" >&5
6688 (exit $ac_status); } &&
6689 { ac_try
='test -s conftest.$ac_objext'
6690 { (eval echo "$as_me:6690: \"$ac_try\"") >&5
6693 echo "$as_me:6693: \$? = $ac_status" >&5
6694 (exit $ac_status); }; }; then
6695 ac_cv_type_size_t
=yes
6697 echo "$as_me: failed program was:" >&5
6698 cat conftest.
$ac_ext >&5
6699 ac_cv_type_size_t
=no
6701 rm -f conftest.
$ac_objext conftest.
$ac_ext
6703 echo "$as_me:6703: result: $ac_cv_type_size_t" >&5
6704 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6705 if test $ac_cv_type_size_t = yes; then
6709 cat >>confdefs.h
<<_ACEOF
6710 #define size_t unsigned
6715 for ac_header
in stdlib.h unistd.h
6717 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6719 echo "$as_me:6719: checking for $ac_header" >&5
6720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6724 echo "$as_me:6724: result: `eval echo '${'$as_ac_Header'}'`" >&5
6725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6727 # Is the header compilable?
6728 echo "$as_me:6728: checking $ac_header usability" >&5
6729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6730 cat >conftest.
$ac_ext <<_ACEOF
6731 #line 6731 "configure"
6732 #include "confdefs.h"
6733 $ac_includes_default
6734 #include <$ac_header>
6736 rm -f conftest.
$ac_objext
6737 if { (eval echo "$as_me:6737: \"$ac_compile\"") >&5
6738 (eval $ac_compile) 2>&5
6740 echo "$as_me:6740: \$? = $ac_status" >&5
6741 (exit $ac_status); } &&
6742 { ac_try
='test -s conftest.$ac_objext'
6743 { (eval echo "$as_me:6743: \"$ac_try\"") >&5
6746 echo "$as_me:6746: \$? = $ac_status" >&5
6747 (exit $ac_status); }; }; then
6748 ac_header_compiler
=yes
6750 echo "$as_me: failed program was:" >&5
6751 cat conftest.
$ac_ext >&5
6752 ac_header_compiler
=no
6754 rm -f conftest.
$ac_objext conftest.
$ac_ext
6755 echo "$as_me:6755: result: $ac_header_compiler" >&5
6756 echo "${ECHO_T}$ac_header_compiler" >&6
6758 # Is the header present?
6759 echo "$as_me:6759: checking $ac_header presence" >&5
6760 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6761 cat >conftest.
$ac_ext <<_ACEOF
6762 #line 6762 "configure"
6763 #include "confdefs.h"
6764 #include <$ac_header>
6766 if { (eval echo "$as_me:6766: \"$ac_cpp conftest.$ac_ext\"") >&5
6767 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6769 egrep -v '^ *\+' conftest.er1
>conftest.err
6771 cat conftest.err
>&5
6772 echo "$as_me:6772: \$? = $ac_status" >&5
6773 (exit $ac_status); } >/dev
/null
; then
6774 if test -s conftest.err
; then
6775 ac_cpp_err
=$ac_c_preproc_warn_flag
6782 if test -z "$ac_cpp_err"; then
6783 ac_header_preproc
=yes
6785 echo "$as_me: failed program was:" >&5
6786 cat conftest.
$ac_ext >&5
6787 ac_header_preproc
=no
6789 rm -f conftest.err conftest.
$ac_ext
6790 echo "$as_me:6790: result: $ac_header_preproc" >&5
6791 echo "${ECHO_T}$ac_header_preproc" >&6
6793 # So? What about this header?
6794 case $ac_header_compiler:$ac_header_preproc in
6796 { echo "$as_me:6796: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6798 { echo "$as_me:6798: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6801 { echo "$as_me:6801: WARNING: $ac_header: present but cannot be compiled." >&5
6802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6803 { echo "$as_me:6803: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6805 { echo "$as_me:6805: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6808 echo "$as_me:6808: checking for $ac_header" >&5
6809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6813 eval "$as_ac_Header=$ac_header_preproc"
6815 echo "$as_me:6815: result: `eval echo '${'$as_ac_Header'}'`" >&5
6816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6820 cat >>confdefs.h
<<_ACEOF
6821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6828 for ac_func
in getpagesize
6830 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6831 echo "$as_me:6831: checking for $ac_func" >&5
6832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6833 if eval "test \"\${$as_ac_var+set}\" = set"; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
6836 cat >conftest.
$ac_ext <<_ACEOF
6837 #line 6837 "configure"
6838 #include "confdefs.h"
6839 /* System header to define __stub macros and hopefully few prototypes,
6840 which can conflict with char $ac_func (); below. */
6842 /* Override any gcc2 internal prototype to avoid an error. */
6846 /* We use char because int might match the return type of a gcc2
6847 builtin and then its argument prototype would still apply. */
6851 #ifdef F77_DUMMY_MAIN
6855 int F77_DUMMY_MAIN() { return 1; }
6860 /* The GNU C library defines this for functions which it implements
6861 to always fail with ENOSYS. Some functions are actually named
6862 something starting with __ and the normal name is an alias. */
6863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6873 rm -f conftest.
$ac_objext conftest
$ac_exeext
6874 if { (eval echo "$as_me:6874: \"$ac_link\"") >&5
6875 (eval $ac_link) 2>&5
6877 echo "$as_me:6877: \$? = $ac_status" >&5
6878 (exit $ac_status); } &&
6879 { ac_try
='test -s conftest$ac_exeext'
6880 { (eval echo "$as_me:6880: \"$ac_try\"") >&5
6883 echo "$as_me:6883: \$? = $ac_status" >&5
6884 (exit $ac_status); }; }; then
6885 eval "$as_ac_var=yes"
6887 echo "$as_me: failed program was:" >&5
6888 cat conftest.
$ac_ext >&5
6889 eval "$as_ac_var=no"
6891 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6893 echo "$as_me:6893: result: `eval echo '${'$as_ac_var'}'`" >&5
6894 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6895 if test `eval echo '${'$as_ac_var'}'` = yes; then
6896 cat >>confdefs.h
<<_ACEOF
6897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6903 echo "$as_me:6903: checking for working mmap" >&5
6904 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6905 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6908 if test "$cross_compiling" = yes; then
6909 ac_cv_func_mmap_fixed_mapped
=no
6911 cat >conftest.
$ac_ext <<_ACEOF
6912 #line 6912 "configure"
6913 #include "confdefs.h"
6914 $ac_includes_default
6915 /* Thanks to Mike Haertel and Jim Avera for this test.
6916 Here is a matrix of mmap possibilities:
6917 mmap private not fixed
6918 mmap private fixed at somewhere currently unmapped
6919 mmap private fixed at somewhere already mapped
6920 mmap shared not fixed
6921 mmap shared fixed at somewhere currently unmapped
6922 mmap shared fixed at somewhere already mapped
6923 For private mappings, we should verify that changes cannot be read()
6924 back from the file, nor mmap's back from the file at a different
6925 address. (There have been systems where private was not correctly
6926 implemented like the infamous i386 svr4.0, and systems where the
6927 VM page cache was not coherent with the file system buffer cache
6928 like early versions of FreeBSD and possibly contemporary NetBSD.)
6929 For shared mappings, we should conversely verify that changes get
6930 propogated back to all the places they're supposed to be.
6932 Grep wants private fixed already mapped.
6933 The main things grep needs to know about mmap are:
6934 * does it exist and is it safe to write into the mmap'd area
6935 * how to use it (BSD variants) */
6938 #include <sys/mman.h>
6940 #if !STDC_HEADERS && !HAVE_STDLIB_H
6944 /* This mess was copied from the GNU getpagesize.h. */
6945 #if !HAVE_GETPAGESIZE
6946 /* Assume that all systems that can run configure have sys/param.h. */
6947 # if !HAVE_SYS_PARAM_H
6948 # define HAVE_SYS_PARAM_H 1
6951 # ifdef _SC_PAGESIZE
6952 # define getpagesize() sysconf(_SC_PAGESIZE)
6953 # else /* no _SC_PAGESIZE */
6954 # if HAVE_SYS_PARAM_H
6955 # include <sys/param.h>
6956 # ifdef EXEC_PAGESIZE
6957 # define getpagesize() EXEC_PAGESIZE
6958 # else /* no EXEC_PAGESIZE */
6960 # define getpagesize() NBPG * CLSIZE
6963 # endif /* no CLSIZE */
6964 # else /* no NBPG */
6966 # define getpagesize() NBPC
6967 # else /* no NBPC */
6969 # define getpagesize() PAGESIZE
6970 # endif /* PAGESIZE */
6971 # endif /* no NBPC */
6972 # endif /* no NBPG */
6973 # endif /* no EXEC_PAGESIZE */
6974 # else /* no HAVE_SYS_PARAM_H */
6975 # define getpagesize() 8192 /* punt totally */
6976 # endif /* no HAVE_SYS_PARAM_H */
6977 # endif /* no _SC_PAGESIZE */
6979 #endif /* no HAVE_GETPAGESIZE */
6984 char *data, *data2, *data3;
6988 pagesize = getpagesize ();
6990 /* First, make a file with some known garbage in it. */
6991 data = (char *) malloc (pagesize);
6994 for (i = 0; i < pagesize; ++i)
6995 *(data + i) = rand ();
6997 fd = creat ("conftest.mmap", 0600);
7000 if (write (fd, data, pagesize) != pagesize)
7004 /* Next, try to mmap the file at a fixed address which already has
7005 something else allocated at it. If we can, also make sure that
7006 we see the same garbage. */
7007 fd = open ("conftest.mmap", O_RDWR);
7010 data2 = (char *) malloc (2 * pagesize);
7013 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7014 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7015 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7017 for (i = 0; i < pagesize; ++i)
7018 if (*(data + i) != *(data2 + i))
7021 /* Finally, make sure that changes to the mapped area do not
7022 percolate back to the file as seen by read(). (This is a bug on
7023 some variants of i386 svr4.0.) */
7024 for (i = 0; i < pagesize; ++i)
7025 *(data2 + i) = *(data2 + i) + 1;
7026 data3 = (char *) malloc (pagesize);
7029 if (read (fd, data3, pagesize) != pagesize)
7031 for (i = 0; i < pagesize; ++i)
7032 if (*(data + i) != *(data3 + i))
7038 rm -f conftest
$ac_exeext
7039 if { (eval echo "$as_me:7039: \"$ac_link\"") >&5
7040 (eval $ac_link) 2>&5
7042 echo "$as_me:7042: \$? = $ac_status" >&5
7043 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7044 { (eval echo "$as_me:7044: \"$ac_try\"") >&5
7047 echo "$as_me:7047: \$? = $ac_status" >&5
7048 (exit $ac_status); }; }; then
7049 ac_cv_func_mmap_fixed_mapped
=yes
7051 echo "$as_me: program exited with status $ac_status" >&5
7052 echo "$as_me: failed program was:" >&5
7053 cat conftest.
$ac_ext >&5
7054 ac_cv_func_mmap_fixed_mapped
=no
7056 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7059 echo "$as_me:7059: result: $ac_cv_func_mmap_fixed_mapped" >&5
7060 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7061 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7063 cat >>confdefs.h
<<\_ACEOF
7070 echo "$as_me:7070: checking whether we are using the GNU C Library 2.1 or newer" >&5
7071 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7072 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
7075 cat >conftest.
$ac_ext <<_ACEOF
7076 #line 7076 "configure"
7077 #include "confdefs.h"
7079 #include <features.h>
7080 #ifdef __GNU_LIBRARY__
7081 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7088 egrep "Lucky GNU user" >/dev
/null
2>&1; then
7089 ac_cv_gnu_library_2_1
=yes
7091 ac_cv_gnu_library_2_1
=no
7096 echo "$as_me:7096: result: $ac_cv_gnu_library_2_1" >&5
7097 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7099 GLIBC21
="$ac_cv_gnu_library_2_1"
7101 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7102 stdlib.h string.h unistd.h sys
/param.h
7104 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7106 echo "$as_me:7106: checking for $ac_header" >&5
7107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7111 echo "$as_me:7111: result: `eval echo '${'$as_ac_Header'}'`" >&5
7112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7114 # Is the header compilable?
7115 echo "$as_me:7115: checking $ac_header usability" >&5
7116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7117 cat >conftest.
$ac_ext <<_ACEOF
7118 #line 7118 "configure"
7119 #include "confdefs.h"
7120 $ac_includes_default
7121 #include <$ac_header>
7123 rm -f conftest.
$ac_objext
7124 if { (eval echo "$as_me:7124: \"$ac_compile\"") >&5
7125 (eval $ac_compile) 2>&5
7127 echo "$as_me:7127: \$? = $ac_status" >&5
7128 (exit $ac_status); } &&
7129 { ac_try
='test -s conftest.$ac_objext'
7130 { (eval echo "$as_me:7130: \"$ac_try\"") >&5
7133 echo "$as_me:7133: \$? = $ac_status" >&5
7134 (exit $ac_status); }; }; then
7135 ac_header_compiler
=yes
7137 echo "$as_me: failed program was:" >&5
7138 cat conftest.
$ac_ext >&5
7139 ac_header_compiler
=no
7141 rm -f conftest.
$ac_objext conftest.
$ac_ext
7142 echo "$as_me:7142: result: $ac_header_compiler" >&5
7143 echo "${ECHO_T}$ac_header_compiler" >&6
7145 # Is the header present?
7146 echo "$as_me:7146: checking $ac_header presence" >&5
7147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7148 cat >conftest.
$ac_ext <<_ACEOF
7149 #line 7149 "configure"
7150 #include "confdefs.h"
7151 #include <$ac_header>
7153 if { (eval echo "$as_me:7153: \"$ac_cpp conftest.$ac_ext\"") >&5
7154 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7156 egrep -v '^ *\+' conftest.er1
>conftest.err
7158 cat conftest.err
>&5
7159 echo "$as_me:7159: \$? = $ac_status" >&5
7160 (exit $ac_status); } >/dev
/null
; then
7161 if test -s conftest.err
; then
7162 ac_cpp_err
=$ac_c_preproc_warn_flag
7169 if test -z "$ac_cpp_err"; then
7170 ac_header_preproc
=yes
7172 echo "$as_me: failed program was:" >&5
7173 cat conftest.
$ac_ext >&5
7174 ac_header_preproc
=no
7176 rm -f conftest.err conftest.
$ac_ext
7177 echo "$as_me:7177: result: $ac_header_preproc" >&5
7178 echo "${ECHO_T}$ac_header_preproc" >&6
7180 # So? What about this header?
7181 case $ac_header_compiler:$ac_header_preproc in
7183 { echo "$as_me:7183: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7185 { echo "$as_me:7185: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7188 { echo "$as_me:7188: WARNING: $ac_header: present but cannot be compiled." >&5
7189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7190 { echo "$as_me:7190: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7191 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7192 { echo "$as_me:7192: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7195 echo "$as_me:7195: checking for $ac_header" >&5
7196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 eval "$as_ac_Header=$ac_header_preproc"
7202 echo "$as_me:7202: result: `eval echo '${'$as_ac_Header'}'`" >&5
7203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7207 cat >>confdefs.h
<<_ACEOF
7208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7215 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
7216 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
7217 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
7219 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7220 echo "$as_me:7220: checking for $ac_func" >&5
7221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7222 if eval "test \"\${$as_ac_var+set}\" = set"; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 cat >conftest.
$ac_ext <<_ACEOF
7226 #line 7226 "configure"
7227 #include "confdefs.h"
7228 /* System header to define __stub macros and hopefully few prototypes,
7229 which can conflict with char $ac_func (); below. */
7231 /* Override any gcc2 internal prototype to avoid an error. */
7235 /* We use char because int might match the return type of a gcc2
7236 builtin and then its argument prototype would still apply. */
7240 #ifdef F77_DUMMY_MAIN
7244 int F77_DUMMY_MAIN() { return 1; }
7249 /* The GNU C library defines this for functions which it implements
7250 to always fail with ENOSYS. Some functions are actually named
7251 something starting with __ and the normal name is an alias. */
7252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7262 rm -f conftest.
$ac_objext conftest
$ac_exeext
7263 if { (eval echo "$as_me:7263: \"$ac_link\"") >&5
7264 (eval $ac_link) 2>&5
7266 echo "$as_me:7266: \$? = $ac_status" >&5
7267 (exit $ac_status); } &&
7268 { ac_try
='test -s conftest$ac_exeext'
7269 { (eval echo "$as_me:7269: \"$ac_try\"") >&5
7272 echo "$as_me:7272: \$? = $ac_status" >&5
7273 (exit $ac_status); }; }; then
7274 eval "$as_ac_var=yes"
7276 echo "$as_me: failed program was:" >&5
7277 cat conftest.
$ac_ext >&5
7278 eval "$as_ac_var=no"
7280 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7282 echo "$as_me:7282: result: `eval echo '${'$as_ac_var'}'`" >&5
7283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7284 if test `eval echo '${'$as_ac_var'}'` = yes; then
7285 cat >>confdefs.h
<<_ACEOF
7286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7292 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7293 if test "${with_libiconv_prefix+set}" = set; then
7294 withval
="$with_libiconv_prefix"
7296 for dir
in `echo "$withval" | tr : ' '`; do
7297 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
7298 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
7303 echo "$as_me:7303: checking for iconv" >&5
7304 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7305 if test "${am_cv_func_iconv+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 am_cv_func_iconv
="no, consider installing GNU libiconv"
7311 cat >conftest.
$ac_ext <<_ACEOF
7312 #line 7312 "configure"
7313 #include "confdefs.h"
7316 #ifdef F77_DUMMY_MAIN
7320 int F77_DUMMY_MAIN() { return 1; }
7325 iconv_t cd = iconv_open("","");
7326 iconv(cd,NULL,NULL,NULL,NULL);
7332 rm -f conftest.
$ac_objext conftest
$ac_exeext
7333 if { (eval echo "$as_me:7333: \"$ac_link\"") >&5
7334 (eval $ac_link) 2>&5
7336 echo "$as_me:7336: \$? = $ac_status" >&5
7337 (exit $ac_status); } &&
7338 { ac_try
='test -s conftest$ac_exeext'
7339 { (eval echo "$as_me:7339: \"$ac_try\"") >&5
7342 echo "$as_me:7342: \$? = $ac_status" >&5
7343 (exit $ac_status); }; }; then
7344 am_cv_func_iconv
=yes
7346 echo "$as_me: failed program was:" >&5
7347 cat conftest.
$ac_ext >&5
7349 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7350 if test "$am_cv_func_iconv" != yes; then
7351 am_save_LIBS
="$LIBS"
7352 LIBS
="$LIBS -liconv"
7353 cat >conftest.
$ac_ext <<_ACEOF
7354 #line 7354 "configure"
7355 #include "confdefs.h"
7358 #ifdef F77_DUMMY_MAIN
7362 int F77_DUMMY_MAIN() { return 1; }
7367 iconv_t cd = iconv_open("","");
7368 iconv(cd,NULL,NULL,NULL,NULL);
7374 rm -f conftest.
$ac_objext conftest
$ac_exeext
7375 if { (eval echo "$as_me:7375: \"$ac_link\"") >&5
7376 (eval $ac_link) 2>&5
7378 echo "$as_me:7378: \$? = $ac_status" >&5
7379 (exit $ac_status); } &&
7380 { ac_try
='test -s conftest$ac_exeext'
7381 { (eval echo "$as_me:7381: \"$ac_try\"") >&5
7384 echo "$as_me:7384: \$? = $ac_status" >&5
7385 (exit $ac_status); }; }; then
7387 am_cv_func_iconv
=yes
7389 echo "$as_me: failed program was:" >&5
7390 cat conftest.
$ac_ext >&5
7392 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7393 LIBS
="$am_save_LIBS"
7397 echo "$as_me:7397: result: $am_cv_func_iconv" >&5
7398 echo "${ECHO_T}$am_cv_func_iconv" >&6
7399 if test "$am_cv_func_iconv" = yes; then
7401 cat >>confdefs.h
<<\_ACEOF
7402 #define HAVE_ICONV 1
7405 echo "$as_me:7405: checking for iconv declaration" >&5
7406 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7407 if test "${am_cv_proto_iconv+set}" = set; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7411 cat >conftest.
$ac_ext <<_ACEOF
7412 #line 7412 "configure"
7413 #include "confdefs.h"
7421 #if defined(__STDC__) || defined(__cplusplus)
7422 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7427 #ifdef F77_DUMMY_MAIN
7431 int F77_DUMMY_MAIN() { return 1; }
7441 rm -f conftest.
$ac_objext
7442 if { (eval echo "$as_me:7442: \"$ac_compile\"") >&5
7443 (eval $ac_compile) 2>&5
7445 echo "$as_me:7445: \$? = $ac_status" >&5
7446 (exit $ac_status); } &&
7447 { ac_try
='test -s conftest.$ac_objext'
7448 { (eval echo "$as_me:7448: \"$ac_try\"") >&5
7451 echo "$as_me:7451: \$? = $ac_status" >&5
7452 (exit $ac_status); }; }; then
7453 am_cv_proto_iconv_arg1
=""
7455 echo "$as_me: failed program was:" >&5
7456 cat conftest.
$ac_ext >&5
7457 am_cv_proto_iconv_arg1
="const"
7459 rm -f conftest.
$ac_objext conftest.
$ac_ext
7460 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);"
7463 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7464 echo "$as_me:7464: result: ${ac_t:-
7465 }$am_cv_proto_iconv" >&5
7466 echo "${ECHO_T}${ac_t:-
7467 }$am_cv_proto_iconv" >&6
7469 cat >>confdefs.h
<<_ACEOF
7470 #define ICONV_CONST $am_cv_proto_iconv_arg1
7475 if test "$am_cv_lib_iconv" = yes; then
7479 echo "$as_me:7479: checking for nl_langinfo and CODESET" >&5
7480 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7481 if test "${am_cv_langinfo_codeset+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 cat >conftest.
$ac_ext <<_ACEOF
7485 #line 7485 "configure"
7486 #include "confdefs.h"
7487 #include <langinfo.h>
7488 #ifdef F77_DUMMY_MAIN
7492 int F77_DUMMY_MAIN() { return 1; }
7497 char* cs = nl_langinfo(CODESET);
7502 rm -f conftest.
$ac_objext conftest
$ac_exeext
7503 if { (eval echo "$as_me:7503: \"$ac_link\"") >&5
7504 (eval $ac_link) 2>&5
7506 echo "$as_me:7506: \$? = $ac_status" >&5
7507 (exit $ac_status); } &&
7508 { ac_try
='test -s conftest$ac_exeext'
7509 { (eval echo "$as_me:7509: \"$ac_try\"") >&5
7512 echo "$as_me:7512: \$? = $ac_status" >&5
7513 (exit $ac_status); }; }; then
7514 am_cv_langinfo_codeset
=yes
7516 echo "$as_me: failed program was:" >&5
7517 cat conftest.
$ac_ext >&5
7518 am_cv_langinfo_codeset
=no
7520 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7523 echo "$as_me:7523: result: $am_cv_langinfo_codeset" >&5
7524 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7525 if test $am_cv_langinfo_codeset = yes; then
7527 cat >>confdefs.h
<<\_ACEOF
7528 #define HAVE_LANGINFO_CODESET 1
7533 if test $ac_cv_header_locale_h = yes; then
7534 echo "$as_me:7534: checking for LC_MESSAGES" >&5
7535 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7536 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7537 echo $ECHO_N "(cached) $ECHO_C" >&6
7539 cat >conftest.
$ac_ext <<_ACEOF
7540 #line 7540 "configure"
7541 #include "confdefs.h"
7543 #ifdef F77_DUMMY_MAIN
7547 int F77_DUMMY_MAIN() { return 1; }
7557 rm -f conftest.
$ac_objext conftest
$ac_exeext
7558 if { (eval echo "$as_me:7558: \"$ac_link\"") >&5
7559 (eval $ac_link) 2>&5
7561 echo "$as_me:7561: \$? = $ac_status" >&5
7562 (exit $ac_status); } &&
7563 { ac_try
='test -s conftest$ac_exeext'
7564 { (eval echo "$as_me:7564: \"$ac_try\"") >&5
7567 echo "$as_me:7567: \$? = $ac_status" >&5
7568 (exit $ac_status); }; }; then
7569 am_cv_val_LC_MESSAGES
=yes
7571 echo "$as_me: failed program was:" >&5
7572 cat conftest.
$ac_ext >&5
7573 am_cv_val_LC_MESSAGES
=no
7575 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7577 echo "$as_me:7577: result: $am_cv_val_LC_MESSAGES" >&5
7578 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7579 if test $am_cv_val_LC_MESSAGES = yes; then
7581 cat >>confdefs.h
<<\_ACEOF
7582 #define HAVE_LC_MESSAGES 1
7587 echo "$as_me:7587: checking whether NLS is requested" >&5
7588 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7589 # Check whether --enable-nls or --disable-nls was given.
7590 if test "${enable_nls+set}" = set; then
7591 enableval
="$enable_nls"
7596 echo "$as_me:7596: result: $USE_NLS" >&5
7597 echo "${ECHO_T}$USE_NLS" >&6
7599 BUILD_INCLUDED_LIBINTL
=no
7600 USE_INCLUDED_LIBINTL
=no
7603 if test "$USE_NLS" = "yes"; then
7605 cat >>confdefs.h
<<\_ACEOF
7606 #define ENABLE_NLS 1
7609 echo "$as_me:7609: checking whether included gettext is requested" >&5
7610 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7612 # Check whether --with-included-gettext or --without-included-gettext was given.
7613 if test "${with_included_gettext+set}" = set; then
7614 withval
="$with_included_gettext"
7615 nls_cv_force_use_gnu_gettext
=$withval
7617 nls_cv_force_use_gnu_gettext
=no
7619 echo "$as_me:7619: result: $nls_cv_force_use_gnu_gettext" >&5
7620 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7622 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7623 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7626 if test "${ac_cv_header_libintl_h+set}" = set; then
7627 echo "$as_me:7627: checking for libintl.h" >&5
7628 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7629 if test "${ac_cv_header_libintl_h+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 echo "$as_me:7632: result: $ac_cv_header_libintl_h" >&5
7633 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7635 # Is the header compilable?
7636 echo "$as_me:7636: checking libintl.h usability" >&5
7637 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7638 cat >conftest.
$ac_ext <<_ACEOF
7639 #line 7639 "configure"
7640 #include "confdefs.h"
7641 $ac_includes_default
7642 #include <libintl.h>
7644 rm -f conftest.
$ac_objext
7645 if { (eval echo "$as_me:7645: \"$ac_compile\"") >&5
7646 (eval $ac_compile) 2>&5
7648 echo "$as_me:7648: \$? = $ac_status" >&5
7649 (exit $ac_status); } &&
7650 { ac_try
='test -s conftest.$ac_objext'
7651 { (eval echo "$as_me:7651: \"$ac_try\"") >&5
7654 echo "$as_me:7654: \$? = $ac_status" >&5
7655 (exit $ac_status); }; }; then
7656 ac_header_compiler
=yes
7658 echo "$as_me: failed program was:" >&5
7659 cat conftest.
$ac_ext >&5
7660 ac_header_compiler
=no
7662 rm -f conftest.
$ac_objext conftest.
$ac_ext
7663 echo "$as_me:7663: result: $ac_header_compiler" >&5
7664 echo "${ECHO_T}$ac_header_compiler" >&6
7666 # Is the header present?
7667 echo "$as_me:7667: checking libintl.h presence" >&5
7668 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7669 cat >conftest.
$ac_ext <<_ACEOF
7670 #line 7670 "configure"
7671 #include "confdefs.h"
7672 #include <libintl.h>
7674 if { (eval echo "$as_me:7674: \"$ac_cpp conftest.$ac_ext\"") >&5
7675 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7677 egrep -v '^ *\+' conftest.er1
>conftest.err
7679 cat conftest.err
>&5
7680 echo "$as_me:7680: \$? = $ac_status" >&5
7681 (exit $ac_status); } >/dev
/null
; then
7682 if test -s conftest.err
; then
7683 ac_cpp_err
=$ac_c_preproc_warn_flag
7690 if test -z "$ac_cpp_err"; then
7691 ac_header_preproc
=yes
7693 echo "$as_me: failed program was:" >&5
7694 cat conftest.
$ac_ext >&5
7695 ac_header_preproc
=no
7697 rm -f conftest.err conftest.
$ac_ext
7698 echo "$as_me:7698: result: $ac_header_preproc" >&5
7699 echo "${ECHO_T}$ac_header_preproc" >&6
7701 # So? What about this header?
7702 case $ac_header_compiler:$ac_header_preproc in
7704 { echo "$as_me:7704: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7705 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7706 { echo "$as_me:7706: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7707 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7709 { echo "$as_me:7709: WARNING: libintl.h: present but cannot be compiled." >&5
7710 echo "$as_me: WARNING: libintl.h: present but cannot be compiled." >&2;}
7711 { echo "$as_me:7711: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7712 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7713 { echo "$as_me:7713: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7714 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7716 echo "$as_me:7716: checking for libintl.h" >&5
7717 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7718 if test "${ac_cv_header_libintl_h+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 ac_cv_header_libintl_h
=$ac_header_preproc
7723 echo "$as_me:7723: result: $ac_cv_header_libintl_h" >&5
7724 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7727 if test $ac_cv_header_libintl_h = yes; then
7728 echo "$as_me:7728: checking for GNU gettext in libc" >&5
7729 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
7730 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
7731 echo $ECHO_N "(cached) $ECHO_C" >&6
7733 cat >conftest.
$ac_ext <<_ACEOF
7734 #line 7734 "configure"
7735 #include "confdefs.h"
7736 #include <libintl.h>
7737 extern int _nl_msg_cat_cntr;
7738 #ifdef F77_DUMMY_MAIN
7742 int F77_DUMMY_MAIN() { return 1; }
7747 bindtextdomain ("", "");
7748 return (int) gettext ("") + _nl_msg_cat_cntr
7753 rm -f conftest.
$ac_objext conftest
$ac_exeext
7754 if { (eval echo "$as_me:7754: \"$ac_link\"") >&5
7755 (eval $ac_link) 2>&5
7757 echo "$as_me:7757: \$? = $ac_status" >&5
7758 (exit $ac_status); } &&
7759 { ac_try
='test -s conftest$ac_exeext'
7760 { (eval echo "$as_me:7760: \"$ac_try\"") >&5
7763 echo "$as_me:7763: \$? = $ac_status" >&5
7764 (exit $ac_status); }; }; then
7765 gt_cv_func_gnugettext1_libc
=yes
7767 echo "$as_me: failed program was:" >&5
7768 cat conftest.
$ac_ext >&5
7769 gt_cv_func_gnugettext1_libc
=no
7771 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7773 echo "$as_me:7773: result: $gt_cv_func_gnugettext1_libc" >&5
7774 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
7776 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
7777 echo "$as_me:7777: checking for GNU gettext in libintl" >&5
7778 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
7779 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7782 gt_save_LIBS
="$LIBS"
7783 LIBS
="$LIBS -lintl $LIBICONV"
7784 cat >conftest.
$ac_ext <<_ACEOF
7785 #line 7785 "configure"
7786 #include "confdefs.h"
7787 #include <libintl.h>
7788 extern int _nl_msg_cat_cntr;
7789 #ifdef F77_DUMMY_MAIN
7793 int F77_DUMMY_MAIN() { return 1; }
7798 bindtextdomain ("", "");
7799 return (int) gettext ("") + _nl_msg_cat_cntr
7804 rm -f conftest.
$ac_objext conftest
$ac_exeext
7805 if { (eval echo "$as_me:7805: \"$ac_link\"") >&5
7806 (eval $ac_link) 2>&5
7808 echo "$as_me:7808: \$? = $ac_status" >&5
7809 (exit $ac_status); } &&
7810 { ac_try
='test -s conftest$ac_exeext'
7811 { (eval echo "$as_me:7811: \"$ac_try\"") >&5
7814 echo "$as_me:7814: \$? = $ac_status" >&5
7815 (exit $ac_status); }; }; then
7816 gt_cv_func_gnugettext1_libintl
=yes
7818 echo "$as_me: failed program was:" >&5
7819 cat conftest.
$ac_ext >&5
7820 gt_cv_func_gnugettext1_libintl
=no
7822 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7823 LIBS
="$gt_save_LIBS"
7825 echo "$as_me:7825: result: $gt_cv_func_gnugettext1_libintl" >&5
7826 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
7829 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7830 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7831 && test "$PACKAGE" != gettext; }; then
7833 cat >>confdefs.h
<<\_ACEOF
7834 #define HAVE_GETTEXT 1
7837 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7838 INTLLIBS
="-lintl $LIBICONV"
7841 gt_save_LIBS
="$LIBS"
7842 LIBS
="$LIBS $INTLLIBS"
7844 for ac_func
in dcgettext
7846 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7847 echo "$as_me:7847: checking for $ac_func" >&5
7848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7849 if eval "test \"\${$as_ac_var+set}\" = set"; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 cat >conftest.
$ac_ext <<_ACEOF
7853 #line 7853 "configure"
7854 #include "confdefs.h"
7855 /* System header to define __stub macros and hopefully few prototypes,
7856 which can conflict with char $ac_func (); below. */
7858 /* Override any gcc2 internal prototype to avoid an error. */
7862 /* We use char because int might match the return type of a gcc2
7863 builtin and then its argument prototype would still apply. */
7867 #ifdef F77_DUMMY_MAIN
7871 int F77_DUMMY_MAIN() { return 1; }
7876 /* The GNU C library defines this for functions which it implements
7877 to always fail with ENOSYS. Some functions are actually named
7878 something starting with __ and the normal name is an alias. */
7879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7889 rm -f conftest.
$ac_objext conftest
$ac_exeext
7890 if { (eval echo "$as_me:7890: \"$ac_link\"") >&5
7891 (eval $ac_link) 2>&5
7893 echo "$as_me:7893: \$? = $ac_status" >&5
7894 (exit $ac_status); } &&
7895 { ac_try
='test -s conftest$ac_exeext'
7896 { (eval echo "$as_me:7896: \"$ac_try\"") >&5
7899 echo "$as_me:7899: \$? = $ac_status" >&5
7900 (exit $ac_status); }; }; then
7901 eval "$as_ac_var=yes"
7903 echo "$as_me: failed program was:" >&5
7904 cat conftest.
$ac_ext >&5
7905 eval "$as_ac_var=no"
7907 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7909 echo "$as_me:7909: result: `eval echo '${'$as_ac_var'}'`" >&5
7910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7911 if test `eval echo '${'$as_ac_var'}'` = yes; then
7912 cat >>confdefs.h
<<_ACEOF
7913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7919 LIBS
="$gt_save_LIBS"
7921 # Extract the first word of "msgfmt", so it can be a program name with args.
7922 set dummy msgfmt
; ac_word
=$2
7923 echo "$as_me:7923: checking for $ac_word" >&5
7924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7925 if test "${ac_cv_path_MSGFMT+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7930 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7933 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7934 for ac_dir
in $PATH; do
7935 test -z "$ac_dir" && ac_dir
=.
7936 if test -f $ac_dir/$ac_word; then
7937 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
7938 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7944 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
7948 MSGFMT
="$ac_cv_path_MSGFMT"
7949 if test "$MSGFMT" != ":"; then
7950 echo "$as_me:7950: result: $MSGFMT" >&5
7951 echo "${ECHO_T}$MSGFMT" >&6
7953 echo "$as_me:7953: result: no" >&5
7954 echo "${ECHO_T}no" >&6
7957 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7958 set dummy gmsgfmt
; ac_word
=$2
7959 echo "$as_me:7959: checking for $ac_word" >&5
7960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7961 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7962 echo $ECHO_N "(cached) $ECHO_C" >&6
7966 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7969 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
7971 for ac_dir
in $ac_dummy; do
7973 test -z "$ac_dir" && ac_dir
=.
7974 if $as_executable_p "$ac_dir/$ac_word"; then
7975 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7976 echo "$as_me:7976: found $ac_dir/$ac_word" >&5
7981 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
7985 GMSGFMT
=$ac_cv_path_GMSGFMT
7987 if test -n "$GMSGFMT"; then
7988 echo "$as_me:7988: result: $GMSGFMT" >&5
7989 echo "${ECHO_T}$GMSGFMT" >&6
7991 echo "$as_me:7991: result: no" >&5
7992 echo "${ECHO_T}no" >&6
7995 # Extract the first word of "xgettext", so it can be a program name with args.
7996 set dummy xgettext
; ac_word
=$2
7997 echo "$as_me:7997: checking for $ac_word" >&5
7998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7999 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
8004 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8007 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8008 for ac_dir
in $PATH; do
8009 test -z "$ac_dir" && ac_dir
=.
8010 if test -f $ac_dir/$ac_word; then
8011 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8012 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8018 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8022 XGETTEXT
="$ac_cv_path_XGETTEXT"
8023 if test "$XGETTEXT" != ":"; then
8024 echo "$as_me:8024: result: $XGETTEXT" >&5
8025 echo "${ECHO_T}$XGETTEXT" >&6
8027 echo "$as_me:8027: result: no" >&5
8028 echo "${ECHO_T}no" >&6
8036 if test "$CATOBJEXT" = "NONE"; then
8037 nls_cv_use_gnu_gettext
=yes
8041 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8042 INTLOBJS
="\$(GETTOBJS)"
8043 # Extract the first word of "msgfmt", so it can be a program name with args.
8044 set dummy msgfmt
; ac_word
=$2
8045 echo "$as_me:8045: checking for $ac_word" >&5
8046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8047 if test "${ac_cv_path_MSGFMT+set}" = set; then
8048 echo $ECHO_N "(cached) $ECHO_C" >&6
8052 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8055 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8056 for ac_dir
in $PATH; do
8057 test -z "$ac_dir" && ac_dir
=.
8058 if test -f $ac_dir/$ac_word; then
8059 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8060 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8066 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8070 MSGFMT
="$ac_cv_path_MSGFMT"
8071 if test "$MSGFMT" != ":"; then
8072 echo "$as_me:8072: result: $MSGFMT" >&5
8073 echo "${ECHO_T}$MSGFMT" >&6
8075 echo "$as_me:8075: result: no" >&5
8076 echo "${ECHO_T}no" >&6
8079 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8080 set dummy gmsgfmt
; ac_word
=$2
8081 echo "$as_me:8081: checking for $ac_word" >&5
8082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8083 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8084 echo $ECHO_N "(cached) $ECHO_C" >&6
8088 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8091 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
8093 for ac_dir
in $ac_dummy; do
8095 test -z "$ac_dir" && ac_dir
=.
8096 if $as_executable_p "$ac_dir/$ac_word"; then
8097 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8098 echo "$as_me:8098: found $ac_dir/$ac_word" >&5
8103 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8107 GMSGFMT
=$ac_cv_path_GMSGFMT
8109 if test -n "$GMSGFMT"; then
8110 echo "$as_me:8110: result: $GMSGFMT" >&5
8111 echo "${ECHO_T}$GMSGFMT" >&6
8113 echo "$as_me:8113: result: no" >&5
8114 echo "${ECHO_T}no" >&6
8117 # Extract the first word of "xgettext", so it can be a program name with args.
8118 set dummy xgettext
; ac_word
=$2
8119 echo "$as_me:8119: checking for $ac_word" >&5
8120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8121 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
8126 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8129 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8130 for ac_dir
in $PATH; do
8131 test -z "$ac_dir" && ac_dir
=.
8132 if test -f $ac_dir/$ac_word; then
8133 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8134 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8140 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8144 XGETTEXT
="$ac_cv_path_XGETTEXT"
8145 if test "$XGETTEXT" != ":"; then
8146 echo "$as_me:8146: result: $XGETTEXT" >&5
8147 echo "${ECHO_T}$XGETTEXT" >&6
8149 echo "$as_me:8149: result: no" >&5
8150 echo "${ECHO_T}no" >&6
8153 BUILD_INCLUDED_LIBINTL
=yes
8154 USE_INCLUDED_LIBINTL
=yes
8156 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
8157 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8160 if test "$GMSGFMT" != ":"; then
8161 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
8164 echo "$as_me:8164: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
8165 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
8170 if test "$XGETTEXT" != ":"; then
8171 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
8174 echo "$as_me:8174: result: found xgettext program is not GNU xgettext; ignore it" >&5
8175 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8182 ac_config_commands
="$ac_config_commands default-2"
8184 if test "$PACKAGE" = gettext; then
8185 BUILD_INCLUDED_LIBINTL
=yes
8188 for ac_prog
in bison
8190 # Extract the first word of "$ac_prog", so it can be a program name with args.
8191 set dummy
$ac_prog; ac_word
=$2
8192 echo "$as_me:8192: checking for $ac_word" >&5
8193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8194 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8197 if test -n "$INTLBISON"; then
8198 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
8200 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
8202 for ac_dir
in $ac_dummy; do
8204 test -z "$ac_dir" && ac_dir
=.
8205 $as_executable_p "$ac_dir/$ac_word" || continue
8206 ac_cv_prog_INTLBISON
="$ac_prog"
8207 echo "$as_me:8207: found $ac_dir/$ac_word" >&5
8213 INTLBISON
=$ac_cv_prog_INTLBISON
8214 if test -n "$INTLBISON"; then
8215 echo "$as_me:8215: result: $INTLBISON" >&5
8216 echo "${ECHO_T}$INTLBISON" >&6
8218 echo "$as_me:8218: result: no" >&5
8219 echo "${ECHO_T}no" >&6
8222 test -n "$INTLBISON" && break
8225 if test -z "$INTLBISON"; then
8228 echo "$as_me:8228: checking version of bison" >&5
8229 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8230 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8231 case $ac_prog_version in
8232 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
8233 1.2[6-9]* | 1.
[3-9][0-9]* | [2-9].
*)
8234 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
8235 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
8237 echo "$as_me:8237: result: $ac_prog_version" >&5
8238 echo "${ECHO_T}$ac_prog_version" >&6
8240 if test $ac_verc_fail = yes; then
8244 for lang
in $ALL_LINGUAS; do
8245 GMOFILES
="$GMOFILES $lang.gmo"
8246 POFILES
="$POFILES $lang.po"
8250 nls_cv_header_libgt
=
8258 if test "x$CATOBJEXT" != "x"; then
8259 if test "x$ALL_LINGUAS" = "x"; then
8262 echo "$as_me:8262: checking for catalogs to be installed" >&5
8263 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8265 for presentlang
in $ALL_LINGUAS; do
8267 for desiredlang
in ${LINGUAS-$ALL_LINGUAS}; do
8268 # Use the presentlang catalog if desiredlang is
8269 # a. equal to presentlang, or
8270 # b. a variant of presentlang (because in this case,
8271 # presentlang can be used as a fallback for messages
8272 # which are not translated in the desiredlang catalog).
8273 case "$desiredlang" in
8274 "$presentlang"*) useit
=yes;;
8277 if test $useit = yes; then
8278 NEW_LINGUAS
="$NEW_LINGUAS $presentlang"
8281 LINGUAS
=$NEW_LINGUAS
8282 echo "$as_me:8282: result: $LINGUAS" >&5
8283 echo "${ECHO_T}$LINGUAS" >&6
8286 if test -n "$LINGUAS"; then
8287 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8292 if test -n "$ac_aux_dir"; then
8293 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8295 if test -z "$MKINSTALLDIRS"; then
8296 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8299 INTL_LIBTOOL_SUFFIX_PREFIX
=
8301 # This is necessary so that .o files in LIBOBJS are also built via
8302 # the ANSI2KNR-filtering rules.
8303 LIBOBJS
=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
8305 ac_config_files
="$ac_config_files Makefile config/Makefile intl/Makefile po/Makefile.in lib/Makefile src/Makefile doc/Makefile m4/Makefile tests/Makefile tests/atconfig"
8306 cat >confcache
<<\_ACEOF
8307 # This file is a shell script that caches the results of configure
8308 # tests run on this system so they can be shared between configure
8309 # scripts and configure runs, see configure's option --config-cache.
8310 # It is not useful on other systems. If it contains results you don't
8311 # want to keep, you may remove or edit it.
8313 # config.status only pays attention to the cache file if you give it
8314 # the --recheck option to rerun configure.
8316 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8317 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8322 # The following way of writing the cache mishandles newlines in values,
8323 # but we know of no workaround that is simple, portable, and efficient.
8324 # So, don't put newlines in cache variables' values.
8325 # Ultrix sh set writes to stderr and can't be redirected directly,
8326 # and sets the high bit in the cache file unless we assign to the vars.
8329 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8331 # `set' does not quote correctly, so add quotes (double-quote
8332 # substitution turns \\\\ into \\, and sed turns \\ into \).
8335 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8338 # `set' quotes correctly as required by POSIX, so do not add quotes.
8340 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8347 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8349 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8351 if cmp -s $cache_file confcache
; then :; else
8352 if test -w $cache_file; then
8353 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8354 cat confcache
>$cache_file
8356 echo "not updating unwritable cache $cache_file"
8361 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8362 # Let make expand exec_prefix.
8363 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8365 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8366 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8367 # trailing colons and then remove the whole line if VPATH becomes empty
8368 # (actually we leave an empty line to preserve line numbers).
8369 if test "x$srcdir" = x.
; then
8370 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8371 s/:*\$(srcdir):*/:/;
8372 s/:*\${srcdir}:*/:/;
8374 s/^\([^=]*=[ ]*\):*/\1/;
8380 DEFS
=-DHAVE_CONFIG_H
8382 : ${CONFIG_STATUS=./config.status}
8383 ac_clean_files_save
=$ac_clean_files
8384 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8385 { echo "$as_me:8385: creating $CONFIG_STATUS" >&5
8386 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8387 cat >$CONFIG_STATUS <<_ACEOF
8389 # Generated automatically by $as_me.
8390 # Run this file to recreate the current configuration.
8391 # Compiler output produced by configure, useful for debugging
8392 # configure, is in config.log if it exists.
8395 SHELL=\${CONFIG_SHELL-$SHELL}
8398 cat >>$CONFIG_STATUS <<\_ACEOF
8400 ## --------------------- ##
8401 ## M4sh Initialization. ##
8402 ## --------------------- ##
8404 # Be Bourne compatible
8405 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8408 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8412 # Name of the executable.
8413 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
8415 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8421 rm -f conf$$ conf$$.exe conf$$.
file
8423 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8424 # We could just check for DJGPP; but this test a) works b) is more generic
8425 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8426 if test -f conf$$.exe
; then
8427 # Don't use ln at all; we don't have any links
8432 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8437 rm -f conf$$ conf$$.exe conf$$.
file
8439 as_executable_p
="test -f"
8441 # Support unset when possible.
8442 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
8449 $as_unset LANG
|| test "${LANG+set}" != set || { LANG
=C
; export LANG
; }
8450 $as_unset LC_ALL
|| test "${LC_ALL+set}" != set || { LC_ALL
=C
; export LC_ALL
; }
8451 $as_unset LC_TIME
|| test "${LC_TIME+set}" != set || { LC_TIME
=C
; export LC_TIME
; }
8452 $as_unset LC_CTYPE
|| test "${LC_CTYPE+set}" != set || { LC_CTYPE
=C
; export LC_CTYPE
; }
8453 $as_unset LANGUAGE
|| test "${LANGUAGE+set}" != set || { LANGUAGE
=C
; export LANGUAGE
; }
8454 $as_unset LC_COLLATE
|| test "${LC_COLLATE+set}" != set || { LC_COLLATE
=C
; export LC_COLLATE
; }
8455 $as_unset LC_NUMERIC
|| test "${LC_NUMERIC+set}" != set || { LC_NUMERIC
=C
; export LC_NUMERIC
; }
8456 $as_unset LC_MESSAGES
|| test "${LC_MESSAGES+set}" != set || { LC_MESSAGES
=C
; export LC_MESSAGES
; }
8459 # We need space, tab and new line, in precisely that order.
8465 $as_unset CDPATH
|| test "${CDPATH+set}" != set || { CDPATH
=:; export CDPATH
; }
8469 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8470 # report actual input values of CONFIG_FILES etc. instead of their
8471 # values after options handling. Logging --version etc. is OK.
8475 `sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8476 ## Running \$as_me. ##
8479 This file was extended by bison $as_me 1.28c, which was
8480 generated by GNU Autoconf 2.52c. Invocation command line was
8482 CONFIG_FILES = $CONFIG_FILES
8483 CONFIG_HEADERS = $CONFIG_HEADERS
8484 CONFIG_LINKS = $CONFIG_LINKS
8485 CONFIG_COMMANDS = $CONFIG_COMMANDS
8487 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8492 # Files that config.status was made for.
8493 if test -n "$ac_config_files"; then
8494 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8497 if test -n "$ac_config_headers"; then
8498 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8501 if test -n "$ac_config_links"; then
8502 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8505 if test -n "$ac_config_commands"; then
8506 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8509 cat >>$CONFIG_STATUS <<\_ACEOF
8512 \`$as_me' instantiates files from templates according to the
8513 current configuration.
8515 Usage: $0 [OPTIONS] [FILE]...
8517 -h, --help print this help, then exit
8518 -V, --version print version number, then exit
8519 -d, --debug don't remove temporary files
8520 --recheck update $as_me by reconfiguring in the same conditions
8521 --file=FILE[:TEMPLATE]
8522 instantiate the configuration file FILE
8523 --header=FILE[:TEMPLATE]
8524 instantiate the configuration header FILE
8526 Configuration files:
8529 Configuration headers:
8532 Configuration commands:
8535 Report bugs to <bug-autoconf@gnu.org>."
8538 cat >>$CONFIG_STATUS <<_ACEOF
8540 bison config.status 1.28c
8541 configured by $0, generated by GNU Autoconf 2.52c,
8542 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8544 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8545 Free Software Foundation, Inc.
8546 This config.status script is free software; the Free Software Foundation
8547 gives unlimited permission to copy, distribute and modify it."
8552 cat >>$CONFIG_STATUS <<\_ACEOF
8553 # If no file are specified by the user, then we need to provide default
8554 # value. By we need to know if files were specified by the user.
8560 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
8561 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
8563 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
8567 *) # This is not an option, so the user has probably given explicit
8569 ac_need_defaults
=false
;;
8573 # Handling of the options.
8575 cat >>$CONFIG_STATUS <<_ACEOF
8576 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8577 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8578 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8580 cat >>$CONFIG_STATUS <<\_ACEOF
8581 --version | --vers* | -V )
8582 echo "$ac_cs_version"; exit 0 ;;
8584 # Conflict between --help and --header
8585 { { echo "$as_me:8585: error: ambiguous option: $1
8586 Try \`$0 --help' for more information." >&5
8587 echo "$as_me: error: ambiguous option: $1
8588 Try \`$0 --help' for more information." >&2;}
8589 { (exit 1); exit 1; }; };;
8590 --help | --hel | -h )
8591 echo "$ac_cs_usage"; exit 0 ;;
8592 --debug | --d* | -d )
8594 --file | --fil | --fi | --f )
8596 CONFIG_FILES
="$CONFIG_FILES $1"
8597 ac_need_defaults
=false
;;
8598 --header | --heade | --head | --hea )
8600 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
8601 ac_need_defaults
=false
;;
8604 -*) { { echo "$as_me:8604: error: unrecognized option: $1
8605 Try \`$0 --help' for more information." >&5
8606 echo "$as_me: error: unrecognized option: $1
8607 Try \`$0 --help' for more information." >&2;}
8608 { (exit 1); exit 1; }; } ;;
8610 *) ac_config_targets
="$ac_config_targets $1" ;;
8618 cat >>$CONFIG_STATUS <<_ACEOF
8620 # INIT-COMMANDS section.
8623 AMDEP_TRUE="$AMDEP_TRUE"
8624 ac_aux_dir="$ac_aux_dir"
8628 cat >>$CONFIG_STATUS <<\_ACEOF
8629 for ac_config_target
in $ac_config_targets
8631 case "$ac_config_target" in
8632 # Handling of arguments.
8633 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8634 "config/Makefile" ) CONFIG_FILES
="$CONFIG_FILES config/Makefile" ;;
8635 "intl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
8636 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
8637 "lib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
8638 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
8639 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
8640 "m4/Makefile" ) CONFIG_FILES
="$CONFIG_FILES m4/Makefile" ;;
8641 "tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
8642 "tests/atconfig" ) CONFIG_FILES
="$CONFIG_FILES tests/atconfig" ;;
8643 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
8644 "default-2" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-2" ;;
8645 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.hin" ;;
8646 *) { { echo "$as_me:8646: error: invalid argument: $ac_config_target" >&5
8647 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8648 { (exit 1); exit 1; }; };;
8652 # If the user did not use the arguments to specify the items to instantiate,
8653 # then the envvar interface is used. Set only those that are not.
8654 # We use the long form for the default assignment because of an extremely
8655 # bizarre bug on SunOS 4.1.3.
8656 if $ac_need_defaults; then
8657 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8658 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8659 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8662 # Create a temporary directory, and hook for its removal unless debugging.
8665 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8666 trap '{ (exit 1); exit 1; }' 1 2 13 15
8669 # Create a (secure) tmp directory for tmp files.
8672 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
8673 test -n "$tmp" && test -d "$tmp"
8676 tmp
=$TMPDIR/cs$$
-$RANDOM
8677 (umask 077 && mkdir $tmp)
8680 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8681 { (exit 1); exit 1; }
8686 cat >>$CONFIG_STATUS <<_ACEOF
8689 # CONFIG_FILES section.
8692 # No need to generate the scripts if there are no CONFIG_FILES.
8693 # This happens for instance when ./config.status config.h
8694 if test -n "\$CONFIG_FILES"; then
8695 # Protect against being on the right side of a sed subst in config.status.
8696 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8697 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8698 s,@SHELL@,$SHELL,;t t
8699 s,@exec_prefix@,$exec_prefix,;t t
8700 s,@prefix@,$prefix,;t t
8701 s,@program_transform_name@,$program_transform_name,;t t
8702 s,@bindir@,$bindir,;t t
8703 s,@sbindir@,$sbindir,;t t
8704 s,@libexecdir@,$libexecdir,;t t
8705 s,@datadir@,$datadir,;t t
8706 s,@sysconfdir@,$sysconfdir,;t t
8707 s,@sharedstatedir@,$sharedstatedir,;t t
8708 s,@localstatedir@,$localstatedir,;t t
8709 s,@libdir@,$libdir,;t t
8710 s,@includedir@,$includedir,;t t
8711 s,@oldincludedir@,$oldincludedir,;t t
8712 s,@infodir@,$infodir,;t t
8713 s,@mandir@,$mandir,;t t
8714 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8715 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8716 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8717 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8718 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8719 s,@build_alias@,$build_alias,;t t
8720 s,@host_alias@,$host_alias,;t t
8721 s,@target_alias@,$target_alias,;t t
8722 s,@ECHO_C@,$ECHO_C,;t t
8723 s,@ECHO_N@,$ECHO_N,;t t
8724 s,@ECHO_T@,$ECHO_T,;t t
8725 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8728 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8729 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8730 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8731 s,@PACKAGE@,$PACKAGE,;t t
8732 s,@VERSION@,$VERSION,;t t
8733 s,@EXEEXT@,$EXEEXT,;t t
8734 s,@OBJEXT@,$OBJEXT,;t t
8735 s,@ACLOCAL@,$ACLOCAL,;t t
8736 s,@AUTOCONF@,$AUTOCONF,;t t
8737 s,@AUTOMAKE@,$AUTOMAKE,;t t
8738 s,@AUTOHEADER@,$AUTOHEADER,;t t
8739 s,@MAKEINFO@,$MAKEINFO,;t t
8740 s,@AMTAR@,$AMTAR,;t t
8741 s,@install_sh@,$install_sh,;t t
8742 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8744 s,@SET_MAKE@,$SET_MAKE,;t t
8745 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8746 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8747 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8748 s,@DEPDIR@,$DEPDIR,;t t
8749 s,@AT_TESTPATH@,$AT_TESTPATH,;t t
8751 s,@CFLAGS@,$CFLAGS,;t t
8752 s,@LDFLAGS@,$LDFLAGS,;t t
8753 s,@CPPFLAGS@,$CPPFLAGS,;t t
8754 s,@ac_ct_CC@,$ac_ct_CC,;t t
8755 s,@am__include@,$am__include,;t t
8756 s,@am__quote@,$am__quote,;t t
8757 s,@CCDEPMODE@,$CCDEPMODE,;t t
8759 s,@RANLIB@,$RANLIB,;t t
8760 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8762 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
8764 s,@ANSI2KNR@,$ANSI2KNR,;t t
8765 s,@ALLOCA@,$ALLOCA,;t t
8766 s,@LIBOBJS@,$LIBOBJS,;t t
8767 s,@build@,$build,;t t
8768 s,@build_cpu@,$build_cpu,;t t
8769 s,@build_vendor@,$build_vendor,;t t
8770 s,@build_os@,$build_os,;t t
8772 s,@host_cpu@,$host_cpu,;t t
8773 s,@host_vendor@,$host_vendor,;t t
8774 s,@host_os@,$host_os,;t t
8775 s,@GLIBC21@,$GLIBC21,;t t
8776 s,@LIBICONV@,$LIBICONV,;t t
8777 s,@USE_NLS@,$USE_NLS,;t t
8778 s,@MSGFMT@,$MSGFMT,;t t
8779 s,@GMSGFMT@,$GMSGFMT,;t t
8780 s,@XGETTEXT@,$XGETTEXT,;t t
8781 s,@INTLBISON@,$INTLBISON,;t t
8782 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
8783 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
8784 s,@CATALOGS@,$CATALOGS,;t t
8785 s,@CATOBJEXT@,$CATOBJEXT,;t t
8786 s,@GMOFILES@,$GMOFILES,;t t
8787 s,@INTLLIBS@,$INTLLIBS,;t t
8788 s,@INTLOBJS@,$INTLOBJS,;t t
8789 s,@POFILES@,$POFILES,;t t
8790 s,@POSUB@,$POSUB,;t t
8791 s,@DATADIRNAME@,$DATADIRNAME,;t t
8792 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8793 s,@GENCAT@,$GENCAT,;t t
8794 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8795 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
8800 cat >>$CONFIG_STATUS <<\_ACEOF
8801 # Split the substitutions into bite-sized pieces for seds with
8802 # small command number limits, like on Digital OSF/1 and HP-UX.
8804 ac_sed_frag
=1 # Number of current file.
8805 ac_beg
=1 # First line for current file.
8806 ac_end
=$ac_max_sed_lines # Line after last line for current file.
8809 while $ac_more_lines; do
8810 if test $ac_beg -gt 1; then
8811 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8813 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8815 if test ! -s $tmp/subs.frag
; then
8818 # The purpose of the label and of the branching condition is to
8819 # speed up the sed processing (if there are no `@' at all, there
8820 # is no need to browse any of the substitutions).
8821 # These are the two extra sed commands mentioned above.
8823 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs
-$ac_sed_frag.
sed
8824 if test -z "$ac_sed_cmds"; then
8825 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
8827 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8829 ac_sed_frag
=`expr $ac_sed_frag + 1`
8831 ac_end
=`expr $ac_end + $ac_max_sed_lines`
8834 if test -z "$ac_sed_cmds"; then
8837 fi # test -n "$CONFIG_FILES"
8840 cat >>$CONFIG_STATUS <<\_ACEOF
8841 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
8842 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8844 - | *:- | *:-:* ) # input from stdin
8846 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8847 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8848 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8849 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8850 * ) ac_file_in
=$ac_file.
in ;;
8853 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8854 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8855 X"$ac_file" : 'X\(//\)[^/]' \| \
8856 X"$ac_file" : 'X\(//\)$' \| \
8857 X"$ac_file" : 'X\(/\)' \| \
8858 . : '\(.\)' 2>/dev/null ||
8860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8861 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8862 /^X\(\/\/\)$/{ s//\1/; q; }
8863 /^X\(\/\).*/{ s//\1/; q; }
8866 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
8870 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8871 case $as_mkdir_dir in
8872 # Skip DOS drivespec
8873 ?
:) as_incr_dir
=$as_mkdir_dir ;;
8875 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
8876 test -d "$as_incr_dir" ||
8877 mkdir "$as_incr_dir" ||
8878 { { echo "$as_me:8878: error: cannot create \"$ac_dir\"" >&5
8879 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
8880 { (exit 1); exit 1; }; }
8885 if test "$ac_dir" != .
; then
8886 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\./,,'`
8887 # A "../" for each directory in $ac_dir_suffix.
8888 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
8890 ac_dir_suffix
= ac_top_builddir
=
8894 .
) # No --srcdir option. We are building in place.
8896 if test -z "$ac_top_builddir"; then
8899 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8901 [\\/]* | ?
:[\\/]* ) # Absolute path.
8902 ac_srcdir
=$srcdir$ac_dir_suffix;
8903 ac_top_srcdir
=$srcdir ;;
8905 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8906 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8910 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8911 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
8914 if test x
"$ac_file" != x
-; then
8915 { echo "$as_me:8915: creating $ac_file" >&5
8916 echo "$as_me: creating $ac_file" >&6;}
8919 # Let's still pretend it is `configure' which instantiates (i.e., don't
8920 # use $as_me), people would be surprised to read:
8921 # /* config.h. Generated automatically by config.status. */
8922 configure_input
="Generated automatically from `echo $ac_file_in |
8923 sed 's,.*/,,'` by configure."
8925 # First look for the input files in the build tree, otherwise in the
8927 ac_file_inputs
=`IFS=:
8928 for f in $ac_file_in; do
8930 -) echo $tmp/stdin ;;
8932 # Absolute (can't be DOS-style, as IFS=:)
8933 test -f "$f" || { { echo "$as_me:8933: error: cannot find input file: $f" >&5
8934 echo "$as_me: error: cannot find input file: $f" >&2;}
8935 { (exit 1); exit 1; }; }
8938 if test -f "$f"; then
8941 elif test -f "$srcdir/$f"; then
8946 { { echo "$as_me:8946: error: cannot find input file: $f" >&5
8947 echo "$as_me: error: cannot find input file: $f" >&2;}
8948 { (exit 1); exit 1; }; }
8951 done` || { (exit 1); exit 1; }
8953 cat >>$CONFIG_STATUS <<_ACEOF
8957 cat >>$CONFIG_STATUS <<\_ACEOF
8959 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
8960 s
,@configure_input@
,$configure_input,;t t
8961 s
,@srcdir@
,$ac_srcdir,;t t
8962 s
,@top_srcdir@
,$ac_top_srcdir,;t t
8963 s
,@INSTALL@
,$ac_INSTALL,;t t
8964 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8966 if test x"$ac_file" != x-; then
8967 mv $tmp/out $ac_file
8975 cat >>$CONFIG_STATUS <<\_ACEOF
8978 # CONFIG_HEADER section.
8981 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
8982 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8984 # ac_d sets the value in "#define NAME VALUE" lines.
8985 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8986 ac_dB
='[ ].*$,\1#\2'
8989 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8990 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8991 ac_uB
='$,\1#\2define\3'
8995 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
8996 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8998 - | *:- | *:-:* ) # input from stdin
9000 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9001 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9002 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9003 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9004 * ) ac_file_in
=$ac_file.
in ;;
9007 test x
"$ac_file" != x
- && { echo "$as_me:9007: creating $ac_file" >&5
9008 echo "$as_me: creating $ac_file" >&6;}
9010 # First look for the input files in the build tree, otherwise in the
9012 ac_file_inputs
=`IFS=:
9013 for f in $ac_file_in; do
9015 -) echo $tmp/stdin ;;
9017 # Absolute (can't be DOS-style, as IFS=:)
9018 test -f "$f" || { { echo "$as_me:9018: error: cannot find input file: $f" >&5
9019 echo "$as_me: error: cannot find input file: $f" >&2;}
9020 { (exit 1); exit 1; }; }
9023 if test -f "$f"; then
9026 elif test -f "$srcdir/$f"; then
9031 { { echo "$as_me:9031: error: cannot find input file: $f" >&5
9032 echo "$as_me: error: cannot find input file: $f" >&2;}
9033 { (exit 1); exit 1; }; }
9036 done` || { (exit 1); exit 1; }
9037 # Remove the trailing spaces.
9038 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9042 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9043 # `conftest.undefs', that substitutes the proper values into
9044 # config.h.in to produce config.h. The first handles `#define'
9045 # templates, and the second `#undef' templates.
9046 # And first: Protect against being on the right side of a sed subst in
9047 # config.status. Protect against being in an unquoted here document
9049 rm -f conftest.defines conftest.undefs
9050 # Using a here document instead of a string reduces the quoting nightmare.
9051 # Putting comments in sed scripts is not portable.
9053 # `end' is used to avoid that the second main sed command (meant for
9054 # 0-ary CPP macros) applies to n-ary macro definitions.
9055 # See the Autoconf documentation for `clear'.
9056 cat >confdef2sed.
sed <<\_ACEOF
9061 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
9063 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9066 # If some macros were called several times there might be several times
9067 # the same #defines, which is useless. Nevertheless, we may not want to
9068 # sort them, since we want the *last* AC-DEFINE to be honored.
9069 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9070 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9071 rm -f confdef2sed.sed
9073 # This sed command replaces #undef with comments. This is necessary, for
9074 # example, in the case of _POSIX_SOURCE, which is predefined and required
9075 # on some systems where configure will not decide to define it.
9076 cat >>conftest.undefs <<\_ACEOF
9077 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9080 # Break up conftest.defines because some shells have a limit on the size
9081 # of here documents, and old seds have small limits too (100 cmds).
9082 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9083 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9084 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9085 echo ' :' >>$CONFIG_STATUS
9087 while grep . conftest.defines >/dev/null
9089 # Write a limited-size here document to $tmp/defines.sed.
9090 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9091 # Speed up: don't consider the non `#define' lines.
9092 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9093 # Work around the forget-to-reset-the-flag bug.
9094 echo 't clr' >>$CONFIG_STATUS
9095 echo ': clr' >>$CONFIG_STATUS
9096 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9098 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9102 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9103 rm -f conftest.defines
9104 mv conftest.
tail conftest.defines
9106 rm -f conftest.defines
9107 echo ' fi # egrep' >>$CONFIG_STATUS
9108 echo >>$CONFIG_STATUS
9110 # Break up conftest.undefs because some shells have a limit on the size
9111 # of here documents, and old seds have small limits too (100 cmds).
9112 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9114 while grep . conftest.undefs
>/dev
/null
9116 # Write a limited-size here document to $tmp/undefs.sed.
9117 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9118 # Speed up: don't consider the non
`#undef'
9119 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9120 # Work around the forget-to-reset-the-flag bug.
9121 echo 't clr' >>$CONFIG_STATUS
9122 echo ': clr' >>$CONFIG_STATUS
9123 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9125 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9129 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9130 rm -f conftest.undefs
9131 mv conftest.tail conftest.undefs
9133 rm -f conftest.undefs
9135 cat >>$CONFIG_STATUS <<\_ACEOF
9136 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9137 # use $as_me), people would be surprised to read:
9138 # /* config.h. Generated automatically by config.status. */
9139 if test x
"$ac_file" = x
-; then
9140 echo "/* Generated automatically by configure. */" >$tmp/config.h
9142 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
9144 cat $tmp/in >>$tmp/config.h
9146 if test x
"$ac_file" != x
-; then
9147 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
9148 { echo "$as_me:9148: $ac_file is unchanged" >&5
9149 echo "$as_me: $ac_file is unchanged" >&6;}
9151 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9152 X"$ac_file" : 'X\(//\)[^/]' \| \
9153 X"$ac_file" : 'X\(//\)$' \| \
9154 X"$ac_file" : 'X\(/\)' \| \
9155 . : '\(.\)' 2>/dev/null ||
9157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9158 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9159 /^X\(\/\/\)$/{ s//\1/; q; }
9160 /^X\(\/\).*/{ s//\1/; q; }
9163 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9167 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9168 case $as_mkdir_dir in
9169 # Skip DOS drivespec
9170 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9172 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9173 test -d "$as_incr_dir" ||
9174 mkdir "$as_incr_dir" ||
9175 { { echo "$as_me:9175: error: cannot create \"$ac_dir\"" >&5
9176 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9177 { (exit 1); exit 1; }; }
9183 mv $tmp/config.h
$ac_file
9189 # Run the commands associated with the file.
9191 config.h
) # update the timestamp
9192 echo timestamp
>"./stamp-h1"
9197 cat >>$CONFIG_STATUS <<\_ACEOF
9200 # CONFIG_COMMANDS section.
9202 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9203 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9204 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9205 ac_dir
=`$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9206 X"$ac_dest" : 'X\(//\)[^/]' \| \
9207 X"$ac_dest" : 'X\(//\)$' \| \
9208 X"$ac_dest" : 'X\(/\)' \| \
9209 . : '\(.\)' 2>/dev/null ||
9211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9212 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9213 /^X\(\/\/\)$/{ s//\1/; q; }
9214 /^X\(\/\).*/{ s//\1/; q; }
9216 if test "$ac_dir" != .
; then
9217 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\./,,'`
9218 # A "../" for each directory in $ac_dir_suffix.
9219 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
9221 ac_dir_suffix
= ac_top_builddir
=
9225 .
) # No --srcdir option. We are building in place.
9227 if test -z "$ac_top_builddir"; then
9230 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9232 [\\/]* | ?
:[\\/]* ) # Absolute path.
9233 ac_srcdir
=$srcdir$ac_dir_suffix;
9234 ac_top_srcdir
=$srcdir ;;
9236 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9237 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9240 { echo "$as_me:9240: executing $ac_dest commands" >&5
9241 echo "$as_me: executing $ac_dest commands" >&6;}
9244 test x
"$AMDEP_TRUE" != x
"" ||
9245 for mf
in $CONFIG_FILES; do
9247 Makefile
) dirpart
=.
;;
9248 */Makefile
) dirpart
=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
9251 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null
|| continue
9252 # Extract the definition of DEP_FILES from the Makefile without
9254 DEPDIR
=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9255 test -z "$DEPDIR" && continue
9256 # When using ansi2knr, U may be empty or an underscore; expand it
9257 U
=`sed -n -e '/^U = / s///p' < "$mf"`
9258 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9259 # We invoke sed twice because it is the simplest approach to
9260 # changing $(DEPDIR) to its actual value in the expansion.
9261 for file in `sed -n -e '
9262 /^DEP_FILES = .*\\\\$/ {
9271 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9272 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9273 # Make sure the directory exists.
9274 test -f "$dirpart/$file" && continue
9275 fdir
=`echo "$file" | sed -e 's|/[^/]*$||'`
9276 $ac_aux_dir/mkinstalldirs
"$dirpart/$fdir" > /dev
/null
2>&1
9277 # echo "creating $dirpart/$file"
9278 echo '# dummy' > "$dirpart/$file"
9282 default
-2 ) for ac_file
in $CONFIG_FILES; do
9283 # Support "outfile[:infile[:infile...]]"
9285 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9287 # PO directories have a Makefile.in generated from Makefile.in.in.
9288 case "$ac_file" in */Makefile.
in)
9289 # Adjust a relative srcdir.
9290 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9291 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
9292 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9293 # In autoconf-2.13 it is called $ac_given_srcdir.
9294 # In autoconf-2.50 it is called $srcdir.
9295 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
9296 case "$ac_given_srcdir" in
9297 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
9298 /*) top_srcdir
="$ac_given_srcdir" ;;
9299 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9301 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9302 rm -f "$ac_dir/POTFILES"
9303 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9304 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9305 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9306 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9315 cat >>$CONFIG_STATUS <<\_ACEOF
9317 { (exit 0); exit 0; }
9319 chmod +x
$CONFIG_STATUS
9320 ac_clean_files
=$ac_clean_files_save
9322 # configure is writing to config.log, and then calls config.status.
9323 # config.status does its own redirection, appending to config.log.
9324 # Unfortunately, on DOS this fails, as config.log is still kept open
9325 # by configure, so config.status won't be able to write to it; its
9326 # output is simply discarded. So we exec the FD to /dev/null,
9327 # effectively closing config.log, so it can be properly (re)opened and
9328 # appended to by config.status. When coming back to configure, we
9329 # need to make the FD available again.
9330 if test "$no_create" != yes; then
9333 $SHELL $CONFIG_STATUS || ac_cs_success
=false
9335 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9336 # would make configure fail if this is the last instruction.
9337 $ac_cs_success || { (exit 1); exit 1; }